VirtualBox

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

Last change on this file since 49044 was 49044, checked in by vboxsync, 11 years ago

Darwin guest OS digger hacking in progress. Adding symbol cache util to iprt and started on the Mach-O code that'll make use of it (RTDbgModCreateFromMachOImage++). Updates kStuff from 53 to 55 for UUID query and 64-bit kext loading.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.3 KB
Line 
1# $Id: Makefile.kmk 49044 2013-10-11 01:06:28Z vboxsync $
2## @file
3# Makefile for the VBox debugger.
4#
5
6#
7# Copyright (C) 2006-2012 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 DBGCEval.cpp \
46 DBGCBuiltInSymbols.cpp \
47 DBGCCmdHlp.cpp \
48 DBGCCmdWorkers.cpp \
49 DBGCCommands.cpp \
50 DBGCFunctions.cpp \
51 DBGCEmulateCodeView.cpp \
52 DBGCOps.cpp \
53 DBGCGdbRemoteStub.cpp \
54 DBGCTcp.cpp
55
56#
57# The diggers plug-in.
58#
59DLLS += DBGCPlugInDiggers
60DBGCPlugInDiggers_TEMPLATE = VBOXR3
61DBGCPlugInDiggers_SOURCES = \
62 DBGPlugInDiggers.cpp \
63 DBGPlugInDarwin.cpp \
64 DBGPlugInLinux.cpp \
65 DBGPlugInSolaris.cpp \
66 DBGPlugInWinNt.cpp \
67 DBGPlugInOS2.cpp \
68 DBGPlugInCommonELF.cpp
69DBGCPlugInDiggers_LIBS = \
70 $(if-expr "$(LIB_VMM)" == "$(VBOX_LIB_VMM_LAZY)",$(LIB_REM),) \
71 $(VBOX_LIB_VMM_LAZY) \
72 $(LIB_RUNTIME)
73
74
75#
76# The DBGC parser testcase.
77# This stubs all the VBoxVMM APIs.
78#
79tstDBGCParser_TEMPLATE = VBOXR3TSTEXE
80tstDBGCParser_DEFS = IN_VMM_R3
81tstDBGCParser_CXXFLAGS = $(VBOX_C_CXX_FLAGS_NO_UNUSED_PARAMETERS)
82tstDBGCParser_SOURCES = \
83 testcase/tstDBGCParser.cpp \
84 testcase/tstDBGCStubs.cpp
85tstDBGCParser_LIBS = \
86 $(Debugger_1_TARGET) \
87 $(LIB_RUNTIME)
88
89
90if defined(VBOX_WITH_QTGUI) && defined(VBOX_WITH_DEBUGGER_GUI)
91#
92# Debugger GUI component (Qt4).
93#
94USES += qt4
95DLLS += VBoxDbg
96VBoxDbg_TEMPLATE = VBOXQT4GUI
97VBoxDbg_DEFS = IN_DBG_R3 VBOXDBG_USE_QT4
98VBoxDbg_INCS = .
99VBoxDbg_QT_MODULES = Core Gui
100VBoxDbg_QT_MOCHDRS = \
101 VBoxDbgGui.h \
102 VBoxDbgConsole.h \
103 VBoxDbgStatsQt4.h
104VBoxDbg_SOURCES = \
105 VBoxDbg.cpp \
106 VBoxDbgGui.cpp \
107 VBoxDbgBase.cpp \
108 VBoxDbgConsole.cpp \
109 VBoxDbgStatsQt4.cpp
110VBoxDbg_LIBS = \
111 $(VBOX_LIB_VMM_LAZY)
112VBoxDbg_LDFLAGS.darwin = \
113 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDbg.dylib
114
115 ifdef VBOX_WITH_TESTCASES
116#
117# The VBoxDbg testcase (Qt4).
118#
119PROGRAMS += tstVBoxDbg
120tstVBoxDbg_TEMPLATE = VBOXQT4GUIEXE
121tstVBoxDbg_USES = qt4
122tstVBoxDbg_QTTOOL = QT4
123tstVBoxDbg_QT_MODULES = Core Gui
124tstVBoxDbg_SOURCES = testcase/tstVBoxDbg.cpp
125tstVBoxDbg_LIBS = \
126 $(LIB_VMM) \
127 $(LIB_RUNTIME)
128 ifeq ($(KBUILD_TARGET),win)
129tstVBoxDbg_LIBS += \
130 $(PATH_STAGE_LIB)/VBoxDbg.lib
131 else
132tstVBoxDbg_LIBS += \
133 $(PATH_STAGE_BIN)/VBoxDbg$(VBOX_SUFF_DLL)
134 endif
135 endif # TESTCASES
136endif # Qt4
137
138
139#
140# Install the dbghelp.dll binary.
141#
142dbghelp_INST = bin/
143dbghelp_SOURCES.x86 = win32/dbghelp.dll
144dbghelp_SOURCES.amd64 = win64/dbghelp.dll
145
146
147include $(FILE_KBUILD_SUB_FOOTER)
148
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