VirtualBox

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

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

Audio: Renamed host audio files to the DrvHostAudioXxxx scheme. [fix] bugref:9890

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