VirtualBox

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

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

Missing files are in place.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 40.7 KB
Line 
1# $Id: Makefile.kmk 53737 2015-01-05 13:22:50Z vboxsync $
2## @file
3# Top-level sub-makefile for the devices, drivers and services.
4#
5
6#
7# Copyright (C) 2006-2014 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.
27include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
28ifdef VBOX_WITH_PDM_AUDIO_DRIVER
29 include $(PATH_SUB_CURRENT)/Audio/testcase/Makefile.kmk
30endif
31include $(PATH_SUB_CURRENT)/Input/testcase/Makefile.kmk
32if defined(VBOX_WITH_INTEL_PXE) || defined(VBOX_ONLY_EXTPACKS)
33 include $(PATH_SUB_CURRENT)/PC/PXE/Makefile.kmk
34else if defined(VBOX_WITH_PXE_ROM)
35 if !defined(VBOX_WITHOUT_IPXE)
36 include $(PATH_SUB_CURRENT)/PC/ipxe/Makefile.kmk
37 endif
38endif
39if !defined(VBOX_ONLY_EXTPACKS) # Goes on almost to the end of the file.
40 include $(PATH_SUB_CURRENT)/BiosCommonCode/Makefile.kmk
41 include $(PATH_SUB_CURRENT)/PC/BIOS/Makefile.kmk
42 include $(PATH_SUB_CURRENT)/Graphics/BIOS/Makefile.kmk
43
44 #
45 # Main targets.
46 #
47 LIBRARIES += ServicesR0
48 DLLS += VBoxDDU VBoxDD VBoxDD2
49 SYSMODS += VBoxDDR0 VBoxDD2R0
50 ifdef VBOX_WITH_RAW_MODE
51 SYSMODS += VBoxDDGC VBoxDD2GC
52 endif
53
54
55 #
56 # VBoxDDU (shared object)
57 #
58 VBoxDDU_TEMPLATE = VBoxR3DllWarnNoPic
59 VBoxDDU_NAME = $(basename $(notdir $(LIB_DDU)))
60 VBoxDDU_INST.darwin = $(INST_DLL) $(INST_TESTCASE)
61 VBoxDDU_DEFS = IN_VBOXDDU
62 ifdef VBOX_WITH_VUSB
63 VBoxDDU_DEFS += VBOX_WITH_VUSB
64 endif
65 ifdef VBOX_WITH_USB
66 VBoxDDU_DEFS += VBOX_WITH_USB IN_USBLIB
67 VBoxDDU_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
68 if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
69 VBoxDDU_DEFS += VBOX_WITH_EHCI_IMPL
70 endif
71 if defined(VBOX_WITH_XHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
72 VBoxDDU_DEFS += VBOX_WITH_XHCI_IMPL
73 endif
74 ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
75 VBoxDDU_DEFS.darwin += VBOX_WITH_NEW_USB_CODE_ON_DARWIN
76 endif
77 else
78 VBoxDDU_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK)
79 endif
80 VBoxDDU_SOURCES = \
81 Storage/VSCSI/VSCSIDevice.cpp \
82 Storage/VSCSI/VSCSILun.cpp \
83 Storage/VSCSI/VSCSILunSbc.cpp \
84 Storage/VSCSI/VSCSILunMmc.cpp \
85 Storage/VSCSI/VSCSISense.cpp \
86 Storage/VSCSI/VSCSIIoReq.cpp \
87 Storage/VSCSI/VSCSIVpdPagePool.cpp \
88 build/VBoxDDUDeps.cpp
89 ifdef VBOX_WITH_USB
90 VBoxDDU_INCS.os2 += \
91 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
92 endif
93 VBoxDDU_LIBS = \
94 $(LIB_RUNTIME) \
95 $(PATH_STAGE_LIB)/StorageLib$(VBOX_SUFF_LIB)
96 ifdef VBOX_WITH_USB
97 VBoxDDU_LIBS += \
98 $(PATH_STAGE_LIB)/USBLib$(VBOX_SUFF_LIB)
99 VBoxDDU_LIBS.win += \
100 $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB) \
101 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/Newdev.lib
102 endif
103 VBoxDDU_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDDU.dylib
104 ifdef VBOX_WITH_USB
105 ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
106 VBoxDDU_LDFLAGS.darwin += -framework IOKit
107 endif
108 endif
109
110 VBoxDDU_LDFLAGS.linux = -Wl,--no-undefined
111
112 #
113 # VBoxDD (shared object)
114 #
115 VBoxDD_TEMPLATE = VBoxR3DllWarnNoPic
116 VBoxDD_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
117 Storage/DrvHostDVD.cpp_SDKS.win = ReorderCompilerIncs $(VBOX_WINDDK)
118 VBoxDD_INCS = \
119 build \
120 Network/slirp
121 VBoxDD_DEFS = \
122 VBOX_ACPI \
123 VBOX_HGCM_HOST_CODE \
124 $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) \
125 $(if $(VBOX_BIOS_DMI_FALLBACK),VBOX_BIOS_DMI_FALLBACK,) \
126 VBOX_WITH_DMI_CHASSIS \
127 VBOX_WITH_DMI_OEMSTRINGS
128 VBoxDD_DEFS.win = _WIN32_WINNT=0x0510
129 ifeq ($(KBUILD_TARGET_ARCH),x86)
130 VBoxDD_DEFS.darwin = VBOX_WITH_2X_4GB_ADDR_SPACE
131 endif
132 VBoxDD_SOURCES = \
133 build/VBoxDD.cpp \
134 \
135 Input/DevPS2.cpp \
136 Input/PS2K.cpp \
137 Input/PS2M.cpp \
138 Input/UsbKbd.cpp \
139 Input/UsbMouse.cpp \
140 Bus/DevPCI.cpp \
141 Bus/DevPciIch9.cpp \
142 Bus/MsiCommon.cpp \
143 Bus/MsixCommon.cpp \
144 EFI/DevSmc.cpp \
145 Graphics/DevVGA.cpp \
146 Storage/DevATA.cpp \
147 PC/DevPit-i8254.cpp \
148 PC/DevPIC.cpp \
149 PC/DevACPI.cpp \
150 PC/ACPI/VBoxAcpi.cpp \
151 PC/DevRTC.cpp \
152 PC/DevPcBios.cpp \
153 PC/DevFwCommon.cpp \
154 PC/DevPcArch.cpp \
155 GIMDev/GIMDev.cpp \
156 VMMDev/VMMDev.cpp \
157 $(if $(VBOX_WITH_HGCM),VMMDev/VMMDevHGCM.cpp,) \
158 VMMDev/VMMDevTesting.cpp \
159 Network/DevPCNet.cpp \
160 Audio/DevIchAc97.cpp \
161 Audio/DevSB16.cpp \
162 Audio/DevIchHda.cpp \
163 Audio/DevIchHdaCodec.cpp \
164 PC/DevDMA.cpp \
165 PC/DevHPET.cpp \
166 Storage/DevFdc.cpp \
167 Serial/DevSerial.cpp \
168 Parallel/DevParallel.cpp \
169 \
170 Input/DrvKeyboardQueue.cpp \
171 Input/DrvMouseQueue.cpp \
172 Network/DrvIntNet.cpp \
173 Network/DrvDedicatedNic.cpp \
174 PC/DrvACPI.cpp \
175 PC/DrvAcpiCpu.cpp \
176 Serial/DrvChar.cpp \
177 Serial/DrvNamedPipe.cpp \
178 Serial/DrvRawFile.cpp \
179 Storage/DrvBlock.cpp \
180 Storage/DrvMediaISO.cpp \
181 Storage/DrvRawImage.cpp \
182 Storage/Debug.cpp \
183 Storage/DrvVD.cpp \
184 Storage/ATAPIPassthrough.cpp \
185 Network/DrvNetSniffer.cpp \
186 Network/Pcap.cpp
187 ifn1of ($(KBUILD_TARGET), os2)
188 VBoxDD_SOURCES += Storage/DrvHostBase.cpp
189 endif
190 ifn1of ($(KBUILD_TARGET), os2)
191 VBoxDD_SOURCES += Storage/DrvHostDVD.cpp
192 endif
193 ifn1of ($(KBUILD_TARGET), darwin freebsd os2 solaris)
194 VBoxDD_SOURCES += Storage/DrvHostFloppy.cpp
195 endif
196
197 VBoxDD_LIBS = # more later.
198 VBoxDD_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDD.dylib \
199 -framework CoreAudio \
200 -framework AudioUnit \
201 -framework AudioToolbox \
202 -framework IOKit \
203 -framework Carbon \
204 -framework DiskArbitration \
205 -framework SystemConfiguration
206 VBoxDD_LDFLAGS.linux = -Wl,--no-undefined
207
208 # --- Tracing bits. ---
209
210 ifdef VBOX_WITH_DTRACE_R3
211 VBoxDD_DEFS += VBOX_WITH_DTRACE
212 VBoxDD_USES += dtrace
213 VBoxDD_SOURCES += build/VBoxDD.d
214 endif
215
216 # --- Graphics bits. ---
217
218 ifdef VBOX_WITH_CRHGSMI
219 VBoxDD_DEFS += VBOX_WITH_CRHGSMI
220 endif
221 ifdef VBOXWDDM_TEST_UHGSMI
222 VBoxDD_DEFS += VBOXWDDM_TEST_UHGSMI
223 endif
224 ifdef VBOXWDDM_WITH_VBVA
225 VBoxDD_DEFS += VBOXWDDM_WITH_VBVA
226 endif
227 ifdef VBOX_WITH_VIDEOHWACCEL
228 VBoxDD_DEFS += VBOX_WITH_VIDEOHWACCEL
229 endif
230
231 ifdef VBOX_WITH_HGSMI
232 VBoxDD_DEFS += VBOX_WITH_HGSMI
233 VBoxDD_SOURCES += \
234 Graphics/DevVGA_VBVA.cpp \
235 Graphics/HGSMI/HGSMIHost.cpp
236 VBoxDD_LIBS += \
237 $(PATH_STAGE_LIB)/HGSMIHostR3Lib$(VBOX_SUFF_LIB)
238 endif
239
240 ifdef VBOX_WITH_WDDM
241 VBoxDD_DEFS += VBOX_WITH_WDDM
242 VBoxDD_SOURCES += \
243 Graphics/HGSMI/SHGSMIHost.cpp
244 endif
245
246 ifdef VBOX_WITH_VMSVGA
247 VBoxDD_DEFS += VBOX_WITH_VMSVGA
248 VBoxDD_SOURCES += Graphics/DevVGA-SVGA.cpp
249 endif
250 ifdef VBOX_WITH_VMSVGA3D
251 VBoxDD_DEFS += VBOX_WITH_VMSVGA3D
252 VBoxDD_SOURCES += Graphics/DevVGA-SVGA3d-shared.cpp
253 ifeq ($(KBUILD_TARGET),win) # (Disable this to work with OpenGL on Windows.)
254 VBoxDD_SOURCES += Graphics/DevVGA-SVGA3d-win.cpp
255 VBoxDD_LIBS.win += d3d9.lib $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib
256 VBoxDD_LDFLAGS.win += /DELAYLOAD:d3d9.dll
257 else
258 VBoxDD_SOURCES += \
259 Graphics/DevVGA-SVGA3d-ogl.cpp \
260 $(VBoxDD_0_OUTDIR)/VBoxSVGA3DLazyLoad.asm
261 VBoxDD_CLEAN += $(VBoxDD_0_OUTDIR)/VBoxSVGA3DLazyLoad.asm
262 $$(VBoxDD_0_OUTDIR)/VBoxSVGA3DLazyLoad.asm: \
263 $(PATH_SUB_CURRENT)/Graphics/VBoxSVGA3D.def \
264 $(if-expr $(KBUILD_TARGET) == "darwin",$(PATH_SUB_CURRENT)/Graphics/VBoxSVGA3D-darwin.def,) \
265 $(VBOX_DEF_2_LAZY_LOAD) \
266 | $$(dir $$@)
267 $(call MSG_TOOL,VBoxDef2LazyLoad,VBoxDD,$(filter %.def, $^),$@)
268 $(QUIET)$(RM) -f -- "$@"
269 $(VBOX_DEF_2_LAZY_LOAD) --explicit-load-function --library VBoxSVGA3D --output "$@" $(filter %.def, $^)
270 VBoxDD_LIBS.linux += GL X11
271 VBoxDD_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
272 VBoxDD_LDFLAGS.darwin += -framework OpenGL
273 endif
274 Graphics/DevVGA-SVGA3d-ogl.cpp_CXXFLAGS.darwin = -F$(VBOX_PATH_MACOSX_SDK_10_7)/System/Library/Frameworks/
275 endif
276
277 ifdef VBOX_WITH_VDMA
278 VBoxDD_DEFS += VBOX_WITH_VDMA
279 VBoxDD_SOURCES += \
280 Graphics/DevVGA_VDMA.cpp
281 endif
282
283 ifdef VBOX_VDMA_WITH_WATCHDOG
284 VBoxDD_DEFS += VBOX_VDMA_WITH_WATCHDOG
285 endif
286
287 ifdef VBOX_WITH_PXE_ROM
288 VBoxDD_DEFS += VBOX_WITH_PXE_ROM
289 endif
290
291 # --- USB bits. ---
292
293 ifdef VBOX_WITH_USB
294 VBoxDD_DEFS += VBOX_WITH_USB
295 VBoxDD_SOURCES += \
296 USB/vrdp/USBProxyDevice-vrdp.cpp
297
298 VBoxDD_DEFS.darwin += VUSB_HAVE_USBPROXY_DEVICE
299 ifdef VBOX_WITH_NEW_USB_CODE_ON_DARWIN
300 VBoxDD_DEFS.darwin += VBOX_WITH_NEW_USB_CODE_ON_DARWIN
301 endif
302 VBoxDD_SOURCES.darwin += \
303 USB/USBProxyDevice.cpp \
304 USB/darwin/USBProxyDevice-darwin.cpp
305
306 VBoxDD_DEFS.linux += \
307 VUSB_HAVE_USBPROXY_DEVICE \
308 $(if $(VBOX_WITH_LINUX_COMPILER_H),VBOX_WITH_LINUX_COMPILER_H,) \
309 $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,)
310 VBoxDD_SOURCES.linux += \
311 USB/USBProxyDevice.cpp \
312 USB/linux/USBProxyDevice-linux.cpp
313
314 VBoxDD_DEFS.os2 += VUSB_HAVE_USBPROXY_DEVICE
315 VBoxDD_INCS.os2 += $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
316 VBoxDD_SOURCES.os2 += \
317 USB/USBProxyDevice.cpp \
318 USB/os2/USBProxyDevice-os2.cpp
319
320 VBoxDD_DEFS.win += VUSB_HAVE_USBPROXY_DEVICE
321 VBoxDD_SOURCES.win += \
322 USB/USBProxyDevice.cpp \
323 USB/win/USBProxyDevice-win.cpp
324
325 VBoxDD_DEFS.solaris += VUSB_HAVE_USBPROXY_DEVICE
326 VBoxDD_SOURCES.solaris+= \
327 USB/USBProxyDevice.cpp \
328 USB/solaris/USBProxyDevice-solaris.cpp
329
330 VBoxDD_DEFS.freebsd += VUSB_HAVE_USBPROXY_DEVICE
331 VBoxDD_SOURCES.freebsd+= \
332 USB/USBProxyDevice.cpp \
333 USB/freebsd/USBProxyDevice-freebsd.cpp
334
335 ifdef VBOX_WITH_SCSI
336 VBoxDD_SOURCES += \
337 Storage/UsbMsd.cpp
338 endif
339
340 if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
341 VBoxDD_DEFS += VBOX_WITH_EHCI_IMPL
342 VBoxDD_SOURCES += \
343 USB/DevEHCI.cpp
344 endif
345
346 if defined(VBOX_WITH_XHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
347 VBoxDD_DEFS += VBOX_WITH_XHCI_IMPL
348 VBoxDD_SOURCES += \
349 USB/DevXHCI.cpp
350 endif
351
352 if defined(VBOX_WITH_USB_VIDEO_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
353 if1of ($(KBUILD_TARGET), linux)
354 VBoxDD_DEFS += VBOX_WITH_USB_VIDEO_IMPL
355 VBoxDD_SOURCES += \
356 $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/UsbWebcam.cpp \
357 $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/UsbWebcamDesc.cpp \
358 $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/jpggen.cpp \
359 $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/DrvHostWebcam/DrvHostWebcam.cpp \
360 $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/DrvHostWebcam/JPEGEnc.cpp
361 $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/DrvHostWebcam/JPEGEnc.cpp_INCS = \
362 $(PATH_ROOT)/src/libs/jpeg-8a
363 VBoxDD_SOURCES.linux += \
364 $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/DrvHostWebcam/HostWebcam-v4l2.cpp
365 VBoxDD_LIBS += \
366 $(PATH_STAGE_LIB)/VBox-libjpeg$(VBOX_SUFF_LIB)
367 endif
368 endif
369
370 endif # VBOX_WITH_USB
371
372 ifdef VBOX_WITH_VUSB
373 VBoxDD_DEFS += VBOX_WITH_VUSB
374 VBoxDD_SOURCES += \
375 USB/DevOHCI.cpp \
376 USB/DrvVUSBRootHub.cpp \
377 USB/VUSBDevice.cpp \
378 USB/VUSBReadAhead.cpp \
379 USB/VUSBUrb.cpp \
380 USB/VUSBSniffer.cpp
381 endif
382
383 # --- Networking bits. ---
384
385 ifdef VBOX_WITH_INIP
386 VBoxDD_DEFS += VBOX_WITH_INIP
387 VBoxDD_SOURCES += \
388 Network/DevINIP.cpp
389 ifndef VBOX_WITH_NEW_LWIP
390 include $(PATH_SUB_CURRENT)/Network/lwip/Makefile.kmk
391 VBoxDD_INCS += $(LWIP_INCS)
392 VBoxDD_SOURCES += $(LWIP_SOURCES)
393 else
394 # XXX: do not depend on order
395 ifndef LWIP_SOURCES
396 include $(PATH_SUB_CURRENT)/Network/lwip-new/Makefile.kmk
397 endif
398 Network/DevINIP.cpp_DEFS += VBOX_WITH_NEW_LWIP
399 VBoxDD_LWIP_INCS += Network # for lwipopts.h
400 $(eval $(call def_vbox_lwip_private, \
401 VBoxDD, Network/lwip-new))
402 $(eval $(call def_vbox_lwip_flags, \
403 VBoxDD, Network/DevINIP.cpp, Network/lwip-new))
404 endif
405 endif # VBOX_WITH_INIP
406
407 ifdef VBOX_WITH_E1000
408 VBoxDD_DEFS += VBOX_WITH_E1000
409 VBoxDD_SOURCES += \
410 Network/DevE1000.cpp \
411 Network/DevE1000Phy.cpp \
412 Network/DevEEPROM.cpp
413 endif
414
415 ifdef VBOX_WITH_VIRTIO
416 VBoxDD_DEFS += VBOX_WITH_VIRTIO
417 VBoxDD_SOURCES += \
418 VirtIO/Virtio.cpp \
419 Network/DevVirtioNet.cpp
420 endif
421
422 ifdef VBOX_WITH_UDPTUNNEL
423 VBoxDD_DEFS += VBOX_WITH_UDPTUNNEL
424 VBoxDD_SOURCES += \
425 Network/DrvUDPTunnel.cpp
426 endif
427
428 ifdef VBOX_WITH_VDE
429 VBoxDD_DEFS += VBOX_WITH_VDE
430 VBoxDD_SOURCES += \
431 Network/DrvVDE.cpp \
432 Network/VDEPlug.cpp
433 endif
434
435 ifdef VBOX_WITH_NETSHAPER
436 VBoxDD_DEFS += VBOX_WITH_NETSHAPER
437 VBoxDD_SOURCES += \
438 Network/DrvNetShaper.cpp
439 endif
440
441 # --- Storage bits. ---
442
443 ifdef VBOX_WITH_AHCI
444 VBoxDD_DEFS += VBOX_WITH_AHCI IN_AHCI_R3
445 VBoxDD_SOURCES += \
446 Storage/DevAHCI.cpp
447 endif
448
449 ifdef VBOX_WITH_BUSLOGIC
450 VBoxDD_DEFS += VBOX_WITH_BUSLOGIC
451 VBoxDD_SOURCES += \
452 Storage/DevBusLogic.cpp \
453 Storage/VBoxSCSI.cpp
454 endif
455
456 ifdef VBOX_WITH_LSILOGIC
457 VBoxDD_DEFS += VBOX_WITH_LSILOGIC
458 VBoxDD_SOURCES += \
459 Storage/DevLsiLogicSCSI.cpp
460 endif
461
462 ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
463 VBoxDD_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
464 endif
465
466 ifdef VBOX_WITH_SCSI
467 VBoxDD_DEFS += VBOX_WITH_SCSI
468 VBoxDD_SOURCES += \
469 Storage/DrvSCSI.cpp
470 VBoxDD_SOURCES.linux += \
471 Storage/DrvSCSIHost.cpp
472 endif
473
474 ifdef VBOX_WITH_ISCSI
475 ifdef VBOX_WITH_NEW_LWIP
476 Storage/DrvVD.cpp_DEFS += VBOX_WITH_NEW_LWIP
477 $(eval $(call def_vbox_lwip_flags, \
478 VBoxDD, Storage/DrvVD.cpp, Network/lwip-new))
479 else
480 Storage/DrvVD.cpp_INCS = $(LWIP_INCS)
481 endif
482 endif
483
484 ifdef VBOX_WITH_DRV_DISK_INTEGRITY
485 VBoxDD_DEFS += VBOX_WITH_DRV_DISK_INTEGRITY
486 VBoxDD_SOURCES += \
487 Storage/DrvDiskIntegrity.cpp
488 VBoxDD_LIBS += \
489 $(PATH_STAGE_LIB)/StorageDbgLib$(VBOX_SUFF_LIB)
490 endif
491
492 ifdef VBOX_WITH_EFI
493 VBoxDD_DEFS += VBOX_WITH_EFI
494 VBoxDD_SOURCES += EFI/DevEFI.cpp
495 EFI/DevEFI.cpp_INCS += EFI/Firmware/BaseTools/Source/C/Include
496 EFI/DevEFI.cpp_INCS.x86 += EFI/Firmware/BaseTools/Source/C/Include/Ia32
497 EFI/DevEFI.cpp_INCS.amd64 += EFI/Firmware/BaseTools/Source/C/Include/X64
498 endif
499
500 if defined(VBOX_WITH_PCI_PASSTHROUGH_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
501 VBoxDD_DEFS += VBOX_WITH_PCI_PASSTHROUGH_IMPL
502 VBoxDD_SOURCES += \
503 Bus/DevPciRaw.cpp \
504 Bus/DrvPciRaw.cpp
505 endif
506
507 ifdef VBOX_WITH_MSI_DEVICES
508 VBoxDD_DEFS += VBOX_WITH_MSI_DEVICES
509 endif
510
511 ifdef VBOX_WITH_DYNAMIC_DSDT
512 VBoxDD_DEFS += VBOX_WITH_DYNAMIC_DSDT
513 endif
514
515
516 # --- Input bits. ---
517
518 ifdef VBOX_WITH_NEW_PS2M
519 VBoxDD_DEFS += VBOX_WITH_NEW_PS2M
520 endif
521
522
523 # --- Audio bits. ---
524
525 ifdef VBOX_WITH_PDM_AUDIO_DRIVER
526 VBoxDD_DEFS += VBOX_WITH_PDM_AUDIO_DRIVER
527 VBoxDD_SOURCES += \
528 Audio/AudioMixBuffer.cpp \
529 Audio/AudioMixer.cpp \
530 Audio/DrvAudio.cpp \
531 Audio/DrvAudioCommon.cpp \
532 Audio/DrvHostNullAudio.cpp
533
534 ## @todo Darwin CoreAudio driver missing!
535
536 ifeq ($(KBUILD_TARGET),win)
537 VBoxDD_SOURCES += \
538 Audio/DrvHostDSound.cpp
539 VBoxDD_LIBS += \
540 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dsound.lib
541 endif
542
543 ifeq ($(KBUILD_TARGET),linux)
544 VBoxDD_SOURCES += \
545 Audio/DrvHostOSSAudio.cpp
546
547 ifdef VBOX_WITH_PULSE
548 VBoxDD_DEFS += VBOX_WITH_PULSE
549 VBoxDD_SOURCES += \
550 Audio/DrvHostPulseAudio.cpp \
551 Audio/pulse_stubs.c
552 endif
553
554 ifdef VBOX_WITH_ALSA
555 VBoxDD_DEFS += VBOX_WITH_ALSA
556 VBoxDD_SOURCES += \
557 Audio/DrvHostALSAAudio.cpp \
558 Audio/alsa_stubs.c
559 endif
560 endif
561
562 ifeq ($(KBUILD_TARGET),freebsd)
563 VBoxDD_SOURCES += \
564 Audio/DrvHostOSSAudio.cpp
565 ifdef VBOX_WITH_PULSE
566 VBoxDD_DEFS += VBOX_WITH_PULSE
567 VBoxDD_SOURCES += \
568 Audio/DrvHostPulseAudio.cpp \
569 Audio/pulse_stubs.c
570 endif
571 endif
572
573 ifeq ($(KBUILD_TARGET),solaris)
574 ifdef VBOX_WITH_SOLARIS_OSS
575 VBoxDD_SOURCES += Audio/DrvHostOSSAudio.cpp
576 VBoxDD_DEFS += VBOX_WITH_SOLARIS_OSS
577 endif
578 endif
579
580 else # !VBOX_WITH_PDM_AUDIO_DRIVER
581
582 VBoxDD_SOURCES += \
583 Audio/audio.c \
584 Audio/audiosniffer.c \
585 Audio/noaudio.c \
586 Audio/filteraudio.c \
587 Audio/mixeng.c
588
589 ifeq ($(KBUILD_TARGET),win)
590 VBoxDD_SOURCES += \
591 Audio/dsoundaudio.c
592 endif
593
594 VBoxDD_SOURCES.darwin += \
595 Audio/coreaudio.c
596
597 ifeq ($(KBUILD_TARGET),solaris)
598 VBoxDD_SOURCES += \
599 Audio/solaudio.c
600 ifdef VBOX_WITH_SOLARIS_OSS
601 VBoxDD_DEFS += VBOX_WITH_SOLARIS_OSS
602 VBoxDD_SOURCES += \
603 Audio/ossaudio.c
604 endif
605 endif
606
607 ifeq ($(KBUILD_TARGET),linux)
608 VBoxDD_SOURCES += \
609 Audio/ossaudio.c
610 ifdef VBOX_WITH_PULSE
611 VBoxDD_DEFS += VBOX_WITH_PULSE
612 VBoxDD_SOURCES += \
613 Audio/pulseaudio.c \
614 Audio/pulse_stubs.c
615 endif
616 ifdef VBOX_WITH_ALSA
617 VBoxDD_DEFS += VBOX_WITH_ALSA
618 VBoxDD_SOURCES += \
619 Audio/alsaaudio.c \
620 Audio/alsa_stubs.c
621 endif
622 endif
623
624 ifeq ($(KBUILD_TARGET),freebsd)
625 VBoxDD_SOURCES += \
626 Audio/ossaudio.c
627 ifdef VBOX_WITH_PULSE
628 VBoxDD_DEFS += VBOX_WITH_PULSE
629 VBoxDD_SOURCES += \
630 Audio/pulseaudio.c \
631 Audio/pulse_stubs.c
632 endif
633 endif
634
635 ifeq ($(KBUILD_TARGET),solaris)
636 VBoxDD_SOURCES += \
637 Audio/solaudio.c
638 ifdef VBOX_WITH_SOLARIS_OSS
639 VBoxDD_SOURCES += Audio/ossaudio.c
640 VBoxDD_DEFS += VBOX_WITH_SOLARIS_OSS
641 endif
642 endif
643
644 endif # VBOX_WITH_PDM_AUDIO_DRIVER
645
646 # --- WARNING! SLIRP MESS AHEAD! ;-) ---
647 VBOX_SLIRP_SOURCES = \
648 Network/DrvNAT.cpp \
649 Network/slirp/bootp.c \
650 Network/slirp/debug.c \
651 Network/slirp/ip_icmp.c \
652 Network/slirp/ip_input.c \
653 Network/slirp/ip_output.c \
654 Network/slirp/misc.c \
655 Network/slirp/sbuf.c \
656 Network/slirp/slirp.c \
657 Network/slirp/slirp_dns.c \
658 Network/slirp/socket.c \
659 Network/slirp/tcp_input.c \
660 Network/slirp/tcp_output.c \
661 Network/slirp/tcp_subr.c \
662 Network/slirp/tcp_timer.c \
663 Network/slirp/udp.c \
664 Network/slirp/dnsproxy/hash.c \
665 Network/slirp/tftp.c \
666 Network/slirp/dnsproxy/dnsproxy.c
667
668 ifeq ($(KBUILD_TARGET), win)
669 VBOX_SLIRP_SOURCES += Network/slirp/ip_icmpwin.c
670 endif
671
672 ifneq ($(KBUILD_TARGET), win)
673 VBOX_SLIRP_SOURCES += Network/slirp/resolv_conf_parser.c
674 endif
675
676 ifdef VBOX_WITH_SLIRP_BSD_SBUF
677 VBOX_SLIRP_SOURCES += Network/slirp/bsd/kern/subr_sbuf.c
678 endif
679 VBOX_SLIRP_BSD_ARCH = $(subst x86,i386,$(KBUILD_TARGET_ARCH))
680 VBOX_SLIRP_BSD_SOURCES += \
681 Network/slirp/bsd/kern/kern_mbuf.c \
682 Network/slirp/bsd/kern/uipc_mbuf.c \
683 Network/slirp/bsd/kern/uipc_mbuf2.c \
684 Network/slirp/bsd/$(VBOX_SLIRP_BSD_ARCH)/in_cksum.c
685 VBOX_SLIRP_ALIAS_SOURCES = \
686 Network/slirp/libalias/alias.c \
687 Network/slirp/libalias/alias_db.c \
688 Network/slirp/libalias/alias_mod.c \
689 Network/slirp/libalias/alias_proxy.c \
690 Network/slirp/libalias/alias_ftp.c \
691 Network/slirp/libalias/alias_dns.c \
692 Network/slirp/libalias/alias_nbt.c \
693 Network/slirp/libalias/alias_util.c
694
695 # Enable VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER here for a while, then move to
696 # $(file)_DEFS or clean the code disabled with this definition.
697 VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER=1
698
699 # dump memory related operations.
700 Network/slirp/misc.c_DEFS += $(if $(VBOX_NAT_MEM_DEBUG),VBOX_NAT_MEM_DEBUG,)
701
702 VBoxDD_SOURCES += $(VBOX_SLIRP_SOURCES)
703 define def_vbox_slirp_cflags
704 $(file)_DEFS += \
705 $(if $(VBOX_WITH_SLIRP_BSD_SBUF),VBOX_WITH_SLIRP_BSD_SBUF,) \
706 $(if $(VBOX_WITH_SLIRP_MEMORY_CHECK),RTMEM_WRAP_TO_EF_APIS,) \
707 $(if $(VBOX_WITH_DEBUG_NAT_SOCKETS),VBOX_WITH_DEBUG_NAT_SOCKETS,) \
708 $(if $(VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER),VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER,) \
709 $(if $(VBOX_WITH_NAT_UDP_SOCKET_CLONE),VBOX_WITH_NAT_UDP_SOCKET_CLONE,) \
710 $(if $(VBOX_WITH_NAT_SEND2HOME),VBOX_WITH_NAT_SEND2HOME,) \
711 $(if $(VBOX_WITH_HIDDEN_TCPTEMPLATE),VBOX_WITH_HIDDEN_TCPTEMPLATE,) \
712 $(if $(VBOX_WITH_SLIRP_MT),VBOX_WITH_SLIRP_MT,)
713 $(file)_INCS += \
714 $(1)/slirp/bsd/sys \
715 $(1)/slirp/bsd/sys/sys \
716 $(1)/slirp/bsd/$(VBOX_SLIRP_BSD_ARCH)/include \
717 $(1)/slirp/bsd/netinet \
718 $(1)/slirp \
719 $(1)/slirp/libalias
720 ifeq ($(KBUILD_TARGET),win)
721 $(file)_CFLAGS = -wd4018
722 else
723 $(file)_CFLAGS += -Wno-sign-compare -Wno-format -Wno-bad-function-cast
724 endif
725 endef
726
727 $(foreach file,$(VBOX_SLIRP_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
728
729 VBoxDD_SOURCES += $(VBOX_SLIRP_ALIAS_SOURCES)
730 define def_vbox_slirp_alias_cflags
731 $(file)_DEFS += VBOX_SLIRP_ALIAS \
732 $(if $(VBOX_WITH_DEBUG_LIBALIAS),VBOX_WITH_DEBUG_LIBALIAS,)
733 $(file)_INCS += \
734 $(1)/slirp/libalias \
735 $(1)/slirp \
736 $(1)/slirp/dnsproxy
737 ifneq ($(KBUILD_TARGET),win)
738 $(file)_CFLAGS += -Wno-shadow
739 endif
740 endef
741 $(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
742 $(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_alias_cflags, Network)))
743
744 VBOX_SLIRP_BSD_SOURCES += $(VBOX_SLIRP_BSD_SOURCES.${KBUILD_TARGET_ARCH})
745 VBoxDD_SOURCES += $(VBOX_SLIRP_BSD_SOURCES)
746 define def_vbox_slirp_bsd_cflags
747 $(file)_DEFS += VBOX_SLIRP_BSD
748 $(file)_INCS += $(1)/slirp/dnsproxy
749 endef
750 $(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
751 $(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_bsd_cflags, Network)))
752
753
754 # --- OS specific driver hacks. ---
755
756 ifeq ($(KBUILD_TARGET),darwin)
757 VBoxDD_SOURCES.darwin += Serial/DrvHostSerial.cpp
758 endif # darwin
759
760 ifeq ($(KBUILD_TARGET),freebsd)
761 VBoxDD_SOURCES += Serial/DrvHostSerial.cpp
762 VBoxDD_SOURCES.freebsd += Network/DrvTAP.cpp
763 endif # freebsd
764
765 VBoxDD_SOURCES.linux += \
766 Network/DrvTAP.cpp \
767 Parallel/DrvHostParallel.cpp \
768 Serial/DrvHostSerial.cpp
769
770 ifeq ($(KBUILD_TARGET),solaris)
771 VBoxDD_SOURCES.solaris += Serial/DrvHostSerial.cpp
772 ifdef VBOX_WITH_SUID_WRAPPER
773 VBoxDD_DEFS += VBOX_WITH_SUID_WRAPPER
774 endif
775 endif
776
777 VBoxDD_DEFS.win += VBOX_WITH_WIN_PARPORT_SUP
778 VBoxDD_SOURCES.win += \
779 Serial/DrvHostSerial.cpp \
780 Parallel/DrvHostParallel.cpp
781
782 if defined(VBOX_WITH_NETFLT)
783 VBoxDD_DEFS += VBOX_WITH_NETFLT
784 if defined(VBOX_NETFLT_ONDEMAND_BIND)
785 VBoxDD_DEFS.win += VBOX_NETFLT_ONDEMAND_BIND
786 endif
787 endif
788
789
790 # --- Final bits, mostly libraries for order dependant linkers. ---
791
792 VBoxDD_LIBS += \
793 $(PATH_STAGE_LIB)/VgaDefBiosLogo$(VBOX_SUFF_LIB) \
794 $(LIB_VMM) \
795 $(LIB_RUNTIME)
796 ifeq ($(KBUILD_TARGET),win)
797 VBoxDD_LIBS += \
798 $(LIB_DDU) \
799 $(PATH_STAGE_LIB)/VBoxDD2.lib \
800 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/dxguid.lib
801 else
802 VBoxDD_LIBS += \
803 $(VBoxDDU_1_STAGE_TARGET) \
804 $(VBoxDD2_1_STAGE_TARGET)
805 endif
806
807 ifdef VBOX_WITH_NETFLT
808 VBoxDD_LIBS.win += $(PATH_STAGE_LIB)/WinNetConfig.lib
809 endif
810
811 ifeq ($(KBUILD_TARGET),solaris)
812 VBoxDD_LIBS += adm
813 ifdef VBOX_WITH_SUID_WRAPPER
814 VBoxDD_LIBS += secdb
815 endif
816 ifdef VBOX_WITH_USB
817 VBoxDD_LIBS += aio
818 endif
819 endif
820
821 VBoxDD_LIBS.darwin += \
822 $(LIB_REM)
823
824
825 ifdef VBOX_WITH_DYNAMIC_DSDT
826 VBoxDD_CLEAN += $(VBoxDD_0_OUTDIR)/vboxdsl.hex
827 PC/ACPI/VBoxAcpi.cpp_DEPS = $(VBoxDD_0_OUTDIR)/vboxdsl.hex
828
829 $$(VBoxDD_0_OUTDIR)/vboxdsl.hex: $(PATH_SUB_CURRENT)/PC/vbox.dsl | $$(dir $$@)
830 $(call MSG_TOOL,bin2c,VBoxDD,$<,$@)
831 $(QUIET)$(VBOX_BIN2C) -export VboxDslSource $< $@
832
833 vboxdsl.hex:: $$(VBoxDD_0_OUTDIR)/vboxdsl.hex
834
835 else # !VBOX_WITH_DYNAMIC_DSDT
836 # VBoxAcpi.cpp needs vboxaml.hex which we generate from PC/vbox.dsl
837 VBoxDD_CLEAN += \
838 $(VBoxDD_0_OUTDIR)/vboxaml.hex \
839 $(VBoxDD_0_OUTDIR)/vboxaml.aml \
840 $(VBoxDD_0_OUTDIR)/vboxssdt-standard.hex \
841 $(VBoxDD_0_OUTDIR)/vboxssdt-standard.aml \
842 $(VBoxDD_0_OUTDIR)/vboxssdt-standard.aml.tmp \
843 $(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.hex \
844 $(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.aml \
845 $(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.aml.tmp \
846 $(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.aml.pre
847 PC/ACPI/VBoxAcpi.cpp_DEPS = \
848 $(VBoxDD_0_OUTDIR)/vboxaml.hex \
849 $(VBoxDD_0_OUTDIR)/vboxssdt-standard.hex \
850 $(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.hex
851
852 $$(VBoxDD_0_OUTDIR)/vboxaml.hex: $(PATH_SUB_CURRENT)/PC/vbox.dsl | $$(dir $$@)
853 $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
854 $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
855
856 vboxaml.hex:: $$(VBoxDD_0_OUTDIR)/vboxaml.hex
857
858 $$(VBoxDD_0_OUTDIR)/vboxssdt-standard.hex: $(PATH_SUB_CURRENT)/PC/vbox-standard.dsl | $$(dir $$@)
859 $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
860 $(QUIET)$(RM) -f $@ [email protected]
861 $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
862 $(QUIET)$(MV) -f $@ [email protected]
863 $(QUIET)$(SED) "s/AmlCode/AmlCodeSsdtStandard/g" \
864 --output $@ [email protected]
865 $(QUIET)$(RM) -f [email protected]
866
867
868 vboxssdt-standard.hex:: $$(VBoxDD_0_OUTDIR)/vboxssdt-standard.hex
869
870 $$(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.hex: $(PATH_SUB_CURRENT)/PC/vbox-cpuhotplug.dsl | $$(dir $$@)
871 $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
872 $(QUIET)$(RM) -f $@ [email protected] [email protected]
873 $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -P -x c -o [email protected] $<
874 $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ [email protected]
875 $(QUIET)$(MV) -f $@ [email protected]
876 $(QUIET)$(SED) "s/AmlCode/AmlCodeSsdtCpuHotPlug/g" \
877 --output $@ [email protected]
878 $(QUIET)$(RM) -f [email protected] [email protected]
879
880
881 vboxssdt-cpuhotplug.hex:: $$(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.hex
882
883 endif # !VBOX_WITH_DYNAMIC_DSDT
884 PC/ACPI/VBoxAcpi.cpp_INCS = $(VBoxDD_0_OUTDIR)
885
886 # For finding PCIInternal.h from VBox/pci.h.
887 Bus/DevPCI.cpp_INCS = Bus
888 Bus/DevPciIch9.cpp_INCS = Bus
889 Bus/MsiCommon.cpp_INCS = Bus
890 Bus/MsixCommon.cpp_INCS = Bus
891 Bus/DevPciRaw.cpp_INCS = Bus
892
893 # For finding and generating vbetables.h (see Graphics/BIOS/Makefile.kmk).
894 Graphics/DevVGA.cpp_INCS = $(VgaBiosBin_0_OUTDIR)
895 Graphics/DevVGA.cpp_DEPS = $(VgaBiosBin_0_OUTDIR)/vbetables.h
896
897
898 ifdef VBOX_WITH_RAW_MODE
899 #
900 # VBoxDDGC (sysmod)
901 #
902 VBoxDDGC_TEMPLATE = VBoxRc
903 ifeq ($(KBUILD_TARGET_ARCH),x86)
904 VBoxDDGC_DEFS.darwin = VBOX_WITH_2X_4GB_ADDR_SPACE
905 endif
906 VBoxDDGC_DEFS = $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,)
907 VBoxDDGC_INCS = build
908 VBoxDDGC_SOURCES = \
909 Audio/DevIchHda.cpp \
910 Bus/DevPCI.cpp \
911 Bus/DevPciIch9.cpp \
912 Bus/MsiCommon.cpp \
913 Bus/MsixCommon.cpp \
914 EFI/DevSmc.cpp \
915 Graphics/DevVGA.cpp \
916 Input/DevPS2.cpp \
917 Input/PS2K.cpp \
918 Input/PS2M.cpp \
919 PC/DevACPI.cpp \
920 PC/DevPit-i8254.cpp \
921 PC/DevPIC.cpp \
922 PC/DevRTC.cpp \
923 PC/DevHPET.cpp \
924 Storage/DevATA.cpp \
925 Network/DevPCNet.cpp \
926 Serial/DevSerial.cpp \
927 Parallel/DevParallel.cpp \
928 VMMDev/VMMDevTesting.cpp
929
930 ifdef VBOX_WITH_E1000
931 VBoxDDGC_DEFS += VBOX_WITH_E1000
932 VBoxDDGC_SOURCES += \
933 Network/DevE1000.cpp \
934 Network/DevE1000Phy.cpp
935 endif
936
937 ifdef VBOX_WITH_VIRTIO
938 VBoxDDGC_DEFS += VBOX_WITH_VIRTIO
939 VBoxDDGC_SOURCES += \
940 VirtIO/Virtio.cpp \
941 Network/DevVirtioNet.cpp
942 endif
943
944 ifdef VBOX_WITH_HGSMI
945 VBoxDDGC_DEFS += VBOX_WITH_HGSMI
946 endif
947 ifdef VBOX_WITH_WDDM
948 VBoxDDGC_DEFS += VBOX_WITH_WDDM
949 endif
950 ifdef VBOX_WITH_VDMA
951 VBoxDDGC_DEFS += VBOX_WITH_VDMA
952 endif
953 ifdef VBOX_WITH_CRHGSMI
954 VBoxDDGC_DEFS += VBOX_WITH_CRHGSMI
955 endif
956 ifdef VBOXWDDM_WITH_VBVA
957 VBoxDDGC_DEFS += VBOXWDDM_WITH_VBVA
958 endif
959 ifdef VBOX_WITH_VMSVGA
960 VBoxDDGC_DEFS += VBOX_WITH_VMSVGA
961 VBoxDDGC_SOURCES += \
962 Graphics/DevVGA-SVGA.cpp
963 endif
964 ifdef VBOX_WITH_VMSVGA3D
965 VBoxDDGC_DEFS += VBOX_WITH_VMSVGA3D
966 endif
967 ifdef VBOX_VDMA_WITH_WATCHDOG
968 VBoxDDGC_DEFS += VBOX_VDMA_WITH_WATCHDOG
969 endif
970
971 ifdef VBOX_WITH_VUSB
972 VBoxDDGC_DEFS += VBOX_WITH_VUSB
973 VBoxDDGC_SOURCES += \
974 USB/DevOHCI.cpp
975 endif
976
977 ifdef VBOX_WITH_USB
978 VBoxDDGC_DEFS += VBOX_WITH_USB
979 if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
980 VBoxDDGC_DEFS += VBOX_WITH_EHCI_IMPL
981 VBoxDDGC_SOURCES += \
982 USB/DevEHCI.cpp
983 endif
984 if defined(VBOX_WITH_XHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
985 VBoxDDGC_DEFS += VBOX_WITH_XHCI_IMPL
986 VBoxDDGC_SOURCES += \
987 USB/DevXHCI.cpp
988 endif
989 endif
990
991 ifdef VBOX_WITH_VIDEOHWACCEL
992 VBoxDDGC_DEFS += VBOX_WITH_VIDEOHWACCEL
993 endif
994
995 ifdef VBOX_WITH_AHCI
996 VBoxDDGC_DEFS += VBOX_WITH_AHCI IN_AHCI_GC
997 VBoxDDGC_SOURCES += \
998 Storage/DevAHCI.cpp
999 endif
1000
1001 ifdef VBOX_WITH_BUSLOGIC
1002 VBoxDDGC_DEFS += VBOX_WITH_BUSLOGIC
1003 VBoxDDGC_SOURCES += \
1004 Storage/DevBusLogic.cpp
1005 endif
1006
1007 ifdef VBOX_WITH_LSILOGIC
1008 VBoxDDGC_DEFS += VBOX_WITH_LSILOGIC
1009 VBoxDDGC_SOURCES += \
1010 Storage/DevLsiLogicSCSI.cpp
1011 endif
1012
1013 ifdef VBOX_WITH_NEW_PS2M
1014 VBoxDDGC_DEFS += VBOX_WITH_NEW_PS2M
1015 endif
1016
1017 if1of ($(VBOX_LDR_FMT32), pe lx)
1018 VBoxDDGC_LIBS = \
1019 $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB) \
1020 $(PATH_STAGE_LIB)/VMMRCImp$(VBOX_SUFF_LIB)
1021 endif
1022 endif # VBOX_WITH_RAW_MODE
1023
1024
1025 #
1026 # VBoxDD2 (shared object)
1027 #
1028 VBoxDD2_TEMPLATE = VBoxR3DllWarnNoPic
1029 VBoxDD2_DEFS = IN_VBOXDD2
1030 VBoxDD2_INCS := \
1031 build \
1032 $(PATH_SUB_CURRENT)
1033 VBoxDD2_SOURCES = \
1034 build/VBoxDD2.cpp \
1035 PC/DevAPIC.cpp \
1036 PC/DevIoApic.cpp \
1037 PC/DevLPC.cpp
1038 VBoxDD2_LIBS = \
1039 $(PATH_STAGE_LIB)/PcBiosBin$(VBOX_SUFF_LIB) \
1040 $(PATH_STAGE_LIB)/VgaBiosBin$(VBOX_SUFF_LIB) \
1041 $(if $(VBOX_WITH_PXE_ROM),\
1042 $(if $(VBOX_WITH_INTEL_PXE),\
1043 $(PATH_STAGE_LIB)/NetBiosBin$(VBOX_SUFF_LIB),\
1044 $(PATH_STAGE_LIB)/iPxeBiosBin$(VBOX_SUFF_LIB)),) \
1045 $(LIB_VMM) \
1046 $(LIB_RUNTIME)
1047 VBoxDD2_LIBS.darwin += $(LIB_REM)
1048 VBoxDD2_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDD2.dylib
1049 VBoxDD2_LDFLAGS.linux = -Wl,--no-undefined
1050
1051 ifdef VBOX_WITH_PXE_ROM
1052 VBoxDD2_DEFS += VBOX_WITH_PXE_ROM
1053 endif
1054
1055
1056 #
1057 # VBoxDDR0 (sysmod)
1058 #
1059 VBoxDDR0_TEMPLATE = VBoxR0
1060 VBoxDDR0_DEFS.darwin.x86= VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 VBOX_WITH_2X_4GB_ADDR_SPACE
1061 VBoxDDR0_DEFS = IN_RT_R0 $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) # - WTF is IN_RT_R0 doing here?
1062 VBoxDDR0_DEFS.win += VBOX_WITH_WIN_PARPORT_SUP
1063 VBoxDDR0_INCS = build
1064 VBoxDDR0_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
1065 VBoxDDR0_SOURCES = \
1066 build/VBoxDDR0.cpp \
1067 Audio/DevIchHda.cpp \
1068 Bus/DevPCI.cpp \
1069 Bus/DevPciIch9.cpp \
1070 Bus/MsiCommon.cpp \
1071 Bus/MsixCommon.cpp \
1072 EFI/DevSmc.cpp \
1073 Graphics/DevVGA.cpp \
1074 Input/DevPS2.cpp \
1075 Input/PS2K.cpp \
1076 Input/PS2M.cpp \
1077 PC/DevACPI.cpp \
1078 PC/DevPit-i8254.cpp \
1079 PC/DevPIC.cpp \
1080 PC/DevRTC.cpp \
1081 PC/DevHPET.cpp \
1082 Storage/DevATA.cpp \
1083 Network/DevPCNet.cpp \
1084 Serial/DevSerial.cpp \
1085 Parallel/DevParallel.cpp \
1086 VMMDev/VMMDevTesting.cpp \
1087 \
1088 Network/DrvIntNet.cpp \
1089 Network/DrvDedicatedNic.cpp
1090
1091 VBoxDDR0_SOURCES.win += Parallel/DrvHostParallel.cpp
1092
1093 ifdef VBOX_WITH_E1000
1094 VBoxDDR0_DEFS += VBOX_WITH_E1000
1095 VBoxDDR0_SOURCES += \
1096 Network/DevE1000.cpp \
1097 Network/DevE1000Phy.cpp
1098 endif
1099
1100 ifdef VBOX_WITH_VIRTIO
1101 VBoxDDR0_DEFS += VBOX_WITH_VIRTIO
1102 VBoxDDR0_SOURCES += \
1103 VirtIO/Virtio.cpp \
1104 Network/DevVirtioNet.cpp
1105 endif
1106
1107 ifdef VBOX_WITH_NETSHAPER
1108 VBoxDDR0_DEFS += VBOX_WITH_NETSHAPER
1109 VBoxDDR0_SOURCES += \
1110 Network/DrvNetShaper.cpp
1111 endif
1112
1113 ifdef VBOX_WITH_VMSVGA
1114 VBoxDDR0_DEFS += VBOX_WITH_VMSVGA
1115 VBoxDDR0_SOURCES += \
1116 Graphics/DevVGA-SVGA.cpp
1117 endif
1118 ifdef VBOX_WITH_VMSVGA3D
1119 VBoxDDR0_DEFS += VBOX_WITH_VMSVGA3D
1120 endif
1121
1122 ifdef VBOX_WITH_HGSMI
1123 VBoxDDR0_DEFS += VBOX_WITH_HGSMI
1124 endif
1125 ifdef VBOX_WITH_WDDM
1126 VBoxDDR0_DEFS += VBOX_WITH_WDDM
1127 endif
1128 ifdef VBOX_WITH_VDMA
1129 VBoxDDR0_DEFS += VBOX_WITH_VDMA
1130 endif
1131 ifdef VBOX_WITH_CRHGSMI
1132 VBoxDDR0_DEFS += VBOX_WITH_CRHGSMI
1133 endif
1134 ifdef VBOXWDDM_WITH_VBVA
1135 VBoxDDR0_DEFS += VBOXWDDM_WITH_VBVA
1136 endif
1137 ifdef VBOX_VDMA_WITH_WATCHDOG
1138 VBoxDDR0_DEFS += VBOX_VDMA_WITH_WATCHDOG
1139 endif
1140
1141 ifdef VBOX_WITH_VUSB
1142 VBoxDDR0_DEFS += VBOX_WITH_VUSB
1143 VBoxDDR0_SOURCES += \
1144 USB/DevOHCI.cpp
1145 endif
1146 ifdef VBOX_WITH_USB
1147 VBoxDDR0_DEFS += VBOX_WITH_USB
1148 if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
1149 VBoxDDR0_DEFS += VBOX_WITH_EHCI_IMPL
1150 VBoxDDR0_SOURCES += \
1151 USB/DevEHCI.cpp
1152 endif
1153 if defined(VBOX_WITH_XHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
1154 VBoxDDR0_DEFS += VBOX_WITH_XHCI_IMPL
1155 VBoxDDR0_SOURCES += \
1156 USB/DevXHCI.cpp
1157 endif
1158 endif
1159
1160 if defined(VBOX_WITH_PCI_PASSTHROUGH_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
1161 VBoxDDR0_SOURCES += \
1162 Bus/DevPciRaw.cpp
1163 endif
1164
1165 ifdef VBOX_WITH_AHCI
1166 VBoxDDR0_DEFS += VBOX_WITH_AHCI IN_AHCI_R0
1167 VBoxDDR0_SOURCES += \
1168 Storage/DevAHCI.cpp
1169 endif
1170
1171 ifdef VBOX_WITH_BUSLOGIC
1172 VBoxDDR0_DEFS += VBOX_WITH_BUSLOGIC
1173 VBoxDDR0_SOURCES += \
1174 Storage/DevBusLogic.cpp
1175 endif
1176
1177 ifdef VBOX_WITH_LSILOGIC
1178 VBoxDDR0_DEFS += VBOX_WITH_LSILOGIC
1179 VBoxDDR0_SOURCES += \
1180 Storage/DevLsiLogicSCSI.cpp
1181 endif
1182
1183 ifdef VBOX_WITH_NEW_PS2M
1184 VBoxDDR0_DEFS += VBOX_WITH_NEW_PS2M
1185 endif
1186
1187 ifdef VBOX_WITH_HGSMI
1188 VBoxDDR0_DEFS += VBOX_WITH_HGSMI
1189 endif
1190 ifdef VBOX_WITH_VIDEOHWACCEL
1191 VBoxDDR0_DEFS += VBOX_WITH_VIDEOHWACCEL
1192 endif
1193
1194 if1of ($(VBOX_LDR_FMT), pe lx)
1195 VBoxDDR0_LIBS = \
1196 $(PATH_STAGE_LIB)/VMMR0Imp$(VBOX_SUFF_LIB) \
1197 $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
1198 endif
1199
1200
1201 ifdef VBOX_WITH_RAW_MODE
1202 #
1203 # VBoxDD2GC (LGPL sysmod)
1204 #
1205 VBoxDD2GC_TEMPLATE = VBoxRc
1206 VBoxDD2GC_INCS = build
1207 VBoxDD2GC_SOURCES = \
1208 PC/DevAPIC.cpp \
1209 PC/DevIoApic.cpp
1210 if1of ($(VBOX_LDR_FMT32), pe lx)
1211 VBoxDD2GC_LIBS = \
1212 $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB) \
1213 $(PATH_STAGE_LIB)/VMMRCImp$(VBOX_SUFF_LIB)
1214 endif
1215 endif
1216
1217
1218 #
1219 # VBoxDD2R0 (LGPL sysmod)
1220 #
1221 VBoxDD2R0_TEMPLATE = VBoxR0
1222 VBoxDD2R0_DEFS = IN_RT_R0
1223 VBoxDD2R0_INCS = build
1224 VBoxDD2R0_SOURCES = \
1225 build/VBoxDD2R0.cpp \
1226 PC/DevAPIC.cpp \
1227 PC/DevIoApic.cpp \
1228
1229 if1of ($(VBOX_LDR_FMT), pe lx)
1230 VBoxDD2R0_LIBS = \
1231 $(PATH_STAGE_LIB)/VMMR0Imp$(VBOX_SUFF_LIB) \
1232 $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
1233 endif
1234
1235
1236 #
1237 # Ring-0 Services (library, linked into VMMR0.r0)
1238 #
1239 ServicesR0_TEMPLATE = VBoxR0
1240 ServicesR0_DEFS = IN_INTNET_R0 IN_RT_R0 \
1241 $(if $(VBOX_WITH_PCI_PASSTHROUGH),IN_PCIRAW_R0,) \
1242 $(if $(VBOX_WITH_NAT_SERVICE),VBOX_WITH_NAT_SERVICE,)
1243 ServicesR0_SOURCES = \
1244 Network/SrvIntNetR0.cpp \
1245 $(if $(VBOX_WITH_PCI_PASSTHROUGH),Bus/SrvPciRawR0.cpp,)
1246 Network/SrvIntNetR0.cpp_CXXFLAGS := $(if-expr $(KBUILD_TARGET) == "win",,$(VBOX_GCC_Wno-array_bounds))
1247
1248
1249 #
1250 # Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
1251 #
1252 ifdef VBOX_WITH_TESTCASES
1253 PROGRAMS += tstIntNetR0
1254 tstIntNetR0_TEMPLATE = VBOXR3TSTEXE
1255 tstIntNetR0_DEFS = IN_INTNET_R0
1256 tstIntNetR0_SOURCES = \
1257 Network/testcase/tstIntNetR0.cpp
1258 ifneq ($(KBUILD_TARGET),win)
1259 Network/testcase/tstIntNetR0.cpp_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
1260 endif
1261 endif
1262
1263
1264 #
1265 # Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
1266 #
1267 ifdef VBOX_WITH_TESTCASES
1268 if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
1269 PROGRAMS += tstIntNetHardened-1
1270 tstIntNetHardened-1_TEMPLATE = VBoxR3HardenedTstExe
1271 tstIntNetHardened-1_NAME = tstIntNet-1
1272 tstIntNetHardened-1_DEFS = PROGRAM_NAME_STR=\"tstIntNet-1\"
1273 tstIntNetHardened-1_SOURCES = ../HostDrivers/Support/SUPR3HardenedMainTemplate.cpp
1274
1275 DLLS += tstIntNet-1
1276 tstIntNet-1_TEMPLATE = VBoxR3TstDll
1277 else
1278 PROGRAMS += tstIntNet-1
1279 tstIntNet-1_TEMPLATE = VBOXR3TSTEXE
1280 endif
1281 tstIntNet-1_SOURCES = \
1282 Network/testcase/tstIntNet-1.cpp \
1283 Network/Pcap.cpp
1284 endif
1285
1286
1287 #
1288 # EEPROM device unit test requires cppunit
1289 #
1290 ifdef VBOX_WITH_CPPUNIT_TESTCASES
1291 ifdef VBOX_WITH_E1000
1292 PROGRAMS += tstDevEEPROM
1293 tstDevEEPROM_TEMPLATE = VBOXCPPUNITEXE
1294 tstDevEEPROM_SOURCES = \
1295 Network/testcase/tstDevEEPROM.cpp
1296 tstDevEEPROM_LIBS = \
1297 $(TARGET_VBoxDD)
1298 PROGRAMS += tstDevPhy
1299 tstDevPhy_TEMPLATE = VBOXCPPUNITEXE
1300 tstDevPhy_SOURCES = \
1301 Network/testcase/tstDevPhy.cpp \
1302 Network/DevE1000Phy.cpp
1303 tstDevPhy_DEFS = PHY_UNIT_TEST
1304 endif
1305 endif
1306
1307 #
1308 # Apple SMC Utility.
1309 #
1310 ifdef VBOX_WITH_TESTCASES
1311 PROGRAMS.darwin += VBoxSmcUtil-darwin
1312 VBoxSmcUtil-darwin_TEMPLATE = VBOXR3TSTEXE
1313 VBoxSmcUtil-darwin_SOURCES = EFI/VBoxSmcUtil-darwin.cpp
1314 VBoxSmcUtil-darwin_LDFLAGS = -framework IOKit
1315 endif
1316
1317endif # !VBOX_ONLY_EXTPACKS
1318
1319
1320if defined(VBOX_WITH_EXTPACK_PUEL) && defined(VBOX_WITH_EXTPACK_PUEL_BUILD)
1321 #
1322 # The EHCI (USB 2.0) Extension Pack Modules.
1323 #
1324 if defined(VBOX_WITH_USB)
1325 DLLS += VBoxEhciR3
1326 VBoxEhciR3_TEMPLATE = VBoxR3ExtPackPuel
1327 VBoxEhciR3_SOURCES = \
1328 USB/DevEHCI.cpp \
1329 USB/DevXHCI.cpp
1330
1331 SYSMODS += VBoxEhciR0
1332 VBoxEhciR0_TEMPLATE = VBoxR0ExtPackPuel
1333 VBoxEhciR0_SOURCES = \
1334 USB/DevEHCI.cpp \
1335 USB/DevXHCI.cpp
1336
1337 ifdef VBOX_WITH_RAW_MODE
1338 SYSMODS += VBoxEhciRC
1339 VBoxEhciRC_TEMPLATE = VBoxRcExtPackPuel
1340 VBoxEhciRC_SOURCES = \
1341 USB/DevEHCI.cpp \
1342 USB/DevXHCI.cpp
1343 endif
1344
1345 # Hacky but MSI support *must* be enabled
1346 ifdef VBOX_WITH_MSI_DEVICES
1347 VBoxEhciR3_DEFS += VBOX_WITH_MSI_DEVICES
1348 VBoxEhciR0_DEFS += VBOX_WITH_MSI_DEVICES
1349 VBoxEhciRC_DEFS += VBOX_WITH_MSI_DEVICES
1350 endif
1351
1352 endif
1353
1354 if defined(VBOX_WITH_PCI_PASSTHROUGH)
1355 DLLS += VBoxPciRawR3
1356 VBoxPciRawR3_TEMPLATE = VBoxR3ExtPackPuel
1357 VBoxPciRawR3_SOURCES = Bus/DevPciRaw.cpp
1358
1359 DLLS += VBoxPciRawDrv
1360 VBoxPciRawDrv_TEMPLATE = VBoxR3ExtPackPuel
1361 VBoxPciRawDrv_SOURCES = Bus/DrvPciRaw.cpp
1362
1363 SYSMODS += VBoxPciRawR0
1364 VBoxPciRawR0_TEMPLATE = VBoxR0ExtPackPuel
1365 VBoxPciRawR0_SOURCES = Bus/DevPciRaw.cpp
1366
1367 Bus/DevPciRaw.cpp_INCS = Bus
1368 endif
1369
1370
1371 #
1372 # The Intel PXE ROM.
1373 #
1374 INSTALLS += VBoxExtPackPuelInsRoms
1375 VBoxExtPackPuelInsRoms_TEMPLATE = VBoxInsExtPackPuel
1376 VBoxExtPackPuelInsRoms_SOURCES = PC/PXE/PXE-Intel.rom=>PXE-Intel.rom
1377endif # VBOX_WITH_EXTPACK_PUEL
1378
1379
1380if defined(VBOX_WITH_VMSVGA3D) && !defined(VBOX_ONLY_EXTPACKS)
1381 #
1382 # Template used for VBoxSVGA3D. (Stips away compiler options.)
1383 #
1384 TEMPLATE_VBoxSVGA3D := VBoxSVGA3D
1385 TEMPLATE_VBoxSVGA3D_EXTENDS := $(if-expr "$(KBUILD_TARGET)" == "darwin",VBoxR3DllOsX107,VBOXR3)
1386 TEMPLATE_VBoxSVGA3D_CFLAGS = $(filter-out -pedantic -Wstrict-prototypes,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CFLAGS))
1387 TEMPLATE_VBoxSVGA3D_CXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CXXFLAGS))
1388 TEMPLATE_VBoxSVGA3D_OBJCFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_OBJCFLAGS))
1389 TEMPLATE_VBoxSVGA3D_OBJCXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_OBJCXXFLAGS))
1390 TEMPLATE_VBoxSVGA3D_LDFLAGS.darwin = $(TEMPLATE_VBoxR3DllOsX107_LDFLAGS.darwin) \
1391 -framework AppKit -framework OpenGL -framework IOKit
1392
1393 #
1394 # The shader library used by the SVGA3D implementation.
1395 #
1396 DLLS += VBoxSVGA3D
1397 VBoxSVGA3D_TEMPLATE = VBoxSVGA3D
1398 VBoxSVGA3D_SDKS = ReorderCompilerIncs
1399 VBoxSVGA3D_DEFS = \
1400 __WINESRC__ \
1401 WINE_UNICODE_API="" \
1402 _REENTRANT \
1403 WINE_NOWINSOCK \
1404 VBOX_WITH_VMSVGA \
1405 VBOX_WITH_VMSVGA3D \
1406 DLLDIR=\"\" \
1407 BINDIR=\"\" \
1408 LIB_TO_BINDIR=\"\" \
1409 LIB_TO_DLLDIR=\"\" \
1410 BIN_TO_DLLDIR=\"\" \
1411 LIB_TO_DATADIR=\"\" \
1412 BIN_TO_DATADIR=\"\" \
1413 _USE_MATH_DEFINES \
1414 VBOX_USING_WINDDK_W7_OR_LATER \
1415 VBOX_WINE_WITH_SINGLE_SWAPCHAIN_CONTEXT \
1416 IN_vmsvgashader_STATIC \
1417 IN_VMSVGA3D \
1418 VBOX_WINE_WITH_IPRT
1419 if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS)
1420 VBoxSVGA3D_DEFS += WINE_NO_DEBUG_MSGS
1421 endif
1422 VBoxSVGA3D_DEFS.x86 += __i386__
1423 VBoxSVGA3D_DEFS.amd64 += __x86_64__
1424 VBoxSVGA3D_DEFS.win += \
1425 USE_WIN32_OPENGL \
1426 VBOX_WINE_WITHOUT_LIBWINE \
1427
1428 # WINE relies on a gcc 4.4 feature but we have 4.2 on Darwin
1429 VBoxSVGA3D_DEFS.darwin += \
1430 __builtin_ms_va_list=va_list \
1431 __stdcall= \
1432 ms_abi=
1433 # WTF IS THIS? -fno-pic?? doubt it.
1434 VBoxSVGA3D_CFLAGS = \
1435 $(filter-out -pedantic -Wattributes,$(VBoxR3DllWarnNoPic_CFLAGS))
1436 VBoxSVGA3D_INCS.win := \
1437 Graphics/shaderlib/libWineStub/include
1438 VBoxSVGA3D_INCS.linux := \
1439 Graphics/shaderlib/wine/include
1440 VBoxSVGA3D_INCS.darwin := \
1441 Graphics/ \
1442 Graphics/shaderlib/wine/include
1443 VBoxSVGA3D_SOURCES := \
1444 Graphics/shaderlib/glsl_shader.c \
1445 Graphics/shaderlib/shader.c \
1446 Graphics/shaderlib/shader_sm1.c \
1447 Graphics/shaderlib/shader_sm4.c \
1448 Graphics/shaderlib/shaderapi.c \
1449 Graphics/shaderlib/utils.c \
1450 Graphics/shaderlib/stateblock.c \
1451 Graphics/shaderlib/directx.c \
1452 Graphics/shaderlib/libWineStub/debug.c
1453 if 0
1454 VBoxSVGA3D_SOURCES.darwin += \
1455 Graphics/DevVGA-SVGA3d-cocoa.m
1456 else
1457 VBoxSVGA3D_SOURCES.darwin += \
1458 ../HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m \
1459 ../GuestHost/OpenGL/util/vreg.cpp \
1460 ../GuestHost/OpenGL/util/blitter.cpp \
1461 ../GuestHost/OpenGL/util/compositor.cpp \
1462 ../HostServices/SharedOpenGL/OpenGLTest/OpenGLTestDarwin.cpp
1463 endif
1464 VBoxSVGA3D_LIBS = \
1465 $(LIB_RUNTIME)
1466 VBoxSVGA3D_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
1467 if1of ($(KBUILD_TARGET), solaris linux freebsd)
1468 VBoxSVGA3D_LIBS += GL
1469 endif
1470 VBoxSVGA3D_LDFLAGS.darwin += \
1471 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSVGA3D.dylib
1472
1473endif # defined(VBOX_WITH_VMSVGA3D) && !defined(VBOX_ONLY_EXTPACKS)
1474
1475include $(FILE_KBUILD_SUB_FOOTER)
1476
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