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