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