VirtualBox

source: vbox/trunk/src/VBox/Devices/Makefile.kmk@ 88956

Last change on this file since 88956 was 88926, checked in by vboxsync, 4 years ago

Audio/VaKit: Initial commit of VKAT, heavily work in progress [build fix]. bugref:10008

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