VirtualBox

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

Last change on this file since 33595 was 31846, checked in by vboxsync, 14 years ago

stub

  • 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 31846 2010-08-21 20:16:47Z 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 DBGCGdbRemoteStub.cpp \
52 DBGCTcp.cpp
53
54#
55# The diggers plug-in.
56#
57DLLS += DBGCPlugInDiggers
58DBGCPlugInDiggers_TEMPLATE = VBOXR3
59DBGCPlugInDiggers_SOURCES = \
60 DBGPlugInDiggers.cpp \
61 DBGPlugInLinux.cpp \
62 DBGPlugInSolaris.cpp \
63 DBGPlugInWinNt.cpp \
64 DBGPlugInCommonELF.cpp
65DBGCPlugInDiggers_LIBS = \
66 $(LIB_VMM) \
67 $(LIB_REM) \
68 $(LIB_RUNTIME)
69
70
71#
72# The DBGC parser testcase.
73# This stubs all the VBoxVMM APIs.
74#
75tstDBGCParser_TEMPLATE = VBOXR3TSTEXE
76tstDBGCParser_DEFS = IN_VMM_R3
77tstDBGCParser_SOURCES = \
78 testcase/tstDBGCParser.cpp \
79 testcase/tstDBGCStubs.cpp
80tstDBGCParser_LIBS = \
81 $(TARGET_Debugger) \
82 $(LIB_RUNTIME)
83
84
85if defined(VBOX_WITH_QTGUI) && defined(VBOX_WITH_DEBUGGER_GUI)
86#
87# Debugger GUI component (Qt4).
88#
89USES += qt4
90DLLS += VBoxDbg
91VBoxDbg_TEMPLATE = VBOXQT4GUI
92VBoxDbg_DEFS = IN_DBG_R3 VBOXDBG_USE_QT4
93VBoxDbg_INCS = .
94VBoxDbg_QT_MODULES = Core Gui
95VBoxDbg_QT_MOCHDRS = \
96 VBoxDbgGui.h \
97 VBoxDbgConsole.h \
98 VBoxDbgStatsQt4.h
99VBoxDbg_SOURCES = \
100 VBoxDbg.cpp \
101 VBoxDbgGui.cpp \
102 VBoxDbgBase.cpp \
103 VBoxDbgConsole.cpp \
104 VBoxDbgStatsQt4.cpp
105VBoxDbg_LIBS = \
106 $(LIB_VMM)
107VBoxDbg_LDFLAGS.darwin = \
108 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDbg.dylib
109
110 ifdef VBOX_WITH_TESTCASES
111#
112# The VBoxDbg testcase (Qt4).
113#
114PROGRAMS += tstVBoxDbg
115tstVBoxDbg_TEMPLATE = VBOXQT4GUIEXE
116tstVBoxDbg_USES = qt4
117tstVBoxDbg_QTTOOL = QT4
118tstVBoxDbg_QT_MODULES = Core Gui
119tstVBoxDbg_SOURCES = testcase/tstVBoxDbg.cpp
120tstVBoxDbg_LIBS = \
121 $(LIB_VMM) \
122 $(LIB_RUNTIME)
123 ifeq ($(KBUILD_TARGET),win)
124tstVBoxDbg_LIBS += \
125 $(PATH_LIB)/VBoxDbg.lib
126 else
127tstVBoxDbg_LIBS += \
128 $(PATH_BIN)/VBoxDbg$(VBOX_SUFF_DLL)
129 endif
130 endif # TESTCASES
131endif # Qt4
132
133
134#
135# Install the dbghelp.dll binary.
136#
137dbghelp_INST = bin/
138dbghelp_SOURCES.x86 = win32/dbghelp.dll
139dbghelp_SOURCES.amd64 = win64/dbghelp.dll
140
141
142include $(KBUILD_PATH)/subfooter.kmk
143
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