1 | # $Id: Makefile.kmk 60693 2016-04-25 17:15:09Z 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)$(SED) "s/<NL>/\n/g" \
|
---|
831 | --output $@.pre1 $@.pre
|
---|
832 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $@.pre1
|
---|
833 | $(QUIET)$(MV) -f $@ $@.tmp
|
---|
834 | $(QUIET)$(SED) "s/AmlCode/AmlCodeSsdtCpuHotPlug/g" \
|
---|
835 | --output $@ $@.tmp
|
---|
836 | $(QUIET)$(RM) -f $@.tmp $@.pre $@.pre1
|
---|
837 |
|
---|
838 |
|
---|
839 | vboxssdt-cpuhotplug.hex:: $$(VBoxDD_0_OUTDIR)/vboxssdt-cpuhotplug.hex
|
---|
840 |
|
---|
841 | endif # !VBOX_WITH_DYNAMIC_DSDT
|
---|
842 | PC/ACPI/VBoxAcpi.cpp_INCS = $(VBoxDD_0_OUTDIR)
|
---|
843 |
|
---|
844 | # For finding PCIInternal.h from VBox/pci.h.
|
---|
845 | Bus/DevPCI.cpp_INCS = Bus
|
---|
846 | Bus/DevPciIch9.cpp_INCS = Bus
|
---|
847 | Bus/MsiCommon.cpp_INCS = Bus
|
---|
848 | Bus/MsixCommon.cpp_INCS = Bus
|
---|
849 | Bus/DevPciRaw.cpp_INCS = Bus
|
---|
850 |
|
---|
851 | # For finding and generating vbetables.h (see Graphics/BIOS/Makefile.kmk).
|
---|
852 | Graphics/DevVGA.cpp_INCS = $(VgaBiosBin_0_OUTDIR)
|
---|
853 | Graphics/DevVGA.cpp_DEPS = $(VgaBiosBin_0_OUTDIR)/vbetables.h
|
---|
854 |
|
---|
855 | $(call VBOX_SET_VER_INFO_DLL,VBoxDD,VirtualBox VMM Devices and Drivers) # (last!)
|
---|
856 |
|
---|
857 |
|
---|
858 | ifdef VBOX_WITH_RAW_MODE
|
---|
859 | #
|
---|
860 | # VBoxDDRC (sysmod)
|
---|
861 | #
|
---|
862 | VBoxDDRC_TEMPLATE = VBoxRc
|
---|
863 | ifeq ($(KBUILD_TARGET_ARCH),x86)
|
---|
864 | VBoxDDRC_DEFS.darwin = VBOX_WITH_2X_4GB_ADDR_SPACE
|
---|
865 | endif
|
---|
866 | VBoxDDRC_DEFS = $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,)
|
---|
867 | VBoxDDRC_INCS = build
|
---|
868 | VBoxDDRC_SOURCES = \
|
---|
869 | Audio/DevIchHda.cpp \
|
---|
870 | Bus/DevPCI.cpp \
|
---|
871 | Bus/DevPciIch9.cpp \
|
---|
872 | Bus/MsiCommon.cpp \
|
---|
873 | Bus/MsixCommon.cpp \
|
---|
874 | EFI/DevSmc.cpp \
|
---|
875 | Graphics/DevVGA.cpp \
|
---|
876 | Input/DevPS2.cpp \
|
---|
877 | Input/PS2K.cpp \
|
---|
878 | Input/PS2M.cpp \
|
---|
879 | PC/DevACPI.cpp \
|
---|
880 | PC/DevPit-i8254.cpp \
|
---|
881 | PC/DevPIC.cpp \
|
---|
882 | PC/DevRTC.cpp \
|
---|
883 | PC/DevHPET.cpp \
|
---|
884 | Storage/DevATA.cpp \
|
---|
885 | Network/DevPCNet.cpp \
|
---|
886 | Serial/DevSerial.cpp \
|
---|
887 | Parallel/DevParallel.cpp \
|
---|
888 | VMMDev/VMMDevTesting.cpp
|
---|
889 |
|
---|
890 | ifdef VBOX_WITH_E1000
|
---|
891 | VBoxDDRC_DEFS += VBOX_WITH_E1000
|
---|
892 | VBoxDDRC_SOURCES += \
|
---|
893 | Network/DevE1000.cpp \
|
---|
894 | Network/DevE1000Phy.cpp
|
---|
895 | endif
|
---|
896 |
|
---|
897 | ifdef VBOX_WITH_VIRTIO
|
---|
898 | VBoxDDRC_DEFS += VBOX_WITH_VIRTIO
|
---|
899 | VBoxDDRC_SOURCES += \
|
---|
900 | VirtIO/Virtio.cpp \
|
---|
901 | Network/DevVirtioNet.cpp
|
---|
902 | endif
|
---|
903 |
|
---|
904 | ifdef VBOX_WITH_HGSMI
|
---|
905 | VBoxDDRC_DEFS += VBOX_WITH_HGSMI
|
---|
906 | endif
|
---|
907 | ifdef VBOX_WITH_WDDM
|
---|
908 | VBoxDDRC_DEFS += VBOX_WITH_WDDM
|
---|
909 | endif
|
---|
910 | ifdef VBOX_WITH_VDMA
|
---|
911 | VBoxDDRC_DEFS += VBOX_WITH_VDMA
|
---|
912 | endif
|
---|
913 | ifdef VBOX_WITH_CRHGSMI
|
---|
914 | VBoxDDRC_DEFS += VBOX_WITH_CRHGSMI
|
---|
915 | endif
|
---|
916 | ifdef VBOXWDDM_WITH_VBVA
|
---|
917 | VBoxDDRC_DEFS += VBOXWDDM_WITH_VBVA
|
---|
918 | endif
|
---|
919 | ifdef VBOX_WITH_VMSVGA
|
---|
920 | VBoxDDRC_DEFS += VBOX_WITH_VMSVGA
|
---|
921 | VBoxDDRC_SOURCES += \
|
---|
922 | Graphics/DevVGA-SVGA.cpp
|
---|
923 | endif
|
---|
924 | ifdef VBOX_WITH_VMSVGA3D
|
---|
925 | VBoxDDRC_DEFS += VBOX_WITH_VMSVGA3D
|
---|
926 | endif
|
---|
927 | ifdef VBOX_VDMA_WITH_WATCHDOG
|
---|
928 | VBoxDDRC_DEFS += VBOX_VDMA_WITH_WATCHDOG
|
---|
929 | endif
|
---|
930 |
|
---|
931 | ifdef VBOX_WITH_VUSB
|
---|
932 | VBoxDDRC_DEFS += VBOX_WITH_VUSB
|
---|
933 | VBoxDDRC_SOURCES += \
|
---|
934 | USB/DevOHCI.cpp
|
---|
935 | endif
|
---|
936 |
|
---|
937 | ifdef VBOX_WITH_USB
|
---|
938 | VBoxDDRC_DEFS += VBOX_WITH_USB
|
---|
939 | if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
940 | VBoxDDRC_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
941 | VBoxDDRC_SOURCES += \
|
---|
942 | USB/DevEHCI.cpp
|
---|
943 | endif
|
---|
944 | if defined(VBOX_WITH_XHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
945 | VBoxDDRC_DEFS += VBOX_WITH_XHCI_IMPL
|
---|
946 | VBoxDDRC_SOURCES += \
|
---|
947 | USB/DevXHCI.cpp
|
---|
948 | endif
|
---|
949 | endif
|
---|
950 |
|
---|
951 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
952 | VBoxDDRC_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
953 | endif
|
---|
954 |
|
---|
955 | ifdef VBOX_WITH_AHCI
|
---|
956 | VBoxDDRC_DEFS += VBOX_WITH_AHCI IN_AHCI_GC
|
---|
957 | VBoxDDRC_SOURCES += \
|
---|
958 | Storage/DevAHCI.cpp
|
---|
959 | endif
|
---|
960 |
|
---|
961 | ifdef VBOX_WITH_BUSLOGIC
|
---|
962 | VBoxDDRC_DEFS += VBOX_WITH_BUSLOGIC
|
---|
963 | VBoxDDRC_SOURCES += \
|
---|
964 | Storage/DevBusLogic.cpp
|
---|
965 | endif
|
---|
966 |
|
---|
967 | ifdef VBOX_WITH_LSILOGIC
|
---|
968 | VBoxDDRC_DEFS += VBOX_WITH_LSILOGIC
|
---|
969 | VBoxDDRC_SOURCES += \
|
---|
970 | Storage/DevLsiLogicSCSI.cpp
|
---|
971 | endif
|
---|
972 |
|
---|
973 | if defined(VBOX_WITH_NVME_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
974 | VBoxDDGC_DEFS += VBOX_WITH_NVME_IMPL
|
---|
975 | VBoxDDGC_SOURCES += \
|
---|
976 | Storage/DevNVMe.cpp
|
---|
977 | endif
|
---|
978 |
|
---|
979 | ifdef VBOX_WITH_NEW_PS2M
|
---|
980 | VBoxDDRC_DEFS += VBOX_WITH_NEW_PS2M
|
---|
981 | endif
|
---|
982 |
|
---|
983 | if1of ($(VBOX_LDR_FMT32), pe lx)
|
---|
984 | VBoxDDRC_LIBS = \
|
---|
985 | $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB) \
|
---|
986 | $(PATH_STAGE_LIB)/VMMRCImp$(VBOX_SUFF_LIB)
|
---|
987 | endif
|
---|
988 | endif # VBOX_WITH_RAW_MODE
|
---|
989 |
|
---|
990 | $(call VBOX_SET_VER_INFO_RC,VBoxDDRC,VirtualBox VMM Devices and Drivers$(COMMA) raw-mode) # last!
|
---|
991 |
|
---|
992 |
|
---|
993 | #
|
---|
994 | # VBoxDD2 (shared object)
|
---|
995 | #
|
---|
996 | VBoxDD2_TEMPLATE = VBoxR3DllWarnNoPic
|
---|
997 | VBoxDD2_DEFS = IN_VBOXDD2
|
---|
998 | VBoxDD2_INCS := \
|
---|
999 | build \
|
---|
1000 | $(PATH_SUB_CURRENT)
|
---|
1001 | VBoxDD2_SOURCES = \
|
---|
1002 | build/VBoxDD2.cpp \
|
---|
1003 | PC/DevIoApic.cpp \
|
---|
1004 | PC/DevLPC.cpp
|
---|
1005 | ifndef VBOX_WITH_NEW_APIC
|
---|
1006 | VBoxDD2_SOURCES += PC/DevAPIC.cpp
|
---|
1007 | endif
|
---|
1008 | VBoxDD2_LIBS = \
|
---|
1009 | $(PATH_STAGE_LIB)/PcBiosBin$(VBOX_SUFF_LIB) \
|
---|
1010 | $(PATH_STAGE_LIB)/VgaBiosBin$(VBOX_SUFF_LIB) \
|
---|
1011 | $(if $(VBOX_WITH_PXE_ROM),\
|
---|
1012 | $(if $(VBOX_WITH_INTEL_PXE),\
|
---|
1013 | $(PATH_STAGE_LIB)/NetBiosBin$(VBOX_SUFF_LIB),\
|
---|
1014 | $(PATH_STAGE_LIB)/iPxeBiosBin$(VBOX_SUFF_LIB)),) \
|
---|
1015 | $(LIB_VMM) \
|
---|
1016 | $(LIB_RUNTIME)
|
---|
1017 | VBoxDD2_LIBS.darwin += $(LIB_REM)
|
---|
1018 | VBoxDD2_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDD2.dylib
|
---|
1019 | VBoxDD2_LDFLAGS.linux = -Wl,--no-undefined
|
---|
1020 |
|
---|
1021 | ifdef VBOX_WITH_PXE_ROM
|
---|
1022 | VBoxDD2_DEFS += VBOX_WITH_PXE_ROM
|
---|
1023 | endif
|
---|
1024 | ifdef VBOX_WITH_NEW_APIC
|
---|
1025 | VBoxDD2_DEFS += VBOX_WITH_NEW_APIC
|
---|
1026 | endif
|
---|
1027 |
|
---|
1028 | $(call VBOX_SET_VER_INFO_DLL,VBoxDD2,VirtualBox VMM Devices and Drivers 2) # (last!)
|
---|
1029 |
|
---|
1030 | #
|
---|
1031 | # VBoxDDR0 (sysmod)
|
---|
1032 | #
|
---|
1033 | VBoxDDR0_TEMPLATE = VBoxR0
|
---|
1034 | VBoxDDR0_DEFS = IN_RT_R0 $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) # - WTF is IN_RT_R0 doing here?
|
---|
1035 | VBoxDDR0_DEFS.win += VBOX_WITH_WIN_PARPORT_SUP
|
---|
1036 | VBoxDDR0_INCS = build
|
---|
1037 | VBoxDDR0_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
|
---|
1038 | VBoxDDR0_SOURCES = \
|
---|
1039 | build/VBoxDDR0.cpp \
|
---|
1040 | Audio/DevIchHda.cpp \
|
---|
1041 | Bus/DevPCI.cpp \
|
---|
1042 | Bus/DevPciIch9.cpp \
|
---|
1043 | Bus/MsiCommon.cpp \
|
---|
1044 | Bus/MsixCommon.cpp \
|
---|
1045 | EFI/DevSmc.cpp \
|
---|
1046 | Graphics/DevVGA.cpp \
|
---|
1047 | Input/DevPS2.cpp \
|
---|
1048 | Input/PS2K.cpp \
|
---|
1049 | Input/PS2M.cpp \
|
---|
1050 | PC/DevACPI.cpp \
|
---|
1051 | PC/DevPit-i8254.cpp \
|
---|
1052 | PC/DevPIC.cpp \
|
---|
1053 | PC/DevRTC.cpp \
|
---|
1054 | PC/DevHPET.cpp \
|
---|
1055 | Storage/DevATA.cpp \
|
---|
1056 | Network/DevPCNet.cpp \
|
---|
1057 | Serial/DevSerial.cpp \
|
---|
1058 | Parallel/DevParallel.cpp \
|
---|
1059 | VMMDev/VMMDevTesting.cpp \
|
---|
1060 | \
|
---|
1061 | Network/DrvIntNet.cpp \
|
---|
1062 | Network/DrvDedicatedNic.cpp
|
---|
1063 |
|
---|
1064 | VBoxDDR0_SOURCES.win += Parallel/DrvHostParallel.cpp
|
---|
1065 |
|
---|
1066 | ifdef VBOX_WITH_E1000
|
---|
1067 | VBoxDDR0_DEFS += VBOX_WITH_E1000
|
---|
1068 | VBoxDDR0_SOURCES += \
|
---|
1069 | Network/DevE1000.cpp \
|
---|
1070 | Network/DevE1000Phy.cpp
|
---|
1071 | endif
|
---|
1072 |
|
---|
1073 | ifdef VBOX_WITH_VIRTIO
|
---|
1074 | VBoxDDR0_DEFS += VBOX_WITH_VIRTIO
|
---|
1075 | VBoxDDR0_SOURCES += \
|
---|
1076 | VirtIO/Virtio.cpp \
|
---|
1077 | Network/DevVirtioNet.cpp
|
---|
1078 | endif
|
---|
1079 |
|
---|
1080 | ifdef VBOX_WITH_NETSHAPER
|
---|
1081 | VBoxDDR0_DEFS += VBOX_WITH_NETSHAPER
|
---|
1082 | VBoxDDR0_SOURCES += \
|
---|
1083 | Network/DrvNetShaper.cpp
|
---|
1084 | endif
|
---|
1085 |
|
---|
1086 | ifdef VBOX_WITH_VMSVGA
|
---|
1087 | VBoxDDR0_DEFS += VBOX_WITH_VMSVGA
|
---|
1088 | VBoxDDR0_SOURCES += \
|
---|
1089 | Graphics/DevVGA-SVGA.cpp
|
---|
1090 | endif
|
---|
1091 | ifdef VBOX_WITH_VMSVGA3D
|
---|
1092 | VBoxDDR0_DEFS += VBOX_WITH_VMSVGA3D
|
---|
1093 | endif
|
---|
1094 |
|
---|
1095 | ifdef VBOX_WITH_HGSMI
|
---|
1096 | VBoxDDR0_DEFS += VBOX_WITH_HGSMI
|
---|
1097 | endif
|
---|
1098 | ifdef VBOX_WITH_WDDM
|
---|
1099 | VBoxDDR0_DEFS += VBOX_WITH_WDDM
|
---|
1100 | endif
|
---|
1101 | ifdef VBOX_WITH_VDMA
|
---|
1102 | VBoxDDR0_DEFS += VBOX_WITH_VDMA
|
---|
1103 | endif
|
---|
1104 | ifdef VBOX_WITH_CRHGSMI
|
---|
1105 | VBoxDDR0_DEFS += VBOX_WITH_CRHGSMI
|
---|
1106 | endif
|
---|
1107 | ifdef VBOXWDDM_WITH_VBVA
|
---|
1108 | VBoxDDR0_DEFS += VBOXWDDM_WITH_VBVA
|
---|
1109 | endif
|
---|
1110 | ifdef VBOX_VDMA_WITH_WATCHDOG
|
---|
1111 | VBoxDDR0_DEFS += VBOX_VDMA_WITH_WATCHDOG
|
---|
1112 | endif
|
---|
1113 |
|
---|
1114 | ifdef VBOX_WITH_VUSB
|
---|
1115 | VBoxDDR0_DEFS += VBOX_WITH_VUSB
|
---|
1116 | VBoxDDR0_SOURCES += \
|
---|
1117 | USB/DevOHCI.cpp
|
---|
1118 | endif
|
---|
1119 | ifdef VBOX_WITH_USB
|
---|
1120 | VBoxDDR0_DEFS += VBOX_WITH_USB
|
---|
1121 | if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
1122 | VBoxDDR0_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
1123 | VBoxDDR0_SOURCES += \
|
---|
1124 | USB/DevEHCI.cpp
|
---|
1125 | endif
|
---|
1126 | if defined(VBOX_WITH_XHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
1127 | VBoxDDR0_DEFS += VBOX_WITH_XHCI_IMPL
|
---|
1128 | VBoxDDR0_SOURCES += \
|
---|
1129 | USB/DevXHCI.cpp
|
---|
1130 | endif
|
---|
1131 | endif
|
---|
1132 |
|
---|
1133 | if defined(VBOX_WITH_PCI_PASSTHROUGH_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
1134 | VBoxDDR0_SOURCES += \
|
---|
1135 | Bus/DevPciRaw.cpp
|
---|
1136 | endif
|
---|
1137 |
|
---|
1138 | ifdef VBOX_WITH_AHCI
|
---|
1139 | VBoxDDR0_DEFS += VBOX_WITH_AHCI IN_AHCI_R0
|
---|
1140 | VBoxDDR0_SOURCES += \
|
---|
1141 | Storage/DevAHCI.cpp
|
---|
1142 | endif
|
---|
1143 |
|
---|
1144 | ifdef VBOX_WITH_BUSLOGIC
|
---|
1145 | VBoxDDR0_DEFS += VBOX_WITH_BUSLOGIC
|
---|
1146 | VBoxDDR0_SOURCES += \
|
---|
1147 | Storage/DevBusLogic.cpp
|
---|
1148 | endif
|
---|
1149 |
|
---|
1150 | ifdef VBOX_WITH_LSILOGIC
|
---|
1151 | VBoxDDR0_DEFS += VBOX_WITH_LSILOGIC
|
---|
1152 | VBoxDDR0_SOURCES += \
|
---|
1153 | Storage/DevLsiLogicSCSI.cpp
|
---|
1154 | endif
|
---|
1155 |
|
---|
1156 | if defined(VBOX_WITH_NVME_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
1157 | VBoxDDR0_DEFS += VBOX_WITH_NVME_IMPL
|
---|
1158 | VBoxDDR0_SOURCES += \
|
---|
1159 | Storage/DevNVMe.cpp
|
---|
1160 | endif
|
---|
1161 |
|
---|
1162 | ifdef VBOX_WITH_NEW_PS2M
|
---|
1163 | VBoxDDR0_DEFS += VBOX_WITH_NEW_PS2M
|
---|
1164 | endif
|
---|
1165 |
|
---|
1166 | ifdef VBOX_WITH_HGSMI
|
---|
1167 | VBoxDDR0_DEFS += VBOX_WITH_HGSMI
|
---|
1168 | endif
|
---|
1169 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
1170 | VBoxDDR0_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
1171 | endif
|
---|
1172 |
|
---|
1173 | if1of ($(VBOX_LDR_FMT), pe lx)
|
---|
1174 | VBoxDDR0_LIBS = \
|
---|
1175 | $(PATH_STAGE_LIB)/VMMR0Imp$(VBOX_SUFF_LIB) \
|
---|
1176 | $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
|
---|
1177 | endif
|
---|
1178 |
|
---|
1179 | $(call VBOX_SET_VER_INFO_R0,VBoxDDR0,VirtualBox VMM Devices and Drivers$(COMMA) ring-0) # (last!)
|
---|
1180 |
|
---|
1181 |
|
---|
1182 | ifdef VBOX_WITH_RAW_MODE
|
---|
1183 | #
|
---|
1184 | # VBoxDD2RC (LGPL sysmod)
|
---|
1185 | #
|
---|
1186 | VBoxDD2RC_TEMPLATE = VBoxRc
|
---|
1187 | VBoxDD2RC_INCS = build
|
---|
1188 | VBoxDD2RC_SOURCES = \
|
---|
1189 | PC/DevIoApic.cpp
|
---|
1190 | ifndef VBOX_WITH_NEW_APIC
|
---|
1191 | VBoxDD2RC_SOURCES += PC/DevAPIC.cpp
|
---|
1192 | endif
|
---|
1193 | if1of ($(VBOX_LDR_FMT32), pe lx)
|
---|
1194 | VBoxDD2RC_LIBS = \
|
---|
1195 | $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB) \
|
---|
1196 | $(PATH_STAGE_LIB)/VMMRCImp$(VBOX_SUFF_LIB)
|
---|
1197 | endif
|
---|
1198 | $(call VBOX_SET_VER_INFO_RC,VBoxDD2RC,VirtualBox VMM Devices and Drivers 2$(COMMA) raw-mode)
|
---|
1199 | endif
|
---|
1200 |
|
---|
1201 |
|
---|
1202 | #
|
---|
1203 | # VBoxDD2R0 (LGPL sysmod)
|
---|
1204 | #
|
---|
1205 | VBoxDD2R0_TEMPLATE = VBoxR0
|
---|
1206 | VBoxDD2R0_DEFS = IN_RT_R0
|
---|
1207 | VBoxDD2R0_INCS = build
|
---|
1208 | VBoxDD2R0_SOURCES = \
|
---|
1209 | build/VBoxDD2R0.cpp \
|
---|
1210 | PC/DevIoApic.cpp
|
---|
1211 | ifndef VBOX_WITH_NEW_APIC
|
---|
1212 | VBoxDD2R0_SOURCES += PC/DevAPIC.cpp
|
---|
1213 | endif
|
---|
1214 | if1of ($(VBOX_LDR_FMT), pe lx)
|
---|
1215 | VBoxDD2R0_LIBS = \
|
---|
1216 | $(PATH_STAGE_LIB)/VMMR0Imp$(VBOX_SUFF_LIB) \
|
---|
1217 | $(PATH_STAGE_LIB)/SUPR0$(VBOX_SUFF_LIB)
|
---|
1218 | endif
|
---|
1219 | $(call VBOX_SET_VER_INFO_R0,VBoxDD2R0,VirtualBox VMM Devices and Drivers 2$(COMMA) ring-0) # (last!)
|
---|
1220 |
|
---|
1221 |
|
---|
1222 | #
|
---|
1223 | # Ring-0 Services (library, linked into VMMR0.r0)
|
---|
1224 | #
|
---|
1225 | ServicesR0_TEMPLATE = VBoxR0
|
---|
1226 | ServicesR0_DEFS = IN_INTNET_R0 IN_RT_R0 \
|
---|
1227 | $(if $(VBOX_WITH_PCI_PASSTHROUGH),IN_PCIRAW_R0,) \
|
---|
1228 | $(if $(VBOX_WITH_NAT_SERVICE),VBOX_WITH_NAT_SERVICE,)
|
---|
1229 | ServicesR0_SOURCES = \
|
---|
1230 | Network/SrvIntNetR0.cpp \
|
---|
1231 | $(if $(VBOX_WITH_PCI_PASSTHROUGH),Bus/SrvPciRawR0.cpp,)
|
---|
1232 | Network/SrvIntNetR0.cpp_CXXFLAGS := $(if-expr $(KBUILD_TARGET) == "win",,$(VBOX_GCC_Wno-array_bounds))
|
---|
1233 |
|
---|
1234 |
|
---|
1235 | #
|
---|
1236 | # Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
|
---|
1237 | #
|
---|
1238 | ifdef VBOX_WITH_TESTCASES
|
---|
1239 | PROGRAMS += tstIntNetR0
|
---|
1240 | tstIntNetR0_TEMPLATE = VBOXR3TSTEXE
|
---|
1241 | tstIntNetR0_DEFS = IN_INTNET_R0
|
---|
1242 | tstIntNetR0_SOURCES = \
|
---|
1243 | Network/testcase/tstIntNetR0.cpp
|
---|
1244 | ifneq ($(KBUILD_TARGET),win)
|
---|
1245 | Network/testcase/tstIntNetR0.cpp_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
|
---|
1246 | endif
|
---|
1247 | endif
|
---|
1248 |
|
---|
1249 |
|
---|
1250 | #
|
---|
1251 | # Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
|
---|
1252 | #
|
---|
1253 | ifdef VBOX_WITH_TESTCASES
|
---|
1254 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
|
---|
1255 | PROGRAMS += tstIntNetHardened-1
|
---|
1256 | tstIntNetHardened-1_TEMPLATE = VBoxR3HardenedTstExe
|
---|
1257 | tstIntNetHardened-1_NAME = tstIntNet-1
|
---|
1258 | tstIntNetHardened-1_DEFS = PROGRAM_NAME_STR=\"tstIntNet-1\"
|
---|
1259 | tstIntNetHardened-1_SOURCES = ../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
|
---|
1260 |
|
---|
1261 | DLLS += tstIntNet-1
|
---|
1262 | tstIntNet-1_TEMPLATE = VBoxR3HardenedTstDll
|
---|
1263 | else
|
---|
1264 | PROGRAMS += tstIntNet-1
|
---|
1265 | tstIntNet-1_TEMPLATE = VBOXR3TSTEXE
|
---|
1266 | endif
|
---|
1267 | tstIntNet-1_SOURCES = \
|
---|
1268 | Network/testcase/tstIntNet-1.cpp \
|
---|
1269 | Network/Pcap.cpp
|
---|
1270 | endif
|
---|
1271 |
|
---|
1272 |
|
---|
1273 | #
|
---|
1274 | # EEPROM device unit test requires cppunit
|
---|
1275 | #
|
---|
1276 | ifdef VBOX_WITH_CPPUNIT_TESTCASES
|
---|
1277 | ifdef VBOX_WITH_E1000
|
---|
1278 | PROGRAMS += tstDevEEPROM
|
---|
1279 | tstDevEEPROM_TEMPLATE = VBOXCPPUNITEXE
|
---|
1280 | tstDevEEPROM_SOURCES = \
|
---|
1281 | Network/testcase/tstDevEEPROM.cpp
|
---|
1282 | tstDevEEPROM_LIBS = \
|
---|
1283 | $(TARGET_VBoxDD)
|
---|
1284 | PROGRAMS += tstDevPhy
|
---|
1285 | tstDevPhy_TEMPLATE = VBOXCPPUNITEXE
|
---|
1286 | tstDevPhy_SOURCES = \
|
---|
1287 | Network/testcase/tstDevPhy.cpp \
|
---|
1288 | Network/DevE1000Phy.cpp
|
---|
1289 | tstDevPhy_DEFS = PHY_UNIT_TEST
|
---|
1290 | endif
|
---|
1291 | endif
|
---|
1292 |
|
---|
1293 | #
|
---|
1294 | # Apple SMC Utility.
|
---|
1295 | #
|
---|
1296 | ifdef VBOX_WITH_TESTCASES
|
---|
1297 | PROGRAMS.darwin += VBoxSmcUtil-darwin
|
---|
1298 | VBoxSmcUtil-darwin_TEMPLATE = VBOXR3TSTEXE
|
---|
1299 | VBoxSmcUtil-darwin_SOURCES = EFI/VBoxSmcUtil-darwin.cpp
|
---|
1300 | VBoxSmcUtil-darwin_LDFLAGS = -framework IOKit
|
---|
1301 | endif
|
---|
1302 |
|
---|
1303 | endif # !VBOX_ONLY_EXTPACKS
|
---|
1304 |
|
---|
1305 |
|
---|
1306 | if defined(VBOX_WITH_EXTPACK_PUEL) && defined(VBOX_WITH_EXTPACK_PUEL_BUILD)
|
---|
1307 | #
|
---|
1308 | # The EHCI (USB 2.0) Extension Pack Modules.
|
---|
1309 | #
|
---|
1310 | if defined(VBOX_WITH_USB)
|
---|
1311 | DLLS += VBoxEhciR3
|
---|
1312 | VBoxEhciR3_TEMPLATE = VBoxR3ExtPackPuel
|
---|
1313 | VBoxEhciR3_SOURCES = \
|
---|
1314 | USB/DevEHCI.cpp \
|
---|
1315 | USB/DevXHCI.cpp
|
---|
1316 | $(call VBOX_SET_VER_INFO_DLL,VBoxEhciR3,PUEL Extension Pack - EHCI Device)
|
---|
1317 |
|
---|
1318 | SYSMODS += VBoxEhciR0
|
---|
1319 | VBoxEhciR0_TEMPLATE = VBoxR0ExtPackPuel
|
---|
1320 | VBoxEhciR0_SOURCES = \
|
---|
1321 | USB/DevEHCI.cpp \
|
---|
1322 | USB/DevXHCI.cpp
|
---|
1323 | $(call VBOX_SET_VER_INFO_R0,VBoxEhciR0,PUEL Extension Pack - EHCI Device$(COMMA) ring-0)
|
---|
1324 |
|
---|
1325 | ifdef VBOX_WITH_RAW_MODE
|
---|
1326 | SYSMODS += VBoxEhciRC
|
---|
1327 | VBoxEhciRC_TEMPLATE = VBoxRcExtPackPuel
|
---|
1328 | VBoxEhciRC_SOURCES = \
|
---|
1329 | USB/DevEHCI.cpp \
|
---|
1330 | USB/DevXHCI.cpp
|
---|
1331 | $(call VBOX_SET_VER_INFO_RC,VBoxEhciRC,PUEL Extension Pack - EHCI Device$(COMMA) raw-mode)
|
---|
1332 | endif
|
---|
1333 |
|
---|
1334 | # Hacky but MSI support *must* be enabled
|
---|
1335 | ifdef VBOX_WITH_MSI_DEVICES
|
---|
1336 | VBoxEhciR3_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
1337 | VBoxEhciR0_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
1338 | VBoxEhciRC_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
1339 | endif
|
---|
1340 |
|
---|
1341 | endif
|
---|
1342 |
|
---|
1343 | if defined(VBOX_WITH_PCI_PASSTHROUGH)
|
---|
1344 | DLLS += VBoxPciRawR3
|
---|
1345 | VBoxPciRawR3_TEMPLATE = VBoxR3ExtPackPuel
|
---|
1346 | VBoxPciRawR3_SOURCES = Bus/DevPciRaw.cpp
|
---|
1347 | $(call VBOX_SET_VER_INFO_DLL,VBoxPciRawR3,PUEL Extension Pack - PCI Passthrough Device)
|
---|
1348 |
|
---|
1349 | DLLS += VBoxPciRawDrv
|
---|
1350 | VBoxPciRawDrv_TEMPLATE = VBoxR3ExtPackPuel
|
---|
1351 | VBoxPciRawDrv_SOURCES = Bus/DrvPciRaw.cpp
|
---|
1352 | $(call VBOX_SET_VER_INFO_DLL,VBoxPciRawDrv,PUEL Extension Pack - PCI Passthrough Driver)
|
---|
1353 |
|
---|
1354 | SYSMODS += VBoxPciRawR0
|
---|
1355 | VBoxPciRawR0_TEMPLATE = VBoxR0ExtPackPuel
|
---|
1356 | VBoxPciRawR0_SOURCES = Bus/DevPciRaw.cpp
|
---|
1357 | $(call VBOX_SET_VER_INFO_R0,VBoxPciRawR0,PUEL Extension Pack - PCI Passthrough Driver$(COMMA) ring-0)
|
---|
1358 |
|
---|
1359 | Bus/DevPciRaw.cpp_INCS = Bus
|
---|
1360 | endif
|
---|
1361 |
|
---|
1362 | #
|
---|
1363 | # The NVMe Extension Pack Modules.
|
---|
1364 | #
|
---|
1365 | if defined(VBOX_WITH_NVME_IMPL)
|
---|
1366 | DLLS += VBoxNvmeR3
|
---|
1367 | VBoxNvmeR3_TEMPLATE = VBoxR3ExtPackPuel
|
---|
1368 | VBoxNvmeR3_SOURCES = \
|
---|
1369 | Storage/DevNVMe.cpp
|
---|
1370 | $(call VBOX_SET_VER_INFO_DLL,VBoxNvmeR3,PUEL Extension Pack - NVMe Device)
|
---|
1371 |
|
---|
1372 | SYSMODS += VBoxNvmeR0
|
---|
1373 | VBoxNvmeR0_TEMPLATE = VBoxR0ExtPackPuel
|
---|
1374 | VBoxNvmeR0_SOURCES = \
|
---|
1375 | Storage/DevNVMe.cpp
|
---|
1376 | $(call VBOX_SET_VER_INFO_R0,VBoxNvmeR0,PUEL Extension Pack - NVMe Device$(COMMA) ring-0)
|
---|
1377 |
|
---|
1378 | ifdef VBOX_WITH_RAW_MODE
|
---|
1379 | SYSMODS += VBoxNvmeRC
|
---|
1380 | VBoxNvmeRC_TEMPLATE = VBoxRcExtPackPuel
|
---|
1381 | VBoxNvmeRC_SOURCES = \
|
---|
1382 | Storage/DevNVMe.cpp
|
---|
1383 | $(call VBOX_SET_VER_INFO_RC,VBoxNvmeRC,PUEL Extension Pack - NVMe Device$(COMMA) raw-mode)
|
---|
1384 | endif
|
---|
1385 |
|
---|
1386 | # Hacky but MSI support *must* be enabled
|
---|
1387 | ifdef VBOX_WITH_MSI_DEVICES
|
---|
1388 | VBoxNvmeR3_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
1389 | VBoxNvmeR0_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
1390 | VBoxNvmeRC_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
1391 | endif
|
---|
1392 |
|
---|
1393 | endif
|
---|
1394 |
|
---|
1395 |
|
---|
1396 | #
|
---|
1397 | # The Intel PXE ROM.
|
---|
1398 | #
|
---|
1399 | INSTALLS += VBoxExtPackPuelInsRoms
|
---|
1400 | VBoxExtPackPuelInsRoms_TEMPLATE = VBoxInsExtPackPuel
|
---|
1401 | VBoxExtPackPuelInsRoms_SOURCES = PC/PXE/PXE-Intel.rom=>PXE-Intel.rom
|
---|
1402 | endif # VBOX_WITH_EXTPACK_PUEL
|
---|
1403 |
|
---|
1404 |
|
---|
1405 | if defined(VBOX_WITH_VMSVGA3D) && !defined(VBOX_ONLY_EXTPACKS)
|
---|
1406 | #
|
---|
1407 | # Template used for VBoxSVGA3D. (Stips away compiler options.)
|
---|
1408 | #
|
---|
1409 | TEMPLATE_VBoxSVGA3D := VBoxSVGA3D
|
---|
1410 | TEMPLATE_VBoxSVGA3D_EXTENDS := $(if-expr "$(KBUILD_TARGET)" == "darwin",VBoxR3DllOsX107,VBOXR3)
|
---|
1411 | TEMPLATE_VBoxSVGA3D_CFLAGS = $(filter-out -pedantic -Wstrict-prototypes,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CFLAGS))
|
---|
1412 | TEMPLATE_VBoxSVGA3D_CXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CXXFLAGS))
|
---|
1413 | TEMPLATE_VBoxSVGA3D_OBJCFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_OBJCFLAGS))
|
---|
1414 | TEMPLATE_VBoxSVGA3D_OBJCXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_OBJCXXFLAGS))
|
---|
1415 | TEMPLATE_VBoxSVGA3D_LDFLAGS.darwin = $(TEMPLATE_VBoxR3DllOsX107_LDFLAGS.darwin) \
|
---|
1416 | -framework AppKit -framework OpenGL -framework IOKit
|
---|
1417 |
|
---|
1418 | #
|
---|
1419 | # The shader library used by the SVGA3D implementation.
|
---|
1420 | #
|
---|
1421 | DLLS += VBoxSVGA3D
|
---|
1422 | VBoxSVGA3D_TEMPLATE = VBoxSVGA3D
|
---|
1423 | VBoxSVGA3D_SDKS = ReorderCompilerIncs
|
---|
1424 | VBoxSVGA3D_DEFS = \
|
---|
1425 | __WINESRC__ \
|
---|
1426 | WINE_UNICODE_API="" \
|
---|
1427 | _REENTRANT \
|
---|
1428 | WINE_NOWINSOCK \
|
---|
1429 | VBOX_WITH_VMSVGA \
|
---|
1430 | VBOX_WITH_VMSVGA3D \
|
---|
1431 | DLLDIR=\"\" \
|
---|
1432 | BINDIR=\"\" \
|
---|
1433 | LIB_TO_BINDIR=\"\" \
|
---|
1434 | LIB_TO_DLLDIR=\"\" \
|
---|
1435 | BIN_TO_DLLDIR=\"\" \
|
---|
1436 | LIB_TO_DATADIR=\"\" \
|
---|
1437 | BIN_TO_DATADIR=\"\" \
|
---|
1438 | _USE_MATH_DEFINES \
|
---|
1439 | VBOX_USING_WINDDK_W7_OR_LATER \
|
---|
1440 | VBOX_WINE_WITH_SINGLE_SWAPCHAIN_CONTEXT \
|
---|
1441 | IN_vmsvgashader_STATIC \
|
---|
1442 | IN_VMSVGA3D \
|
---|
1443 | VBOX_WINE_WITH_IPRT
|
---|
1444 | if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS)
|
---|
1445 | VBoxSVGA3D_DEFS += WINE_NO_DEBUG_MSGS
|
---|
1446 | endif
|
---|
1447 | VBoxSVGA3D_DEFS.x86 += __i386__
|
---|
1448 | VBoxSVGA3D_DEFS.amd64 += __x86_64__
|
---|
1449 | VBoxSVGA3D_DEFS.win += \
|
---|
1450 | USE_WIN32_OPENGL \
|
---|
1451 | VBOX_WINE_WITHOUT_LIBWINE
|
---|
1452 | VBoxSVGA3D_DEFS.darwin += VBOX_VMSVGA3D_DUAL_OPENGL_PROFILE
|
---|
1453 | if 0 # Use the OpenGL 3.2 Core profile (VBoxSVGA3D_DEFS.darwin).
|
---|
1454 | VBoxSVGA3D_DEFS.darwin += VBOX_VMSVGA3D_DEFAULT_OGL_PROFILE=3.2 VBOX_VMSVGA3D_OTHER_OGL_PROFILE=2.1
|
---|
1455 | else
|
---|
1456 | VBoxSVGA3D_DEFS.darwin += VBOX_VMSVGA3D_DEFAULT_OGL_PROFILE=2.1 VBOX_VMSVGA3D_OTHER_OGL_PROFILE=3.2
|
---|
1457 | endif
|
---|
1458 |
|
---|
1459 | # WINE relies on a gcc 4.4 feature but we have 4.2 on Darwin
|
---|
1460 | VBoxSVGA3D_DEFS.darwin += \
|
---|
1461 | __builtin_ms_va_list=va_list \
|
---|
1462 | __stdcall= \
|
---|
1463 | ms_abi=
|
---|
1464 | VBoxSVGA3D_INCS.win := \
|
---|
1465 | Graphics/shaderlib/libWineStub/include
|
---|
1466 | VBoxSVGA3D_INCS.linux := \
|
---|
1467 | Graphics/shaderlib/wine/include
|
---|
1468 | VBoxSVGA3D_INCS.darwin := \
|
---|
1469 | Graphics/ \
|
---|
1470 | Graphics/shaderlib/wine/include
|
---|
1471 | VBoxSVGA3D_SOURCES := \
|
---|
1472 | Graphics/shaderlib/glsl_shader.c \
|
---|
1473 | Graphics/shaderlib/shader.c \
|
---|
1474 | Graphics/shaderlib/shader_sm1.c \
|
---|
1475 | Graphics/shaderlib/shader_sm4.c \
|
---|
1476 | Graphics/shaderlib/shaderapi.c \
|
---|
1477 | Graphics/shaderlib/utils.c \
|
---|
1478 | Graphics/shaderlib/stateblock.c \
|
---|
1479 | Graphics/shaderlib/directx.c \
|
---|
1480 | Graphics/shaderlib/libWineStub/debug.c
|
---|
1481 | VBoxSVGA3D_LIBS = $(LIB_RUNTIME)
|
---|
1482 | VBoxSVGA3D_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
|
---|
1483 | if1of ($(KBUILD_TARGET), solaris linux freebsd)
|
---|
1484 | VBoxSVGA3D_LIBS += GL
|
---|
1485 | endif
|
---|
1486 | VBoxSVGA3D_LDFLAGS.darwin += \
|
---|
1487 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSVGA3D.dylib
|
---|
1488 | $(call VBOX_SET_VER_INFO_DLL,VBoxSVGA3D,VirtualBox VMSVGA 3D)
|
---|
1489 |
|
---|
1490 | #
|
---|
1491 | # The Objective C code needs to be separate since the shaderlib redefines most
|
---|
1492 | # GL functions as pointers, making it impossible to mix with code calling OpenGL
|
---|
1493 | # functions directly. This module must be compiled for 10.7 or later, thus it
|
---|
1494 | # needs to be separate from VBoxDD.dylib, or at least that's our belief...
|
---|
1495 | #
|
---|
1496 | DLLS.darwin += VBoxSVGA3DObjC
|
---|
1497 | VBoxSVGA3DObjC_TEMPLATE = VBoxSVGA3D
|
---|
1498 | VBoxSVGA3DObjC_DEFS = $(VBoxSVGA3D_DEFS) IN_VMSVGA3DCOCOA
|
---|
1499 | VBoxSVGA3DObjC_DEFS.x86 = __i386__
|
---|
1500 | VBoxSVGA3DObjC_DEFS.amd64 = __x86_64__
|
---|
1501 | VBoxSVGA3DObjC_DEFS.darwin = $(VBoxSVGA3D_DEFS.darwin)
|
---|
1502 | VBoxSVGA3DObjC_INCS = $(VBoxSVGA3D_INCS)
|
---|
1503 | VBoxSVGA3DObjC_INCS.darwin = $(VBoxSVGA3D_INCS.darwin)
|
---|
1504 | VBoxSVGA3DObjC_LIBS = $(LIB_RUNTIME)
|
---|
1505 | VBoxSVGA3DObjC_LDFLAGS.darwin = \
|
---|
1506 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSVGA3DObjC.dylib \
|
---|
1507 | -framework OpenGL
|
---|
1508 | if 1
|
---|
1509 | VBoxSVGA3DObjC_SOURCES.darwin += \
|
---|
1510 | Graphics/DevVGA-SVGA3d-cocoa.m
|
---|
1511 | else
|
---|
1512 | VBoxSVGA3DObjC_SOURCES.darwin += \
|
---|
1513 | ../HostServices/SharedOpenGL/render/renderspu_cocoa_helper.m \
|
---|
1514 | ../HostServices/SharedOpenGL/OpenGLTest/OpenGLTestDarwin.cpp
|
---|
1515 | endif
|
---|
1516 |
|
---|
1517 |
|
---|
1518 |
|
---|
1519 | endif # defined(VBOX_WITH_VMSVGA3D) && !defined(VBOX_ONLY_EXTPACKS)
|
---|
1520 |
|
---|
1521 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
1522 |
|
---|