1 | # $Id: Makefile.kmk 98636 2023-02-19 17:29:54Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Top-level sub-makefile for the devices, drivers and services.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2023 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 |
|
---|
28 | SUB_DEPTH = ../../..
|
---|
29 | include $(KBUILD_PATH)/subheader.kmk
|
---|
30 |
|
---|
31 | # Make sure our Config.kmk is included.
|
---|
32 | ifndef VBOX_DEVICES_CONFIG_KMK_INCLUDED
|
---|
33 | include $(PATH_SUB_CURRENT)/Config.kmk
|
---|
34 | endif
|
---|
35 |
|
---|
36 | # Include sub-makefiles.
|
---|
37 | if1of ($(KBUILD_TARGET_ARCH), $(VBOX_SUPPORTED_HOST_ARCHS))
|
---|
38 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
39 | include $(PATH_SUB_CURRENT)/Audio/testcase/Makefile.kmk
|
---|
40 | include $(PATH_SUB_CURRENT)/Input/testcase/Makefile.kmk
|
---|
41 | ifdef VBOX_WITH_TESTCASES
|
---|
42 | include $(PATH_SUB_CURRENT)/Samples/Makefile.kmk
|
---|
43 | endif
|
---|
44 | if defined(VBOX_WITH_INTEL_PXE) || defined(VBOX_ONLY_EXTPACKS)
|
---|
45 | include $(PATH_SUB_CURRENT)/PC/PXE/Makefile.kmk
|
---|
46 | else if defined(VBOX_WITH_PXE_ROM)
|
---|
47 | if !defined(VBOX_WITHOUT_IPXE)
|
---|
48 | include $(PATH_SUB_CURRENT)/PC/ipxe/Makefile.kmk
|
---|
49 | endif
|
---|
50 | endif
|
---|
51 | endif
|
---|
52 | if !defined(VBOX_ONLY_EXTPACKS)
|
---|
53 | if1of ($(KBUILD_TARGET_ARCH), $(VBOX_SUPPORTED_HOST_ARCHS))
|
---|
54 | include $(PATH_SUB_CURRENT)/BiosCommonCode/Makefile.kmk
|
---|
55 | include $(PATH_SUB_CURRENT)/PC/BIOS/Makefile.kmk
|
---|
56 | include $(PATH_SUB_CURRENT)/Graphics/BIOS/Makefile.kmk
|
---|
57 | endif
|
---|
58 |
|
---|
59 | #
|
---|
60 | # Main targets.
|
---|
61 | #
|
---|
62 | if1of ($(KBUILD_TARGET_ARCH), $(VBOX_SUPPORTED_HOST_ARCHS))
|
---|
63 | DLLS += VBoxDDU VBoxDD VBoxDD2
|
---|
64 | ifdef VBOX_WITH_R0_MODULES
|
---|
65 | LIBRARIES += ServicesR0
|
---|
66 | ifdef VBOX_WITH_VBOXR0_AS_DLL
|
---|
67 | DLLS += VBoxDDR0
|
---|
68 | else
|
---|
69 | SYSMODS += VBoxDDR0
|
---|
70 | endif
|
---|
71 | endif
|
---|
72 | ifdef VBOX_WITH_RAW_MODE
|
---|
73 | SYSMODS += VBoxDDRC
|
---|
74 | endif
|
---|
75 | else
|
---|
76 | DLLS += VBoxDDU
|
---|
77 | endif
|
---|
78 |
|
---|
79 |
|
---|
80 | #
|
---|
81 | # VBoxDDU (shared object)
|
---|
82 | #
|
---|
83 | VBoxDDU_TEMPLATE = VBoxR3DllWarnNoPic
|
---|
84 | VBoxDDU_NAME = $(basename $(notdir $(LIB_DDU)))
|
---|
85 | VBoxDDU_INST.darwin = $(INST_DLL) $(INST_TESTCASE)
|
---|
86 | VBoxDDU_DEFS = IN_VBOXDDU
|
---|
87 | if defined(VBOX_WITH_VUSB) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
88 | VBoxDDU_DEFS += VBOX_WITH_VUSB
|
---|
89 | endif
|
---|
90 | if defined(VBOX_WITH_USB) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
91 | VBoxDDU_DEFS += VBOX_WITH_USB IN_USBLIB
|
---|
92 | VBoxDDU_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
|
---|
93 | if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
94 | VBoxDDU_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
95 | endif
|
---|
96 | if defined(VBOX_WITH_XHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
97 | VBoxDDU_DEFS += VBOX_WITH_XHCI_IMPL
|
---|
98 | endif
|
---|
99 | else
|
---|
100 | VBoxDDU_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK)
|
---|
101 | endif
|
---|
102 | VBoxDDU_SOURCES = \
|
---|
103 | Storage/VSCSI/VSCSIDevice.cpp \
|
---|
104 | Storage/VSCSI/VSCSILun.cpp \
|
---|
105 | Storage/VSCSI/VSCSILunSbc.cpp \
|
---|
106 | Storage/VSCSI/VSCSILunMmc.cpp \
|
---|
107 | Storage/VSCSI/VSCSISense.cpp \
|
---|
108 | Storage/VSCSI/VSCSIIoReq.cpp \
|
---|
109 | Storage/VSCSI/VSCSIVpdPagePool.cpp \
|
---|
110 | build/VBoxDDUDeps.cpp
|
---|
111 |
|
---|
112 | ifdef VBOX_WITH_VSCSI_SSC
|
---|
113 | VBoxDDU_SOURCES += Storage/VSCSI/VSCSILunSsc.cpp
|
---|
114 | VBoxDDU_DEFS += VBOX_WITH_VSCSI_SSC
|
---|
115 | endif
|
---|
116 | VBoxDDU_LIBS = \
|
---|
117 | $(LIB_RUNTIME) \
|
---|
118 | $(PATH_STAGE_LIB)/StorageLib$(VBOX_SUFF_LIB)
|
---|
119 | VBoxDDU_LIBS.freebsd += \
|
---|
120 | geom
|
---|
121 | VBoxDDU_LIBS.solaris += \
|
---|
122 | efi
|
---|
123 | if defined(VBOX_WITH_USB) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
124 | VBoxDDU_SDKS.win += VBoxWinNewDevLib
|
---|
125 | VBoxDDU_LIBS += \
|
---|
126 | $(PATH_STAGE_LIB)/USBLib$(VBOX_SUFF_LIB)
|
---|
127 | VBoxDDU_LIBS.win += \
|
---|
128 | $(PATH_STAGE_LIB)/VBoxDrvCfgDll$(VBOX_SUFF_LIB)
|
---|
129 | endif
|
---|
130 | VBoxDDU_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDDU.dylib
|
---|
131 | if defined(VBOX_WITH_USB) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
132 | VBoxDDU_LDFLAGS.darwin += -framework IOKit
|
---|
133 | endif
|
---|
134 |
|
---|
135 | VBoxDDU_LDFLAGS.linux = $(VBOX_GCC_NO_UNDEFINED)
|
---|
136 | $(call VBOX_SET_VER_INFO_DLL,VBoxDDU,VirtualBox VMM Devices and Drivers Utilities)
|
---|
137 |
|
---|
138 |
|
---|
139 | endif # VBOX_ONLY_EXTPACKS
|
---|
140 | if !defined(VBOX_ONLY_EXTPACKS) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != "" # Goes on almost to the end of the file.
|
---|
141 |
|
---|
142 |
|
---|
143 | #
|
---|
144 | # VBoxDD (shared object)
|
---|
145 | #
|
---|
146 | if "$(KBUILD_TARGET)" != "win" && $(VBOX_GCC_VERSION_CXX) < 40600
|
---|
147 | #
|
---|
148 | # Disable "ISO C++ prohibits anonymous structs [-Werror=pedantic]" caused by Mesa VMSVGA driver headers
|
---|
149 | # For GCC >= 4.6.0 the warning is disabled in DevVGA_SVGA.h
|
---|
150 | #
|
---|
151 | # Template used for gcc older than 4.6. (Strips away compiler options.)
|
---|
152 | #
|
---|
153 | TEMPLATE_VBoxDDOldGCC := VBoxDDOldGCC
|
---|
154 | TEMPLATE_VBoxDDOldGCC_EXTENDS := VBoxR3DllWarnNoPic
|
---|
155 | TEMPLATE_VBoxDDOldGCC_CXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxDDOldGCC_EXTENDS)_CXXFLAGS))
|
---|
156 |
|
---|
157 | VBoxDD_TEMPLATE = VBoxDDOldGCC
|
---|
158 | else
|
---|
159 | VBoxDD_TEMPLATE = VBoxR3DllWarnNoPic
|
---|
160 | endif
|
---|
161 | VBoxDD_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBoxNtDll
|
---|
162 | Storage/DrvHostDVD.cpp_SDKS.win = ReorderCompilerIncs $(VBOX_WINDDK)
|
---|
163 | VBoxDD_INCS = \
|
---|
164 | build \
|
---|
165 | Network/slirp \
|
---|
166 | $(VBOX_GRAPHICS_INCS)
|
---|
167 | VBoxDD_DEFS = \
|
---|
168 | VBOX_HGCM_HOST_CODE \
|
---|
169 | $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) \
|
---|
170 | $(if $(VBOX_BIOS_DMI_FALLBACK),VBOX_BIOS_DMI_FALLBACK,) \
|
---|
171 | VBOX_WITH_DMI_CHASSIS \
|
---|
172 | VBOX_WITH_DMI_OEMSTRINGS \
|
---|
173 | $(if $(VBOX_WITH_IOMMU_AMD),VBOX_WITH_IOMMU_AMD,) \
|
---|
174 | $(if $(VBOX_WITH_IOMMU_INTEL),VBOX_WITH_IOMMU_INTEL,) \
|
---|
175 | $(if $(VBOX_WITH_INTNET_SERVICE_IN_R3),VBOX_WITH_INTNET_SERVICE_IN_R3,)
|
---|
176 | VBoxDD_DEFS.win = _WIN32_WINNT=0x0510
|
---|
177 | ifeq ($(KBUILD_TARGET_ARCH),x86)
|
---|
178 | VBoxDD_DEFS.darwin = VBOX_WITH_2X_4GB_ADDR_SPACE
|
---|
179 | endif
|
---|
180 | VBoxDD_SOURCES = \
|
---|
181 | build/VBoxDD.cpp \
|
---|
182 | \
|
---|
183 | Input/DevPS2.cpp \
|
---|
184 | Input/DevPS2K.cpp \
|
---|
185 | Input/DevPS2M.cpp \
|
---|
186 | Input/UsbKbd.cpp \
|
---|
187 | Input/UsbMouse.cpp \
|
---|
188 | Bus/DevPCI.cpp \
|
---|
189 | Bus/DevPciIch9.cpp \
|
---|
190 | Bus/MsiCommon.cpp \
|
---|
191 | Bus/MsixCommon.cpp \
|
---|
192 | $(if $(VBOX_WITH_IOMMU_AMD),Bus/DevIommuAmd.cpp,) \
|
---|
193 | $(if $(VBOX_WITH_IOMMU_INTEL),Bus/DevIommuIntel.cpp,) \
|
---|
194 | EFI/DevSmc.cpp \
|
---|
195 | EFI/DevFlash.cpp \
|
---|
196 | EFI/FlashCore.cpp \
|
---|
197 | Graphics/DevVGA.cpp \
|
---|
198 | Storage/DevATA.cpp \
|
---|
199 | PC/DevPit-i8254.cpp \
|
---|
200 | PC/DevPIC.cpp \
|
---|
201 | PC/DevACPI.cpp \
|
---|
202 | PC/ACPI/VBoxAcpi.cpp \
|
---|
203 | PC/DevRTC.cpp \
|
---|
204 | PC/DevPcBios.cpp \
|
---|
205 | PC/DevFwCommon.cpp \
|
---|
206 | PC/DevPcArch.cpp \
|
---|
207 | PC/DevQemuFwCfg.cpp \
|
---|
208 | PC/DevLpc.cpp \
|
---|
209 | GIMDev/GIMDev.cpp \
|
---|
210 | GIMDev/DrvUDP.cpp \
|
---|
211 | VMMDev/VMMDev.cpp \
|
---|
212 | $(if $(VBOX_WITH_HGCM),VMMDev/VMMDevHGCM.cpp,) \
|
---|
213 | VMMDev/VMMDevTesting.cpp \
|
---|
214 | Network/DevPCNet.cpp \
|
---|
215 | Network/DevDP8390.cpp \
|
---|
216 | Network/Dev3C501.cpp \
|
---|
217 | PC/DevDMA.cpp \
|
---|
218 | PC/DevHPET.cpp \
|
---|
219 | PC/DevIoApic.cpp \
|
---|
220 | Storage/DevFdc.cpp \
|
---|
221 | Parallel/DevParallel.cpp \
|
---|
222 | \
|
---|
223 | Input/DrvKeyboardQueue.cpp \
|
---|
224 | Input/DrvMouseQueue.cpp \
|
---|
225 | Network/DrvIntNet.cpp \
|
---|
226 | Network/DrvDedicatedNic.cpp \
|
---|
227 | PC/DrvACPI.cpp \
|
---|
228 | PC/DrvAcpiCpu.cpp \
|
---|
229 | Serial/DevSerial.cpp \
|
---|
230 | Serial/DevOxPcie958.cpp \
|
---|
231 | Serial/UartCore.cpp \
|
---|
232 | Serial/DrvChar.cpp \
|
---|
233 | Serial/DrvHostSerial.cpp \
|
---|
234 | Serial/DrvNamedPipe.cpp \
|
---|
235 | Serial/DrvTCP.cpp \
|
---|
236 | Serial/DrvRawFile.cpp \
|
---|
237 | Storage/Debug.cpp \
|
---|
238 | Storage/DrvVD.cpp \
|
---|
239 | Storage/ATAPIPassthrough.cpp \
|
---|
240 | Storage/IOBufMgmt.cpp \
|
---|
241 | Network/DrvNetSniffer.cpp \
|
---|
242 | Network/Pcap.cpp \
|
---|
243 | Trace/DrvIfsTrace.cpp \
|
---|
244 | Trace/DrvIfsTrace-serial.cpp
|
---|
245 | ifn1of ($(KBUILD_TARGET), os2)
|
---|
246 | VBoxDD_SOURCES += Storage/DrvHostBase.cpp
|
---|
247 | endif
|
---|
248 | ifn1of ($(KBUILD_TARGET), os2)
|
---|
249 | VBoxDD_SOURCES += Storage/DrvHostDVD.cpp
|
---|
250 | endif
|
---|
251 | ifn1of ($(KBUILD_TARGET), darwin freebsd os2 solaris)
|
---|
252 | VBoxDD_SOURCES += Storage/DrvHostFloppy.cpp
|
---|
253 | endif
|
---|
254 |
|
---|
255 |
|
---|
256 | ifn1of ($(KBUILD_TARGET), darwin)
|
---|
257 | VBoxDD_SOURCES += Storage/HBDMgmt-generic.cpp
|
---|
258 | endif
|
---|
259 |
|
---|
260 | VBoxDD_SOURCES.darwin += \
|
---|
261 | Storage/HBDMgmt-darwin.cpp \
|
---|
262 | Storage/DrvHostBase-darwin.cpp
|
---|
263 |
|
---|
264 | VBoxDD_SOURCES.freebsd += \
|
---|
265 | Storage/DrvHostBase-freebsd.cpp
|
---|
266 |
|
---|
267 | VBoxDD_SOURCES.linux += \
|
---|
268 | Storage/DrvHostBase-linux.cpp
|
---|
269 |
|
---|
270 | VBoxDD_SOURCES.solaris += \
|
---|
271 | Storage/DrvHostBase-solaris.cpp
|
---|
272 |
|
---|
273 | VBoxDD_SOURCES.win += \
|
---|
274 | Storage/DrvHostBase-win.cpp
|
---|
275 |
|
---|
276 | #VBoxDD_SOURCES.win += Storage/HBDMgmt-win.cpp #Disabled until remaining issues are sorted out
|
---|
277 |
|
---|
278 | VBoxDD_LIBS = # more later.
|
---|
279 | VBoxDD_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDD.dylib \
|
---|
280 | -framework CoreAudio \
|
---|
281 | -framework AudioUnit \
|
---|
282 | -framework AudioToolbox \
|
---|
283 | -framework IOKit \
|
---|
284 | -framework Carbon \
|
---|
285 | -framework DiskArbitration \
|
---|
286 | -framework SystemConfiguration \
|
---|
287 | -framework AVFoundation \
|
---|
288 | -framework Foundation
|
---|
289 | VBoxDD_LDFLAGS.linux = $(VBOX_GCC_NO_UNDEFINED)
|
---|
290 |
|
---|
291 | # --- Tracing bits. ---
|
---|
292 |
|
---|
293 | ifdef VBOX_WITH_DTRACE_R3
|
---|
294 | VBoxDD_DEFS += VBOX_WITH_DTRACE
|
---|
295 | VBoxDD_USES += dtrace
|
---|
296 | VBoxDD_SOURCES += build/VBoxDD.d
|
---|
297 | endif
|
---|
298 |
|
---|
299 | # --- Graphics bits. ---
|
---|
300 |
|
---|
301 | ifdef VBOXWDDM_TEST_UHGSMI
|
---|
302 | VBoxDD_DEFS += VBOXWDDM_TEST_UHGSMI
|
---|
303 | endif
|
---|
304 | ifdef VBOXWDDM_WITH_VBVA
|
---|
305 | VBoxDD_DEFS += VBOXWDDM_WITH_VBVA
|
---|
306 | endif
|
---|
307 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
308 | VBoxDD_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
309 | endif
|
---|
310 |
|
---|
311 | ifdef VBOX_WITH_HGSMI
|
---|
312 | VBoxDD_DEFS += VBOX_WITH_HGSMI
|
---|
313 | VBoxDD_SOURCES += \
|
---|
314 | Graphics/DevVGA_VBVA.cpp \
|
---|
315 | Graphics/HGSMI/HGSMIHost.cpp
|
---|
316 | VBoxDD_LIBS += \
|
---|
317 | $(PATH_STAGE_LIB)/HGSMIHostR3Lib$(VBOX_SUFF_LIB)
|
---|
318 | endif
|
---|
319 |
|
---|
320 | ifdef VBOX_WITH_WDDM
|
---|
321 | VBoxDD_DEFS += VBOX_WITH_WDDM
|
---|
322 | VBoxDD_SOURCES += \
|
---|
323 | Graphics/HGSMI/SHGSMIHost.cpp
|
---|
324 | endif
|
---|
325 |
|
---|
326 | ifdef VBOX_WITH_VMSVGA
|
---|
327 | VBoxDD_DEFS += VBOX_WITH_VMSVGA
|
---|
328 | VBoxDD_INCS += $(VBOX_PATH_VMSVGA_DEVICE_INC)
|
---|
329 | VBoxDD_SOURCES += \
|
---|
330 | Graphics/DevVGA-SVGA.cpp \
|
---|
331 | Graphics/DevVGA-SVGA-cmd.cpp
|
---|
332 | endif
|
---|
333 | ifdef VBOX_WITH_VMSVGA3D
|
---|
334 | if1of ($(KBUILD_TARGET), linux win)
|
---|
335 | # Dynamically load 3D library (opengl32, libGL).
|
---|
336 | # This is a temporary solution. In future the 3D backend will be in a separate library.
|
---|
337 | VBOX_WITH_VMSVGA3D_DYNAMIC_LOAD = 1
|
---|
338 | endif
|
---|
339 | VBoxDD_DEFS += VBOX_WITH_VMSVGA3D
|
---|
340 | VBoxDD_SOURCES += \
|
---|
341 | Graphics/DevVGA-SVGA3d.cpp \
|
---|
342 | Graphics/DevVGA-SVGA3d-hlp.cpp \
|
---|
343 | Graphics/DevVGA-SVGA3d-info.cpp \
|
---|
344 | Graphics/DevVGA-SVGA3d-shared.cpp \
|
---|
345 | Graphics/DevVGA-SVGA3d-savedstate.cpp
|
---|
346 | ifdef VBOX_WITH_VMSVGA3D_DX
|
---|
347 | VBoxDD_DEFS += VMSVGA3D_DX
|
---|
348 | VBoxDD_SOURCES += \
|
---|
349 | Graphics/DevVGA-SVGA3d-dx.cpp \
|
---|
350 | Graphics/DevVGA-SVGA3d-dx-savedstate.cpp \
|
---|
351 | Graphics/DevVGA-SVGA3d-dx-shader.cpp
|
---|
352 | if "$(KBUILD_TARGET)" == "win" || defined(VBOX_WITH_DXVK)
|
---|
353 | VBoxDD_SDKS.linux += VBoxDxVk
|
---|
354 | VBoxDD_SDKS.darwin += VBoxDxVk
|
---|
355 | VBoxDD_DEFS += VMSVGA3D_DX_BACKEND
|
---|
356 | VBoxDD_SOURCES += \
|
---|
357 | Graphics/DevVGA-SVGA3d-dx-dx11.cpp
|
---|
358 | # @todo This is probably not the nicest way to do this...
|
---|
359 | VBoxDD_POST_CMDS.darwin += \
|
---|
360 | $(INSTALL) -m 0644 $(lastword $(sort $(wildcard $(KBUILD_DEVTOOLS_TRG)/moltenvk/v*)))/libMoltenVK.dylib $(PATH_STAGE_BIN)/libMoltenVK.dylib
|
---|
361 |
|
---|
362 | # mac2 clang is too old to know the -Wclass-conversion switch in the ignore pragma it seems.
|
---|
363 | Graphics/DevVGA-SVGA3d-dx-dx11.cpp_CXXFLAGS.darwin += -Wno-error
|
---|
364 | endif
|
---|
365 | endif
|
---|
366 | VBoxDD_SOURCES += \
|
---|
367 | Graphics/svgadump/svga_dump.c
|
---|
368 | if "$(KBUILD_TARGET)" == "win" && !defined(VBOX_WITH_VMSVGA3D_USE_OPENGL)
|
---|
369 | VBoxDD_DEFS += VMSVGA3D_DIRECT3D
|
---|
370 | VBoxDD_SOURCES += \
|
---|
371 | Graphics/DevVGA-SVGA3d-win.cpp \
|
---|
372 | Graphics/DevVGA-SVGA3d-win-d3d9.cpp
|
---|
373 | VBoxDD_LIBS.win += d3d9.lib $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib
|
---|
374 | VBoxDD_LDFLAGS.win += /DELAYLOAD:d3d9.dll
|
---|
375 | else
|
---|
376 | VBoxDD_DEFS += VMSVGA3D_OPENGL
|
---|
377 | VBoxDD_SOURCES += \
|
---|
378 | Graphics/DevVGA-SVGA3d-ogl.cpp \
|
---|
379 | Graphics/DevVGA-SVGA3d-glHlp.cpp \
|
---|
380 | $(VBoxDD_0_OUTDIR)/VBoxSVGA3DLazyLoad.asm
|
---|
381 | VBoxDD_SOURCES.darwin += \
|
---|
382 | $(VBoxDD_0_OUTDIR)/VBoxSVGA3DObjCLazyLoad.asm
|
---|
383 | VBoxDD_CLEAN += $(VBoxDD_0_OUTDIR)/VBoxSVGA3DLazyLoad.asm
|
---|
384 | $$(VBoxDD_0_OUTDIR)/VBoxSVGA3DLazyLoad.asm: $(PATH_SUB_CURRENT)/Graphics/VBoxSVGA3D.def $(VBOX_DEF_2_LAZY_LOAD) | $$(dir $$@)
|
---|
385 | $(call MSG_TOOL,VBoxDef2LazyLoad,VBoxDD,$(filter %.def, $^),$@)
|
---|
386 | $(QUIET)$(RM) -f -- "$@"
|
---|
387 | $(VBOX_DEF_2_LAZY_LOAD) --explicit-load-function --library VBoxSVGA3D --output "$@" $(filter %.def, $^)
|
---|
388 | $$(VBoxDD_0_OUTDIR)/VBoxSVGA3DObjCLazyLoad.asm: $(PATH_SUB_CURRENT)/Graphics/VBoxSVGA3DObjC.def $(VBOX_DEF_2_LAZY_LOAD) | $$(dir $$@)
|
---|
389 | $(call MSG_TOOL,VBoxDef2LazyLoad,VBoxDD,$(filter %.def, $^),$@)
|
---|
390 | $(QUIET)$(RM) -f -- "$@"
|
---|
391 | $(VBOX_DEF_2_LAZY_LOAD) --explicit-load-function --library VBoxSVGA3DObjC --output "$@" $(filter %.def, $^)
|
---|
392 |
|
---|
393 | ifdef VBOX_WITH_VMSVGA3D_DYNAMIC_LOAD
|
---|
394 | VBoxDD_DEFS += VMSVGA3D_DYNAMIC_LOAD
|
---|
395 | VBoxDD_SOURCES += \
|
---|
396 | Graphics/DevVGA-SVGA3d-glLdr.cpp
|
---|
397 | else
|
---|
398 | VBoxDD_LIBS.linux += X11 GL
|
---|
399 | VBoxDD_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
|
---|
400 | endif
|
---|
401 | VBoxDD_LDFLAGS.darwin += -framework OpenGL
|
---|
402 | VBoxDD_DEFS.darwin += VBOX_VMSVGA3D_DUAL_OPENGL_PROFILE
|
---|
403 | if 0 # Use the OpenGL 3.2 Core profile (see also VBoxSVGA3D_DEFS.darwin and VBoxSVGA3DObjC_DEFS.darwin).
|
---|
404 | VBoxDD_DEFS.darwin += VBOX_VMSVGA3D_DEFAULT_OGL_PROFILE=3.2 VBOX_VMSVGA3D_OTHER_OGL_PROFILE=2.1
|
---|
405 | else
|
---|
406 | VBoxDD_DEFS.darwin += VBOX_VMSVGA3D_DEFAULT_OGL_PROFILE=2.1 VBOX_VMSVGA3D_OTHER_OGL_PROFILE=3.2
|
---|
407 | endif
|
---|
408 | endif
|
---|
409 | if1of ($(VBOX_DEF_MACOSX_VERSION_MIN), 10.6 10.5 10.4)
|
---|
410 | Graphics/DevVGA-SVGA3d.cpp_CXXFLAGS.darwin = -F$(VBOX_PATH_MACOSX_SDK_10_7)/System/Library/Frameworks/
|
---|
411 | Graphics/DevVGA-SVGA3d-info.cpp_CXXFLAGS.darwin = -F$(VBOX_PATH_MACOSX_SDK_10_7)/System/Library/Frameworks/
|
---|
412 | Graphics/DevVGA-SVGA3d-shared.cpp_CXXFLAGS.darwin = -F$(VBOX_PATH_MACOSX_SDK_10_7)/System/Library/Frameworks/
|
---|
413 | Graphics/DevVGA-SVGA3d-savedstate.cpp_CXXFLAGS.darwin = -F$(VBOX_PATH_MACOSX_SDK_10_7)/System/Library/Frameworks/
|
---|
414 | Graphics/DevVGA-SVGA3d-ogl.cpp_CXXFLAGS.darwin = -F$(VBOX_PATH_MACOSX_SDK_10_7)/System/Library/Frameworks/
|
---|
415 | else if1of ($(VBOX_DEF_MACOSX_VERSION_MIN), 10.14 10.15 10.16 11.0)
|
---|
416 | Graphics/DevVGA-SVGA3d-ogl.cpp_CXXFLAGS.darwin = $(VBOX_GCC_Wno-deprecated-declarations)
|
---|
417 | endif
|
---|
418 | endif
|
---|
419 |
|
---|
420 | ifdef VBOX_WITH_VDMA
|
---|
421 | VBoxDD_DEFS += VBOX_WITH_VDMA
|
---|
422 | VBoxDD_SOURCES += \
|
---|
423 | Graphics/DevVGA_VDMA.cpp
|
---|
424 | endif
|
---|
425 |
|
---|
426 | ifdef VBOX_WITH_PXE_ROM
|
---|
427 | VBoxDD_DEFS += VBOX_WITH_PXE_ROM
|
---|
428 | endif
|
---|
429 |
|
---|
430 | # --- USB bits. ---
|
---|
431 |
|
---|
432 | ifdef VBOX_WITH_USB
|
---|
433 | VBoxDD_DEFS += VBOX_WITH_USB
|
---|
434 | VBoxDD_SOURCES += \
|
---|
435 | USB/vrdp/USBProxyDevice-vrdp.cpp \
|
---|
436 | USB/usbip/USBProxyDevice-usbip.cpp
|
---|
437 |
|
---|
438 | VBoxDD_DEFS.darwin += VUSB_HAVE_USBPROXY_DEVICE
|
---|
439 | VBoxDD_SOURCES.darwin += \
|
---|
440 | USB/USBProxyDevice.cpp \
|
---|
441 | USB/darwin/USBProxyDevice-darwin.cpp
|
---|
442 | # if1of ($(VBOX_DEF_MACOSX_VERSION_MIN), 10.9) # Hack, shouldn't be needed
|
---|
443 | # USB/darwin/USBProxyDevice-darwin.cpp_SDKS = MACOSX1010
|
---|
444 | # endif
|
---|
445 |
|
---|
446 | VBoxDD_DEFS.linux += \
|
---|
447 | VUSB_HAVE_USBPROXY_DEVICE \
|
---|
448 | $(if $(VBOX_WITH_LINUX_COMPILER_H),VBOX_WITH_LINUX_COMPILER_H,) \
|
---|
449 | $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,)
|
---|
450 | VBoxDD_SOURCES.linux += \
|
---|
451 | USB/USBProxyDevice.cpp \
|
---|
452 | USB/linux/USBProxyDevice-linux.cpp
|
---|
453 |
|
---|
454 | VBoxDD_DEFS.os2 += VUSB_HAVE_USBPROXY_DEVICE
|
---|
455 | VBoxDD_INCS.os2 += $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
|
---|
456 | VBoxDD_SOURCES.os2 += \
|
---|
457 | USB/USBProxyDevice.cpp \
|
---|
458 | USB/os2/USBProxyDevice-os2.cpp
|
---|
459 |
|
---|
460 | VBoxDD_DEFS.win += VUSB_HAVE_USBPROXY_DEVICE
|
---|
461 | VBoxDD_SOURCES.win += \
|
---|
462 | USB/USBProxyDevice.cpp \
|
---|
463 | USB/win/USBProxyDevice-win.cpp
|
---|
464 |
|
---|
465 | VBoxDD_DEFS.solaris += VUSB_HAVE_USBPROXY_DEVICE
|
---|
466 | VBoxDD_SOURCES.solaris += \
|
---|
467 | USB/USBProxyDevice.cpp \
|
---|
468 | USB/solaris/USBProxyDevice-solaris.cpp
|
---|
469 |
|
---|
470 | VBoxDD_DEFS.freebsd += VUSB_HAVE_USBPROXY_DEVICE
|
---|
471 | VBoxDD_SOURCES.freebsd += \
|
---|
472 | USB/USBProxyDevice.cpp \
|
---|
473 | USB/freebsd/USBProxyDevice-freebsd.cpp
|
---|
474 |
|
---|
475 | ifdef VBOX_WITH_SCSI
|
---|
476 | VBoxDD_SOURCES += \
|
---|
477 | Storage/UsbMsd.cpp
|
---|
478 | endif
|
---|
479 |
|
---|
480 | if defined(VBOX_WITH_EHCI_IMPL)
|
---|
481 | VBoxDD_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
482 | VBoxDD_SOURCES += \
|
---|
483 | USB/DevEHCI.cpp
|
---|
484 | endif
|
---|
485 |
|
---|
486 | if defined(VBOX_WITH_XHCI_IMPL)
|
---|
487 | VBoxDD_DEFS += VBOX_WITH_XHCI_IMPL
|
---|
488 | VBoxDD_SOURCES += \
|
---|
489 | USB/DevXHCI.cpp
|
---|
490 | endif
|
---|
491 |
|
---|
492 | if defined(VBOX_WITH_USB_VIDEO_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
493 | if1of ($(KBUILD_TARGET), linux)
|
---|
494 | VBoxDD_DEFS += VBOX_WITH_USB_VIDEO_IMPL
|
---|
495 | VBoxDD_SOURCES += \
|
---|
496 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/UsbWebcam.cpp \
|
---|
497 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/UsbWebcamDesc.cpp \
|
---|
498 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/jpggen.cpp \
|
---|
499 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/DrvHostWebcam/DrvHostWebcam.cpp \
|
---|
500 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/DrvHostWebcam/JPEGEnc.cpp
|
---|
501 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/DrvHostWebcam/JPEGEnc.cpp_INCS = \
|
---|
502 | $(VBOX_JPEG_INCS)
|
---|
503 | VBoxDD_SOURCES.linux += \
|
---|
504 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/DrvHostWebcam/HostWebcam-v4l2.cpp
|
---|
505 | VBoxDD_LIBS += \
|
---|
506 | $(PATH_STAGE_LIB)/VBox-libjpeg$(VBOX_SUFF_LIB)
|
---|
507 | endif
|
---|
508 | endif
|
---|
509 |
|
---|
510 | endif # VBOX_WITH_USB
|
---|
511 |
|
---|
512 | ifdef VBOX_WITH_VUSB
|
---|
513 | VBoxDD_DEFS += VBOX_WITH_VUSB
|
---|
514 | VBoxDD_SOURCES += \
|
---|
515 | USB/DevOHCI.cpp \
|
---|
516 | USB/DrvVUSBRootHub.cpp \
|
---|
517 | USB/VUSBDevice.cpp \
|
---|
518 | USB/VUSBSniffer.cpp \
|
---|
519 | USB/VUSBSnifferPcapNg.cpp \
|
---|
520 | USB/VUSBSnifferUsbMon.cpp \
|
---|
521 | USB/VUSBSnifferVmx.cpp \
|
---|
522 | USB/VUSBUrb.cpp \
|
---|
523 | USB/VUSBUrbPool.cpp \
|
---|
524 | USB/VUSBUrbTrace.cpp
|
---|
525 | endif
|
---|
526 |
|
---|
527 | # --- Networking bits. ---
|
---|
528 |
|
---|
529 | ifdef VBOX_WITH_INIP
|
---|
530 | ifndef LWIP_SOURCES
|
---|
531 | include $(PATH_SUB_CURRENT)/Network/lwip-new/Config.kmk
|
---|
532 | endif
|
---|
533 | VBoxDD_DEFS += VBOX_WITH_INIP
|
---|
534 | VBoxDD_SOURCES += \
|
---|
535 | Network/DevINIP.cpp \
|
---|
536 | $(addprefix Network/lwip-new/,$(LWIP_SOURCES))
|
---|
537 | VBoxDD_INCS += \
|
---|
538 | Network \
|
---|
539 | $(addprefix Network/lwip-new/,$(LWIP_INCS))
|
---|
540 | endif # VBOX_WITH_INIP
|
---|
541 |
|
---|
542 | ifdef VBOX_WITH_E1000
|
---|
543 | VBoxDD_DEFS += VBOX_WITH_E1000
|
---|
544 | VBoxDD_SOURCES += \
|
---|
545 | Network/DevE1000.cpp \
|
---|
546 | Network/DevE1000Phy.cpp \
|
---|
547 | Network/DevEEPROM.cpp
|
---|
548 | endif
|
---|
549 |
|
---|
550 | ifdef VBOX_WITH_VIRTIO
|
---|
551 | VBoxDD_DEFS += VBOX_WITH_VIRTIO
|
---|
552 | VBoxDD_SOURCES += \
|
---|
553 | VirtIO/VirtioCore.cpp \
|
---|
554 | Network/DevVirtioNet.cpp
|
---|
555 | endif
|
---|
556 |
|
---|
557 |
|
---|
558 | ifdef VBOX_WITH_UDPTUNNEL
|
---|
559 | VBoxDD_DEFS += VBOX_WITH_UDPTUNNEL
|
---|
560 | VBoxDD_SOURCES += \
|
---|
561 | Network/DrvUDPTunnel.cpp
|
---|
562 | endif
|
---|
563 |
|
---|
564 | ifdef VBOX_WITH_VDE
|
---|
565 | VBoxDD_DEFS += VBOX_WITH_VDE
|
---|
566 | VBoxDD_SOURCES += \
|
---|
567 | Network/DrvVDE.cpp \
|
---|
568 | Network/VDEPlug.cpp
|
---|
569 | endif
|
---|
570 |
|
---|
571 | ifdef VBOX_WITH_NETSHAPER
|
---|
572 | VBoxDD_DEFS += VBOX_WITH_NETSHAPER
|
---|
573 | VBoxDD_SOURCES += \
|
---|
574 | Network/DrvNetShaper.cpp
|
---|
575 | endif
|
---|
576 |
|
---|
577 | ifdef VBOX_WITH_VMNET
|
---|
578 | VBoxDD_DEFS.darwin += VBOX_WITH_VMNET
|
---|
579 | VBoxDD_SOURCES.darwin += \
|
---|
580 | Network/DrvVMNet.m
|
---|
581 | VBoxDD_LDFLAGS.darwin += -framework vmnet
|
---|
582 | endif
|
---|
583 |
|
---|
584 | if defined(VBOX_WITH_CLOUD_NET) && defined(VBOX_WITH_LIBSSH)
|
---|
585 | VBoxDD_SDKS += VBoxLibSsh VBoxZlib VBoxOpenSsl
|
---|
586 | VBoxDD_DEFS += VBOX_WITH_CLOUD_NET
|
---|
587 | VBoxDD_SOURCES += \
|
---|
588 | Network/DrvCloudTunnel.cpp
|
---|
589 |
|
---|
590 | VBoxDD_SOURCES += \
|
---|
591 | $(VBoxDD_0_OUTDIR)/VBoxLibSshLazyLoad.asm
|
---|
592 | VBoxDD_CLEAN += $(VBoxDD_0_OUTDIR)/VBoxLibSshLazyLoad.asm
|
---|
593 | $$(VBoxDD_0_OUTDIR)/VBoxLibSshLazyLoad.asm: $(PATH_SUB_CURRENT)/Network/VBoxLibSsh.def $(VBOX_DEF_2_LAZY_LOAD) | $$(dir $$@)
|
---|
594 | $(call MSG_TOOL,VBoxDef2LazyLoad,VBoxDD,$(filter %.def, $^),$@)
|
---|
595 | $(QUIET)$(RM) -f -- "$@"
|
---|
596 | $(VBOX_DEF_2_LAZY_LOAD) --explicit-load-function --library VBoxLibSsh --output "$@" $(filter %.def, $^)
|
---|
597 | endif
|
---|
598 |
|
---|
599 | # --- Storage bits. ---
|
---|
600 |
|
---|
601 | ifdef VBOX_WITH_AHCI
|
---|
602 | VBoxDD_DEFS += VBOX_WITH_AHCI IN_AHCI_R3
|
---|
603 | VBoxDD_SOURCES += \
|
---|
604 | Storage/DevAHCI.cpp
|
---|
605 | endif
|
---|
606 |
|
---|
607 | ifdef VBOX_WITH_BUSLOGIC
|
---|
608 | VBoxDD_DEFS += VBOX_WITH_BUSLOGIC
|
---|
609 | VBoxDD_SOURCES += \
|
---|
610 | Storage/DevBusLogic.cpp
|
---|
611 | endif
|
---|
612 |
|
---|
613 | ifdef VBOX_WITH_LSILOGIC
|
---|
614 | VBoxDD_DEFS += VBOX_WITH_LSILOGIC
|
---|
615 | VBoxDD_SOURCES += \
|
---|
616 | Storage/DevLsiLogicSCSI.cpp
|
---|
617 | endif
|
---|
618 |
|
---|
619 | if defined(VBOX_WITH_NVME_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
620 | VBoxDD_DEFS += VBOX_WITH_NVME_IMPL
|
---|
621 | VBoxDD_SOURCES += \
|
---|
622 | Storage/DevNVMe.cpp
|
---|
623 | endif
|
---|
624 |
|
---|
625 | if defined(VBOX_WITH_VIRTIO) && defined(VBOX_WITH_VIRTIO_SCSI)
|
---|
626 | VBoxDD_DEFS += VBOX_WITH_VIRTIO_SCSI
|
---|
627 | VBoxDD_SOURCES += \
|
---|
628 | Storage/DevVirtioSCSI.cpp
|
---|
629 | endif
|
---|
630 |
|
---|
631 | if defined(VBOX_WITH_TPM)
|
---|
632 | VBoxDD_DEFS += VBOX_WITH_TPM
|
---|
633 | VBoxDD_SOURCES += \
|
---|
634 | Security/DevTpm.cpp \
|
---|
635 | Security/DrvTpmEmu.cpp
|
---|
636 |
|
---|
637 | VBoxDD_SOURCES.linux += \
|
---|
638 | Security/DrvTpmHost.cpp
|
---|
639 |
|
---|
640 | VBoxDD_SOURCES.win += \
|
---|
641 | Security/DrvTpmHost.cpp
|
---|
642 |
|
---|
643 | if defined(VBOX_WITH_LIBTPMS)
|
---|
644 | VBoxDD_SDKS += VBoxLibTpms
|
---|
645 | VBoxDD_DEFS += VBOX_WITH_LIBTPMS
|
---|
646 | VBoxDD_SOURCES += \
|
---|
647 | Security/DrvTpmEmuTpms.cpp
|
---|
648 | endif
|
---|
649 | endif
|
---|
650 |
|
---|
651 | ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
652 | VBoxDD_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
653 | endif
|
---|
654 |
|
---|
655 | ifdef VBOX_WITH_SCSI
|
---|
656 | VBoxDD_DEFS += VBOX_WITH_SCSI
|
---|
657 | VBoxDD_SOURCES += \
|
---|
658 | Storage/DrvSCSI.cpp
|
---|
659 | endif
|
---|
660 |
|
---|
661 | ifdef VBOX_WITH_ISCSI
|
---|
662 | $(eval $(call def_vbox_lwip_flags, \
|
---|
663 | VBoxDD, Storage/DrvVD.cpp, Network/lwip-new))
|
---|
664 | endif
|
---|
665 |
|
---|
666 | ifdef VBOX_WITH_DRV_DISK_INTEGRITY
|
---|
667 | VBoxDD_DEFS += VBOX_WITH_DRV_DISK_INTEGRITY
|
---|
668 | VBoxDD_SOURCES += \
|
---|
669 | Storage/DrvDiskIntegrity.cpp \
|
---|
670 | Storage/DrvRamDisk.cpp
|
---|
671 | endif
|
---|
672 |
|
---|
673 | ifdef VBOX_WITH_EFI
|
---|
674 | VBoxDD_DEFS += VBOX_WITH_EFI
|
---|
675 | VBoxDD_SOURCES += EFI/DevEFI.cpp
|
---|
676 | EFI/DevEFI.cpp_INCS += EFI/Firmware/BaseTools/Source/C/Include
|
---|
677 | EFI/DevEFI.cpp_INCS.x86 += EFI/Firmware/BaseTools/Source/C/Include/Ia32
|
---|
678 | EFI/DevEFI.cpp_INCS.amd64 += EFI/Firmware/BaseTools/Source/C/Include/X64
|
---|
679 | EFI/DevEFI.cpp_INCS.arm32 += EFI/Firmware/BaseTools/Source/C/Include/Arm
|
---|
680 | EFI/DevEFI.cpp_INCS.arm64 += EFI/Firmware/BaseTools/Source/C/Include/AArch64
|
---|
681 | endif
|
---|
682 |
|
---|
683 | if defined(VBOX_WITH_PCI_PASSTHROUGH_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
684 | VBoxDD_DEFS += VBOX_WITH_PCI_PASSTHROUGH_IMPL
|
---|
685 | VBoxDD_SOURCES += \
|
---|
686 | Bus/DevPciRaw.cpp \
|
---|
687 | Bus/DrvPciRaw.cpp
|
---|
688 | endif
|
---|
689 |
|
---|
690 | ifdef VBOX_WITH_MSI_DEVICES
|
---|
691 | VBoxDD_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
692 | endif
|
---|
693 |
|
---|
694 | ifdef VBOX_WITH_DYNAMIC_DSDT
|
---|
695 | VBoxDD_DEFS += VBOX_WITH_DYNAMIC_DSDT
|
---|
696 | endif
|
---|
697 |
|
---|
698 | # --- Audio bits (see also VBOX_AUDIO_DEFS in ./Config.kmk). ---
|
---|
699 |
|
---|
700 | VBoxDD_DEFS += $(VBOX_AUDIO_DEFS)
|
---|
701 | VBoxDD_SOURCES += \
|
---|
702 | Audio/DevIchAc97.cpp \
|
---|
703 | Audio/DevSB16.cpp \
|
---|
704 | Audio/DevHda.cpp \
|
---|
705 | Audio/DevHdaCodec.cpp \
|
---|
706 | Audio/DevHdaStream.cpp \
|
---|
707 | Audio/AudioHlp.cpp \
|
---|
708 | Audio/AudioMixBuffer.cpp \
|
---|
709 | Audio/AudioMixer.cpp \
|
---|
710 | Audio/DrvAudio.cpp \
|
---|
711 | Audio/DrvHostAudioNull.cpp
|
---|
712 |
|
---|
713 | if defined(VBOX_WITH_AUDIO_DEBUG) || defined(VBOX_WITH_AUDIO_VALIDATIONKIT)
|
---|
714 | VBoxDD_SOURCES += \
|
---|
715 | Audio/AudioTest.cpp \
|
---|
716 | Audio/AudioTestService.cpp \
|
---|
717 | Audio/AudioTestServiceTcp.cpp \
|
---|
718 | Audio/AudioTestServiceProtocol.cpp
|
---|
719 | endif
|
---|
720 |
|
---|
721 | ifdef VBOX_WITH_AUDIO_DEBUG
|
---|
722 | VBoxDD_DEFS += VBOX_WITH_AUDIO_DEBUG
|
---|
723 | VBoxDD_SOURCES += \
|
---|
724 | Audio/DrvHostAudioDebug.cpp
|
---|
725 | endif
|
---|
726 |
|
---|
727 | ifdef VBOX_WITH_AUDIO_VALIDATIONKIT
|
---|
728 | VBoxDD_DEFS += VBOX_WITH_AUDIO_VALIDATIONKIT
|
---|
729 | VBoxDD_SOURCES += \
|
---|
730 | Audio/DrvHostAudioValidationKit.cpp
|
---|
731 | endif
|
---|
732 |
|
---|
733 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
734 | VBoxDD_SOURCES += \
|
---|
735 | Audio/DrvHostAudioCoreAudio.cpp \
|
---|
736 | Audio/DrvHostAudioCoreAudioAuth.mm
|
---|
737 | endif
|
---|
738 |
|
---|
739 | ifeq ($(KBUILD_TARGET),win)
|
---|
740 | VBoxDD_SOURCES += \
|
---|
741 | Audio/DrvHostAudioDSound.cpp \
|
---|
742 | Audio/DrvHostAudioWasApi.cpp
|
---|
743 | ifdef VBOX_WITH_AUDIO_MMNOTIFICATION_CLIENT
|
---|
744 | VBoxDD_DEFS += VBOX_WITH_AUDIO_MMNOTIFICATION_CLIENT
|
---|
745 | VBoxDD_SOURCES += \
|
---|
746 | Audio/DrvHostAudioDSoundMMNotifClient.cpp
|
---|
747 | endif
|
---|
748 | endif
|
---|
749 |
|
---|
750 | ifdef VBOX_WITH_AUDIO_OSS
|
---|
751 | VBoxDD_DEFS += VBOX_WITH_AUDIO_OSS
|
---|
752 | VBoxDD_SOURCES += \
|
---|
753 | Audio/DrvHostAudioOss.cpp
|
---|
754 | endif
|
---|
755 |
|
---|
756 | ifdef VBOX_WITH_AUDIO_ALSA
|
---|
757 | VBoxDD_DEFS += VBOX_WITH_AUDIO_ALSA
|
---|
758 | VBoxDD_SOURCES += \
|
---|
759 | Audio/DrvHostAudioAlsa.cpp \
|
---|
760 | Audio/DrvHostAudioAlsaStubs.cpp
|
---|
761 | endif
|
---|
762 |
|
---|
763 | ifdef VBOX_WITH_AUDIO_PULSE
|
---|
764 | VBoxDD_DEFS += VBOX_WITH_AUDIO_PULSE
|
---|
765 | VBoxDD_SOURCES += \
|
---|
766 | Audio/DrvHostAudioPulseAudio.cpp \
|
---|
767 | Audio/DrvHostAudioPulseAudioStubs.cpp
|
---|
768 | endif
|
---|
769 |
|
---|
770 | # --- WARNING! SLIRP MESS AHEAD! ;-) ---
|
---|
771 | VBOX_SLIRP_SOURCES = \
|
---|
772 | Network/DrvNAT.cpp \
|
---|
773 | Network/slirp/bootp.c \
|
---|
774 | Network/slirp/debug.c \
|
---|
775 | Network/slirp/ip_icmp.c \
|
---|
776 | Network/slirp/ip_input.c \
|
---|
777 | Network/slirp/ip_output.c \
|
---|
778 | Network/slirp/misc.c \
|
---|
779 | Network/slirp/sbuf.c \
|
---|
780 | Network/slirp/slirp.c \
|
---|
781 | Network/slirp/slirp_dns.c \
|
---|
782 | Network/slirp/socket.c \
|
---|
783 | Network/slirp/tcp_input.c \
|
---|
784 | Network/slirp/tcp_output.c \
|
---|
785 | Network/slirp/tcp_subr.c \
|
---|
786 | Network/slirp/tcp_timer.c \
|
---|
787 | Network/slirp/udp.c \
|
---|
788 | Network/slirp/hostres.c \
|
---|
789 | Network/slirp/dnsproxy/hash.c \
|
---|
790 | Network/slirp/tftp.c \
|
---|
791 | Network/slirp/dnsproxy/dnsproxy.c
|
---|
792 |
|
---|
793 | ifeq ($(KBUILD_TARGET),win)
|
---|
794 | VBOX_SLIRP_SOURCES += Network/slirp/ip_icmpwin.c
|
---|
795 | else ifneq ($(KBUILD_TARGET),darwin)
|
---|
796 | # helper for debugging unprivileged
|
---|
797 | # Network/slirp/ip_icmp.c_DEFS += VBOX_RAWSOCK_DEBUG_HELPER
|
---|
798 | # VBOX_SLIRP_SOURCES += ../NetworkServices/NAT/getrawsock.c
|
---|
799 | endif
|
---|
800 |
|
---|
801 | ifneq ($(KBUILD_TARGET),win)
|
---|
802 | VBOX_SLIRP_SOURCES += Network/slirp/resolv_conf_parser.c
|
---|
803 | endif
|
---|
804 |
|
---|
805 | VBOX_SLIRP_BSD_ARCH = $(subst x86,i386,$(KBUILD_TARGET_ARCH))
|
---|
806 | VBOX_SLIRP_BSD_SOURCES += \
|
---|
807 | Network/slirp/bsd/kern/kern_mbuf.c \
|
---|
808 | Network/slirp/bsd/kern/uipc_mbuf.c \
|
---|
809 | Network/slirp/bsd/kern/uipc_mbuf2.c \
|
---|
810 | Network/slirp/bsd/$(VBOX_SLIRP_BSD_ARCH)/in_cksum.c
|
---|
811 | VBOX_SLIRP_ALIAS_SOURCES = \
|
---|
812 | Network/slirp/libalias/alias.c \
|
---|
813 | Network/slirp/libalias/alias_db.c \
|
---|
814 | Network/slirp/libalias/alias_mod.c \
|
---|
815 | Network/slirp/libalias/alias_proxy.c \
|
---|
816 | Network/slirp/libalias/alias_ftp.c \
|
---|
817 | Network/slirp/libalias/alias_nbt.c \
|
---|
818 | Network/slirp/libalias/alias_util.c
|
---|
819 |
|
---|
820 | # Enable VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER here for a while, then move to
|
---|
821 | # $(file)_DEFS or clean the code disabled with this definition.
|
---|
822 | VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER = 1
|
---|
823 |
|
---|
824 | # dump memory related operations.
|
---|
825 | Network/slirp/misc.c_DEFS += $(if $(VBOX_NAT_MEM_DEBUG),VBOX_NAT_MEM_DEBUG,)
|
---|
826 |
|
---|
827 | VBoxDD_SOURCES += $(VBOX_SLIRP_SOURCES)
|
---|
828 | define def_vbox_slirp_cflags
|
---|
829 | $(file)_DEFS += \
|
---|
830 | $(if $(VBOX_WITH_SLIRP_MEMORY_CHECK),RTMEM_WRAP_TO_EF_APIS,) \
|
---|
831 | $(if $(VBOX_WITH_DEBUG_NAT_SOCKETS),VBOX_WITH_DEBUG_NAT_SOCKETS,) \
|
---|
832 | $(if $(VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER),VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER,) \
|
---|
833 | $(if $(VBOX_WITH_NAT_SEND2HOME),VBOX_WITH_NAT_SEND2HOME,) \
|
---|
834 | $(if $(VBOX_WITH_HIDDEN_TCPTEMPLATE),VBOX_WITH_HIDDEN_TCPTEMPLATE,) \
|
---|
835 | $(if $(VBOX_WITH_SLIRP_MT),VBOX_WITH_SLIRP_MT,)
|
---|
836 | $(file)_INCS += \
|
---|
837 | $(1)/slirp/bsd/sys \
|
---|
838 | $(1)/slirp/bsd/sys/sys \
|
---|
839 | $(1)/slirp/bsd/$(VBOX_SLIRP_BSD_ARCH)/include \
|
---|
840 | $(1)/slirp/bsd/netinet \
|
---|
841 | $(1)/slirp \
|
---|
842 | $(1)/slirp/libalias
|
---|
843 | ifeq ($(KBUILD_TARGET),win)
|
---|
844 | $(file)_CFLAGS = -wd4018
|
---|
845 | else
|
---|
846 | $(file)_CFLAGS += -Wno-sign-compare -Wno-format -Wno-bad-function-cast
|
---|
847 | endif
|
---|
848 | endef
|
---|
849 |
|
---|
850 | $(foreach file,$(VBOX_SLIRP_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
|
---|
851 |
|
---|
852 | VBoxDD_SOURCES += $(VBOX_SLIRP_ALIAS_SOURCES)
|
---|
853 | define def_vbox_slirp_alias_cflags
|
---|
854 | $(file)_DEFS += VBOX_SLIRP_ALIAS \
|
---|
855 | $(if $(VBOX_WITH_DEBUG_LIBALIAS),VBOX_WITH_DEBUG_LIBALIAS,)
|
---|
856 | $(file)_INCS += \
|
---|
857 | $(1)/slirp/libalias \
|
---|
858 | $(1)/slirp \
|
---|
859 | $(1)/slirp/dnsproxy
|
---|
860 | ifneq ($(KBUILD_TARGET),win)
|
---|
861 | $(file)_CFLAGS += -Wno-shadow
|
---|
862 | endif
|
---|
863 | endef
|
---|
864 | $(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
|
---|
865 | $(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_alias_cflags, Network)))
|
---|
866 |
|
---|
867 | VBOX_SLIRP_BSD_SOURCES += $(VBOX_SLIRP_BSD_SOURCES.${KBUILD_TARGET_ARCH})
|
---|
868 | VBoxDD_SOURCES += $(VBOX_SLIRP_BSD_SOURCES)
|
---|
869 | define def_vbox_slirp_bsd_cflags
|
---|
870 | $(file)_DEFS += VBOX_SLIRP_BSD
|
---|
871 | $(file)_INCS += $(1)/slirp/dnsproxy
|
---|
872 | endef
|
---|
873 | $(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
|
---|
874 | $(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_bsd_cflags, Network)))
|
---|
875 |
|
---|
876 |
|
---|
877 | # --- OS specific driver hacks. ---
|
---|
878 |
|
---|
879 | ifeq ($(KBUILD_TARGET),freebsd)
|
---|
880 | VBoxDD_SOURCES.freebsd += Network/DrvTAP.cpp
|
---|
881 | endif # freebsd
|
---|
882 |
|
---|
883 | VBoxDD_SOURCES.linux += \
|
---|
884 | Network/DrvTAP.cpp \
|
---|
885 | Parallel/DrvHostParallel.cpp
|
---|
886 |
|
---|
887 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
888 | ifdef VBOX_WITH_SUID_WRAPPER
|
---|
889 | VBoxDD_DEFS += VBOX_WITH_SUID_WRAPPER
|
---|
890 | endif
|
---|
891 | endif
|
---|
892 |
|
---|
893 | VBoxDD_DEFS.win += VBOX_WITH_WIN_PARPORT_SUP
|
---|
894 | VBoxDD_SOURCES.win += \
|
---|
895 | Parallel/DrvHostParallel.cpp
|
---|
896 |
|
---|
897 | ifdef VBOX_WITH_VIRTUALKD
|
---|
898 | VBoxDD_DEFS.win += VBOX_WITH_VIRTUALKD
|
---|
899 | VBoxDD_SOURCES.win += \
|
---|
900 | Misc/DevVirtualKD.cpp
|
---|
901 | endif
|
---|
902 |
|
---|
903 | if defined(VBOX_WITH_NETFLT)
|
---|
904 | VBoxDD_DEFS += VBOX_WITH_NETFLT
|
---|
905 | if defined(VBOX_NETFLT_ONDEMAND_BIND)
|
---|
906 | VBoxDD_DEFS.win += VBOX_NETFLT_ONDEMAND_BIND
|
---|
907 | endif
|
---|
908 | endif
|
---|
909 |
|
---|
910 | # --- Final bits, mostly libraries for order dependant linkers. ---
|
---|
911 |
|
---|
912 | VBoxDD_LIBS += \
|
---|
913 | $(PATH_STAGE_LIB)/VgaDefBiosLogo$(VBOX_SUFF_LIB) \
|
---|
914 | $(LIB_RUNTIME)
|
---|
915 | ifeq ($(KBUILD_TARGET),win)
|
---|
916 | VBoxDD_LIBS += \
|
---|
917 | $(LIB_DDU) \
|
---|
918 | $(PATH_STAGE_LIB)/VBoxDD2.lib
|
---|
919 | else
|
---|
920 | VBoxDD_LIBS += \
|
---|
921 | $(VBoxDDU_1_STAGE_TARGET) \
|
---|
922 | $(VBoxDD2_1_STAGE_TARGET)
|
---|
923 | endif
|
---|
924 |
|
---|
925 | ifdef VBOX_WITH_NETFLT
|
---|
926 | VBoxDD_LIBS.win += $(PATH_STAGE_LIB)/WinNetConfigDll$(VBOX_SUFF_LIB)
|
---|
927 | endif
|
---|
928 |
|
---|
929 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
930 | VBoxDD_LIBS += adm
|
---|
931 | ifdef VBOX_WITH_SUID_WRAPPER
|
---|
932 | VBoxDD_LIBS += secdb
|
---|
933 | endif
|
---|
934 | ifdef VBOX_WITH_USB
|
---|
935 | VBoxDD_LIBS += aio
|
---|
936 | endif
|
---|
937 | endif
|
---|
938 |
|
---|
939 |
|
---|
940 | ifdef VBOX_WITH_DYNAMIC_DSDT
|
---|
941 | VBoxDD_CLEAN += $(VBoxDD_0_OUTDIR)/vboxdsl.hex
|
---|
942 | PC/ACPI/VBoxAcpi.cpp_DEPS = $(VBoxDD_0_OUTDIR)/vboxdsl.hex
|
---|
943 |
|
---|
944 | $$(VBoxDD_0_OUTDIR)/vboxdsl.hex: $(PATH_SUB_CURRENT)/PC/vbox.dsl | $$(dir $$@)
|
---|
945 | $(call MSG_TOOL,bin2c,VBoxDD,$<,$@)
|
---|
946 | $(QUIET)$(VBOX_BIN2C) -export VboxDslSource $< $@
|
---|
947 |
|
---|
948 | vboxdsl.hex:: $$(VBoxDD_0_OUTDIR)/vboxdsl.hex
|
---|
949 |
|
---|
950 | else # !VBOX_WITH_DYNAMIC_DSDT
|
---|
951 | # VBoxAcpi.cpp needs vboxaml.hex which we generate from PC/vbox.dsl
|
---|
952 | VBoxDD_CLEAN += \
|
---|
953 | $(VBoxDD_0_OUTDIR)/vboxaml.hex \
|
---|
954 | $(VBoxDD_0_OUTDIR)/vboxaml.aml \
|
---|
955 | $(VBoxDD_0_OUTDIR)/vboxaml.aml.tmp \
|
---|
956 | $(VBoxDD_0_OUTDIR)/vboxssdt_standard.hex \
|
---|
957 | $(VBoxDD_0_OUTDIR)/vboxssdt_standard.aml \
|
---|
958 | $(VBoxDD_0_OUTDIR)/vboxssdt_standard.aml.tmp \
|
---|
959 | $(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.hex \
|
---|
960 | $(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.aml \
|
---|
961 | $(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.aml.tmp \
|
---|
962 | $(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.aml.pre \
|
---|
963 | $(if $(VBOX_WITH_TPM),$(VBoxDD_0_OUTDIR)/vboxssdt_tpm.hex,) \
|
---|
964 | $(if $(VBOX_WITH_TPM),$(VBoxDD_0_OUTDIR)/vboxssdt_tpm.aml,) \
|
---|
965 | $(if $(VBOX_WITH_TPM),$(VBoxDD_0_OUTDIR)/vboxssdt_tpm.aml.tmp,)
|
---|
966 | PC/ACPI/VBoxAcpi.cpp_DEPS = \
|
---|
967 | $(VBoxDD_0_OUTDIR)/vboxaml.hex \
|
---|
968 | $(VBoxDD_0_OUTDIR)/vboxssdt_standard.hex \
|
---|
969 | $(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.hex \
|
---|
970 | $(if $(VBOX_WITH_TPM),$(VBoxDD_0_OUTDIR)/vboxssdt_tpm.hex,)
|
---|
971 |
|
---|
972 | $$(VBoxDD_0_OUTDIR)/vboxaml.hex: $(PATH_SUB_CURRENT)/PC/vbox.dsl | $$(dir $$@)
|
---|
973 | $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
|
---|
974 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
|
---|
975 | $(QUIET)$(MV) -f $@ $@.tmp
|
---|
976 | $(QUIET)$(SED) -e "s/vboxaml_aml_code/AmlCode/g" \
|
---|
977 | --output $@ $@.tmp
|
---|
978 | $(QUIET)$(RM) -f $@.tmp
|
---|
979 |
|
---|
980 | vboxaml.hex:: $$(VBoxDD_0_OUTDIR)/vboxaml.hex
|
---|
981 |
|
---|
982 | $$(VBoxDD_0_OUTDIR)/vboxssdt_standard.hex: $(PATH_SUB_CURRENT)/PC/vbox-standard.dsl | $$(dir $$@)
|
---|
983 | $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
|
---|
984 | $(QUIET)$(RM) -f $@ $@.tmp
|
---|
985 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
|
---|
986 | $(QUIET)$(MV) -f $@ $@.tmp
|
---|
987 | $(QUIET)$(SED) -e "s/AmlCode\|vboxssdt_standard_aml_code/AmlCodeSsdtStandard/g" \
|
---|
988 | --output $@ $@.tmp
|
---|
989 | $(QUIET)$(RM) -f $@.tmp
|
---|
990 |
|
---|
991 |
|
---|
992 | vboxssdt_standard.hex:: $$(VBoxDD_0_OUTDIR)/vboxssdt_standard.hex
|
---|
993 |
|
---|
994 | $$(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.hex: $(PATH_SUB_CURRENT)/PC/vbox-cpuhotplug.dsl | $$(dir $$@)
|
---|
995 | $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
|
---|
996 | $(QUIET)$(RM) -f $@ $@.tmp $@.pre
|
---|
997 | $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -P -x c -o $@.pre $<
|
---|
998 | $(QUIET)$(SED) -e "s/<NL>/\n/g" \
|
---|
999 | --output $@.pre1 $@.pre
|
---|
1000 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $@.pre1
|
---|
1001 | $(QUIET)$(MV) -f $@ $@.tmp
|
---|
1002 | $(QUIET)$(SED) -e "s/AmlCode\|vboxssdt_cpuhotplug_aml_code/AmlCodeSsdtCpuHotPlug/g" \
|
---|
1003 | --output $@ $@.tmp
|
---|
1004 | $(QUIET)$(RM) -f $@.tmp $@.pre $@.pre1
|
---|
1005 |
|
---|
1006 |
|
---|
1007 | vboxssdt_cpuhotplug.hex:: $$(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.hex
|
---|
1008 |
|
---|
1009 | if defined(VBOX_WITH_TPM)
|
---|
1010 | $$(VBoxDD_0_OUTDIR)/vboxssdt_tpm.hex: $(PATH_SUB_CURRENT)/PC/vbox-tpm.dsl | $$(dir $$@)
|
---|
1011 | $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
|
---|
1012 | $(QUIET)$(RM) -f $@ $@.tmp
|
---|
1013 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
|
---|
1014 | $(QUIET)$(MV) -f $@ $@.tmp
|
---|
1015 | $(QUIET)$(SED) -e "s/AmlCode\|vboxssdt_tpm_aml_code/AmlCodeSsdtTpm/g" \
|
---|
1016 | --output $@ $@.tmp
|
---|
1017 | $(QUIET)$(RM) -f $@.tmp
|
---|
1018 |
|
---|
1019 | vboxssdt_tpm.hex:: $$(VBoxDD_0_OUTDIR)/vboxssdt_tpm.hex
|
---|
1020 | endif # !VBOX_WITH_TPM
|
---|
1021 |
|
---|
1022 | endif # !VBOX_WITH_DYNAMIC_DSDT
|
---|
1023 | PC/ACPI/VBoxAcpi.cpp_INCS = $(VBoxDD_0_OUTDIR)
|
---|
1024 |
|
---|
1025 | # For finding PCIInternal.h from VBox/pci.h.
|
---|
1026 | Bus/DevPCI.cpp_INCS = Bus
|
---|
1027 | Bus/DevPciIch9.cpp_INCS = Bus
|
---|
1028 | Bus/MsiCommon.cpp_INCS = Bus
|
---|
1029 | Bus/MsixCommon.cpp_INCS = Bus
|
---|
1030 | Bus/DevPciRaw.cpp_INCS = Bus
|
---|
1031 |
|
---|
1032 | # For finding and generating vbetables.h (see Graphics/BIOS/Makefile.kmk).
|
---|
1033 | Graphics/DevVGA.cpp_INCS = $(VgaBiosBin_0_OUTDIR) $(VBOX_GRAPHICS_INCS)
|
---|
1034 | Graphics/DevVGA.cpp_DEPS = $(VgaBiosBin_0_OUTDIR)/vbetables.h
|
---|
1035 |
|
---|
1036 | $(call VBOX_SET_VER_INFO_DLL,VBoxDD,VirtualBox VMM Devices and Drivers) # (last!)
|
---|
1037 |
|
---|
1038 |
|
---|
1039 | ifdef VBOX_WITH_RAW_MODE
|
---|
1040 | #
|
---|
1041 | # VBoxDDRC (sysmod)
|
---|
1042 | #
|
---|
1043 | VBoxDDRC_TEMPLATE = VBoxRc
|
---|
1044 | ifeq ($(KBUILD_TARGET_ARCH),x86)
|
---|
1045 | VBoxDDRC_DEFS.darwin = VBOX_WITH_2X_4GB_ADDR_SPACE
|
---|
1046 | endif
|
---|
1047 | VBoxDDRC_DEFS = \
|
---|
1048 | $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) \
|
---|
1049 | $(if $(VBOX_WITH_IOMMU_AMD),VBOX_WITH_IOMMU_AMD,) \
|
---|
1050 | $(if $(VBOX_WITH_IOMMU_INTEL),VBOX_WITH_IOMMU_INTEL,)
|
---|
1051 | VBoxDDRC_INCS = build $(VBOX_GRAPHICS_INCS)
|
---|
1052 | VBoxDDRC_SOURCES = \
|
---|
1053 | Bus/DevPCI.cpp \
|
---|
1054 | Bus/DevPciIch9.cpp \
|
---|
1055 | Bus/MsiCommon.cpp \
|
---|
1056 | Bus/MsixCommon.cpp \
|
---|
1057 | $(if $(VBOX_WITH_IOMMU_AMD),Bus/DevIommuAmd.cpp,) \
|
---|
1058 | $(if $(VBOX_WITH_IOMMU_INTEL),Bus/DevIommuIntel.cpp,) \
|
---|
1059 | EFI/DevSmc.cpp \
|
---|
1060 | Graphics/DevVGA.cpp \
|
---|
1061 | Input/DevPS2.cpp \
|
---|
1062 | Input/DevPS2K.cpp \
|
---|
1063 | Input/DevPS2M.cpp \
|
---|
1064 | PC/DevACPI.cpp \
|
---|
1065 | PC/DevIoApic.cpp \
|
---|
1066 | PC/DevPit-i8254.cpp \
|
---|
1067 | PC/DevPIC.cpp \
|
---|
1068 | PC/DevRTC.cpp \
|
---|
1069 | PC/DevDMA.cpp \
|
---|
1070 | PC/DevHPET.cpp \
|
---|
1071 | Storage/DevATA.cpp \
|
---|
1072 | Network/DevPCNet.cpp \
|
---|
1073 | Network/DevDP8390.cpp \
|
---|
1074 | Network/Dev3C501.cpp \
|
---|
1075 | Serial/DevSerial.cpp \
|
---|
1076 | Serial/DevOxPcie958.cpp \
|
---|
1077 | Serial/UartCore.cpp \
|
---|
1078 | Parallel/DevParallel.cpp \
|
---|
1079 | VMMDev/VMMDev.cpp \
|
---|
1080 | VMMDev/VMMDevTesting.cpp
|
---|
1081 |
|
---|
1082 | VBoxDDRC_DEFS += $(VBOX_AUDIO_DEFS)
|
---|
1083 | VBoxDDRC_SOURCES += \
|
---|
1084 | Audio/DevHda.cpp \
|
---|
1085 | Audio/DevIchAc97.cpp
|
---|
1086 |
|
---|
1087 | VBoxDDRC_DEFS += \
|
---|
1088 | $(if $(VBOX_WITH_HP_HDA),VBOX_WITH_HP_HDA,) \
|
---|
1089 | $(if $(VBOX_WITH_INTEL_HDA),VBOX_WITH_INTEL_HDA,) \
|
---|
1090 | $(if $(VBOX_WITH_NVIDIA_HDA),VBOX_WITH_NVIDIA_HDA,)
|
---|
1091 |
|
---|
1092 | ifdef VBOX_WITH_E1000
|
---|
1093 | VBoxDDRC_DEFS += VBOX_WITH_E1000
|
---|
1094 | VBoxDDRC_SOURCES += \
|
---|
1095 | Network/DevE1000.cpp \
|
---|
1096 | Network/DevE1000Phy.cpp
|
---|
1097 | endif
|
---|
1098 |
|
---|
1099 | ifdef VBOX_WITH_VIRTIO
|
---|
1100 | VBoxDDRC_DEFS += VBOX_WITH_VIRTIO
|
---|
1101 | VBoxDDRC_SOURCES += \
|
---|
1102 | VirtIO/VirtioCore.cpp \
|
---|
1103 | Network/DevVirtioNet.cpp
|
---|
1104 | endif
|
---|
1105 |
|
---|
1106 | ifdef VBOX_WITH_HGSMI
|
---|
1107 | VBoxDDRC_DEFS += VBOX_WITH_HGSMI
|
---|
1108 | endif
|
---|
1109 | ifdef VBOX_WITH_WDDM
|
---|
1110 | VBoxDDRC_DEFS += VBOX_WITH_WDDM
|
---|
1111 | endif
|
---|
1112 | ifdef VBOX_WITH_VDMA
|
---|
1113 | VBoxDDRC_DEFS += VBOX_WITH_VDMA
|
---|
1114 | endif
|
---|
1115 | ifdef VBOXWDDM_WITH_VBVA
|
---|
1116 | VBoxDDRC_DEFS += VBOXWDDM_WITH_VBVA
|
---|
1117 | endif
|
---|
1118 | ifdef VBOX_WITH_VMSVGA
|
---|
1119 | VBoxDDRC_DEFS += VBOX_WITH_VMSVGA
|
---|
1120 | VBoxDDRC_SOURCES += \
|
---|
1121 | Graphics/DevVGA-SVGA.cpp
|
---|
1122 | endif
|
---|
1123 | ifdef VBOX_WITH_VMSVGA3D
|
---|
1124 | VBoxDDRC_DEFS += VBOX_WITH_VMSVGA3D
|
---|
1125 | endif
|
---|
1126 |
|
---|
1127 | ifdef VBOX_WITH_VUSB
|
---|
1128 | VBoxDDRC_DEFS += VBOX_WITH_VUSB
|
---|
1129 | VBoxDDRC_SOURCES += \
|
---|
1130 | USB/DevOHCI.cpp
|
---|
1131 | endif
|
---|
1132 |
|
---|
1133 | ifdef VBOX_WITH_USB
|
---|
1134 | VBoxDDRC_DEFS += VBOX_WITH_USB
|
---|
1135 | if defined(VBOX_WITH_EHCI_IMPL)
|
---|
1136 | VBoxDDRC_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
1137 | VBoxDDRC_SOURCES += \
|
---|
1138 | USB/DevEHCI.cpp
|
---|
1139 | endif
|
---|
1140 | if defined(VBOX_WITH_XHCI_IMPL)
|
---|
1141 | VBoxDDRC_DEFS += VBOX_WITH_XHCI_IMPL
|
---|
1142 | VBoxDDRC_SOURCES += \
|
---|
1143 | USB/DevXHCI.cpp
|
---|
1144 | endif
|
---|
1145 | endif
|
---|
1146 |
|
---|
1147 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
1148 | VBoxDDRC_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
1149 | endif
|
---|
1150 |
|
---|
1151 | ifdef VBOX_WITH_AHCI
|
---|
1152 | VBoxDDRC_DEFS += VBOX_WITH_AHCI IN_AHCI_GC
|
---|
1153 | VBoxDDRC_SOURCES += \
|
---|
1154 | Storage/DevAHCI.cpp
|
---|
1155 | endif
|
---|
1156 |
|
---|
1157 | ifdef VBOX_WITH_BUSLOGIC
|
---|
1158 | VBoxDDRC_DEFS += VBOX_WITH_BUSLOGIC
|
---|
1159 | VBoxDDRC_SOURCES += \
|
---|
1160 | Storage/DevBusLogic.cpp
|
---|
1161 | endif
|
---|
1162 |
|
---|
1163 | ifdef VBOX_WITH_LSILOGIC
|
---|
1164 | VBoxDDRC_DEFS += VBOX_WITH_LSILOGIC
|
---|
1165 | VBoxDDRC_SOURCES += \
|
---|
1166 | Storage/DevLsiLogicSCSI.cpp
|
---|
1167 | endif
|
---|
1168 |
|
---|
1169 | if defined(VBOX_WITH_NVME_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
1170 | VBoxDDGC_DEFS += VBOX_WITH_NVME_IMPL
|
---|
1171 | VBoxDDGC_SOURCES += \
|
---|
1172 | Storage/DevNVMe.cpp
|
---|
1173 | endif
|
---|
1174 |
|
---|
1175 | if1of ($(VBOX_LDR_FMT32), pe lx)
|
---|
1176 | VBoxDDRC_LIBS = \
|
---|
1177 | $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB) \
|
---|
1178 | $(PATH_STAGE_LIB)/VMMRCImp$(VBOX_SUFF_LIB)
|
---|
1179 | endif
|
---|
1180 | $(call VBOX_SET_VER_INFO_RC,VBoxDDRC,VirtualBox VMM Devices and Drivers$(COMMA) raw-mode) # last!
|
---|
1181 | endif # VBOX_WITH_RAW_MODE
|
---|
1182 |
|
---|
1183 |
|
---|
1184 | #
|
---|
1185 | # VBoxDD2 (shared object)
|
---|
1186 | #
|
---|
1187 | VBoxDD2_TEMPLATE = VBoxR3DllWarnNoPic
|
---|
1188 | VBoxDD2_DEFS = \
|
---|
1189 | IN_VBOXDD2 \
|
---|
1190 | $(if $(VBOX_WITH_PXE_ROM),VBOX_WITH_PXE_ROM,)
|
---|
1191 | VBoxDD2_INCS := \
|
---|
1192 | build \
|
---|
1193 | $(PATH_SUB_CURRENT)
|
---|
1194 | VBoxDD2_SOURCES = \
|
---|
1195 | build/VBoxDD2.cpp
|
---|
1196 | VBoxDD2_LIBS = \
|
---|
1197 | $(PATH_STAGE_LIB)/PcBiosBin$(VBOX_SUFF_LIB) \
|
---|
1198 | $(PATH_STAGE_LIB)/VgaBiosBin$(VBOX_SUFF_LIB) \
|
---|
1199 | $(if $(VBOX_WITH_PXE_ROM), \
|
---|
1200 | $(if $(VBOX_WITH_INTEL_PXE), \
|
---|
1201 | $(PATH_STAGE_LIB)/NetBiosBin$(VBOX_SUFF_LIB), \
|
---|
1202 | $(PATH_STAGE_LIB)/iPxeBiosBin$(VBOX_SUFF_LIB)),) \
|
---|
1203 | $(LIB_RUNTIME)
|
---|
1204 | VBoxDD2_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDD2.dylib
|
---|
1205 | VBoxDD2_LDFLAGS.linux = $(VBOX_GCC_NO_UNDEFINED)
|
---|
1206 | if defined(VBOX_WITH_EFI) && !defined(VBOX_WITH_EFIFW_PACKING)
|
---|
1207 | VBoxDD_DEFS += VBOX_WITH_EFI_IN_DD2
|
---|
1208 | VBoxDD2_DEFS += VBOX_WITH_EFI
|
---|
1209 | VBoxDD2_SOURCES.x86 += EFI/DevEFI-binaries.asm
|
---|
1210 | VBoxDD2_SOURCES.amd64 += EFI/DevEFI-binaries.asm
|
---|
1211 | EFI/DevEFI-binaries.asm_ASINCS = $(PATH_STAGE)/$(INST_BIN)
|
---|
1212 | EFI/DevEFI-binaries.asm_DEPS = \
|
---|
1213 | $(PATH_STAGE)/$(INST_BIN)VBoxEFI32.fd \
|
---|
1214 | $(PATH_STAGE)/$(INST_BIN)VBoxEFI64.fd
|
---|
1215 |
|
---|
1216 | VBoxDD2_SOURCES.arm64 += EFI/DevEFI-binaries.S
|
---|
1217 | EFI/DevEFI-binaries.S_ASINCS = $(PATH_STAGE)/$(INST_BIN)
|
---|
1218 | EFI/DevEFI-binaries.S_DEPS = \
|
---|
1219 | $(PATH_STAGE)/$(INST_BIN)VBoxEFI32.fd \
|
---|
1220 | $(PATH_STAGE)/$(INST_BIN)VBoxEFI64.fd
|
---|
1221 | endif
|
---|
1222 |
|
---|
1223 | $(call VBOX_SET_VER_INFO_DLL,VBoxDD2,VirtualBox VMM Devices and Drivers 2) # (last!)
|
---|
1224 |
|
---|
1225 | #
|
---|
1226 | # VBoxDDR0 (sysmod)
|
---|
1227 | #
|
---|
1228 | if "$(KBUILD_TARGET)" != "win" && $(VBOX_GCC_VERSION_CXX) < 40600
|
---|
1229 | #
|
---|
1230 | # Disable "ISO C++ prohibits anonymous structs [-Werror=pedantic]" caused by Mesa VMSVGA driver headers
|
---|
1231 | # For GCC >= 4.6.0 the warning is disabled in DevVGA_SVGA.h
|
---|
1232 | #
|
---|
1233 | # Template used for gcc older than 4.6. (Strips away compiler options.)
|
---|
1234 | #
|
---|
1235 | TEMPLATE_VBoxDDR0OldGCC := VBoxDDR0OldGCC
|
---|
1236 | TEMPLATE_VBoxDDR0OldGCC_EXTENDS := VBoxR0
|
---|
1237 | TEMPLATE_VBoxDDR0OldGCC_CXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxDDR0OldGCC_EXTENDS)_CXXFLAGS))
|
---|
1238 |
|
---|
1239 | VBoxDDR0_TEMPLATE = VBoxDDR0OldGCC
|
---|
1240 | else
|
---|
1241 | VBoxDDR0_TEMPLATE = VBoxR0
|
---|
1242 | endif
|
---|
1243 | VBoxDDR0_DEFS = \
|
---|
1244 | $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) \
|
---|
1245 | $(if $(VBOX_WITH_IOMMU_AMD),VBOX_WITH_IOMMU_AMD,) \
|
---|
1246 | $(if $(VBOX_WITH_IOMMU_INTEL),VBOX_WITH_IOMMU_INTEL,) \
|
---|
1247 | IN_RT_R0 # - WTF is IN_RT_R0 doing here?
|
---|
1248 | VBoxDDR0_DEFS.win += VBOX_WITH_WIN_PARPORT_SUP
|
---|
1249 | VBoxDDR0_INCS = build $(VBOX_GRAPHICS_INCS)
|
---|
1250 | VBoxDDR0_INCS += $(VBOX_PATH_VMSVGA_DEVICE_INC)
|
---|
1251 | VBoxDDR0_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
|
---|
1252 | VBoxDDR0_SOURCES = \
|
---|
1253 | build/VBoxDDR0.cpp \
|
---|
1254 | Bus/DevPCI.cpp \
|
---|
1255 | Bus/DevPciIch9.cpp \
|
---|
1256 | Bus/MsiCommon.cpp \
|
---|
1257 | Bus/MsixCommon.cpp \
|
---|
1258 | $(if $(VBOX_WITH_IOMMU_AMD),Bus/DevIommuAmd.cpp,) \
|
---|
1259 | $(if $(VBOX_WITH_IOMMU_INTEL),Bus/DevIommuIntel.cpp,) \
|
---|
1260 | EFI/DevSmc.cpp \
|
---|
1261 | EFI/DevFlash.cpp \
|
---|
1262 | EFI/FlashCore.cpp \
|
---|
1263 | Graphics/DevVGA.cpp \
|
---|
1264 | Input/DevPS2.cpp \
|
---|
1265 | Input/DevPS2K.cpp \
|
---|
1266 | Input/DevPS2M.cpp \
|
---|
1267 | PC/DevACPI.cpp \
|
---|
1268 | PC/DevIoApic.cpp \
|
---|
1269 | PC/DevPit-i8254.cpp \
|
---|
1270 | PC/DevPIC.cpp \
|
---|
1271 | PC/DevRTC.cpp \
|
---|
1272 | PC/DevDMA.cpp \
|
---|
1273 | PC/DevHPET.cpp \
|
---|
1274 | Storage/DevATA.cpp \
|
---|
1275 | Network/DevPCNet.cpp \
|
---|
1276 | Network/DevDP8390.cpp \
|
---|
1277 | Network/Dev3C501.cpp \
|
---|
1278 | Serial/DevSerial.cpp \
|
---|
1279 | Serial/DevOxPcie958.cpp \
|
---|
1280 | Serial/UartCore.cpp \
|
---|
1281 | Parallel/DevParallel.cpp \
|
---|
1282 | GIMDev/GIMDev.cpp \
|
---|
1283 | VMMDev/VMMDev.cpp \
|
---|
1284 | VMMDev/VMMDevTesting.cpp \
|
---|
1285 | Network/DrvDedicatedNic.cpp \
|
---|
1286 | $(if-expr 0,Network/DrvIntNet.cpp,) # no ring-0 driver support at the moment
|
---|
1287 |
|
---|
1288 | ifdef VBOX_WITH_DTRACE_R0
|
---|
1289 | VBoxDDR0_USES += dtrace
|
---|
1290 | VBoxDDR0_SOURCES += build/VBoxDD.d
|
---|
1291 | endif
|
---|
1292 |
|
---|
1293 | VBoxDDR0_SOURCES.win += Parallel/DrvHostParallel.cpp
|
---|
1294 |
|
---|
1295 | VBoxDDR0_DEFS += \
|
---|
1296 | $(if $(VBOX_WITH_HGSMI),VBOX_WITH_HGSMI,) \
|
---|
1297 | $(if $(VBOX_WITH_WDDM),VBOX_WITH_WDDM,) \
|
---|
1298 | $(if $(VBOX_WITH_VDMA),VBOX_WITH_VDMA,) \
|
---|
1299 | $(if $(VBOXWDDM_WITH_VBVA),VBOXWDDM_WITH_VBVA,) \
|
---|
1300 | $(if $(VBOX_WITH_HP_HDA),VBOX_WITH_HP_HDA,) \
|
---|
1301 | $(if $(VBOX_WITH_INTEL_HDA),VBOX_WITH_INTEL_HDA,) \
|
---|
1302 | $(if $(VBOX_WITH_NVIDIA_HDA),VBOX_WITH_NVIDIA_HDA,)
|
---|
1303 |
|
---|
1304 | VBoxDDR0_DEFS += $(VBOX_AUDIO_DEFS)
|
---|
1305 | VBoxDDR0_SOURCES += \
|
---|
1306 | Audio/DevHda.cpp \
|
---|
1307 | Audio/DevHdaStream.cpp \
|
---|
1308 | Audio/DevIchAc97.cpp
|
---|
1309 |
|
---|
1310 | ifdef VBOX_WITH_E1000
|
---|
1311 | VBoxDDR0_DEFS += VBOX_WITH_E1000
|
---|
1312 | VBoxDDR0_SOURCES += \
|
---|
1313 | Network/DevE1000.cpp \
|
---|
1314 | Network/DevE1000Phy.cpp
|
---|
1315 | endif
|
---|
1316 |
|
---|
1317 | ifdef VBOX_WITH_VIRTIO
|
---|
1318 | VBoxDDR0_DEFS += VBOX_WITH_VIRTIO
|
---|
1319 | VBoxDDR0_SOURCES += \
|
---|
1320 | VirtIO/VirtioCore.cpp \
|
---|
1321 | Network/DevVirtioNet.cpp
|
---|
1322 | endif
|
---|
1323 |
|
---|
1324 | if 0 #def VBOX_WITH_NETSHAPER - no ring-0 driver support at the moment.
|
---|
1325 | VBoxDDR0_DEFS += VBOX_WITH_NETSHAPER
|
---|
1326 | VBoxDDR0_SOURCES += \
|
---|
1327 | Network/DrvNetShaper.cpp
|
---|
1328 | endif
|
---|
1329 |
|
---|
1330 | ifdef VBOX_WITH_VMSVGA
|
---|
1331 | VBoxDDR0_DEFS += VBOX_WITH_VMSVGA
|
---|
1332 | VBoxDDR0_SOURCES += \
|
---|
1333 | Graphics/DevVGA-SVGA.cpp
|
---|
1334 | endif
|
---|
1335 | ifdef VBOX_WITH_VMSVGA3D
|
---|
1336 | VBoxDDR0_DEFS += VBOX_WITH_VMSVGA3D
|
---|
1337 | endif
|
---|
1338 |
|
---|
1339 | ifdef VBOX_WITH_VUSB
|
---|
1340 | VBoxDDR0_DEFS += VBOX_WITH_VUSB
|
---|
1341 | VBoxDDR0_SOURCES += \
|
---|
1342 | USB/DevOHCI.cpp
|
---|
1343 | endif
|
---|
1344 | ifdef VBOX_WITH_USB
|
---|
1345 | VBoxDDR0_DEFS += VBOX_WITH_USB
|
---|
1346 | if defined(VBOX_WITH_EHCI_IMPL)
|
---|
1347 | VBoxDDR0_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
1348 | VBoxDDR0_SOURCES += \
|
---|
1349 | USB/DevEHCI.cpp
|
---|
1350 | endif
|
---|
1351 | if defined(VBOX_WITH_XHCI_IMPL)
|
---|
1352 | VBoxDDR0_DEFS += VBOX_WITH_XHCI_IMPL
|
---|
1353 | VBoxDDR0_SOURCES += \
|
---|
1354 | USB/DevXHCI.cpp
|
---|
1355 | endif
|
---|
1356 | endif
|
---|
1357 |
|
---|
1358 | ifdef VBOX_WITH_EFI
|
---|
1359 | VBoxDDR0_DEFS += VBOX_WITH_EFI
|
---|
1360 | VBoxDDR0_SOURCES += EFI/DevEFI.cpp
|
---|
1361 | endif
|
---|
1362 |
|
---|
1363 | if defined(VBOX_WITH_PCI_PASSTHROUGH_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
1364 | VBoxDDR0_SOURCES += \
|
---|
1365 | Bus/DevPciRaw.cpp
|
---|
1366 | endif
|
---|
1367 |
|
---|
1368 | ifdef VBOX_WITH_AHCI
|
---|
1369 | VBoxDDR0_DEFS += VBOX_WITH_AHCI IN_AHCI_R0
|
---|
1370 | VBoxDDR0_SOURCES += \
|
---|
1371 | Storage/DevAHCI.cpp
|
---|
1372 | endif
|
---|
1373 |
|
---|
1374 | ifdef VBOX_WITH_BUSLOGIC
|
---|
1375 | VBoxDDR0_DEFS += VBOX_WITH_BUSLOGIC
|
---|
1376 | VBoxDDR0_SOURCES += \
|
---|
1377 | Storage/DevBusLogic.cpp
|
---|
1378 | endif
|
---|
1379 |
|
---|
1380 | ifdef VBOX_WITH_LSILOGIC
|
---|
1381 | VBoxDDR0_DEFS += VBOX_WITH_LSILOGIC
|
---|
1382 | VBoxDDR0_SOURCES += \
|
---|
1383 | Storage/DevLsiLogicSCSI.cpp
|
---|
1384 | endif
|
---|
1385 |
|
---|
1386 | if defined(VBOX_WITH_NVME_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
1387 | VBoxDDR0_DEFS += VBOX_WITH_NVME_IMPL
|
---|
1388 | VBoxDDR0_SOURCES += \
|
---|
1389 | Storage/DevNVMe.cpp
|
---|
1390 | endif
|
---|
1391 |
|
---|
1392 | if defined (VBOX_WITH_VIRTIO) && defined(VBOX_WITH_VIRTIO_SCSI)
|
---|
1393 | VBoxDDR0_DEFS += VBOX_WITH_VIRTIO_SCSI
|
---|
1394 | VBoxDDR0_SOURCES += \
|
---|
1395 | Storage/DevVirtioSCSI.cpp
|
---|
1396 | endif
|
---|
1397 |
|
---|
1398 | if defined(VBOX_WITH_TPM)
|
---|
1399 | VBoxDDR0_DEFS += VBOX_WITH_TPM
|
---|
1400 | VBoxDDR0_SOURCES += \
|
---|
1401 | Security/DevTpm.cpp
|
---|
1402 | endif
|
---|
1403 |
|
---|
1404 | ifdef VBOX_WITH_HGSMI
|
---|
1405 | VBoxDDR0_DEFS += VBOX_WITH_HGSMI
|
---|
1406 | endif
|
---|
1407 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
1408 | VBoxDDR0_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
1409 | endif
|
---|
1410 |
|
---|
1411 | if1of ($(VBOX_LDR_FMT), pe lx)
|
---|
1412 | VBoxDDR0_LIBS = \
|
---|
1413 | $(PATH_STAGE_LIB)/VMMR0Imp$(VBOX_SUFF_LIB)
|
---|
1414 | endif
|
---|
1415 | VBoxDDR0_LIBS += \
|
---|
1416 | $(VBOX_LIB_SUPR0)
|
---|
1417 |
|
---|
1418 | $(call VBOX_SET_VER_INFO_R0,VBoxDDR0,VirtualBox VMM Devices and Drivers$(COMMA) ring-0) # (last!)
|
---|
1419 |
|
---|
1420 | ifdef VBOX_WITH_KMOD_WRAPPED_R0_MODS
|
---|
1421 | # Wrapper kmod for VBoxDDR0.r0
|
---|
1422 | INSTALLS.linux += vbox_vboxddr0-src
|
---|
1423 | vbox_vboxddr0-src_INST = bin/src/vbox_vboxddr0/
|
---|
1424 | vbox_vboxddr0-src_SYMLINKS = \
|
---|
1425 | SUPWrapperMod-linux.c=>../common/SUPWrapperMod-linux.c \
|
---|
1426 | Makefile-wrapper.gmk=>../common/Makefile-wrapper.gmk
|
---|
1427 | vbox_vboxddr0-src_SOURCES = \
|
---|
1428 | $(PATH_ROOT)/src/VBox/HostDrivers/Support/linux/Makefile-vbox_vboxddr0.gmk=>Makefile \
|
---|
1429 | $(VBoxDDR0_0_OUTDIR)/VBoxDDR0.r0=>VBoxDDR0.r0 \
|
---|
1430 | $(VBoxDDR0_0_OUTDIR)/VBoxDDR0.debug=>VBoxDDR0.debug
|
---|
1431 | endif
|
---|
1432 |
|
---|
1433 | #
|
---|
1434 | # Ring-0 Services (library, linked into VMMR0.r0)
|
---|
1435 | #
|
---|
1436 | ServicesR0_TEMPLATE = VBoxR0
|
---|
1437 | ServicesR0_DEFS = VBOX_IN_VMM IN_INTNET_R0 IN_RT_R0 $(VMM_COMMON_DEFS) \
|
---|
1438 | $(if $(VBOX_WITH_PCI_PASSTHROUGH),IN_PCIRAW_R0,) \
|
---|
1439 | $(if $(VBOX_WITH_NAT_SERVICE),VBOX_WITH_NAT_SERVICE,)
|
---|
1440 | ServicesR0_SOURCES = \
|
---|
1441 | Network/SrvIntNetR0.cpp
|
---|
1442 | # $(if $(VBOX_WITH_PCI_PASSTHROUGH),Bus/SrvPciRawR0.cpp,)
|
---|
1443 | Network/SrvIntNetR0.cpp_CXXFLAGS := $(if-expr $(KBUILD_TARGET) == "win",,$(VBOX_GCC_Wno-array_bounds))
|
---|
1444 |
|
---|
1445 |
|
---|
1446 | #
|
---|
1447 | # Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
|
---|
1448 | #
|
---|
1449 | ifdef VBOX_WITH_TESTCASES
|
---|
1450 | PROGRAMS += tstIntNetR0
|
---|
1451 | tstIntNetR0_TEMPLATE = VBoxR3TstExe
|
---|
1452 | tstIntNetR0_DEFS = IN_INTNET_R0
|
---|
1453 | tstIntNetR0_SOURCES = \
|
---|
1454 | Network/testcase/tstIntNetR0.cpp
|
---|
1455 | ifneq ($(KBUILD_TARGET),win)
|
---|
1456 | Network/testcase/tstIntNetR0.cpp_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
|
---|
1457 | endif
|
---|
1458 | endif
|
---|
1459 |
|
---|
1460 |
|
---|
1461 | #
|
---|
1462 | # Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
|
---|
1463 | #
|
---|
1464 | ifdef VBOX_WITH_TESTCASES
|
---|
1465 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
|
---|
1466 | PROGRAMS += tstIntNetHardened-1
|
---|
1467 | tstIntNetHardened-1_TEMPLATE = VBoxR3HardenedTstExe
|
---|
1468 | tstIntNetHardened-1_NAME = tstIntNet-1
|
---|
1469 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
1470 | tstIntNetHardened-1_DEFS = PROGRAM_NAME_STR="tstIntNet-1"
|
---|
1471 | else
|
---|
1472 | tstIntNetHardened-1_DEFS = PROGRAM_NAME_STR=\"tstIntNet-1\"
|
---|
1473 | endif
|
---|
1474 | tstIntNetHardened-1_SOURCES = ../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
|
---|
1475 |
|
---|
1476 | DLLS += tstIntNet-1
|
---|
1477 | tstIntNet-1_TEMPLATE = VBoxR3HardenedTstDll
|
---|
1478 | else
|
---|
1479 | PROGRAMS += tstIntNet-1
|
---|
1480 | tstIntNet-1_TEMPLATE = VBoxR3TstExe
|
---|
1481 | endif
|
---|
1482 | tstIntNet-1_SOURCES = \
|
---|
1483 | Network/testcase/tstIntNet-1.cpp \
|
---|
1484 | Network/Pcap.cpp
|
---|
1485 | endif
|
---|
1486 |
|
---|
1487 |
|
---|
1488 | #
|
---|
1489 | # EEPROM device unit test requires cppunit
|
---|
1490 | #
|
---|
1491 | if defined(VBOX_WITH_E1000) && defined(VBOX_WITH_TESTCASES)
|
---|
1492 | PROGRAMS += tstDevEEPROM
|
---|
1493 | tstDevEEPROM_TEMPLATE = VBoxR3TstExe
|
---|
1494 | tstDevEEPROM_SOURCES = \
|
---|
1495 | Network/testcase/tstDevEEPROM.cpp \
|
---|
1496 | Network/DevEEPROM.cpp
|
---|
1497 |
|
---|
1498 | PROGRAMS += tstDevPhy
|
---|
1499 | tstDevPhy_TEMPLATE = VBoxR3TstExe
|
---|
1500 | tstDevPhy_DEFS = PHY_UNIT_TEST
|
---|
1501 | tstDevPhy_SOURCES = \
|
---|
1502 | Network/testcase/tstDevPhy.cpp \
|
---|
1503 | Network/DevE1000Phy.cpp
|
---|
1504 | endif
|
---|
1505 |
|
---|
1506 | #
|
---|
1507 | # Apple SMC Utility.
|
---|
1508 | #
|
---|
1509 | ifdef VBOX_WITH_TESTCASES
|
---|
1510 | PROGRAMS.darwin += VBoxSmcUtil-darwin
|
---|
1511 | VBoxSmcUtil-darwin_TEMPLATE = VBoxR3TstExe
|
---|
1512 | VBoxSmcUtil-darwin_SOURCES = EFI/VBoxSmcUtil-darwin.cpp
|
---|
1513 | VBoxSmcUtil-darwin_LDFLAGS = -framework IOKit
|
---|
1514 | endif
|
---|
1515 |
|
---|
1516 | #
|
---|
1517 | # PDM device testcase framework.
|
---|
1518 | #
|
---|
1519 | ifdef VBOX_WITH_TESTCASES_TSTDEV
|
---|
1520 | PROGRAMS += tstDevice
|
---|
1521 | tstDevice_TEMPLATE = VBoxR3TstExe
|
---|
1522 | tstDevice_DEFS += IN_SUP_R3
|
---|
1523 | tstDevice_SOURCES = \
|
---|
1524 | testcase/tstDevice.cpp \
|
---|
1525 | testcase/tstDeviceR0.cpp \
|
---|
1526 | testcase/tstDeviceCfg.cpp \
|
---|
1527 | testcase/tstDevicePdmDevHlp.cpp \
|
---|
1528 | testcase/tstDevicePdmDevHlpR0.cpp \
|
---|
1529 | testcase/tstDevicePdmThread.cpp \
|
---|
1530 | testcase/tstDeviceSsmFuzz.cpp \
|
---|
1531 | testcase/tstDeviceSsmLoadDbg.cpp \
|
---|
1532 | testcase/tstDeviceIoFuzz.cpp
|
---|
1533 | endif
|
---|
1534 |
|
---|
1535 | endif # !VBOX_ONLY_EXTPACKS && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
1536 |
|
---|
1537 |
|
---|
1538 | if defined(VBOX_WITH_EXTPACK) && defined(VBOX_WITH_EXTPACK_PUEL) && defined(VBOX_WITH_EXTPACK_PUEL_BUILD) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
1539 | if defined(VBOX_WITH_PCI_PASSTHROUGH_IMPL)
|
---|
1540 | DLLS += VBoxPciRawR3
|
---|
1541 | VBoxPciRawR3_TEMPLATE = VBoxR3ExtPackPuel
|
---|
1542 | VBoxPciRawR3_SOURCES = Bus/DevPciRaw.cpp
|
---|
1543 | $(call VBOX_SET_VER_INFO_DLL,VBoxPciRawR3,PUEL Extension Pack - PCI Passthrough Device)
|
---|
1544 |
|
---|
1545 | DLLS += VBoxPciRawDrv
|
---|
1546 | VBoxPciRawDrv_TEMPLATE = VBoxR3ExtPackPuel
|
---|
1547 | VBoxPciRawDrv_SOURCES = Bus/DrvPciRaw.cpp
|
---|
1548 | $(call VBOX_SET_VER_INFO_DLL,VBoxPciRawDrv,PUEL Extension Pack - PCI Passthrough Driver)
|
---|
1549 |
|
---|
1550 | $(if-expr defined(VBOX_WITH_VBOXR0_AS_DLL),DLLS,SYSMODS) += VBoxPciRawR0
|
---|
1551 | VBoxPciRawR0_TEMPLATE = VBoxR0ExtPackPuel
|
---|
1552 | VBoxPciRawR0_SOURCES = Bus/DevPciRaw.cpp
|
---|
1553 | $(call VBOX_SET_VER_INFO_R0,VBoxPciRawR0,PUEL Extension Pack - PCI Passthrough Driver$(COMMA) ring-0)
|
---|
1554 |
|
---|
1555 | Bus/DevPciRaw.cpp_INCS = Bus
|
---|
1556 | endif
|
---|
1557 |
|
---|
1558 | #
|
---|
1559 | # The NVMe Extension Pack Modules.
|
---|
1560 | #
|
---|
1561 | if defined(VBOX_WITH_NVME_IMPL)
|
---|
1562 | DLLS += VBoxNvmeR3
|
---|
1563 | VBoxNvmeR3_TEMPLATE = VBoxR3ExtPackPuel
|
---|
1564 | VBoxNvmeR3_SOURCES = \
|
---|
1565 | Storage/DevNVMe.cpp
|
---|
1566 | $(call VBOX_SET_VER_INFO_DLL,VBoxNvmeR3,PUEL Extension Pack - NVMe Device)
|
---|
1567 |
|
---|
1568 | ifdef VBOX_WITH_R0_MODULES
|
---|
1569 | ifdef VBOX_WITH_VBOXR0_AS_DLL
|
---|
1570 | DLLS += VBoxNvmeR0
|
---|
1571 | else
|
---|
1572 | SYSMODS += VBoxNvmeR0
|
---|
1573 | endif
|
---|
1574 | VBoxNvmeR0_TEMPLATE = VBoxR0ExtPackPuel
|
---|
1575 | VBoxNvmeR0_SOURCES = \
|
---|
1576 | Storage/DevNVMe.cpp
|
---|
1577 | $(call VBOX_SET_VER_INFO_R0,VBoxNvmeR0,PUEL Extension Pack - NVMe Device$(COMMA) ring-0)
|
---|
1578 | ifdef VBOX_WITH_KMOD_WRAPPED_R0_MODS # Wrapper kmod for VBoxEhciR0.r0
|
---|
1579 | INSTALLS.linux += vbox_vboxnvmer0-src
|
---|
1580 | vbox_vboxnvmer0-src_INST = bin/src/vbox_vboxnvmer0/
|
---|
1581 | vbox_vboxnvmer0-src_SYMLINKS = \
|
---|
1582 | SUPWrapperMod-linux.c=>../common/SUPWrapperMod-linux.c \
|
---|
1583 | Makefile-wrapper.gmk=>../common/Makefile-wrapper.gmk
|
---|
1584 | vbox_vboxnvmer0-src_SOURCES = \
|
---|
1585 | $(PATH_ROOT)/src/VBox/HostDrivers/Support/linux/Makefile-vbox_vboxnvmer0.gmk=>Makefile \
|
---|
1586 | $(VBoxNvmeR0_0_OUTDIR)/VBoxNvmeR0.r0=>VBoxNvmeR0.r0 \
|
---|
1587 | $(VBoxNvmeR0_0_OUTDIR)/VBoxNvmeR0.debug=>VBoxNvmeR0.debug
|
---|
1588 | endif
|
---|
1589 | endif
|
---|
1590 |
|
---|
1591 | ifdef VBOX_WITH_RAW_MODE
|
---|
1592 | SYSMODS += VBoxNvmeRC
|
---|
1593 | VBoxNvmeRC_TEMPLATE = VBoxRcExtPackPuel
|
---|
1594 | VBoxNvmeRC_SOURCES = \
|
---|
1595 | Storage/DevNVMe.cpp
|
---|
1596 | $(call VBOX_SET_VER_INFO_RC,VBoxNvmeRC,PUEL Extension Pack - NVMe Device$(COMMA) raw-mode)
|
---|
1597 | endif
|
---|
1598 |
|
---|
1599 | # Hacky but MSI support *must* be enabled
|
---|
1600 | ifdef VBOX_WITH_MSI_DEVICES
|
---|
1601 | VBoxNvmeR3_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
1602 | VBoxNvmeR0_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
1603 | VBoxNvmeRC_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
1604 | endif
|
---|
1605 |
|
---|
1606 | endif
|
---|
1607 |
|
---|
1608 |
|
---|
1609 | #
|
---|
1610 | # The Intel PXE ROM.
|
---|
1611 | #
|
---|
1612 | INSTALLS += VBoxExtPackPuelInsRoms
|
---|
1613 | VBoxExtPackPuelInsRoms_TEMPLATE = VBoxInsExtPackPuel
|
---|
1614 | ifdef PXE_EXPERIMENTAL_BUILD_SETUP
|
---|
1615 | VBoxExtPackPuelInsRoms_SOURCES = $(PATH_OUT)/obj/NetBiosBin/NetBiosBin.rom=>PXE-Intel.rom
|
---|
1616 | else
|
---|
1617 | VBoxExtPackPuelInsRoms_SOURCES = PC/PXE/PXE-Intel.rom=>PXE-Intel.rom
|
---|
1618 | endif
|
---|
1619 | endif # VBOX_WITH_EXTPACK_PUEL && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
1620 |
|
---|
1621 |
|
---|
1622 | if defined(VBOX_WITH_VMSVGA3D) && !defined(VBOX_ONLY_EXTPACKS) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
1623 | #
|
---|
1624 | # Template used for VBoxSVGA3D. (Strips away compiler options.)
|
---|
1625 | #
|
---|
1626 | TEMPLATE_VBoxSVGA3D := VBoxSVGA3D
|
---|
1627 | TEMPLATE_VBoxSVGA3D_EXTENDS := VBoxR3Dll
|
---|
1628 | TEMPLATE_VBoxSVGA3D_CFLAGS = $(filter-out -pedantic -Wstrict-prototypes,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CFLAGS))
|
---|
1629 | if "$(VBOX_VCC_TOOL_STEM)" >= "VCC140"
|
---|
1630 | # -wd4777: glsl_shader.c(1542): warning C4777: 'sprintf' : format string '%u' requires an argument of type 'unsigned int', but variadic argument 2 has type 'DWORD'
|
---|
1631 | TEMPLATE_VBoxSVGA3D_CFLAGS.win = $(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CFLAGS.win) \
|
---|
1632 | -wd4777
|
---|
1633 | endif
|
---|
1634 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
1635 | TEMPLATE_VBoxSVGA3D_CXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CXXFLAGS)) $(VBOX_GCC_Wno-deprecated-declarations)
|
---|
1636 | TEMPLATE_VBoxSVGA3D_OBJCFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_OBJCFLAGS)) $(VBOX_GCC_Wno-deprecated-declarations)
|
---|
1637 | TEMPLATE_VBoxSVGA3D_OBJCXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_OBJCXXFLAGS)) $(VBOX_GCC_Wno-deprecated-declarations)
|
---|
1638 | else
|
---|
1639 | TEMPLATE_VBoxSVGA3D_CXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CXXFLAGS))
|
---|
1640 | TEMPLATE_VBoxSVGA3D_OBJCFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_OBJCFLAGS))
|
---|
1641 | TEMPLATE_VBoxSVGA3D_OBJCXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_OBJCXXFLAGS))
|
---|
1642 | endif
|
---|
1643 | TEMPLATE_VBoxSVGA3D_LDFLAGS.darwin = $(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_LDFLAGS.darwin) \
|
---|
1644 | -framework AppKit -framework OpenGL -framework IOKit
|
---|
1645 |
|
---|
1646 |
|
---|
1647 | #
|
---|
1648 | # The shader library used by the SVGA3D implementation.
|
---|
1649 | #
|
---|
1650 | DLLS += VBoxSVGA3D
|
---|
1651 | VBoxSVGA3D_TEMPLATE = VBoxSVGA3D
|
---|
1652 | VBoxSVGA3D_SDKS = ReorderCompilerIncs
|
---|
1653 | VBoxSVGA3D_DEFS = \
|
---|
1654 | __WINESRC__ \
|
---|
1655 | _REENTRANT \
|
---|
1656 | WINE_NOWINSOCK \
|
---|
1657 | VBOX_WITH_VMSVGA \
|
---|
1658 | VBOX_WITH_VMSVGA3D \
|
---|
1659 | _USE_MATH_DEFINES \
|
---|
1660 | VBOX_USING_WINDDK_W7_OR_LATER \
|
---|
1661 | VBOX_WINE_WITH_SINGLE_SWAPCHAIN_CONTEXT \
|
---|
1662 | IN_vmsvgashader_STATIC \
|
---|
1663 | IN_VMSVGA3D \
|
---|
1664 | VBOX_WINE_WITH_IPRT
|
---|
1665 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
1666 | VBoxSVGA3D_DEFS += \
|
---|
1667 | WINE_UNICODE_API= \
|
---|
1668 | DLLDIR="" \
|
---|
1669 | BINDIR="" \
|
---|
1670 | LIB_TO_BINDIR="" \
|
---|
1671 | LIB_TO_DLLDIR="" \
|
---|
1672 | BIN_TO_DLLDIR="" \
|
---|
1673 | LIB_TO_DATADIR="" \
|
---|
1674 | BIN_TO_DATADIR=""
|
---|
1675 | else
|
---|
1676 | VBoxSVGA3D_DEFS += \
|
---|
1677 | WINE_UNICODE_API="" \
|
---|
1678 | DLLDIR=\"\" \
|
---|
1679 | BINDIR=\"\" \
|
---|
1680 | LIB_TO_BINDIR=\"\" \
|
---|
1681 | LIB_TO_DLLDIR=\"\" \
|
---|
1682 | BIN_TO_DLLDIR=\"\" \
|
---|
1683 | LIB_TO_DATADIR=\"\" \
|
---|
1684 | BIN_TO_DATADIR=\"\"
|
---|
1685 | endif
|
---|
1686 | if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS)
|
---|
1687 | VBoxSVGA3D_DEFS += WINE_NO_DEBUG_MSGS
|
---|
1688 | endif
|
---|
1689 | VBoxSVGA3D_DEFS.x86 += __i386__
|
---|
1690 | VBoxSVGA3D_DEFS.amd64 += __x86_64__
|
---|
1691 | VBoxSVGA3D_DEFS.win += \
|
---|
1692 | USE_WIN32_OPENGL \
|
---|
1693 | VBOX_WINE_WITHOUT_LIBWINE
|
---|
1694 | VBoxSVGA3D_DEFS.darwin += VBOX_VMSVGA3D_DUAL_OPENGL_PROFILE
|
---|
1695 | if 0 # Use the OpenGL 3.2 Core profile (VBoxSVGA3D_DEFS.darwin).
|
---|
1696 | VBoxSVGA3D_DEFS.darwin += VBOX_VMSVGA3D_DEFAULT_OGL_PROFILE=3.2 VBOX_VMSVGA3D_OTHER_OGL_PROFILE=2.1
|
---|
1697 | else
|
---|
1698 | VBoxSVGA3D_DEFS.darwin += VBOX_VMSVGA3D_DEFAULT_OGL_PROFILE=2.1 VBOX_VMSVGA3D_OTHER_OGL_PROFILE=3.2
|
---|
1699 | endif
|
---|
1700 |
|
---|
1701 | # WINE relies on a gcc 4.4 feature but we have 4.2 on Darwin
|
---|
1702 | VBoxSVGA3D_DEFS.darwin += \
|
---|
1703 | __builtin_ms_va_list=va_list \
|
---|
1704 | __stdcall= \
|
---|
1705 | ms_abi=
|
---|
1706 | VBoxSVGA3D_INCS = $(VBOX_GRAPHICS_INCS)
|
---|
1707 | VBoxSVGA3D_INCS.win := \
|
---|
1708 | Graphics/shaderlib/libWineStub/include
|
---|
1709 | VBoxSVGA3D_INCS.linux := \
|
---|
1710 | Graphics/shaderlib/wine/include
|
---|
1711 | VBoxSVGA3D_INCS.darwin := \
|
---|
1712 | Graphics/ \
|
---|
1713 | Graphics/shaderlib/wine/include
|
---|
1714 | VBoxSVGA3D_SOURCES := \
|
---|
1715 | Graphics/shaderlib/glsl_shader.c \
|
---|
1716 | Graphics/shaderlib/shader.c \
|
---|
1717 | Graphics/shaderlib/shader_sm1.c \
|
---|
1718 | Graphics/shaderlib/shader_sm4.c \
|
---|
1719 | Graphics/shaderlib/shaderapi.c \
|
---|
1720 | Graphics/shaderlib/utils.c \
|
---|
1721 | Graphics/shaderlib/stateblock.c \
|
---|
1722 | Graphics/shaderlib/directx.c \
|
---|
1723 | Graphics/shaderlib/libWineStub/debug.c
|
---|
1724 | VBoxSVGA3D_LIBS = $(LIB_RUNTIME)
|
---|
1725 | VBoxSVGA3D_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
|
---|
1726 | if1of ($(KBUILD_TARGET), solaris linux freebsd)
|
---|
1727 | VBoxSVGA3D_LIBS += GL
|
---|
1728 | endif
|
---|
1729 | VBoxSVGA3D_LDFLAGS.darwin += \
|
---|
1730 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSVGA3D.dylib
|
---|
1731 | $(call VBOX_SET_VER_INFO_DLL,VBoxSVGA3D,VirtualBox VMSVGA 3D)
|
---|
1732 | # -wd4100: unreferenced format parameter
|
---|
1733 | # -wd4204: nonstandard extension used : non-constant initializer
|
---|
1734 | # -wd4245: '=' : conversion from 'int' to 'DWORD', signed/unsigned mismatch
|
---|
1735 | # -wd4305: 'function' : truncation from 'double' to 'GLclampf'
|
---|
1736 | VBoxSVGA3D_CFLAGS.win = -wd4100 -wd4204 -wd4245 -wd4305
|
---|
1737 | ifneq ($(KBUILD_TARGET),win)
|
---|
1738 | VBoxSVGA3D_CFLAGS += -Wno-unused-parameter -Wno-unused-function
|
---|
1739 | endif
|
---|
1740 |
|
---|
1741 | #
|
---|
1742 | # The Objective C code needs to be separate since the shaderlib redefines most
|
---|
1743 | # GL functions as pointers, making it impossible to mix with code calling OpenGL
|
---|
1744 | # functions directly. This module must be compiled for 10.7 or later, thus it
|
---|
1745 | # needs to be separate from VBoxDD.dylib, or at least that's our belief...
|
---|
1746 | #
|
---|
1747 | DLLS.darwin += VBoxSVGA3DObjC
|
---|
1748 | VBoxSVGA3DObjC_TEMPLATE = VBoxSVGA3D
|
---|
1749 | VBoxSVGA3DObjC_DEFS = $(VBoxSVGA3D_DEFS) IN_VMSVGA3DCOCOA
|
---|
1750 | VBoxSVGA3DObjC_DEFS.x86 = __i386__
|
---|
1751 | VBoxSVGA3DObjC_DEFS.amd64 = __x86_64__
|
---|
1752 | VBoxSVGA3DObjC_DEFS.darwin = $(VBoxSVGA3D_DEFS.darwin)
|
---|
1753 | VBoxSVGA3DObjC_INCS = $(VBoxSVGA3D_INCS)
|
---|
1754 | VBoxSVGA3DObjC_INCS.darwin = $(VBoxSVGA3D_INCS.darwin)
|
---|
1755 | VBoxSVGA3DObjC_LIBS = $(LIB_RUNTIME)
|
---|
1756 | VBoxSVGA3DObjC_LDFLAGS.darwin = \
|
---|
1757 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSVGA3DObjC.dylib \
|
---|
1758 | -framework OpenGL
|
---|
1759 | VBoxSVGA3DObjC_SOURCES.darwin += \
|
---|
1760 | Graphics/DevVGA-SVGA3d-cocoa.m
|
---|
1761 |
|
---|
1762 |
|
---|
1763 | endif # defined(VBOX_WITH_VMSVGA3D) && !defined(VBOX_ONLY_EXTPACKS) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
1764 |
|
---|
1765 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|