VirtualBox

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

Last change on this file since 55264 was 53805, checked in by vboxsync, 10 years ago

added more missing Windows resource files

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.2 KB
Line 
1# $Id: Makefile.kmk 53805 2015-01-14 16:07:35Z 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
30
31
32#
33# Debugger library - linked into VBoxVMM.
34#
35Debugger_TEMPLATE = VBOXR3
36Debugger_DEFS = IN_VMM_R3 IN_DBG_R3 IN_DIS
37ifneq ($(KBUILD_TYPE),release)
38 Debugger_DEFS += VBOX_WITH_DEBUGGER_TCP_BY_DEFAULT
39endif
40Debugger_SOURCES = \
41 DBGConsole.cpp \
42 DBGCEval.cpp \
43 DBGCBuiltInSymbols.cpp \
44 DBGCCmdHlp.cpp \
45 DBGCCmdWorkers.cpp \
46 DBGCCommands.cpp \
47 DBGCFunctions.cpp \
48 DBGCEmulateCodeView.cpp \
49 DBGCOps.cpp \
50 DBGCGdbRemoteStub.cpp \
51 DBGCTcp.cpp
52
53#
54# The diggers plug-in.
55#
56DLLS += DBGCPlugInDiggers
57DBGCPlugInDiggers_TEMPLATE = VBOXR3
58DBGCPlugInDiggers_SOURCES = \
59 DBGPlugInDiggers.cpp \
60 DBGPlugInDarwin.cpp \
61 DBGPlugInLinux.cpp \
62 DBGPlugInSolaris.cpp \
63 DBGPlugInWinNt.cpp \
64 DBGPlugInOS2.cpp \
65 DBGPlugInCommonELF.cpp
66DBGCPlugInDiggers_SOURCES.win = \
67 DBGCPlugInDiggers.rc
68DBGCPlugInDiggers_LIBS = \
69 $(if-expr "$(LIB_VMM)" == "$(VBOX_LIB_VMM_LAZY)",$(LIB_REM),) \
70 $(VBOX_LIB_VMM_LAZY) \
71 $(LIB_RUNTIME)
72
73
74#
75# The DBGC parser testcase.
76# This stubs all the VBoxVMM APIs.
77#
78tstDBGCParser_TEMPLATE = VBOXR3TSTEXE
79tstDBGCParser_DEFS = IN_VMM_R3
80tstDBGCParser_CXXFLAGS = $(VBOX_C_CXX_FLAGS_NO_UNUSED_PARAMETERS)
81tstDBGCParser_SOURCES = \
82 testcase/tstDBGCParser.cpp \
83 testcase/tstDBGCStubs.cpp
84tstDBGCParser_LIBS = \
85 $(Debugger_1_TARGET) \
86 $(LIB_RUNTIME)
87
88
89if defined(VBOX_WITH_QTGUI) && defined(VBOX_WITH_DEBUGGER_GUI)
90#
91# Debugger GUI component (Qt4).
92#
93USES += qt4
94DLLS += VBoxDbg
95VBoxDbg_TEMPLATE = VBOXQT4GUI
96VBoxDbg_DEFS = IN_DBG_R3 VBOXDBG_USE_QT4
97VBoxDbg_INCS = .
98VBoxDbg_QT_MODULES = Core Gui
99VBoxDbg_QT_MOCHDRS = \
100 VBoxDbgGui.h \
101 VBoxDbgConsole.h \
102 VBoxDbgStatsQt4.h
103VBoxDbg_SOURCES = \
104 VBoxDbg.cpp \
105 VBoxDbgGui.cpp \
106 VBoxDbgBase.cpp \
107 VBoxDbgConsole.cpp \
108 VBoxDbgStatsQt4.cpp
109VBoxDbg_SOURCES.win = \
110 VBoxDbg.rc
111VBoxDbg_LIBS = \
112 $(VBOX_LIB_VMM_LAZY)
113VBoxDbg_LDFLAGS.darwin = \
114 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDbg.dylib
115
116 ifdef VBOX_WITH_TESTCASES
117#
118# The VBoxDbg testcase (Qt4).
119#
120PROGRAMS += tstVBoxDbg
121tstVBoxDbg_TEMPLATE = VBOXQT4GUIEXE
122tstVBoxDbg_USES = qt4
123tstVBoxDbg_QTTOOL = QT4
124tstVBoxDbg_QT_MODULES = Core Gui
125tstVBoxDbg_SOURCES = testcase/tstVBoxDbg.cpp
126tstVBoxDbg_LIBS = \
127 $(LIB_VMM) \
128 $(LIB_RUNTIME)
129 ifeq ($(KBUILD_TARGET),win)
130tstVBoxDbg_LIBS += \
131 $(PATH_STAGE_LIB)/VBoxDbg.lib
132 else
133tstVBoxDbg_LIBS += \
134 $(PATH_STAGE_BIN)/VBoxDbg$(VBOX_SUFF_DLL)
135 endif
136 endif # TESTCASES
137endif # Qt4
138
139
140include $(FILE_KBUILD_SUB_FOOTER)
141
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