VirtualBox

source: vbox/trunk/src/VBox/Debugger/Makefile.kmk@ 31808

Last change on this file since 31808 was 31530, checked in by vboxsync, 14 years ago

Debugger: Updated the file headers.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.0 KB
Line 
1# $Id: Makefile.kmk 31530 2010-08-10 12:24:45Z vboxsync $
2## @file
3# Makefile for the VBox debugger.
4#
5
6#
7# Copyright (C) 2006-2010 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18SUB_DEPTH = ../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21#
22# The targets.
23#
24ifdef VBOX_WITH_DEBUGGER
25 LIBRARIES += Debugger
26 ifdef VBOX_WITH_TESTCASES
27 PROGRAMS += tstDBGCParser
28 endif
29endif # VBOX_WITH_DEBUGGER
30ifndef VBOX_OSE
31 INSTALLS.win.x86 += dbghelp
32endif
33
34
35#
36# Debugger library - linked into VBoxVMM.
37#
38Debugger_TEMPLATE = VBOXR3
39Debugger_DEFS = IN_VMM_R3 IN_DBG_R3 IN_DIS
40ifneq ($(KBUILD_TYPE),release)
41 Debugger_DEFS += VBOX_WITH_DEBUGGER_TCP_BY_DEFAULT
42endif
43Debugger_SOURCES = \
44 DBGConsole.cpp \
45 DBGCBuiltInSymbols.cpp \
46 DBGCCmdHlp.cpp \
47 DBGCCmdWorkers.cpp \
48 DBGCCommands.cpp \
49 DBGCEmulateCodeView.cpp \
50 DBGCOps.cpp \
51 DBGCTcp.cpp
52
53#
54# The diggers plug-in.
55#
56DLLS += DBGCPlugInDiggers
57DBGCPlugInDiggers_TEMPLATE = VBOXR3
58DBGCPlugInDiggers_SOURCES = \
59 DBGPlugInDiggers.cpp \
60 DBGPlugInLinux.cpp \
61 DBGPlugInSolaris.cpp \
62 DBGPlugInWinNt.cpp \
63 DBGPlugInCommonELF.cpp
64DBGCPlugInDiggers_LIBS = \
65 $(LIB_VMM) \
66 $(LIB_REM) \
67 $(LIB_RUNTIME)
68
69
70#
71# The DBGC parser testcase.
72# This stubs all the VBoxVMM APIs.
73#
74tstDBGCParser_TEMPLATE = VBOXR3TSTEXE
75tstDBGCParser_DEFS = IN_VMM_R3
76tstDBGCParser_SOURCES = \
77 testcase/tstDBGCParser.cpp \
78 testcase/tstDBGCStubs.cpp
79tstDBGCParser_LIBS = \
80 $(TARGET_Debugger) \
81 $(LIB_RUNTIME)
82
83
84if defined(VBOX_WITH_QTGUI) && defined(VBOX_WITH_DEBUGGER_GUI)
85#
86# Debugger GUI component (Qt4).
87#
88USES += qt4
89DLLS += VBoxDbg
90VBoxDbg_TEMPLATE = VBOXQT4GUI
91VBoxDbg_DEFS = IN_DBG_R3 VBOXDBG_USE_QT4
92VBoxDbg_INCS = .
93VBoxDbg_QT_MODULES = Core Gui
94VBoxDbg_QT_MOCHDRS = \
95 VBoxDbgGui.h \
96 VBoxDbgConsole.h \
97 VBoxDbgStatsQt4.h
98VBoxDbg_SOURCES = \
99 VBoxDbg.cpp \
100 VBoxDbgGui.cpp \
101 VBoxDbgBase.cpp \
102 VBoxDbgConsole.cpp \
103 VBoxDbgStatsQt4.cpp
104VBoxDbg_LIBS = \
105 $(LIB_VMM)
106VBoxDbg_LDFLAGS.darwin = \
107 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDbg.dylib
108
109 ifdef VBOX_WITH_TESTCASES
110#
111# The VBoxDbg testcase (Qt4).
112#
113PROGRAMS += tstVBoxDbg
114tstVBoxDbg_TEMPLATE = VBOXQT4GUIEXE
115tstVBoxDbg_USES = qt4
116tstVBoxDbg_QTTOOL = QT4
117tstVBoxDbg_QT_MODULES = Core Gui
118tstVBoxDbg_SOURCES = testcase/tstVBoxDbg.cpp
119tstVBoxDbg_LIBS = \
120 $(LIB_VMM) \
121 $(LIB_RUNTIME)
122 ifeq ($(KBUILD_TARGET),win)
123tstVBoxDbg_LIBS += \
124 $(PATH_LIB)/VBoxDbg.lib
125 else
126tstVBoxDbg_LIBS += \
127 $(PATH_BIN)/VBoxDbg$(VBOX_SUFF_DLL)
128 endif
129 endif # TESTCASES
130endif # Qt4
131
132
133#
134# Install the dbghelp.dll binary.
135#
136dbghelp_INST = bin/
137dbghelp_SOURCES.x86 = win32/dbghelp.dll
138dbghelp_SOURCES.amd64 = win64/dbghelp.dll
139
140
141include $(KBUILD_PATH)/subfooter.kmk
142
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette