VirtualBox

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

Last change on this file since 96407 was 96407, checked in by vboxsync, 22 months ago

scm copyright and license note update

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 KB
Line 
1# $Id: Makefile.kmk 96407 2022-08-22 17:43:14Z vboxsync $
2## @file
3# Makefile for the VBox debugger.
4#
5
6#
7# Copyright (C) 2006-2022 Oracle and/or its affiliates.
8#
9# This file is part of VirtualBox base platform packages, as
10# available from https://www.virtualbox.org.
11#
12# This program is free software; you can redistribute it and/or
13# modify it under the terms of the GNU General Public License
14# as published by the Free Software Foundation, in version 3 of the
15# License.
16#
17# This program is distributed in the hope that it will be useful, but
18# WITHOUT ANY WARRANTY; without even the implied warranty of
19# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20# General Public License for more details.
21#
22# You should have received a copy of the GNU General Public License
23# along with this program; if not, see <https://www.gnu.org/licenses>.
24#
25# SPDX-License-Identifier: GPL-3.0-only
26#
27
28SUB_DEPTH = ../../..
29include $(KBUILD_PATH)/subheader.kmk
30
31#
32# The targets.
33#
34ifdef VBOX_WITH_DEBUGGER
35 LIBRARIES += Debugger
36 ifdef VBOX_WITH_TESTCASES
37 PROGRAMS += tstDBGCParser
38 endif
39endif # VBOX_WITH_DEBUGGER
40
41
42#
43# Debugger library - linked into VBoxVMM.
44#
45Debugger_TEMPLATE = VBOXR3
46Debugger_DEFS = IN_VMM_R3 IN_DBG_R3 IN_DIS
47ifneq ($(KBUILD_TYPE),release)
48 Debugger_DEFS += VBOX_WITH_DEBUGGER_TCP_BY_DEFAULT
49endif
50Debugger_SOURCES = \
51 DBGConsole.cpp \
52 DBGCEval.cpp \
53 DBGCBuiltInSymbols.cpp \
54 DBGCCmdHlp.cpp \
55 DBGCCmdWorkers.cpp \
56 DBGCCommands.cpp \
57 DBGCDumpImage.cpp \
58 DBGCFunctions.cpp \
59 DBGCEmulateCodeView.cpp \
60 DBGCOps.cpp \
61 DBGCGdbRemoteStub.cpp \
62 DBGCRemoteKd.cpp \
63 DBGCIo.cpp \
64 DBGCIoProvTcp.cpp \
65 DBGCIoProvIpc.cpp \
66 DBGCScreenAscii.cpp
67
68#
69# The diggers plug-in.
70#
71DLLS += DbgPlugInDiggers
72DbgPlugInDiggers_TEMPLATE = VBOXR3
73DbgPlugInDiggers_DEFS = IN_DIS
74DbgPlugInDiggers_SOURCES = \
75 DBGPlugInDiggers.cpp \
76 DBGPlugInDarwin.cpp \
77 DBGPlugInLinux.cpp \
78 DBGPlugInSolaris.cpp \
79 DBGPlugInWinNt.cpp \
80 DBGPlugInOS2.cpp \
81 DBGPlugInFreeBsd.cpp \
82 DBGPlugInCommonELF.cpp
83DbgPlugInDiggers_LIBS = \
84 $(PATH_STAGE_LIB)/DisasmR3$(VBOX_SUFF_LIB) \
85 $(LIB_RUNTIME)
86$(call VBOX_SET_VER_INFO_DLL,DbgPlugInDiggers,VirtualBox Debugger Guest OS Digger Plug-in)
87
88
89#
90# The DBGC parser testcase.
91# This stubs all the VBoxVMM APIs.
92#
93tstDBGCParser_TEMPLATE = VBOXR3TSTEXE
94tstDBGCParser_DEFS = IN_VMM_R3
95tstDBGCParser_CXXFLAGS = $(VBOX_C_CXX_FLAGS_NO_UNUSED_PARAMETERS)
96tstDBGCParser_SOURCES = \
97 testcase/tstDBGCParser.cpp \
98 testcase/tstDBGCStubs.cpp
99tstDBGCParser_LIBS = \
100 $(Debugger_1_TARGET) \
101 $(LIB_RUNTIME)
102
103
104if defined(VBOX_WITH_QTGUI) && defined(VBOX_WITH_DEBUGGER_GUI)
105#
106# Debugger GUI component (Qt).
107#
108 ifndef VBOX_WITH_QT6
109USES += qt5
110 else
111USES += qt6
112 endif
113DLLS += VBoxDbg
114VBoxDbg_TEMPLATE = VBOXQTGUI
115VBoxDbg_DEFS = IN_DBG_R3
116VBoxDbg_INCS = .
117VBoxDbg_QT_MODULES = Core Gui Widgets
118VBoxDbg_QT_MOCHDRS = \
119 VBoxDbgGui.h \
120 VBoxDbgConsole.h \
121 VBoxDbgStatsQt.h
122VBoxDbg_SOURCES = \
123 VBoxDbg.cpp \
124 VBoxDbgGui.cpp \
125 VBoxDbgBase.cpp \
126 VBoxDbgConsole.cpp \
127 VBoxDbgStatsQt.cpp
128VBoxDbg_LDFLAGS.darwin = \
129 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDbg.dylib
130$(call VBOX_SET_VER_INFO_DLL,VBoxDbg,VirtualBox Debugger GUI)
131endif # Qt
132
133
134include $(FILE_KBUILD_SUB_FOOTER)
135
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use