1 | # $Id: Makefile.kmk 99927 2023-05-23 08:05:36Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Top-level sub-makefile for the devices, drivers and services.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2023 Oracle and/or its affiliates.
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox base platform packages, as
|
---|
10 | # available from https://www.virtualbox.org.
|
---|
11 | #
|
---|
12 | # This program is free software; you can redistribute it and/or
|
---|
13 | # modify it under the terms of the GNU General Public License
|
---|
14 | # as published by the Free Software Foundation, in version 3 of the
|
---|
15 | # License.
|
---|
16 | #
|
---|
17 | # This program is distributed in the hope that it will be useful, but
|
---|
18 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | # General Public License for more details.
|
---|
21 | #
|
---|
22 | # You should have received a copy of the GNU General Public License
|
---|
23 | # along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | #
|
---|
25 | # SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | #
|
---|
27 |
|
---|
28 | SUB_DEPTH = ../../..
|
---|
29 | include $(KBUILD_PATH)/subheader.kmk
|
---|
30 |
|
---|
31 | # Make sure our Config.kmk is included.
|
---|
32 | ifndef VBOX_DEVICES_CONFIG_KMK_INCLUDED
|
---|
33 | include $(PATH_SUB_CURRENT)/Config.kmk
|
---|
34 | endif
|
---|
35 |
|
---|
36 | # Include sub-makefiles.
|
---|
37 | if1of ($(KBUILD_TARGET_ARCH), $(VBOX_SUPPORTED_HOST_ARCHS))
|
---|
38 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
39 | include $(PATH_SUB_CURRENT)/Audio/testcase/Makefile.kmk
|
---|
40 | include $(PATH_SUB_CURRENT)/Input/testcase/Makefile.kmk
|
---|
41 | ifdef VBOX_WITH_TESTCASES
|
---|
42 | include $(PATH_SUB_CURRENT)/Samples/Makefile.kmk
|
---|
43 | endif
|
---|
44 | if defined(VBOX_WITH_INTEL_PXE) || defined(VBOX_ONLY_EXTPACKS)
|
---|
45 | include $(PATH_SUB_CURRENT)/PC/PXE/Makefile.kmk
|
---|
46 | else if defined(VBOX_WITH_PXE_ROM)
|
---|
47 | if !defined(VBOX_WITHOUT_IPXE)
|
---|
48 | include $(PATH_SUB_CURRENT)/PC/ipxe/Makefile.kmk
|
---|
49 | endif
|
---|
50 | endif
|
---|
51 | endif
|
---|
52 | if !defined(VBOX_ONLY_EXTPACKS)
|
---|
53 | if1of ($(KBUILD_TARGET_ARCH), $(VBOX_SUPPORTED_HOST_ARCHS))
|
---|
54 | include $(PATH_SUB_CURRENT)/BiosCommonCode/Makefile.kmk
|
---|
55 | include $(PATH_SUB_CURRENT)/PC/BIOS/Makefile.kmk
|
---|
56 | include $(PATH_SUB_CURRENT)/Graphics/BIOS/Makefile.kmk
|
---|
57 | endif
|
---|
58 |
|
---|
59 | #
|
---|
60 | # Main targets.
|
---|
61 | #
|
---|
62 | if1of ($(KBUILD_TARGET_ARCH), $(VBOX_SUPPORTED_HOST_ARCHS))
|
---|
63 | DLLS += VBoxDDU VBoxDD VBoxDD2
|
---|
64 | ifdef VBOX_WITH_R0_MODULES
|
---|
65 | LIBRARIES += ServicesR0
|
---|
66 | ifdef VBOX_WITH_VBOXR0_AS_DLL
|
---|
67 | DLLS += VBoxDDR0
|
---|
68 | else
|
---|
69 | SYSMODS += VBoxDDR0
|
---|
70 | endif
|
---|
71 | endif
|
---|
72 | ifdef VBOX_WITH_RAW_MODE
|
---|
73 | SYSMODS += VBoxDDRC
|
---|
74 | endif
|
---|
75 | else
|
---|
76 | DLLS += VBoxDDU
|
---|
77 | endif
|
---|
78 |
|
---|
79 |
|
---|
80 | #
|
---|
81 | # VBoxDDU (shared object)
|
---|
82 | #
|
---|
83 | VBoxDDU_TEMPLATE = VBoxR3DllWarnNoPic
|
---|
84 | VBoxDDU_NAME = $(basename $(notdir $(LIB_DDU)))
|
---|
85 | VBoxDDU_INST.darwin = $(INST_DLL) $(INST_TESTCASE)
|
---|
86 | VBoxDDU_DEFS = IN_VBOXDDU
|
---|
87 | if defined(VBOX_WITH_VUSB) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
88 | VBoxDDU_DEFS += VBOX_WITH_VUSB
|
---|
89 | endif
|
---|
90 | if defined(VBOX_WITH_USB) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
91 | VBoxDDU_DEFS += VBOX_WITH_USB IN_USBLIB
|
---|
92 | VBoxDDU_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
|
---|
93 | if defined(VBOX_WITH_EHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
94 | VBoxDDU_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
95 | endif
|
---|
96 | if defined(VBOX_WITH_XHCI_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
97 | VBoxDDU_DEFS += VBOX_WITH_XHCI_IMPL
|
---|
98 | endif
|
---|
99 | else
|
---|
100 | VBoxDDU_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK)
|
---|
101 | endif
|
---|
102 | VBoxDDU_SOURCES = \
|
---|
103 | Storage/VSCSI/VSCSIDevice.cpp \
|
---|
104 | Storage/VSCSI/VSCSILun.cpp \
|
---|
105 | Storage/VSCSI/VSCSILunSbc.cpp \
|
---|
106 | Storage/VSCSI/VSCSILunMmc.cpp \
|
---|
107 | Storage/VSCSI/VSCSISense.cpp \
|
---|
108 | Storage/VSCSI/VSCSIIoReq.cpp \
|
---|
109 | Storage/VSCSI/VSCSIVpdPagePool.cpp \
|
---|
110 | build/VBoxDDUDeps.cpp
|
---|
111 |
|
---|
112 | ifdef VBOX_WITH_VSCSI_SSC
|
---|
113 | VBoxDDU_SOURCES += Storage/VSCSI/VSCSILunSsc.cpp
|
---|
114 | VBoxDDU_DEFS += VBOX_WITH_VSCSI_SSC
|
---|
115 | endif
|
---|
116 | VBoxDDU_LIBS = \
|
---|
117 | $(LIB_RUNTIME) \
|
---|
118 | $(PATH_STAGE_LIB)/StorageLib$(VBOX_SUFF_LIB)
|
---|
119 | VBoxDDU_LIBS.freebsd += \
|
---|
120 | geom
|
---|
121 | VBoxDDU_LIBS.solaris += \
|
---|
122 | efi
|
---|
123 | if defined(VBOX_WITH_USB) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
124 | VBoxDDU_SDKS.win += VBoxWinNewDevLib
|
---|
125 | VBoxDDU_LIBS += \
|
---|
126 | $(PATH_STAGE_LIB)/USBLib$(VBOX_SUFF_LIB)
|
---|
127 | VBoxDDU_LIBS.win += \
|
---|
128 | $(PATH_STAGE_LIB)/VBoxDrvCfgDll$(VBOX_SUFF_LIB)
|
---|
129 | endif
|
---|
130 | VBoxDDU_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDDU.dylib
|
---|
131 | if defined(VBOX_WITH_USB) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
132 | VBoxDDU_LDFLAGS.darwin += -framework IOKit
|
---|
133 | endif
|
---|
134 |
|
---|
135 | VBoxDDU_LDFLAGS.linux = $(VBOX_GCC_NO_UNDEFINED)
|
---|
136 | $(call VBOX_SET_VER_INFO_DLL,VBoxDDU,VirtualBox VMM Devices and Drivers Utilities)
|
---|
137 |
|
---|
138 |
|
---|
139 | endif # VBOX_ONLY_EXTPACKS
|
---|
140 | if !defined(VBOX_ONLY_EXTPACKS) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != "" # Goes on almost to the end of the file.
|
---|
141 |
|
---|
142 |
|
---|
143 | #
|
---|
144 | # VBoxDD (shared object)
|
---|
145 | #
|
---|
146 | if "$(KBUILD_TARGET)" != "win" && $(VBOX_GCC_VERSION_CXX) < 40600
|
---|
147 | #
|
---|
148 | # Disable "ISO C++ prohibits anonymous structs [-Werror=pedantic]" caused by Mesa VMSVGA driver headers
|
---|
149 | # For GCC >= 4.6.0 the warning is disabled in DevVGA_SVGA.h
|
---|
150 | #
|
---|
151 | # Template used for gcc older than 4.6. (Strips away compiler options.)
|
---|
152 | #
|
---|
153 | TEMPLATE_VBoxDDOldGCC := VBoxDDOldGCC
|
---|
154 | TEMPLATE_VBoxDDOldGCC_EXTENDS := VBoxR3DllWarnNoPic
|
---|
155 | TEMPLATE_VBoxDDOldGCC_CXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxDDOldGCC_EXTENDS)_CXXFLAGS))
|
---|
156 |
|
---|
157 | VBoxDD_TEMPLATE = VBoxDDOldGCC
|
---|
158 | else
|
---|
159 | VBoxDD_TEMPLATE = VBoxR3DllWarnNoPic
|
---|
160 | endif
|
---|
161 | VBoxDD_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBoxNtDll
|
---|
162 | Storage/DrvHostDVD.cpp_SDKS.win = ReorderCompilerIncs $(VBOX_WINDDK)
|
---|
163 | VBoxDD_INCS = \
|
---|
164 | build \
|
---|
165 | $(VBOX_GRAPHICS_INCS)
|
---|
166 |
|
---|
167 | ifndef VBOX_WITH_LIBSLIRP
|
---|
168 | VBoxDD_INCS += Network/slirp
|
---|
169 | endif
|
---|
170 | VBoxDD_DEFS = \
|
---|
171 | VBOX_HGCM_HOST_CODE \
|
---|
172 | $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) \
|
---|
173 | $(if $(VBOX_BIOS_DMI_FALLBACK),VBOX_BIOS_DMI_FALLBACK,) \
|
---|
174 | VBOX_WITH_DMI_CHASSIS \
|
---|
175 | VBOX_WITH_DMI_OEMSTRINGS \
|
---|
176 | $(if $(VBOX_WITH_IOMMU_AMD),VBOX_WITH_IOMMU_AMD,) \
|
---|
177 | $(if $(VBOX_WITH_IOMMU_INTEL),VBOX_WITH_IOMMU_INTEL,) \
|
---|
178 | $(if $(VBOX_WITH_INTNET_SERVICE_IN_R3),VBOX_WITH_INTNET_SERVICE_IN_R3,)
|
---|
179 | VBoxDD_DEFS.win = _WIN32_WINNT=0x0510
|
---|
180 | ifeq ($(KBUILD_TARGET_ARCH),x86)
|
---|
181 | VBoxDD_DEFS.darwin = VBOX_WITH_2X_4GB_ADDR_SPACE
|
---|
182 | endif
|
---|
183 | VBoxDD_SOURCES = \
|
---|
184 | build/VBoxDD.cpp \
|
---|
185 | \
|
---|
186 | Input/DevPS2.cpp \
|
---|
187 | Input/DevPS2K.cpp \
|
---|
188 | Input/DevPS2M.cpp \
|
---|
189 | Input/UsbKbd.cpp \
|
---|
190 | Input/UsbMouse.cpp \
|
---|
191 | Bus/DevPCI.cpp \
|
---|
192 | Bus/DevPciIch9.cpp \
|
---|
193 | Bus/MsiCommon.cpp \
|
---|
194 | Bus/MsixCommon.cpp \
|
---|
195 | $(if $(VBOX_WITH_IOMMU_AMD),Bus/DevIommuAmd.cpp,) \
|
---|
196 | $(if $(VBOX_WITH_IOMMU_INTEL),Bus/DevIommuIntel.cpp,) \
|
---|
197 | EFI/DevSmc.cpp \
|
---|
198 | EFI/DevFlash.cpp \
|
---|
199 | EFI/FlashCore.cpp \
|
---|
200 | Graphics/DevVGA.cpp \
|
---|
201 | Storage/DevATA.cpp \
|
---|
202 | PC/DevPit-i8254.cpp \
|
---|
203 | PC/DevPIC.cpp \
|
---|
204 | PC/DevACPI.cpp \
|
---|
205 | PC/ACPI/VBoxAcpi.cpp \
|
---|
206 | PC/DevRTC.cpp \
|
---|
207 | PC/DevPcBios.cpp \
|
---|
208 | PC/DevFwCommon.cpp \
|
---|
209 | PC/DevPcArch.cpp \
|
---|
210 | PC/DevQemuFwCfg.cpp \
|
---|
211 | PC/DevLpc.cpp \
|
---|
212 | GIMDev/GIMDev.cpp \
|
---|
213 | GIMDev/DrvUDP.cpp \
|
---|
214 | VMMDev/VMMDev.cpp \
|
---|
215 | $(if $(VBOX_WITH_HGCM),VMMDev/VMMDevHGCM.cpp,) \
|
---|
216 | VMMDev/VMMDevTesting.cpp \
|
---|
217 | Network/DevPCNet.cpp \
|
---|
218 | Network/DevDP8390.cpp \
|
---|
219 | Network/Dev3C501.cpp \
|
---|
220 | PC/DevDMA.cpp \
|
---|
221 | PC/DevHPET.cpp \
|
---|
222 | PC/DevIoApic.cpp \
|
---|
223 | Storage/DevFdc.cpp \
|
---|
224 | Parallel/DevParallel.cpp \
|
---|
225 | \
|
---|
226 | Input/DrvKeyboardQueue.cpp \
|
---|
227 | Input/DrvMouseQueue.cpp \
|
---|
228 | Network/DrvIntNet.cpp \
|
---|
229 | Network/DrvDedicatedNic.cpp \
|
---|
230 | PC/DrvACPI.cpp \
|
---|
231 | PC/DrvAcpiCpu.cpp \
|
---|
232 | Serial/DevSerial.cpp \
|
---|
233 | Serial/DevOxPcie958.cpp \
|
---|
234 | Serial/UartCore.cpp \
|
---|
235 | Serial/DrvChar.cpp \
|
---|
236 | Serial/DrvHostSerial.cpp \
|
---|
237 | Serial/DrvNamedPipe.cpp \
|
---|
238 | Serial/DrvTCP.cpp \
|
---|
239 | Serial/DrvRawFile.cpp \
|
---|
240 | Storage/Debug.cpp \
|
---|
241 | Storage/DrvVD.cpp \
|
---|
242 | Storage/ATAPIPassthrough.cpp \
|
---|
243 | Storage/IOBufMgmt.cpp \
|
---|
244 | Network/DrvNetSniffer.cpp \
|
---|
245 | Network/Pcap.cpp \
|
---|
246 | Trace/DrvIfsTrace.cpp \
|
---|
247 | Trace/DrvIfsTrace-serial.cpp
|
---|
248 | ifn1of ($(KBUILD_TARGET), os2)
|
---|
249 | VBoxDD_SOURCES += Storage/DrvHostBase.cpp
|
---|
250 | endif
|
---|
251 | ifn1of ($(KBUILD_TARGET), os2)
|
---|
252 | VBoxDD_SOURCES += Storage/DrvHostDVD.cpp
|
---|
253 | endif
|
---|
254 | ifn1of ($(KBUILD_TARGET), darwin freebsd os2 solaris)
|
---|
255 | VBoxDD_SOURCES += Storage/DrvHostFloppy.cpp
|
---|
256 | endif
|
---|
257 |
|
---|
258 |
|
---|
259 | ifn1of ($(KBUILD_TARGET), darwin)
|
---|
260 | VBoxDD_SOURCES += Storage/HBDMgmt-generic.cpp
|
---|
261 | endif
|
---|
262 |
|
---|
263 | VBoxDD_SOURCES.darwin += \
|
---|
264 | Storage/HBDMgmt-darwin.cpp \
|
---|
265 | Storage/DrvHostBase-darwin.cpp
|
---|
266 |
|
---|
267 | VBoxDD_SOURCES.freebsd += \
|
---|
268 | Storage/DrvHostBase-freebsd.cpp
|
---|
269 |
|
---|
270 | VBoxDD_SOURCES.linux += \
|
---|
271 | Storage/DrvHostBase-linux.cpp
|
---|
272 |
|
---|
273 | VBoxDD_SOURCES.solaris += \
|
---|
274 | Storage/DrvHostBase-solaris.cpp
|
---|
275 |
|
---|
276 | VBoxDD_SOURCES.win += \
|
---|
277 | Storage/DrvHostBase-win.cpp
|
---|
278 |
|
---|
279 | #VBoxDD_SOURCES.win += Storage/HBDMgmt-win.cpp #Disabled until remaining issues are sorted out
|
---|
280 |
|
---|
281 | VBoxDD_LIBS = # more later.
|
---|
282 | VBoxDD_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDD.dylib \
|
---|
283 | -framework CoreAudio \
|
---|
284 | -framework AudioUnit \
|
---|
285 | -framework AudioToolbox \
|
---|
286 | -framework IOKit \
|
---|
287 | -framework Carbon \
|
---|
288 | -framework DiskArbitration \
|
---|
289 | -framework SystemConfiguration \
|
---|
290 | -framework AVFoundation \
|
---|
291 | -framework Foundation
|
---|
292 | VBoxDD_LDFLAGS.linux = $(VBOX_GCC_NO_UNDEFINED)
|
---|
293 |
|
---|
294 | # --- Tracing bits. ---
|
---|
295 |
|
---|
296 | ifdef VBOX_WITH_DTRACE_R3
|
---|
297 | VBoxDD_DEFS += VBOX_WITH_DTRACE
|
---|
298 | VBoxDD_USES += dtrace
|
---|
299 | VBoxDD_SOURCES += build/VBoxDD.d
|
---|
300 | endif
|
---|
301 |
|
---|
302 | # --- Graphics bits. ---
|
---|
303 |
|
---|
304 | ifdef VBOXWDDM_TEST_UHGSMI
|
---|
305 | VBoxDD_DEFS += VBOXWDDM_TEST_UHGSMI
|
---|
306 | endif
|
---|
307 | ifdef VBOXWDDM_WITH_VBVA
|
---|
308 | VBoxDD_DEFS += VBOXWDDM_WITH_VBVA
|
---|
309 | endif
|
---|
310 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
311 | VBoxDD_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
312 | endif
|
---|
313 |
|
---|
314 | ifdef VBOX_WITH_HGSMI
|
---|
315 | VBoxDD_DEFS += VBOX_WITH_HGSMI
|
---|
316 | VBoxDD_SOURCES += \
|
---|
317 | Graphics/DevVGA_VBVA.cpp \
|
---|
318 | Graphics/HGSMI/HGSMIHost.cpp
|
---|
319 | VBoxDD_LIBS += \
|
---|
320 | $(PATH_STAGE_LIB)/HGSMIHostR3Lib$(VBOX_SUFF_LIB)
|
---|
321 | endif
|
---|
322 |
|
---|
323 | ifdef VBOX_WITH_WDDM
|
---|
324 | VBoxDD_DEFS += VBOX_WITH_WDDM
|
---|
325 | VBoxDD_SOURCES += \
|
---|
326 | Graphics/HGSMI/SHGSMIHost.cpp
|
---|
327 | endif
|
---|
328 |
|
---|
329 | ifdef VBOX_WITH_VMSVGA
|
---|
330 | VBoxDD_DEFS += VBOX_WITH_VMSVGA
|
---|
331 | VBoxDD_INCS += $(VBOX_PATH_VMSVGA_DEVICE_INC)
|
---|
332 | VBoxDD_SOURCES += \
|
---|
333 | Graphics/DevVGA-SVGA.cpp \
|
---|
334 | Graphics/DevVGA-SVGA-cmd.cpp
|
---|
335 | endif
|
---|
336 | ifdef VBOX_WITH_VMSVGA3D
|
---|
337 | if1of ($(KBUILD_TARGET), linux win)
|
---|
338 | # Dynamically load 3D library (opengl32, libGL).
|
---|
339 | # This is a temporary solution. In future the 3D backend will be in a separate library.
|
---|
340 | VBOX_WITH_VMSVGA3D_DYNAMIC_LOAD = 1
|
---|
341 | endif
|
---|
342 | VBoxDD_DEFS += VBOX_WITH_VMSVGA3D
|
---|
343 | VBoxDD_SOURCES += \
|
---|
344 | Graphics/DevVGA-SVGA3d.cpp \
|
---|
345 | Graphics/DevVGA-SVGA3d-hlp.cpp \
|
---|
346 | Graphics/DevVGA-SVGA3d-info.cpp \
|
---|
347 | Graphics/DevVGA-SVGA3d-shared.cpp \
|
---|
348 | Graphics/DevVGA-SVGA3d-savedstate.cpp
|
---|
349 | ifdef VBOX_WITH_VMSVGA3D_DX
|
---|
350 | VBoxDD_DEFS += VMSVGA3D_DX
|
---|
351 | VBoxDD_SOURCES += \
|
---|
352 | Graphics/DevVGA-SVGA3d-dx.cpp \
|
---|
353 | Graphics/DevVGA-SVGA3d-dx-savedstate.cpp \
|
---|
354 | Graphics/DevVGA-SVGA3d-dx-shader.cpp
|
---|
355 | if "$(KBUILD_TARGET)" == "win" || defined(VBOX_WITH_DXVK)
|
---|
356 | VBoxDD_SDKS.linux += VBoxDxVk
|
---|
357 | VBoxDD_SDKS.darwin += VBoxDxVk
|
---|
358 | VBoxDD_DEFS += VMSVGA3D_DX_BACKEND
|
---|
359 | VBoxDD_SOURCES += \
|
---|
360 | Graphics/DevVGA-SVGA3d-dx-dx11.cpp
|
---|
361 | # @todo This is probably not the nicest way to do this...
|
---|
362 | VBoxDD_POST_CMDS.darwin += \
|
---|
363 | $(INSTALL) -m 0644 $(lastword $(sort $(wildcard $(KBUILD_DEVTOOLS_TRG)/moltenvk/v*)))/libMoltenVK.dylib $(PATH_STAGE_BIN)/libMoltenVK.dylib
|
---|
364 |
|
---|
365 | # mac2 clang is too old to know the -Wclass-conversion switch in the ignore pragma it seems.
|
---|
366 | Graphics/DevVGA-SVGA3d-dx-dx11.cpp_CXXFLAGS.darwin += -Wno-error
|
---|
367 | endif
|
---|
368 | endif
|
---|
369 | VBoxDD_SOURCES += \
|
---|
370 | Graphics/svgadump/svga_dump.c
|
---|
371 | if "$(KBUILD_TARGET)" == "win" && !defined(VBOX_WITH_VMSVGA3D_USE_OPENGL)
|
---|
372 | VBoxDD_DEFS += VMSVGA3D_DIRECT3D
|
---|
373 | VBoxDD_SOURCES += \
|
---|
374 | Graphics/DevVGA-SVGA3d-win.cpp \
|
---|
375 | Graphics/DevVGA-SVGA3d-win-d3d9.cpp
|
---|
376 | VBoxDD_LIBS.win += d3d9.lib $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib
|
---|
377 | VBoxDD_LDFLAGS.win += /DELAYLOAD:d3d9.dll
|
---|
378 | else
|
---|
379 | VBoxDD_DEFS += VMSVGA3D_OPENGL
|
---|
380 | VBoxDD_SOURCES += \
|
---|
381 | Graphics/DevVGA-SVGA3d-ogl.cpp \
|
---|
382 | Graphics/DevVGA-SVGA3d-glHlp.cpp \
|
---|
383 | $(VBoxDD_0_OUTDIR)/VBoxSVGA3DLazyLoad.asm
|
---|
384 | VBoxDD_SOURCES.darwin += \
|
---|
385 | $(VBoxDD_0_OUTDIR)/VBoxSVGA3DObjCLazyLoad.asm
|
---|
386 | VBoxDD_CLEAN += $(VBoxDD_0_OUTDIR)/VBoxSVGA3DLazyLoad.asm
|
---|
387 | $$(VBoxDD_0_OUTDIR)/VBoxSVGA3DLazyLoad.asm: $(PATH_SUB_CURRENT)/Graphics/VBoxSVGA3D.def $(VBOX_DEF_2_LAZY_LOAD) | $$(dir $$@)
|
---|
388 | $(call MSG_TOOL,VBoxDef2LazyLoad,VBoxDD,$(filter %.def, $^),$@)
|
---|
389 | $(QUIET)$(RM) -f -- "$@"
|
---|
390 | $(VBOX_DEF_2_LAZY_LOAD) --explicit-load-function --library VBoxSVGA3D --output "$@" $(filter %.def, $^)
|
---|
391 | $$(VBoxDD_0_OUTDIR)/VBoxSVGA3DObjCLazyLoad.asm: $(PATH_SUB_CURRENT)/Graphics/VBoxSVGA3DObjC.def $(VBOX_DEF_2_LAZY_LOAD) | $$(dir $$@)
|
---|
392 | $(call MSG_TOOL,VBoxDef2LazyLoad,VBoxDD,$(filter %.def, $^),$@)
|
---|
393 | $(QUIET)$(RM) -f -- "$@"
|
---|
394 | $(VBOX_DEF_2_LAZY_LOAD) --explicit-load-function --library VBoxSVGA3DObjC --output "$@" $(filter %.def, $^)
|
---|
395 |
|
---|
396 | ifdef VBOX_WITH_VMSVGA3D_DYNAMIC_LOAD
|
---|
397 | VBoxDD_DEFS += VMSVGA3D_DYNAMIC_LOAD
|
---|
398 | VBoxDD_SOURCES += \
|
---|
399 | Graphics/DevVGA-SVGA3d-glLdr.cpp
|
---|
400 | else
|
---|
401 | VBoxDD_LIBS.linux += X11 GL
|
---|
402 | VBoxDD_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
|
---|
403 | endif
|
---|
404 | VBoxDD_LDFLAGS.darwin += -framework OpenGL
|
---|
405 | VBoxDD_DEFS.darwin += VBOX_VMSVGA3D_DUAL_OPENGL_PROFILE
|
---|
406 | if 0 # Use the OpenGL 3.2 Core profile (see also VBoxSVGA3D_DEFS.darwin and VBoxSVGA3DObjC_DEFS.darwin).
|
---|
407 | VBoxDD_DEFS.darwin += VBOX_VMSVGA3D_DEFAULT_OGL_PROFILE=3.2 VBOX_VMSVGA3D_OTHER_OGL_PROFILE=2.1
|
---|
408 | else
|
---|
409 | VBoxDD_DEFS.darwin += VBOX_VMSVGA3D_DEFAULT_OGL_PROFILE=2.1 VBOX_VMSVGA3D_OTHER_OGL_PROFILE=3.2
|
---|
410 | endif
|
---|
411 | endif
|
---|
412 | if1of ($(VBOX_DEF_MACOSX_VERSION_MIN), 10.6 10.5 10.4)
|
---|
413 | Graphics/DevVGA-SVGA3d.cpp_CXXFLAGS.darwin = -F$(VBOX_PATH_MACOSX_SDK_10_7)/System/Library/Frameworks/
|
---|
414 | Graphics/DevVGA-SVGA3d-info.cpp_CXXFLAGS.darwin = -F$(VBOX_PATH_MACOSX_SDK_10_7)/System/Library/Frameworks/
|
---|
415 | Graphics/DevVGA-SVGA3d-shared.cpp_CXXFLAGS.darwin = -F$(VBOX_PATH_MACOSX_SDK_10_7)/System/Library/Frameworks/
|
---|
416 | Graphics/DevVGA-SVGA3d-savedstate.cpp_CXXFLAGS.darwin = -F$(VBOX_PATH_MACOSX_SDK_10_7)/System/Library/Frameworks/
|
---|
417 | Graphics/DevVGA-SVGA3d-ogl.cpp_CXXFLAGS.darwin = -F$(VBOX_PATH_MACOSX_SDK_10_7)/System/Library/Frameworks/
|
---|
418 | else if1of ($(VBOX_DEF_MACOSX_VERSION_MIN), 10.14 10.15 10.16 11.0)
|
---|
419 | Graphics/DevVGA-SVGA3d-ogl.cpp_CXXFLAGS.darwin = $(VBOX_GCC_Wno-deprecated-declarations)
|
---|
420 | endif
|
---|
421 | endif
|
---|
422 |
|
---|
423 | ifdef VBOX_WITH_VDMA
|
---|
424 | VBoxDD_DEFS += VBOX_WITH_VDMA
|
---|
425 | VBoxDD_SOURCES += \
|
---|
426 | Graphics/DevVGA_VDMA.cpp
|
---|
427 | endif
|
---|
428 |
|
---|
429 | ifdef VBOX_WITH_PXE_ROM
|
---|
430 | VBoxDD_DEFS += VBOX_WITH_PXE_ROM
|
---|
431 | endif
|
---|
432 |
|
---|
433 | # --- USB bits. ---
|
---|
434 |
|
---|
435 | ifdef VBOX_WITH_USB
|
---|
436 | VBoxDD_DEFS += VBOX_WITH_USB
|
---|
437 | VBoxDD_SOURCES += \
|
---|
438 | USB/vrdp/USBProxyDevice-vrdp.cpp \
|
---|
439 | USB/usbip/USBProxyDevice-usbip.cpp
|
---|
440 |
|
---|
441 | VBoxDD_DEFS.darwin += VUSB_HAVE_USBPROXY_DEVICE
|
---|
442 | VBoxDD_SOURCES.darwin += \
|
---|
443 | USB/USBProxyDevice.cpp \
|
---|
444 | USB/darwin/USBProxyDevice-darwin.cpp
|
---|
445 | # if1of ($(VBOX_DEF_MACOSX_VERSION_MIN), 10.9) # Hack, shouldn't be needed
|
---|
446 | # USB/darwin/USBProxyDevice-darwin.cpp_SDKS = MACOSX1010
|
---|
447 | # endif
|
---|
448 |
|
---|
449 | VBoxDD_DEFS.linux += \
|
---|
450 | VUSB_HAVE_USBPROXY_DEVICE \
|
---|
451 | $(if $(VBOX_WITH_LINUX_COMPILER_H),VBOX_WITH_LINUX_COMPILER_H,) \
|
---|
452 | $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,)
|
---|
453 | VBoxDD_SOURCES.linux += \
|
---|
454 | USB/USBProxyDevice.cpp \
|
---|
455 | USB/linux/USBProxyDevice-linux.cpp
|
---|
456 |
|
---|
457 | VBoxDD_DEFS.os2 += VUSB_HAVE_USBPROXY_DEVICE
|
---|
458 | VBoxDD_INCS.os2 += $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
|
---|
459 | VBoxDD_SOURCES.os2 += \
|
---|
460 | USB/USBProxyDevice.cpp \
|
---|
461 | USB/os2/USBProxyDevice-os2.cpp
|
---|
462 |
|
---|
463 | VBoxDD_DEFS.win += VUSB_HAVE_USBPROXY_DEVICE
|
---|
464 | VBoxDD_SOURCES.win += \
|
---|
465 | USB/USBProxyDevice.cpp \
|
---|
466 | USB/win/USBProxyDevice-win.cpp
|
---|
467 |
|
---|
468 | VBoxDD_DEFS.solaris += VUSB_HAVE_USBPROXY_DEVICE
|
---|
469 | VBoxDD_SOURCES.solaris += \
|
---|
470 | USB/USBProxyDevice.cpp \
|
---|
471 | USB/solaris/USBProxyDevice-solaris.cpp
|
---|
472 |
|
---|
473 | VBoxDD_DEFS.freebsd += VUSB_HAVE_USBPROXY_DEVICE
|
---|
474 | VBoxDD_SOURCES.freebsd += \
|
---|
475 | USB/USBProxyDevice.cpp \
|
---|
476 | USB/freebsd/USBProxyDevice-freebsd.cpp
|
---|
477 |
|
---|
478 | ifdef VBOX_WITH_SCSI
|
---|
479 | VBoxDD_SOURCES += \
|
---|
480 | Storage/UsbMsd.cpp
|
---|
481 | endif
|
---|
482 |
|
---|
483 | if defined(VBOX_WITH_EHCI_IMPL)
|
---|
484 | VBoxDD_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
485 | VBoxDD_SOURCES += \
|
---|
486 | USB/DevEHCI.cpp
|
---|
487 | endif
|
---|
488 |
|
---|
489 | if defined(VBOX_WITH_XHCI_IMPL)
|
---|
490 | VBoxDD_DEFS += VBOX_WITH_XHCI_IMPL
|
---|
491 | VBoxDD_SOURCES += \
|
---|
492 | USB/DevXHCI.cpp
|
---|
493 | endif
|
---|
494 |
|
---|
495 | if defined(VBOX_WITH_USB_VIDEO_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
496 | if1of ($(KBUILD_TARGET), linux)
|
---|
497 | VBoxDD_DEFS += VBOX_WITH_USB_VIDEO_IMPL
|
---|
498 | VBoxDD_SOURCES += \
|
---|
499 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/UsbWebcam.cpp \
|
---|
500 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/UsbWebcamDesc.cpp \
|
---|
501 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/jpggen.cpp \
|
---|
502 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/DrvHostWebcam/DrvHostWebcam.cpp \
|
---|
503 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/DrvHostWebcam/JPEGEnc.cpp
|
---|
504 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/DrvHostWebcam/JPEGEnc.cpp_INCS = \
|
---|
505 | $(VBOX_JPEG_INCS)
|
---|
506 | VBoxDD_SOURCES.linux += \
|
---|
507 | $(PATH_ROOT)/src/VBox/ExtPacks/Puel/UsbWebcam/DrvHostWebcam/HostWebcam-v4l2.cpp
|
---|
508 | VBoxDD_LIBS += \
|
---|
509 | $(PATH_STAGE_LIB)/VBox-libjpeg$(VBOX_SUFF_LIB)
|
---|
510 | endif
|
---|
511 | endif
|
---|
512 |
|
---|
513 | endif # VBOX_WITH_USB
|
---|
514 |
|
---|
515 | ifdef VBOX_WITH_VUSB
|
---|
516 | VBoxDD_DEFS += VBOX_WITH_VUSB
|
---|
517 | VBoxDD_SOURCES += \
|
---|
518 | USB/DevOHCI.cpp \
|
---|
519 | USB/DrvVUSBRootHub.cpp \
|
---|
520 | USB/VUSBDevice.cpp \
|
---|
521 | USB/VUSBSniffer.cpp \
|
---|
522 | USB/VUSBSnifferPcapNg.cpp \
|
---|
523 | USB/VUSBSnifferUsbMon.cpp \
|
---|
524 | USB/VUSBSnifferVmx.cpp \
|
---|
525 | USB/VUSBUrb.cpp \
|
---|
526 | USB/VUSBUrbPool.cpp \
|
---|
527 | USB/VUSBUrbTrace.cpp
|
---|
528 | endif
|
---|
529 |
|
---|
530 | # --- Networking bits. ---
|
---|
531 |
|
---|
532 | ifdef VBOX_WITH_INIP
|
---|
533 | ifndef LWIP_SOURCES
|
---|
534 | include $(PATH_SUB_CURRENT)/Network/lwip-new/Config.kmk
|
---|
535 | endif
|
---|
536 | VBoxDD_DEFS += VBOX_WITH_INIP
|
---|
537 | VBoxDD_SOURCES += \
|
---|
538 | Network/DevINIP.cpp \
|
---|
539 | $(addprefix Network/lwip-new/,$(LWIP_SOURCES))
|
---|
540 | VBoxDD_INCS += \
|
---|
541 | Network \
|
---|
542 | $(addprefix Network/lwip-new/,$(LWIP_INCS))
|
---|
543 | endif # VBOX_WITH_INIP
|
---|
544 |
|
---|
545 | ifdef VBOX_WITH_E1000
|
---|
546 | VBoxDD_DEFS += VBOX_WITH_E1000
|
---|
547 | VBoxDD_SOURCES += \
|
---|
548 | Network/DevE1000.cpp \
|
---|
549 | Network/DevE1000Phy.cpp \
|
---|
550 | Network/DevEEPROM.cpp
|
---|
551 | endif
|
---|
552 |
|
---|
553 | ifdef VBOX_WITH_VIRTIO
|
---|
554 | VBoxDD_DEFS += VBOX_WITH_VIRTIO
|
---|
555 | VBoxDD_SOURCES += \
|
---|
556 | VirtIO/VirtioCore.cpp \
|
---|
557 | Network/DevVirtioNet.cpp
|
---|
558 | endif
|
---|
559 |
|
---|
560 |
|
---|
561 | ifdef VBOX_WITH_UDPTUNNEL
|
---|
562 | VBoxDD_DEFS += VBOX_WITH_UDPTUNNEL
|
---|
563 | VBoxDD_SOURCES += \
|
---|
564 | Network/DrvUDPTunnel.cpp
|
---|
565 | endif
|
---|
566 |
|
---|
567 | ifdef VBOX_WITH_VDE
|
---|
568 | VBoxDD_DEFS += VBOX_WITH_VDE
|
---|
569 | VBoxDD_SOURCES += \
|
---|
570 | Network/DrvVDE.cpp \
|
---|
571 | Network/VDEPlug.cpp
|
---|
572 | endif
|
---|
573 |
|
---|
574 | ifdef VBOX_WITH_NETSHAPER
|
---|
575 | VBoxDD_DEFS += VBOX_WITH_NETSHAPER
|
---|
576 | VBoxDD_SOURCES += \
|
---|
577 | Network/DrvNetShaper.cpp
|
---|
578 | endif
|
---|
579 |
|
---|
580 | ifdef VBOX_WITH_VMNET
|
---|
581 | VBoxDD_DEFS.darwin += VBOX_WITH_VMNET
|
---|
582 | VBoxDD_SOURCES.darwin += \
|
---|
583 | Network/DrvVMNet.m
|
---|
584 | VBoxDD_LDFLAGS.darwin += -framework vmnet
|
---|
585 | endif
|
---|
586 |
|
---|
587 | if defined(VBOX_WITH_CLOUD_NET) && defined(VBOX_WITH_LIBSSH)
|
---|
588 | VBoxDD_SDKS += VBoxLibSsh VBoxZlib VBoxOpenSsl
|
---|
589 | VBoxDD_DEFS += VBOX_WITH_CLOUD_NET
|
---|
590 | VBoxDD_SOURCES += \
|
---|
591 | Network/DrvCloudTunnel.cpp
|
---|
592 |
|
---|
593 | VBoxDD_SOURCES += \
|
---|
594 | $(VBoxDD_0_OUTDIR)/VBoxLibSshLazyLoad.asm
|
---|
595 | VBoxDD_CLEAN += $(VBoxDD_0_OUTDIR)/VBoxLibSshLazyLoad.asm
|
---|
596 | $$(VBoxDD_0_OUTDIR)/VBoxLibSshLazyLoad.asm: $(PATH_SUB_CURRENT)/Network/VBoxLibSsh.def $(VBOX_DEF_2_LAZY_LOAD) | $$(dir $$@)
|
---|
597 | $(call MSG_TOOL,VBoxDef2LazyLoad,VBoxDD,$(filter %.def, $^),$@)
|
---|
598 | $(QUIET)$(RM) -f -- "$@"
|
---|
599 | $(VBOX_DEF_2_LAZY_LOAD) --explicit-load-function --library VBoxLibSsh --output "$@" $(filter %.def, $^)
|
---|
600 | endif
|
---|
601 |
|
---|
602 | # --- Storage bits. ---
|
---|
603 |
|
---|
604 | ifdef VBOX_WITH_AHCI
|
---|
605 | VBoxDD_DEFS += VBOX_WITH_AHCI IN_AHCI_R3
|
---|
606 | VBoxDD_SOURCES += \
|
---|
607 | Storage/DevAHCI.cpp
|
---|
608 | endif
|
---|
609 |
|
---|
610 | ifdef VBOX_WITH_BUSLOGIC
|
---|
611 | VBoxDD_DEFS += VBOX_WITH_BUSLOGIC
|
---|
612 | VBoxDD_SOURCES += \
|
---|
613 | Storage/DevBusLogic.cpp
|
---|
614 | endif
|
---|
615 |
|
---|
616 | ifdef VBOX_WITH_LSILOGIC
|
---|
617 | VBoxDD_DEFS += VBOX_WITH_LSILOGIC
|
---|
618 | VBoxDD_SOURCES += \
|
---|
619 | Storage/DevLsiLogicSCSI.cpp
|
---|
620 | endif
|
---|
621 |
|
---|
622 | if defined(VBOX_WITH_NVME_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
623 | VBoxDD_DEFS += VBOX_WITH_NVME_IMPL
|
---|
624 | VBoxDD_SOURCES += \
|
---|
625 | Storage/DevNVMe.cpp
|
---|
626 | endif
|
---|
627 |
|
---|
628 | if defined(VBOX_WITH_VIRTIO) && defined(VBOX_WITH_VIRTIO_SCSI)
|
---|
629 | VBoxDD_DEFS += VBOX_WITH_VIRTIO_SCSI
|
---|
630 | VBoxDD_SOURCES += \
|
---|
631 | Storage/DevVirtioSCSI.cpp
|
---|
632 | endif
|
---|
633 |
|
---|
634 | if defined(VBOX_WITH_TPM)
|
---|
635 | VBoxDD_DEFS += VBOX_WITH_TPM
|
---|
636 | VBoxDD_SOURCES += \
|
---|
637 | Security/DevTpm.cpp \
|
---|
638 | Security/DrvTpmEmu.cpp
|
---|
639 |
|
---|
640 | VBoxDD_SOURCES.linux += \
|
---|
641 | Security/DrvTpmHost.cpp
|
---|
642 |
|
---|
643 | VBoxDD_SOURCES.win += \
|
---|
644 | Security/DrvTpmHost.cpp
|
---|
645 |
|
---|
646 | if defined(VBOX_WITH_LIBTPMS)
|
---|
647 | VBoxDD_SDKS += VBoxLibTpms
|
---|
648 | VBoxDD_DEFS += VBOX_WITH_LIBTPMS
|
---|
649 | VBoxDD_SOURCES += \
|
---|
650 | Security/DrvTpmEmuTpms.cpp
|
---|
651 | endif
|
---|
652 | endif
|
---|
653 |
|
---|
654 | ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
655 | VBoxDD_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
656 | endif
|
---|
657 |
|
---|
658 | ifdef VBOX_WITH_SCSI
|
---|
659 | VBoxDD_DEFS += VBOX_WITH_SCSI
|
---|
660 | VBoxDD_SOURCES += \
|
---|
661 | Storage/DrvSCSI.cpp
|
---|
662 | endif
|
---|
663 |
|
---|
664 | ifdef VBOX_WITH_ISCSI
|
---|
665 | $(eval $(call def_vbox_lwip_flags, \
|
---|
666 | VBoxDD, Storage/DrvVD.cpp, Network/lwip-new))
|
---|
667 | endif
|
---|
668 |
|
---|
669 | ifdef VBOX_WITH_DRV_DISK_INTEGRITY
|
---|
670 | VBoxDD_DEFS += VBOX_WITH_DRV_DISK_INTEGRITY
|
---|
671 | VBoxDD_SOURCES += \
|
---|
672 | Storage/DrvDiskIntegrity.cpp \
|
---|
673 | Storage/DrvRamDisk.cpp
|
---|
674 | endif
|
---|
675 |
|
---|
676 | ifdef VBOX_WITH_EFI
|
---|
677 | VBoxDD_DEFS += VBOX_WITH_EFI
|
---|
678 | VBoxDD_SOURCES += EFI/DevEFI.cpp
|
---|
679 | EFI/DevEFI.cpp_INCS += EFI/Firmware/BaseTools/Source/C/Include
|
---|
680 | EFI/DevEFI.cpp_INCS.x86 += EFI/Firmware/BaseTools/Source/C/Include/Ia32
|
---|
681 | EFI/DevEFI.cpp_INCS.amd64 += EFI/Firmware/BaseTools/Source/C/Include/X64
|
---|
682 | EFI/DevEFI.cpp_INCS.arm32 += EFI/Firmware/BaseTools/Source/C/Include/Arm
|
---|
683 | EFI/DevEFI.cpp_INCS.arm64 += EFI/Firmware/BaseTools/Source/C/Include/AArch64
|
---|
684 | endif
|
---|
685 |
|
---|
686 | if defined(VBOX_WITH_PCI_PASSTHROUGH_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
687 | VBoxDD_DEFS += VBOX_WITH_PCI_PASSTHROUGH_IMPL
|
---|
688 | VBoxDD_SOURCES += \
|
---|
689 | Bus/DevPciRaw.cpp \
|
---|
690 | Bus/DrvPciRaw.cpp
|
---|
691 | endif
|
---|
692 |
|
---|
693 | ifdef VBOX_WITH_MSI_DEVICES
|
---|
694 | VBoxDD_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
695 | endif
|
---|
696 |
|
---|
697 | ifdef VBOX_WITH_DYNAMIC_DSDT
|
---|
698 | VBoxDD_DEFS += VBOX_WITH_DYNAMIC_DSDT
|
---|
699 | endif
|
---|
700 |
|
---|
701 | # --- Audio bits (see also VBOX_AUDIO_DEFS in ./Config.kmk). ---
|
---|
702 |
|
---|
703 | VBoxDD_DEFS += $(VBOX_AUDIO_DEFS)
|
---|
704 | VBoxDD_SOURCES += \
|
---|
705 | Audio/DevIchAc97.cpp \
|
---|
706 | Audio/DevSB16.cpp \
|
---|
707 | Audio/DevHda.cpp \
|
---|
708 | Audio/DevHdaCodec.cpp \
|
---|
709 | Audio/DevHdaStream.cpp \
|
---|
710 | Audio/AudioHlp.cpp \
|
---|
711 | Audio/AudioMixBuffer.cpp \
|
---|
712 | Audio/AudioMixer.cpp \
|
---|
713 | Audio/DrvAudio.cpp \
|
---|
714 | Audio/DrvHostAudioNull.cpp
|
---|
715 |
|
---|
716 | if defined(VBOX_WITH_AUDIO_DEBUG) || defined(VBOX_WITH_AUDIO_VALIDATIONKIT)
|
---|
717 | VBoxDD_SOURCES += \
|
---|
718 | Audio/AudioTest.cpp \
|
---|
719 | Audio/AudioTestService.cpp \
|
---|
720 | Audio/AudioTestServiceTcp.cpp \
|
---|
721 | Audio/AudioTestServiceProtocol.cpp
|
---|
722 | endif
|
---|
723 |
|
---|
724 | ifdef VBOX_WITH_AUDIO_DEBUG
|
---|
725 | VBoxDD_DEFS += VBOX_WITH_AUDIO_DEBUG
|
---|
726 | VBoxDD_SOURCES += \
|
---|
727 | Audio/DrvHostAudioDebug.cpp
|
---|
728 | endif
|
---|
729 |
|
---|
730 | ifdef VBOX_WITH_AUDIO_VALIDATIONKIT
|
---|
731 | VBoxDD_DEFS += VBOX_WITH_AUDIO_VALIDATIONKIT
|
---|
732 | VBoxDD_SOURCES += \
|
---|
733 | Audio/DrvHostAudioValidationKit.cpp
|
---|
734 | endif
|
---|
735 |
|
---|
736 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
737 | VBoxDD_SOURCES += \
|
---|
738 | Audio/DrvHostAudioCoreAudio.cpp \
|
---|
739 | Audio/DrvHostAudioCoreAudioAuth.mm
|
---|
740 | endif
|
---|
741 |
|
---|
742 | ifeq ($(KBUILD_TARGET),win)
|
---|
743 | VBoxDD_SOURCES += \
|
---|
744 | Audio/DrvHostAudioDSound.cpp \
|
---|
745 | Audio/DrvHostAudioWasApi.cpp
|
---|
746 | ifdef VBOX_WITH_AUDIO_MMNOTIFICATION_CLIENT
|
---|
747 | VBoxDD_DEFS += VBOX_WITH_AUDIO_MMNOTIFICATION_CLIENT
|
---|
748 | VBoxDD_SOURCES += \
|
---|
749 | Audio/DrvHostAudioDSoundMMNotifClient.cpp
|
---|
750 | endif
|
---|
751 | endif
|
---|
752 |
|
---|
753 | ifdef VBOX_WITH_AUDIO_OSS
|
---|
754 | VBoxDD_DEFS += VBOX_WITH_AUDIO_OSS
|
---|
755 | VBoxDD_SOURCES += \
|
---|
756 | Audio/DrvHostAudioOss.cpp
|
---|
757 | endif
|
---|
758 |
|
---|
759 | ifdef VBOX_WITH_AUDIO_ALSA
|
---|
760 | VBoxDD_DEFS += VBOX_WITH_AUDIO_ALSA
|
---|
761 | VBoxDD_SOURCES += \
|
---|
762 | Audio/DrvHostAudioAlsa.cpp \
|
---|
763 | Audio/DrvHostAudioAlsaStubs.cpp
|
---|
764 | endif
|
---|
765 |
|
---|
766 | ifdef VBOX_WITH_AUDIO_PULSE
|
---|
767 | VBoxDD_DEFS += VBOX_WITH_AUDIO_PULSE
|
---|
768 | VBoxDD_SOURCES += \
|
---|
769 | Audio/DrvHostAudioPulseAudio.cpp \
|
---|
770 | Audio/DrvHostAudioPulseAudioStubs.cpp
|
---|
771 | endif
|
---|
772 |
|
---|
773 | ifdef VBOX_WITH_LIBSLIRP
|
---|
774 | VBoxDD_LIBS += $(PATH_STAGE_LIB)/VBox-libslirp$(VBOX_SUFF_LIB)
|
---|
775 | VBoxDD_DEFS += VBOX_WITH_LIBSLIRP
|
---|
776 | VBoxDD_SOURCES += \
|
---|
777 | Network/DrvNATlibslirp.cpp
|
---|
778 | Network/DrvNATlibslirp.cpp_INCS += \
|
---|
779 | $(PATH_ROOT)/src/libs/libslirp-4.7.0/src \
|
---|
780 | $(PATH_ROOT)/src/libs/libslirp-4.7.0/build
|
---|
781 | endif
|
---|
782 |
|
---|
783 | # --- WARNING! SLIRP MESS AHEAD! ;-) ---
|
---|
784 | VBOX_SLIRP_SOURCES = \
|
---|
785 | Network/DrvNAT.cpp \
|
---|
786 | Network/slirp/bootp.c \
|
---|
787 | Network/slirp/debug.c \
|
---|
788 | Network/slirp/ip_icmp.c \
|
---|
789 | Network/slirp/ip_input.c \
|
---|
790 | Network/slirp/ip_output.c \
|
---|
791 | Network/slirp/misc.c \
|
---|
792 | Network/slirp/sbuf.c \
|
---|
793 | Network/slirp/slirp.c \
|
---|
794 | Network/slirp/slirp_dns.c \
|
---|
795 | Network/slirp/socket.c \
|
---|
796 | Network/slirp/tcp_input.c \
|
---|
797 | Network/slirp/tcp_output.c \
|
---|
798 | Network/slirp/tcp_subr.c \
|
---|
799 | Network/slirp/tcp_timer.c \
|
---|
800 | Network/slirp/udp.c \
|
---|
801 | Network/slirp/hostres.c \
|
---|
802 | Network/slirp/dnsproxy/hash.c \
|
---|
803 | Network/slirp/tftp.c \
|
---|
804 | Network/slirp/dnsproxy/dnsproxy.c
|
---|
805 |
|
---|
806 | ifeq ($(KBUILD_TARGET),win)
|
---|
807 | VBOX_SLIRP_SOURCES += Network/slirp/ip_icmpwin.c
|
---|
808 | else ifneq ($(KBUILD_TARGET),darwin)
|
---|
809 | # helper for debugging unprivileged
|
---|
810 | # Network/slirp/ip_icmp.c_DEFS += VBOX_RAWSOCK_DEBUG_HELPER
|
---|
811 | # VBOX_SLIRP_SOURCES += ../NetworkServices/NAT/getrawsock.c
|
---|
812 | endif
|
---|
813 |
|
---|
814 | ifneq ($(KBUILD_TARGET),win)
|
---|
815 | VBOX_SLIRP_SOURCES += Network/slirp/resolv_conf_parser.c
|
---|
816 | endif
|
---|
817 |
|
---|
818 | VBOX_SLIRP_BSD_ARCH = $(subst x86,i386,$(KBUILD_TARGET_ARCH))
|
---|
819 | VBOX_SLIRP_BSD_SOURCES += \
|
---|
820 | Network/slirp/bsd/kern/kern_mbuf.c \
|
---|
821 | Network/slirp/bsd/kern/uipc_mbuf.c \
|
---|
822 | Network/slirp/bsd/kern/uipc_mbuf2.c \
|
---|
823 | Network/slirp/bsd/$(VBOX_SLIRP_BSD_ARCH)/in_cksum.c
|
---|
824 | VBOX_SLIRP_ALIAS_SOURCES = \
|
---|
825 | Network/slirp/libalias/alias.c \
|
---|
826 | Network/slirp/libalias/alias_db.c \
|
---|
827 | Network/slirp/libalias/alias_mod.c \
|
---|
828 | Network/slirp/libalias/alias_proxy.c \
|
---|
829 | Network/slirp/libalias/alias_ftp.c \
|
---|
830 | Network/slirp/libalias/alias_nbt.c \
|
---|
831 | Network/slirp/libalias/alias_util.c
|
---|
832 |
|
---|
833 | # Enable VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER here for a while, then move to
|
---|
834 | # $(file)_DEFS or clean the code disabled with this definition.
|
---|
835 | VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER = 1
|
---|
836 |
|
---|
837 | # dump memory related operations.
|
---|
838 | Network/slirp/misc.c_DEFS += $(if $(VBOX_NAT_MEM_DEBUG),VBOX_NAT_MEM_DEBUG,)
|
---|
839 |
|
---|
840 | VBoxDD_SOURCES += $(VBOX_SLIRP_SOURCES)
|
---|
841 | define def_vbox_slirp_cflags
|
---|
842 | $(file)_DEFS += \
|
---|
843 | $(if $(VBOX_WITH_SLIRP_MEMORY_CHECK),RTMEM_WRAP_TO_EF_APIS,) \
|
---|
844 | $(if $(VBOX_WITH_DEBUG_NAT_SOCKETS),VBOX_WITH_DEBUG_NAT_SOCKETS,) \
|
---|
845 | $(if $(VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER),VBOX_WITH_DNSMAPPING_IN_HOSTRESOLVER,) \
|
---|
846 | $(if $(VBOX_WITH_NAT_SEND2HOME),VBOX_WITH_NAT_SEND2HOME,) \
|
---|
847 | $(if $(VBOX_WITH_HIDDEN_TCPTEMPLATE),VBOX_WITH_HIDDEN_TCPTEMPLATE,) \
|
---|
848 | $(if $(VBOX_WITH_SLIRP_MT),VBOX_WITH_SLIRP_MT,)
|
---|
849 | $(file)_INCS += \
|
---|
850 | $(1)/slirp/bsd/sys \
|
---|
851 | $(1)/slirp/bsd/sys/sys \
|
---|
852 | $(1)/slirp/bsd/$(VBOX_SLIRP_BSD_ARCH)/include \
|
---|
853 | $(1)/slirp/bsd/netinet \
|
---|
854 | $(1)/slirp \
|
---|
855 | $(1)/slirp/libalias
|
---|
856 | ifeq ($(KBUILD_TARGET),win)
|
---|
857 | $(file)_CFLAGS = -wd4018
|
---|
858 | else
|
---|
859 | $(file)_CFLAGS += -Wno-sign-compare -Wno-format -Wno-bad-function-cast
|
---|
860 | endif
|
---|
861 | endef
|
---|
862 |
|
---|
863 | $(foreach file,$(VBOX_SLIRP_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
|
---|
864 |
|
---|
865 | VBoxDD_SOURCES += $(VBOX_SLIRP_ALIAS_SOURCES)
|
---|
866 | define def_vbox_slirp_alias_cflags
|
---|
867 | $(file)_DEFS += VBOX_SLIRP_ALIAS \
|
---|
868 | $(if $(VBOX_WITH_DEBUG_LIBALIAS),VBOX_WITH_DEBUG_LIBALIAS,)
|
---|
869 | $(file)_INCS += \
|
---|
870 | $(1)/slirp/libalias \
|
---|
871 | $(1)/slirp \
|
---|
872 | $(1)/slirp/dnsproxy
|
---|
873 | ifneq ($(KBUILD_TARGET),win)
|
---|
874 | $(file)_CFLAGS += -Wno-shadow
|
---|
875 | endif
|
---|
876 | endef
|
---|
877 | $(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
|
---|
878 | $(foreach file,$(VBOX_SLIRP_ALIAS_SOURCES),$(eval $(call def_vbox_slirp_alias_cflags, Network)))
|
---|
879 |
|
---|
880 | VBOX_SLIRP_BSD_SOURCES += $(VBOX_SLIRP_BSD_SOURCES.${KBUILD_TARGET_ARCH})
|
---|
881 | VBoxDD_SOURCES += $(VBOX_SLIRP_BSD_SOURCES)
|
---|
882 | define def_vbox_slirp_bsd_cflags
|
---|
883 | $(file)_DEFS += VBOX_SLIRP_BSD
|
---|
884 | $(file)_INCS += $(1)/slirp/dnsproxy
|
---|
885 | endef
|
---|
886 | $(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_cflags, Network)))
|
---|
887 | $(foreach file,$(VBOX_SLIRP_BSD_SOURCES),$(eval $(call def_vbox_slirp_bsd_cflags, Network)))
|
---|
888 |
|
---|
889 |
|
---|
890 | # --- OS specific driver hacks. ---
|
---|
891 |
|
---|
892 | ifeq ($(KBUILD_TARGET),freebsd)
|
---|
893 | VBoxDD_SOURCES.freebsd += Network/DrvTAP.cpp
|
---|
894 | endif # freebsd
|
---|
895 |
|
---|
896 | VBoxDD_SOURCES.linux += \
|
---|
897 | Network/DrvTAP.cpp \
|
---|
898 | Parallel/DrvHostParallel.cpp
|
---|
899 |
|
---|
900 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
901 | ifdef VBOX_WITH_SUID_WRAPPER
|
---|
902 | VBoxDD_DEFS += VBOX_WITH_SUID_WRAPPER
|
---|
903 | endif
|
---|
904 | endif
|
---|
905 |
|
---|
906 | VBoxDD_DEFS.win += VBOX_WITH_WIN_PARPORT_SUP
|
---|
907 | VBoxDD_SOURCES.win += \
|
---|
908 | Parallel/DrvHostParallel.cpp
|
---|
909 |
|
---|
910 | ifdef VBOX_WITH_VIRTUALKD
|
---|
911 | VBoxDD_DEFS.win += VBOX_WITH_VIRTUALKD
|
---|
912 | VBoxDD_SOURCES.win += \
|
---|
913 | Misc/DevVirtualKD.cpp
|
---|
914 | endif
|
---|
915 |
|
---|
916 | if defined(VBOX_WITH_NETFLT)
|
---|
917 | VBoxDD_DEFS += VBOX_WITH_NETFLT
|
---|
918 | if defined(VBOX_NETFLT_ONDEMAND_BIND)
|
---|
919 | VBoxDD_DEFS.win += VBOX_NETFLT_ONDEMAND_BIND
|
---|
920 | endif
|
---|
921 | endif
|
---|
922 |
|
---|
923 | # --- ARMv8 bits. ---
|
---|
924 | if defined(VBOX_WITH_VIRT_ARMV8)
|
---|
925 | VBoxDD_DEFS += VBOX_VMM_TARGET_ARMV8
|
---|
926 | VBoxDD_SOURCES += \
|
---|
927 | Bus/DevPciGenericEcam.cpp \
|
---|
928 | EFI/DevEFI-armv8.cpp \
|
---|
929 | Gpio/DevPL061.cpp \
|
---|
930 | Misc/DevFlashCFI.cpp \
|
---|
931 | Misc/DevPL031.cpp \
|
---|
932 | Serial/DevPL011.cpp
|
---|
933 | endif
|
---|
934 |
|
---|
935 | # --- Final bits, mostly libraries for order dependant linkers. ---
|
---|
936 |
|
---|
937 | VBoxDD_LIBS += \
|
---|
938 | $(PATH_STAGE_LIB)/VgaDefBiosLogo$(VBOX_SUFF_LIB) \
|
---|
939 | $(LIB_RUNTIME)
|
---|
940 | ifeq ($(KBUILD_TARGET),win)
|
---|
941 | VBoxDD_LIBS += \
|
---|
942 | $(LIB_DDU) \
|
---|
943 | $(PATH_STAGE_LIB)/VBoxDD2.lib
|
---|
944 | else
|
---|
945 | VBoxDD_LIBS += \
|
---|
946 | $(VBoxDDU_1_STAGE_TARGET) \
|
---|
947 | $(VBoxDD2_1_STAGE_TARGET)
|
---|
948 | endif
|
---|
949 |
|
---|
950 | ifdef VBOX_WITH_NETFLT
|
---|
951 | VBoxDD_LIBS.win += $(PATH_STAGE_LIB)/WinNetConfigDll$(VBOX_SUFF_LIB)
|
---|
952 | endif
|
---|
953 |
|
---|
954 | ifeq ($(KBUILD_TARGET),solaris)
|
---|
955 | VBoxDD_LIBS += adm
|
---|
956 | ifdef VBOX_WITH_SUID_WRAPPER
|
---|
957 | VBoxDD_LIBS += secdb
|
---|
958 | endif
|
---|
959 | ifdef VBOX_WITH_USB
|
---|
960 | VBoxDD_LIBS += aio
|
---|
961 | endif
|
---|
962 | endif
|
---|
963 |
|
---|
964 |
|
---|
965 | ifdef VBOX_WITH_DYNAMIC_DSDT
|
---|
966 | VBoxDD_CLEAN += $(VBoxDD_0_OUTDIR)/vboxdsl.hex
|
---|
967 | PC/ACPI/VBoxAcpi.cpp_DEPS = $(VBoxDD_0_OUTDIR)/vboxdsl.hex
|
---|
968 |
|
---|
969 | $$(VBoxDD_0_OUTDIR)/vboxdsl.hex: $(PATH_SUB_CURRENT)/PC/vbox.dsl | $$(dir $$@)
|
---|
970 | $(call MSG_TOOL,bin2c,VBoxDD,$<,$@)
|
---|
971 | $(QUIET)$(VBOX_BIN2C) -export VboxDslSource $< $@
|
---|
972 |
|
---|
973 | vboxdsl.hex:: $$(VBoxDD_0_OUTDIR)/vboxdsl.hex
|
---|
974 |
|
---|
975 | else # !VBOX_WITH_DYNAMIC_DSDT
|
---|
976 | # VBoxAcpi.cpp needs vboxaml.hex which we generate from PC/vbox.dsl
|
---|
977 | VBoxDD_CLEAN += \
|
---|
978 | $(VBoxDD_0_OUTDIR)/vboxaml.hex \
|
---|
979 | $(VBoxDD_0_OUTDIR)/vboxaml.aml \
|
---|
980 | $(VBoxDD_0_OUTDIR)/vboxaml.aml.tmp \
|
---|
981 | $(VBoxDD_0_OUTDIR)/vboxssdt_standard.hex \
|
---|
982 | $(VBoxDD_0_OUTDIR)/vboxssdt_standard.aml \
|
---|
983 | $(VBoxDD_0_OUTDIR)/vboxssdt_standard.aml.tmp \
|
---|
984 | $(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.hex \
|
---|
985 | $(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.aml \
|
---|
986 | $(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.aml.tmp \
|
---|
987 | $(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.aml.pre \
|
---|
988 | $(if $(VBOX_WITH_TPM),$(VBoxDD_0_OUTDIR)/vboxssdt_tpm.hex,) \
|
---|
989 | $(if $(VBOX_WITH_TPM),$(VBoxDD_0_OUTDIR)/vboxssdt_tpm.aml,) \
|
---|
990 | $(if $(VBOX_WITH_TPM),$(VBoxDD_0_OUTDIR)/vboxssdt_tpm.aml.tmp,)
|
---|
991 | PC/ACPI/VBoxAcpi.cpp_DEPS = \
|
---|
992 | $(VBoxDD_0_OUTDIR)/vboxaml.hex \
|
---|
993 | $(VBoxDD_0_OUTDIR)/vboxssdt_standard.hex \
|
---|
994 | $(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.hex \
|
---|
995 | $(if $(VBOX_WITH_TPM),$(VBoxDD_0_OUTDIR)/vboxssdt_tpm.hex,)
|
---|
996 |
|
---|
997 | $$(VBoxDD_0_OUTDIR)/vboxaml.hex: $(PATH_SUB_CURRENT)/PC/vbox.dsl | $$(dir $$@)
|
---|
998 | $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
|
---|
999 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
|
---|
1000 | $(QUIET)$(MV) -f $@ [email protected]
|
---|
1001 | $(QUIET)$(SED) -e "s/vboxaml_aml_code/AmlCode/g" \
|
---|
1002 | --output $@ [email protected]
|
---|
1003 | $(QUIET)$(RM) -f [email protected]
|
---|
1004 |
|
---|
1005 | vboxaml.hex:: $$(VBoxDD_0_OUTDIR)/vboxaml.hex
|
---|
1006 |
|
---|
1007 | $$(VBoxDD_0_OUTDIR)/vboxssdt_standard.hex: $(PATH_SUB_CURRENT)/PC/vbox-standard.dsl | $$(dir $$@)
|
---|
1008 | $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
|
---|
1009 | $(QUIET)$(RM) -f $@ [email protected]
|
---|
1010 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
|
---|
1011 | $(QUIET)$(MV) -f $@ [email protected]
|
---|
1012 | $(QUIET)$(SED) -e "s/AmlCode\|vboxssdt_standard_aml_code/AmlCodeSsdtStandard/g" \
|
---|
1013 | --output $@ [email protected]
|
---|
1014 | $(QUIET)$(RM) -f [email protected]
|
---|
1015 |
|
---|
1016 |
|
---|
1017 | vboxssdt_standard.hex:: $$(VBoxDD_0_OUTDIR)/vboxssdt_standard.hex
|
---|
1018 |
|
---|
1019 | $$(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.hex: $(PATH_SUB_CURRENT)/PC/vbox-cpuhotplug.dsl | $$(dir $$@)
|
---|
1020 | $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
|
---|
1021 | $(QUIET)$(RM) -f $@ [email protected] [email protected]
|
---|
1022 | $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -E -P -x c -o [email protected] $<
|
---|
1023 | $(QUIET)$(SED) -e "s/<NL>/\n/g" \
|
---|
1024 | --output [email protected] [email protected]
|
---|
1025 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ [email protected]
|
---|
1026 | $(QUIET)$(MV) -f $@ [email protected]
|
---|
1027 | $(QUIET)$(SED) -e "s/AmlCode\|vboxssdt_cpuhotplug_aml_code/AmlCodeSsdtCpuHotPlug/g" \
|
---|
1028 | --output $@ [email protected]
|
---|
1029 | $(QUIET)$(RM) -f [email protected] [email protected] [email protected]
|
---|
1030 |
|
---|
1031 |
|
---|
1032 | vboxssdt_cpuhotplug.hex:: $$(VBoxDD_0_OUTDIR)/vboxssdt_cpuhotplug.hex
|
---|
1033 |
|
---|
1034 | if defined(VBOX_WITH_TPM)
|
---|
1035 | $$(VBoxDD_0_OUTDIR)/vboxssdt_tpm.hex: $(PATH_SUB_CURRENT)/PC/vbox-tpm.dsl | $$(dir $$@)
|
---|
1036 | $(call MSG_TOOL,iasl,VBoxDD,$<,$@)
|
---|
1037 | $(QUIET)$(RM) -f $@ [email protected]
|
---|
1038 | $(QUIET)$(VBOX_IASLCMD) -tc -vs -p $@ $<
|
---|
1039 | $(QUIET)$(MV) -f $@ [email protected]
|
---|
1040 | $(QUIET)$(SED) -e "s/AmlCode\|vboxssdt_tpm_aml_code/AmlCodeSsdtTpm/g" \
|
---|
1041 | --output $@ [email protected]
|
---|
1042 | $(QUIET)$(RM) -f [email protected]
|
---|
1043 |
|
---|
1044 | vboxssdt_tpm.hex:: $$(VBoxDD_0_OUTDIR)/vboxssdt_tpm.hex
|
---|
1045 | endif # !VBOX_WITH_TPM
|
---|
1046 |
|
---|
1047 | endif # !VBOX_WITH_DYNAMIC_DSDT
|
---|
1048 | PC/ACPI/VBoxAcpi.cpp_INCS = $(VBoxDD_0_OUTDIR)
|
---|
1049 |
|
---|
1050 | # For finding PCIInternal.h from VBox/pci.h.
|
---|
1051 | Bus/DevPCI.cpp_INCS = Bus
|
---|
1052 | Bus/DevPciIch9.cpp_INCS = Bus
|
---|
1053 | Bus/MsiCommon.cpp_INCS = Bus
|
---|
1054 | Bus/MsixCommon.cpp_INCS = Bus
|
---|
1055 | Bus/DevPciRaw.cpp_INCS = Bus
|
---|
1056 |
|
---|
1057 | # For finding and generating vbetables.h (see Graphics/BIOS/Makefile.kmk).
|
---|
1058 | Graphics/DevVGA.cpp_INCS = $(VgaBiosBin_0_OUTDIR) $(VBOX_GRAPHICS_INCS)
|
---|
1059 | Graphics/DevVGA.cpp_DEPS = $(VgaBiosBin_0_OUTDIR)/vbetables.h
|
---|
1060 |
|
---|
1061 | $(call VBOX_SET_VER_INFO_DLL,VBoxDD,VirtualBox VMM Devices and Drivers) # (last!)
|
---|
1062 |
|
---|
1063 |
|
---|
1064 | ifdef VBOX_WITH_RAW_MODE
|
---|
1065 | #
|
---|
1066 | # VBoxDDRC (sysmod)
|
---|
1067 | #
|
---|
1068 | VBoxDDRC_TEMPLATE = VBoxRc
|
---|
1069 | ifeq ($(KBUILD_TARGET_ARCH),x86)
|
---|
1070 | VBoxDDRC_DEFS.darwin = VBOX_WITH_2X_4GB_ADDR_SPACE
|
---|
1071 | endif
|
---|
1072 | VBoxDDRC_DEFS = \
|
---|
1073 | $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) \
|
---|
1074 | $(if $(VBOX_WITH_IOMMU_AMD),VBOX_WITH_IOMMU_AMD,) \
|
---|
1075 | $(if $(VBOX_WITH_IOMMU_INTEL),VBOX_WITH_IOMMU_INTEL,)
|
---|
1076 | VBoxDDRC_INCS = build $(VBOX_GRAPHICS_INCS)
|
---|
1077 | VBoxDDRC_SOURCES = \
|
---|
1078 | Bus/DevPCI.cpp \
|
---|
1079 | Bus/DevPciIch9.cpp \
|
---|
1080 | Bus/MsiCommon.cpp \
|
---|
1081 | Bus/MsixCommon.cpp \
|
---|
1082 | $(if $(VBOX_WITH_IOMMU_AMD),Bus/DevIommuAmd.cpp,) \
|
---|
1083 | $(if $(VBOX_WITH_IOMMU_INTEL),Bus/DevIommuIntel.cpp,) \
|
---|
1084 | EFI/DevSmc.cpp \
|
---|
1085 | Graphics/DevVGA.cpp \
|
---|
1086 | Input/DevPS2.cpp \
|
---|
1087 | Input/DevPS2K.cpp \
|
---|
1088 | Input/DevPS2M.cpp \
|
---|
1089 | PC/DevACPI.cpp \
|
---|
1090 | PC/DevIoApic.cpp \
|
---|
1091 | PC/DevPit-i8254.cpp \
|
---|
1092 | PC/DevPIC.cpp \
|
---|
1093 | PC/DevRTC.cpp \
|
---|
1094 | PC/DevDMA.cpp \
|
---|
1095 | PC/DevHPET.cpp \
|
---|
1096 | Storage/DevATA.cpp \
|
---|
1097 | Network/DevPCNet.cpp \
|
---|
1098 | Network/DevDP8390.cpp \
|
---|
1099 | Network/Dev3C501.cpp \
|
---|
1100 | Serial/DevSerial.cpp \
|
---|
1101 | Serial/DevOxPcie958.cpp \
|
---|
1102 | Serial/UartCore.cpp \
|
---|
1103 | Parallel/DevParallel.cpp \
|
---|
1104 | VMMDev/VMMDev.cpp \
|
---|
1105 | VMMDev/VMMDevTesting.cpp
|
---|
1106 |
|
---|
1107 | VBoxDDRC_DEFS += $(VBOX_AUDIO_DEFS)
|
---|
1108 | VBoxDDRC_SOURCES += \
|
---|
1109 | Audio/DevHda.cpp \
|
---|
1110 | Audio/DevIchAc97.cpp
|
---|
1111 |
|
---|
1112 | VBoxDDRC_DEFS += \
|
---|
1113 | $(if $(VBOX_WITH_HP_HDA),VBOX_WITH_HP_HDA,) \
|
---|
1114 | $(if $(VBOX_WITH_INTEL_HDA),VBOX_WITH_INTEL_HDA,) \
|
---|
1115 | $(if $(VBOX_WITH_NVIDIA_HDA),VBOX_WITH_NVIDIA_HDA,)
|
---|
1116 |
|
---|
1117 | ifdef VBOX_WITH_E1000
|
---|
1118 | VBoxDDRC_DEFS += VBOX_WITH_E1000
|
---|
1119 | VBoxDDRC_SOURCES += \
|
---|
1120 | Network/DevE1000.cpp \
|
---|
1121 | Network/DevE1000Phy.cpp
|
---|
1122 | endif
|
---|
1123 |
|
---|
1124 | ifdef VBOX_WITH_VIRTIO
|
---|
1125 | VBoxDDRC_DEFS += VBOX_WITH_VIRTIO
|
---|
1126 | VBoxDDRC_SOURCES += \
|
---|
1127 | VirtIO/VirtioCore.cpp \
|
---|
1128 | Network/DevVirtioNet.cpp
|
---|
1129 | endif
|
---|
1130 |
|
---|
1131 | ifdef VBOX_WITH_HGSMI
|
---|
1132 | VBoxDDRC_DEFS += VBOX_WITH_HGSMI
|
---|
1133 | endif
|
---|
1134 | ifdef VBOX_WITH_WDDM
|
---|
1135 | VBoxDDRC_DEFS += VBOX_WITH_WDDM
|
---|
1136 | endif
|
---|
1137 | ifdef VBOX_WITH_VDMA
|
---|
1138 | VBoxDDRC_DEFS += VBOX_WITH_VDMA
|
---|
1139 | endif
|
---|
1140 | ifdef VBOXWDDM_WITH_VBVA
|
---|
1141 | VBoxDDRC_DEFS += VBOXWDDM_WITH_VBVA
|
---|
1142 | endif
|
---|
1143 | ifdef VBOX_WITH_VMSVGA
|
---|
1144 | VBoxDDRC_DEFS += VBOX_WITH_VMSVGA
|
---|
1145 | VBoxDDRC_SOURCES += \
|
---|
1146 | Graphics/DevVGA-SVGA.cpp
|
---|
1147 | endif
|
---|
1148 | ifdef VBOX_WITH_VMSVGA3D
|
---|
1149 | VBoxDDRC_DEFS += VBOX_WITH_VMSVGA3D
|
---|
1150 | endif
|
---|
1151 |
|
---|
1152 | ifdef VBOX_WITH_VUSB
|
---|
1153 | VBoxDDRC_DEFS += VBOX_WITH_VUSB
|
---|
1154 | VBoxDDRC_SOURCES += \
|
---|
1155 | USB/DevOHCI.cpp
|
---|
1156 | endif
|
---|
1157 |
|
---|
1158 | ifdef VBOX_WITH_USB
|
---|
1159 | VBoxDDRC_DEFS += VBOX_WITH_USB
|
---|
1160 | if defined(VBOX_WITH_EHCI_IMPL)
|
---|
1161 | VBoxDDRC_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
1162 | VBoxDDRC_SOURCES += \
|
---|
1163 | USB/DevEHCI.cpp
|
---|
1164 | endif
|
---|
1165 | if defined(VBOX_WITH_XHCI_IMPL)
|
---|
1166 | VBoxDDRC_DEFS += VBOX_WITH_XHCI_IMPL
|
---|
1167 | VBoxDDRC_SOURCES += \
|
---|
1168 | USB/DevXHCI.cpp
|
---|
1169 | endif
|
---|
1170 | endif
|
---|
1171 |
|
---|
1172 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
1173 | VBoxDDRC_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
1174 | endif
|
---|
1175 |
|
---|
1176 | ifdef VBOX_WITH_AHCI
|
---|
1177 | VBoxDDRC_DEFS += VBOX_WITH_AHCI IN_AHCI_GC
|
---|
1178 | VBoxDDRC_SOURCES += \
|
---|
1179 | Storage/DevAHCI.cpp
|
---|
1180 | endif
|
---|
1181 |
|
---|
1182 | ifdef VBOX_WITH_BUSLOGIC
|
---|
1183 | VBoxDDRC_DEFS += VBOX_WITH_BUSLOGIC
|
---|
1184 | VBoxDDRC_SOURCES += \
|
---|
1185 | Storage/DevBusLogic.cpp
|
---|
1186 | endif
|
---|
1187 |
|
---|
1188 | ifdef VBOX_WITH_LSILOGIC
|
---|
1189 | VBoxDDRC_DEFS += VBOX_WITH_LSILOGIC
|
---|
1190 | VBoxDDRC_SOURCES += \
|
---|
1191 | Storage/DevLsiLogicSCSI.cpp
|
---|
1192 | endif
|
---|
1193 |
|
---|
1194 | if defined(VBOX_WITH_NVME_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
1195 | VBoxDDGC_DEFS += VBOX_WITH_NVME_IMPL
|
---|
1196 | VBoxDDGC_SOURCES += \
|
---|
1197 | Storage/DevNVMe.cpp
|
---|
1198 | endif
|
---|
1199 |
|
---|
1200 | if1of ($(VBOX_LDR_FMT32), pe lx)
|
---|
1201 | VBoxDDRC_LIBS = \
|
---|
1202 | $(PATH_STAGE_LIB)/VMMRCBuiltin$(VBOX_SUFF_LIB) \
|
---|
1203 | $(PATH_STAGE_LIB)/VMMRCImp$(VBOX_SUFF_LIB)
|
---|
1204 | endif
|
---|
1205 | $(call VBOX_SET_VER_INFO_RC,VBoxDDRC,VirtualBox VMM Devices and Drivers$(COMMA) raw-mode) # last!
|
---|
1206 | endif # VBOX_WITH_RAW_MODE
|
---|
1207 |
|
---|
1208 |
|
---|
1209 | #
|
---|
1210 | # VBoxDD2 (shared object)
|
---|
1211 | #
|
---|
1212 | VBoxDD2_TEMPLATE = VBoxR3DllWarnNoPic
|
---|
1213 | VBoxDD2_DEFS = \
|
---|
1214 | IN_VBOXDD2 \
|
---|
1215 | $(if $(VBOX_WITH_PXE_ROM),VBOX_WITH_PXE_ROM,) \
|
---|
1216 | $(if $(VBOX_WITH_VIRT_ARMV8),VBOX_VMM_TARGET_ARMV8,)
|
---|
1217 | VBoxDD2_INCS := \
|
---|
1218 | build \
|
---|
1219 | $(PATH_SUB_CURRENT)
|
---|
1220 | VBoxDD2_SOURCES = \
|
---|
1221 | build/VBoxDD2.cpp
|
---|
1222 | VBoxDD2_LIBS = \
|
---|
1223 | $(PATH_STAGE_LIB)/PcBiosBin$(VBOX_SUFF_LIB) \
|
---|
1224 | $(PATH_STAGE_LIB)/VgaBiosBin$(VBOX_SUFF_LIB) \
|
---|
1225 | $(if $(VBOX_WITH_PXE_ROM), \
|
---|
1226 | $(if $(VBOX_WITH_INTEL_PXE), \
|
---|
1227 | $(PATH_STAGE_LIB)/NetBiosBin$(VBOX_SUFF_LIB), \
|
---|
1228 | $(PATH_STAGE_LIB)/iPxeBiosBin$(VBOX_SUFF_LIB)),) \
|
---|
1229 | $(LIB_RUNTIME)
|
---|
1230 | VBoxDD2_LDFLAGS.darwin = -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxDD2.dylib
|
---|
1231 | VBoxDD2_LDFLAGS.linux = $(VBOX_GCC_NO_UNDEFINED)
|
---|
1232 | if defined(VBOX_WITH_EFI) && !defined(VBOX_WITH_EFIFW_PACKING)
|
---|
1233 | VBoxDD_DEFS += VBOX_WITH_EFI_IN_DD2
|
---|
1234 | VBoxDD2_DEFS += VBOX_WITH_EFI
|
---|
1235 | VBoxDD2_SOURCES.x86 += EFI/DevEFI-binaries.asm
|
---|
1236 | VBoxDD2_SOURCES.amd64 += EFI/DevEFI-binaries.asm
|
---|
1237 | EFI/DevEFI-binaries.asm_ASINCS = $(PATH_STAGE)/$(INST_BIN)
|
---|
1238 | EFI/DevEFI-binaries.asm_DEPS = \
|
---|
1239 | $(PATH_STAGE)/$(INST_BIN)VBoxEFI32.fd \
|
---|
1240 | $(PATH_STAGE)/$(INST_BIN)VBoxEFI64.fd
|
---|
1241 |
|
---|
1242 | VBoxDD2_SOURCES.arm64 += EFI/DevEFI-binaries.S
|
---|
1243 | EFI/DevEFI-binaries.S_ASINCS = $(PATH_STAGE)/$(INST_BIN)
|
---|
1244 | EFI/DevEFI-binaries.S_DEPS = \
|
---|
1245 | $(PATH_STAGE)/$(INST_BIN)VBoxEFI32.fd \
|
---|
1246 | $(PATH_STAGE)/$(INST_BIN)VBoxEFI64.fd
|
---|
1247 | ifdef VBOX_WITH_VIRT_ARMV8
|
---|
1248 | EFI/DevEFI-binaries.S_DEPS += \
|
---|
1249 | $(PATH_STAGE)/$(INST_BIN)VBoxEFIAArch32.fd \
|
---|
1250 | $(PATH_STAGE)/$(INST_BIN)VBoxEFIAArch64.fd
|
---|
1251 | endif
|
---|
1252 | endif
|
---|
1253 |
|
---|
1254 | $(call VBOX_SET_VER_INFO_DLL,VBoxDD2,VirtualBox VMM Devices and Drivers 2) # (last!)
|
---|
1255 |
|
---|
1256 | #
|
---|
1257 | # VBoxDDR0 (sysmod)
|
---|
1258 | #
|
---|
1259 | if "$(KBUILD_TARGET)" != "win" && $(VBOX_GCC_VERSION_CXX) < 40600
|
---|
1260 | #
|
---|
1261 | # Disable "ISO C++ prohibits anonymous structs [-Werror=pedantic]" caused by Mesa VMSVGA driver headers
|
---|
1262 | # For GCC >= 4.6.0 the warning is disabled in DevVGA_SVGA.h
|
---|
1263 | #
|
---|
1264 | # Template used for gcc older than 4.6. (Strips away compiler options.)
|
---|
1265 | #
|
---|
1266 | TEMPLATE_VBoxDDR0OldGCC := VBoxDDR0OldGCC
|
---|
1267 | TEMPLATE_VBoxDDR0OldGCC_EXTENDS := VBoxR0
|
---|
1268 | TEMPLATE_VBoxDDR0OldGCC_CXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxDDR0OldGCC_EXTENDS)_CXXFLAGS))
|
---|
1269 |
|
---|
1270 | VBoxDDR0_TEMPLATE = VBoxDDR0OldGCC
|
---|
1271 | else
|
---|
1272 | VBoxDDR0_TEMPLATE = VBoxR0
|
---|
1273 | endif
|
---|
1274 | VBoxDDR0_DEFS = \
|
---|
1275 | $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) \
|
---|
1276 | $(if $(VBOX_WITH_IOMMU_AMD),VBOX_WITH_IOMMU_AMD,) \
|
---|
1277 | $(if $(VBOX_WITH_IOMMU_INTEL),VBOX_WITH_IOMMU_INTEL,) \
|
---|
1278 | IN_RT_R0 # - WTF is IN_RT_R0 doing here?
|
---|
1279 | VBoxDDR0_DEFS.win += VBOX_WITH_WIN_PARPORT_SUP
|
---|
1280 | VBoxDDR0_INCS = build $(VBOX_GRAPHICS_INCS)
|
---|
1281 | VBoxDDR0_INCS += $(VBOX_PATH_VMSVGA_DEVICE_INC)
|
---|
1282 | VBoxDDR0_SDKS.win = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK)
|
---|
1283 | VBoxDDR0_SOURCES = \
|
---|
1284 | build/VBoxDDR0.cpp \
|
---|
1285 | Bus/DevPCI.cpp \
|
---|
1286 | Bus/DevPciIch9.cpp \
|
---|
1287 | Bus/MsiCommon.cpp \
|
---|
1288 | Bus/MsixCommon.cpp \
|
---|
1289 | $(if $(VBOX_WITH_IOMMU_AMD),Bus/DevIommuAmd.cpp,) \
|
---|
1290 | $(if $(VBOX_WITH_IOMMU_INTEL),Bus/DevIommuIntel.cpp,) \
|
---|
1291 | EFI/DevSmc.cpp \
|
---|
1292 | EFI/DevFlash.cpp \
|
---|
1293 | EFI/FlashCore.cpp \
|
---|
1294 | Graphics/DevVGA.cpp \
|
---|
1295 | Input/DevPS2.cpp \
|
---|
1296 | Input/DevPS2K.cpp \
|
---|
1297 | Input/DevPS2M.cpp \
|
---|
1298 | PC/DevACPI.cpp \
|
---|
1299 | PC/DevIoApic.cpp \
|
---|
1300 | PC/DevPit-i8254.cpp \
|
---|
1301 | PC/DevPIC.cpp \
|
---|
1302 | PC/DevRTC.cpp \
|
---|
1303 | PC/DevDMA.cpp \
|
---|
1304 | PC/DevHPET.cpp \
|
---|
1305 | Storage/DevATA.cpp \
|
---|
1306 | Network/DevPCNet.cpp \
|
---|
1307 | Network/DevDP8390.cpp \
|
---|
1308 | Network/Dev3C501.cpp \
|
---|
1309 | Serial/DevSerial.cpp \
|
---|
1310 | Serial/DevOxPcie958.cpp \
|
---|
1311 | Serial/UartCore.cpp \
|
---|
1312 | Parallel/DevParallel.cpp \
|
---|
1313 | GIMDev/GIMDev.cpp \
|
---|
1314 | VMMDev/VMMDev.cpp \
|
---|
1315 | VMMDev/VMMDevTesting.cpp \
|
---|
1316 | Network/DrvDedicatedNic.cpp \
|
---|
1317 | $(if-expr 0,Network/DrvIntNet.cpp,) # no ring-0 driver support at the moment
|
---|
1318 |
|
---|
1319 | ifdef VBOX_WITH_DTRACE_R0
|
---|
1320 | VBoxDDR0_USES += dtrace
|
---|
1321 | VBoxDDR0_SOURCES += build/VBoxDD.d
|
---|
1322 | endif
|
---|
1323 |
|
---|
1324 | VBoxDDR0_SOURCES.win += Parallel/DrvHostParallel.cpp
|
---|
1325 |
|
---|
1326 | VBoxDDR0_DEFS += \
|
---|
1327 | $(if $(VBOX_WITH_HGSMI),VBOX_WITH_HGSMI,) \
|
---|
1328 | $(if $(VBOX_WITH_WDDM),VBOX_WITH_WDDM,) \
|
---|
1329 | $(if $(VBOX_WITH_VDMA),VBOX_WITH_VDMA,) \
|
---|
1330 | $(if $(VBOXWDDM_WITH_VBVA),VBOXWDDM_WITH_VBVA,) \
|
---|
1331 | $(if $(VBOX_WITH_HP_HDA),VBOX_WITH_HP_HDA,) \
|
---|
1332 | $(if $(VBOX_WITH_INTEL_HDA),VBOX_WITH_INTEL_HDA,) \
|
---|
1333 | $(if $(VBOX_WITH_NVIDIA_HDA),VBOX_WITH_NVIDIA_HDA,)
|
---|
1334 |
|
---|
1335 | VBoxDDR0_DEFS += $(VBOX_AUDIO_DEFS)
|
---|
1336 | VBoxDDR0_SOURCES += \
|
---|
1337 | Audio/DevHda.cpp \
|
---|
1338 | Audio/DevHdaStream.cpp \
|
---|
1339 | Audio/DevIchAc97.cpp
|
---|
1340 |
|
---|
1341 | ifdef VBOX_WITH_E1000
|
---|
1342 | VBoxDDR0_DEFS += VBOX_WITH_E1000
|
---|
1343 | VBoxDDR0_SOURCES += \
|
---|
1344 | Network/DevE1000.cpp \
|
---|
1345 | Network/DevE1000Phy.cpp
|
---|
1346 | endif
|
---|
1347 |
|
---|
1348 | ifdef VBOX_WITH_VIRTIO
|
---|
1349 | VBoxDDR0_DEFS += VBOX_WITH_VIRTIO
|
---|
1350 | VBoxDDR0_SOURCES += \
|
---|
1351 | VirtIO/VirtioCore.cpp \
|
---|
1352 | Network/DevVirtioNet.cpp
|
---|
1353 | endif
|
---|
1354 |
|
---|
1355 | if 0 #def VBOX_WITH_NETSHAPER - no ring-0 driver support at the moment.
|
---|
1356 | VBoxDDR0_DEFS += VBOX_WITH_NETSHAPER
|
---|
1357 | VBoxDDR0_SOURCES += \
|
---|
1358 | Network/DrvNetShaper.cpp
|
---|
1359 | endif
|
---|
1360 |
|
---|
1361 | ifdef VBOX_WITH_VMSVGA
|
---|
1362 | VBoxDDR0_DEFS += VBOX_WITH_VMSVGA
|
---|
1363 | VBoxDDR0_SOURCES += \
|
---|
1364 | Graphics/DevVGA-SVGA.cpp
|
---|
1365 | endif
|
---|
1366 | ifdef VBOX_WITH_VMSVGA3D
|
---|
1367 | VBoxDDR0_DEFS += VBOX_WITH_VMSVGA3D
|
---|
1368 | endif
|
---|
1369 |
|
---|
1370 | ifdef VBOX_WITH_VUSB
|
---|
1371 | VBoxDDR0_DEFS += VBOX_WITH_VUSB
|
---|
1372 | VBoxDDR0_SOURCES += \
|
---|
1373 | USB/DevOHCI.cpp
|
---|
1374 | endif
|
---|
1375 | ifdef VBOX_WITH_USB
|
---|
1376 | VBoxDDR0_DEFS += VBOX_WITH_USB
|
---|
1377 | if defined(VBOX_WITH_EHCI_IMPL)
|
---|
1378 | VBoxDDR0_DEFS += VBOX_WITH_EHCI_IMPL
|
---|
1379 | VBoxDDR0_SOURCES += \
|
---|
1380 | USB/DevEHCI.cpp
|
---|
1381 | endif
|
---|
1382 | if defined(VBOX_WITH_XHCI_IMPL)
|
---|
1383 | VBoxDDR0_DEFS += VBOX_WITH_XHCI_IMPL
|
---|
1384 | VBoxDDR0_SOURCES += \
|
---|
1385 | USB/DevXHCI.cpp
|
---|
1386 | endif
|
---|
1387 | endif
|
---|
1388 |
|
---|
1389 | ifdef VBOX_WITH_EFI
|
---|
1390 | VBoxDDR0_DEFS += VBOX_WITH_EFI
|
---|
1391 | VBoxDDR0_SOURCES += EFI/DevEFI.cpp
|
---|
1392 | endif
|
---|
1393 |
|
---|
1394 | if defined(VBOX_WITH_PCI_PASSTHROUGH_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
1395 | VBoxDDR0_SOURCES += \
|
---|
1396 | Bus/DevPciRaw.cpp
|
---|
1397 | endif
|
---|
1398 |
|
---|
1399 | ifdef VBOX_WITH_AHCI
|
---|
1400 | VBoxDDR0_DEFS += VBOX_WITH_AHCI IN_AHCI_R0
|
---|
1401 | VBoxDDR0_SOURCES += \
|
---|
1402 | Storage/DevAHCI.cpp
|
---|
1403 | endif
|
---|
1404 |
|
---|
1405 | ifdef VBOX_WITH_BUSLOGIC
|
---|
1406 | VBoxDDR0_DEFS += VBOX_WITH_BUSLOGIC
|
---|
1407 | VBoxDDR0_SOURCES += \
|
---|
1408 | Storage/DevBusLogic.cpp
|
---|
1409 | endif
|
---|
1410 |
|
---|
1411 | ifdef VBOX_WITH_LSILOGIC
|
---|
1412 | VBoxDDR0_DEFS += VBOX_WITH_LSILOGIC
|
---|
1413 | VBoxDDR0_SOURCES += \
|
---|
1414 | Storage/DevLsiLogicSCSI.cpp
|
---|
1415 | endif
|
---|
1416 |
|
---|
1417 | if defined(VBOX_WITH_NVME_IMPL) && !defined(VBOX_WITH_EXTPACK_PUEL)
|
---|
1418 | VBoxDDR0_DEFS += VBOX_WITH_NVME_IMPL
|
---|
1419 | VBoxDDR0_SOURCES += \
|
---|
1420 | Storage/DevNVMe.cpp
|
---|
1421 | endif
|
---|
1422 |
|
---|
1423 | if defined (VBOX_WITH_VIRTIO) && defined(VBOX_WITH_VIRTIO_SCSI)
|
---|
1424 | VBoxDDR0_DEFS += VBOX_WITH_VIRTIO_SCSI
|
---|
1425 | VBoxDDR0_SOURCES += \
|
---|
1426 | Storage/DevVirtioSCSI.cpp
|
---|
1427 | endif
|
---|
1428 |
|
---|
1429 | if defined(VBOX_WITH_TPM)
|
---|
1430 | VBoxDDR0_DEFS += VBOX_WITH_TPM
|
---|
1431 | VBoxDDR0_SOURCES += \
|
---|
1432 | Security/DevTpm.cpp
|
---|
1433 | endif
|
---|
1434 |
|
---|
1435 | ifdef VBOX_WITH_HGSMI
|
---|
1436 | VBoxDDR0_DEFS += VBOX_WITH_HGSMI
|
---|
1437 | endif
|
---|
1438 | ifdef VBOX_WITH_VIDEOHWACCEL
|
---|
1439 | VBoxDDR0_DEFS += VBOX_WITH_VIDEOHWACCEL
|
---|
1440 | endif
|
---|
1441 |
|
---|
1442 | if1of ($(VBOX_LDR_FMT), pe lx)
|
---|
1443 | VBoxDDR0_LIBS = \
|
---|
1444 | $(PATH_STAGE_LIB)/VMMR0Imp$(VBOX_SUFF_LIB)
|
---|
1445 | endif
|
---|
1446 | VBoxDDR0_LIBS += \
|
---|
1447 | $(VBOX_LIB_SUPR0)
|
---|
1448 |
|
---|
1449 | $(call VBOX_SET_VER_INFO_R0,VBoxDDR0,VirtualBox VMM Devices and Drivers$(COMMA) ring-0) # (last!)
|
---|
1450 |
|
---|
1451 | ifdef VBOX_WITH_KMOD_WRAPPED_R0_MODS
|
---|
1452 | # Wrapper kmod for VBoxDDR0.r0
|
---|
1453 | INSTALLS.linux += vbox_vboxddr0-src
|
---|
1454 | vbox_vboxddr0-src_INST = bin/src/vbox_vboxddr0/
|
---|
1455 | vbox_vboxddr0-src_SYMLINKS = \
|
---|
1456 | SUPWrapperMod-linux.c=>../common/SUPWrapperMod-linux.c \
|
---|
1457 | Makefile-wrapper.gmk=>../common/Makefile-wrapper.gmk
|
---|
1458 | vbox_vboxddr0-src_SOURCES = \
|
---|
1459 | $(PATH_ROOT)/src/VBox/HostDrivers/Support/linux/Makefile-vbox_vboxddr0.gmk=>Makefile \
|
---|
1460 | $(VBoxDDR0_0_OUTDIR)/VBoxDDR0.r0=>VBoxDDR0.r0 \
|
---|
1461 | $(VBoxDDR0_0_OUTDIR)/VBoxDDR0.debug=>VBoxDDR0.debug
|
---|
1462 | endif
|
---|
1463 |
|
---|
1464 | #
|
---|
1465 | # Ring-0 Services (library, linked into VMMR0.r0)
|
---|
1466 | #
|
---|
1467 | ServicesR0_TEMPLATE = VBoxR0
|
---|
1468 | ServicesR0_DEFS = VBOX_IN_VMM IN_INTNET_R0 IN_RT_R0 $(VMM_COMMON_DEFS) \
|
---|
1469 | $(if $(VBOX_WITH_PCI_PASSTHROUGH),IN_PCIRAW_R0,) \
|
---|
1470 | $(if $(VBOX_WITH_NAT_SERVICE),VBOX_WITH_NAT_SERVICE,)
|
---|
1471 | ServicesR0_SOURCES = \
|
---|
1472 | Network/SrvIntNetR0.cpp
|
---|
1473 | # $(if $(VBOX_WITH_PCI_PASSTHROUGH),Bus/SrvPciRawR0.cpp,)
|
---|
1474 | Network/SrvIntNetR0.cpp_CXXFLAGS := $(if-expr $(KBUILD_TARGET) == "win",,$(VBOX_GCC_Wno-array_bounds))
|
---|
1475 |
|
---|
1476 |
|
---|
1477 | #
|
---|
1478 | # Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
|
---|
1479 | #
|
---|
1480 | ifdef VBOX_WITH_TESTCASES
|
---|
1481 | PROGRAMS += tstIntNetR0
|
---|
1482 | tstIntNetR0_TEMPLATE = VBoxR3TstExe
|
---|
1483 | tstIntNetR0_DEFS = IN_INTNET_R0
|
---|
1484 | tstIntNetR0_SOURCES = \
|
---|
1485 | Network/testcase/tstIntNetR0.cpp
|
---|
1486 | ifneq ($(KBUILD_TARGET),win)
|
---|
1487 | Network/testcase/tstIntNetR0.cpp_CXXFLAGS = $(VBOX_GCC_Wno-array_bounds)
|
---|
1488 | endif
|
---|
1489 | endif
|
---|
1490 |
|
---|
1491 |
|
---|
1492 | #
|
---|
1493 | # Internal Networking - Ring-3 Testcase for the Ring-0 code (a bit hackish).
|
---|
1494 | #
|
---|
1495 | ifdef VBOX_WITH_TESTCASES
|
---|
1496 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "win"
|
---|
1497 | PROGRAMS += tstIntNetHardened-1
|
---|
1498 | tstIntNetHardened-1_TEMPLATE = VBoxR3HardenedTstExe
|
---|
1499 | tstIntNetHardened-1_NAME = tstIntNet-1
|
---|
1500 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
1501 | tstIntNetHardened-1_DEFS = PROGRAM_NAME_STR="tstIntNet-1"
|
---|
1502 | else
|
---|
1503 | tstIntNetHardened-1_DEFS = PROGRAM_NAME_STR=\"tstIntNet-1\"
|
---|
1504 | endif
|
---|
1505 | tstIntNetHardened-1_SOURCES = ../HostDrivers/Support/SUPR3HardenedMainTemplateTestcase.cpp
|
---|
1506 |
|
---|
1507 | DLLS += tstIntNet-1
|
---|
1508 | tstIntNet-1_TEMPLATE = VBoxR3HardenedTstDll
|
---|
1509 | else
|
---|
1510 | PROGRAMS += tstIntNet-1
|
---|
1511 | tstIntNet-1_TEMPLATE = VBoxR3TstExe
|
---|
1512 | endif
|
---|
1513 | tstIntNet-1_SOURCES = \
|
---|
1514 | Network/testcase/tstIntNet-1.cpp \
|
---|
1515 | Network/Pcap.cpp
|
---|
1516 | endif
|
---|
1517 |
|
---|
1518 |
|
---|
1519 | #
|
---|
1520 | # EEPROM device unit test requires cppunit
|
---|
1521 | #
|
---|
1522 | if defined(VBOX_WITH_E1000) && defined(VBOX_WITH_TESTCASES)
|
---|
1523 | PROGRAMS += tstDevEEPROM
|
---|
1524 | tstDevEEPROM_TEMPLATE = VBoxR3TstExe
|
---|
1525 | tstDevEEPROM_SOURCES = \
|
---|
1526 | Network/testcase/tstDevEEPROM.cpp \
|
---|
1527 | Network/DevEEPROM.cpp
|
---|
1528 |
|
---|
1529 | PROGRAMS += tstDevPhy
|
---|
1530 | tstDevPhy_TEMPLATE = VBoxR3TstExe
|
---|
1531 | tstDevPhy_DEFS = PHY_UNIT_TEST
|
---|
1532 | tstDevPhy_SOURCES = \
|
---|
1533 | Network/testcase/tstDevPhy.cpp \
|
---|
1534 | Network/DevE1000Phy.cpp
|
---|
1535 | endif
|
---|
1536 |
|
---|
1537 | #
|
---|
1538 | # Apple SMC Utility.
|
---|
1539 | #
|
---|
1540 | ifdef VBOX_WITH_TESTCASES
|
---|
1541 | PROGRAMS.darwin += VBoxSmcUtil-darwin
|
---|
1542 | VBoxSmcUtil-darwin_TEMPLATE = VBoxR3TstExe
|
---|
1543 | VBoxSmcUtil-darwin_SOURCES = EFI/VBoxSmcUtil-darwin.cpp
|
---|
1544 | VBoxSmcUtil-darwin_LDFLAGS = -framework IOKit
|
---|
1545 | endif
|
---|
1546 |
|
---|
1547 | #
|
---|
1548 | # PDM device testcase framework.
|
---|
1549 | #
|
---|
1550 | ifdef VBOX_WITH_TESTCASES_TSTDEV
|
---|
1551 | PROGRAMS += tstDevice
|
---|
1552 | tstDevice_TEMPLATE = VBoxR3TstExe
|
---|
1553 | tstDevice_DEFS += IN_SUP_R3
|
---|
1554 | tstDevice_SOURCES = \
|
---|
1555 | testcase/tstDevice.cpp \
|
---|
1556 | testcase/tstDeviceR0.cpp \
|
---|
1557 | testcase/tstDeviceCfg.cpp \
|
---|
1558 | testcase/tstDevicePdmDevHlp.cpp \
|
---|
1559 | testcase/tstDevicePdmDevHlpR0.cpp \
|
---|
1560 | testcase/tstDevicePdmThread.cpp \
|
---|
1561 | testcase/tstDeviceSsmFuzz.cpp \
|
---|
1562 | testcase/tstDeviceSsmLoadDbg.cpp \
|
---|
1563 | testcase/tstDeviceIoFuzz.cpp
|
---|
1564 | endif
|
---|
1565 |
|
---|
1566 | endif # !VBOX_ONLY_EXTPACKS && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
1567 |
|
---|
1568 |
|
---|
1569 | if defined(VBOX_WITH_EXTPACK) && defined(VBOX_WITH_EXTPACK_PUEL) && defined(VBOX_WITH_EXTPACK_PUEL_BUILD) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
1570 | if defined(VBOX_WITH_PCI_PASSTHROUGH_IMPL)
|
---|
1571 | DLLS += VBoxPciRawR3
|
---|
1572 | VBoxPciRawR3_TEMPLATE = VBoxR3ExtPackPuel
|
---|
1573 | VBoxPciRawR3_SOURCES = Bus/DevPciRaw.cpp
|
---|
1574 | $(call VBOX_SET_VER_INFO_DLL,VBoxPciRawR3,PUEL Extension Pack - PCI Passthrough Device)
|
---|
1575 |
|
---|
1576 | DLLS += VBoxPciRawDrv
|
---|
1577 | VBoxPciRawDrv_TEMPLATE = VBoxR3ExtPackPuel
|
---|
1578 | VBoxPciRawDrv_SOURCES = Bus/DrvPciRaw.cpp
|
---|
1579 | $(call VBOX_SET_VER_INFO_DLL,VBoxPciRawDrv,PUEL Extension Pack - PCI Passthrough Driver)
|
---|
1580 |
|
---|
1581 | $(if-expr defined(VBOX_WITH_VBOXR0_AS_DLL),DLLS,SYSMODS) += VBoxPciRawR0
|
---|
1582 | VBoxPciRawR0_TEMPLATE = VBoxR0ExtPackPuel
|
---|
1583 | VBoxPciRawR0_SOURCES = Bus/DevPciRaw.cpp
|
---|
1584 | $(call VBOX_SET_VER_INFO_R0,VBoxPciRawR0,PUEL Extension Pack - PCI Passthrough Driver$(COMMA) ring-0)
|
---|
1585 |
|
---|
1586 | Bus/DevPciRaw.cpp_INCS = Bus
|
---|
1587 | endif
|
---|
1588 |
|
---|
1589 | #
|
---|
1590 | # The NVMe Extension Pack Modules.
|
---|
1591 | #
|
---|
1592 | if defined(VBOX_WITH_NVME_IMPL)
|
---|
1593 | DLLS += VBoxNvmeR3
|
---|
1594 | VBoxNvmeR3_TEMPLATE = VBoxR3ExtPackPuel
|
---|
1595 | VBoxNvmeR3_SOURCES = \
|
---|
1596 | Storage/DevNVMe.cpp
|
---|
1597 | $(call VBOX_SET_VER_INFO_DLL,VBoxNvmeR3,PUEL Extension Pack - NVMe Device)
|
---|
1598 |
|
---|
1599 | ifdef VBOX_WITH_R0_MODULES
|
---|
1600 | ifdef VBOX_WITH_VBOXR0_AS_DLL
|
---|
1601 | DLLS += VBoxNvmeR0
|
---|
1602 | else
|
---|
1603 | SYSMODS += VBoxNvmeR0
|
---|
1604 | endif
|
---|
1605 | VBoxNvmeR0_TEMPLATE = VBoxR0ExtPackPuel
|
---|
1606 | VBoxNvmeR0_SOURCES = \
|
---|
1607 | Storage/DevNVMe.cpp
|
---|
1608 | $(call VBOX_SET_VER_INFO_R0,VBoxNvmeR0,PUEL Extension Pack - NVMe Device$(COMMA) ring-0)
|
---|
1609 | ifdef VBOX_WITH_KMOD_WRAPPED_R0_MODS # Wrapper kmod for VBoxEhciR0.r0
|
---|
1610 | INSTALLS.linux += vbox_vboxnvmer0-src
|
---|
1611 | vbox_vboxnvmer0-src_INST = bin/src/vbox_vboxnvmer0/
|
---|
1612 | vbox_vboxnvmer0-src_SYMLINKS = \
|
---|
1613 | SUPWrapperMod-linux.c=>../common/SUPWrapperMod-linux.c \
|
---|
1614 | Makefile-wrapper.gmk=>../common/Makefile-wrapper.gmk
|
---|
1615 | vbox_vboxnvmer0-src_SOURCES = \
|
---|
1616 | $(PATH_ROOT)/src/VBox/HostDrivers/Support/linux/Makefile-vbox_vboxnvmer0.gmk=>Makefile \
|
---|
1617 | $(VBoxNvmeR0_0_OUTDIR)/VBoxNvmeR0.r0=>VBoxNvmeR0.r0 \
|
---|
1618 | $(VBoxNvmeR0_0_OUTDIR)/VBoxNvmeR0.debug=>VBoxNvmeR0.debug
|
---|
1619 | endif
|
---|
1620 | endif
|
---|
1621 |
|
---|
1622 | ifdef VBOX_WITH_RAW_MODE
|
---|
1623 | SYSMODS += VBoxNvmeRC
|
---|
1624 | VBoxNvmeRC_TEMPLATE = VBoxRcExtPackPuel
|
---|
1625 | VBoxNvmeRC_SOURCES = \
|
---|
1626 | Storage/DevNVMe.cpp
|
---|
1627 | $(call VBOX_SET_VER_INFO_RC,VBoxNvmeRC,PUEL Extension Pack - NVMe Device$(COMMA) raw-mode)
|
---|
1628 | endif
|
---|
1629 |
|
---|
1630 | # Hacky but MSI support *must* be enabled
|
---|
1631 | ifdef VBOX_WITH_MSI_DEVICES
|
---|
1632 | VBoxNvmeR3_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
1633 | VBoxNvmeR0_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
1634 | VBoxNvmeRC_DEFS += VBOX_WITH_MSI_DEVICES
|
---|
1635 | endif
|
---|
1636 |
|
---|
1637 | endif
|
---|
1638 |
|
---|
1639 |
|
---|
1640 | #
|
---|
1641 | # The Intel PXE ROM.
|
---|
1642 | #
|
---|
1643 | INSTALLS += VBoxExtPackPuelInsRoms
|
---|
1644 | VBoxExtPackPuelInsRoms_TEMPLATE = VBoxInsExtPackPuel
|
---|
1645 | ifdef PXE_EXPERIMENTAL_BUILD_SETUP
|
---|
1646 | VBoxExtPackPuelInsRoms_SOURCES = $(PATH_OUT)/obj/NetBiosBin/NetBiosBin.rom=>PXE-Intel.rom
|
---|
1647 | else
|
---|
1648 | VBoxExtPackPuelInsRoms_SOURCES = PC/PXE/PXE-Intel.rom=>PXE-Intel.rom
|
---|
1649 | endif
|
---|
1650 | endif # VBOX_WITH_EXTPACK_PUEL && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
1651 |
|
---|
1652 |
|
---|
1653 | if defined(VBOX_WITH_VMSVGA3D) && !defined(VBOX_ONLY_EXTPACKS) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
1654 | #
|
---|
1655 | # Template used for VBoxSVGA3D. (Strips away compiler options.)
|
---|
1656 | #
|
---|
1657 | TEMPLATE_VBoxSVGA3D := VBoxSVGA3D
|
---|
1658 | TEMPLATE_VBoxSVGA3D_EXTENDS := VBoxR3Dll
|
---|
1659 | TEMPLATE_VBoxSVGA3D_CFLAGS = $(filter-out -pedantic -Wstrict-prototypes,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CFLAGS))
|
---|
1660 | if "$(VBOX_VCC_TOOL_STEM)" >= "VCC140"
|
---|
1661 | # -wd4777: glsl_shader.c(1542): warning C4777: 'sprintf' : format string '%u' requires an argument of type 'unsigned int', but variadic argument 2 has type 'DWORD'
|
---|
1662 | TEMPLATE_VBoxSVGA3D_CFLAGS.win = $(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CFLAGS.win) \
|
---|
1663 | -wd4777
|
---|
1664 | endif
|
---|
1665 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
1666 | TEMPLATE_VBoxSVGA3D_CXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CXXFLAGS)) $(VBOX_GCC_Wno-deprecated-declarations)
|
---|
1667 | TEMPLATE_VBoxSVGA3D_OBJCFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_OBJCFLAGS)) $(VBOX_GCC_Wno-deprecated-declarations)
|
---|
1668 | TEMPLATE_VBoxSVGA3D_OBJCXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_OBJCXXFLAGS)) $(VBOX_GCC_Wno-deprecated-declarations)
|
---|
1669 | else
|
---|
1670 | TEMPLATE_VBoxSVGA3D_CXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_CXXFLAGS))
|
---|
1671 | TEMPLATE_VBoxSVGA3D_OBJCFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_OBJCFLAGS))
|
---|
1672 | TEMPLATE_VBoxSVGA3D_OBJCXXFLAGS = $(filter-out -pedantic,$(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_OBJCXXFLAGS))
|
---|
1673 | endif
|
---|
1674 | TEMPLATE_VBoxSVGA3D_LDFLAGS.darwin = $(TEMPLATE_$(TEMPLATE_VBoxSVGA3D_EXTENDS)_LDFLAGS.darwin) \
|
---|
1675 | -framework AppKit -framework OpenGL -framework IOKit
|
---|
1676 |
|
---|
1677 |
|
---|
1678 | #
|
---|
1679 | # The shader library used by the SVGA3D implementation.
|
---|
1680 | #
|
---|
1681 | DLLS += VBoxSVGA3D
|
---|
1682 | VBoxSVGA3D_TEMPLATE = VBoxSVGA3D
|
---|
1683 | VBoxSVGA3D_SDKS = ReorderCompilerIncs
|
---|
1684 | VBoxSVGA3D_DEFS = \
|
---|
1685 | __WINESRC__ \
|
---|
1686 | _REENTRANT \
|
---|
1687 | WINE_NOWINSOCK \
|
---|
1688 | VBOX_WITH_VMSVGA \
|
---|
1689 | VBOX_WITH_VMSVGA3D \
|
---|
1690 | _USE_MATH_DEFINES \
|
---|
1691 | VBOX_USING_WINDDK_W7_OR_LATER \
|
---|
1692 | VBOX_WINE_WITH_SINGLE_SWAPCHAIN_CONTEXT \
|
---|
1693 | IN_vmsvgashader_STATIC \
|
---|
1694 | IN_VMSVGA3D \
|
---|
1695 | VBOX_WINE_WITH_IPRT
|
---|
1696 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
1697 | VBoxSVGA3D_DEFS += \
|
---|
1698 | WINE_UNICODE_API= \
|
---|
1699 | DLLDIR="" \
|
---|
1700 | BINDIR="" \
|
---|
1701 | LIB_TO_BINDIR="" \
|
---|
1702 | LIB_TO_DLLDIR="" \
|
---|
1703 | BIN_TO_DLLDIR="" \
|
---|
1704 | LIB_TO_DATADIR="" \
|
---|
1705 | BIN_TO_DATADIR=""
|
---|
1706 | else
|
---|
1707 | VBoxSVGA3D_DEFS += \
|
---|
1708 | WINE_UNICODE_API="" \
|
---|
1709 | DLLDIR=\"\" \
|
---|
1710 | BINDIR=\"\" \
|
---|
1711 | LIB_TO_BINDIR=\"\" \
|
---|
1712 | LIB_TO_DLLDIR=\"\" \
|
---|
1713 | BIN_TO_DLLDIR=\"\" \
|
---|
1714 | LIB_TO_DATADIR=\"\" \
|
---|
1715 | BIN_TO_DATADIR=\"\"
|
---|
1716 | endif
|
---|
1717 | if "$(KBUILD_TYPE)" != "debug" || defined(VBOX_WINE_NO_DEBUG_MSGS)
|
---|
1718 | VBoxSVGA3D_DEFS += WINE_NO_DEBUG_MSGS
|
---|
1719 | endif
|
---|
1720 | VBoxSVGA3D_DEFS.x86 += __i386__
|
---|
1721 | VBoxSVGA3D_DEFS.amd64 += __x86_64__
|
---|
1722 | VBoxSVGA3D_DEFS.win += \
|
---|
1723 | USE_WIN32_OPENGL \
|
---|
1724 | VBOX_WINE_WITHOUT_LIBWINE
|
---|
1725 | VBoxSVGA3D_DEFS.darwin += VBOX_VMSVGA3D_DUAL_OPENGL_PROFILE
|
---|
1726 | if 0 # Use the OpenGL 3.2 Core profile (VBoxSVGA3D_DEFS.darwin).
|
---|
1727 | VBoxSVGA3D_DEFS.darwin += VBOX_VMSVGA3D_DEFAULT_OGL_PROFILE=3.2 VBOX_VMSVGA3D_OTHER_OGL_PROFILE=2.1
|
---|
1728 | else
|
---|
1729 | VBoxSVGA3D_DEFS.darwin += VBOX_VMSVGA3D_DEFAULT_OGL_PROFILE=2.1 VBOX_VMSVGA3D_OTHER_OGL_PROFILE=3.2
|
---|
1730 | endif
|
---|
1731 |
|
---|
1732 | # WINE relies on a gcc 4.4 feature but we have 4.2 on Darwin
|
---|
1733 | VBoxSVGA3D_DEFS.darwin += \
|
---|
1734 | __builtin_ms_va_list=va_list \
|
---|
1735 | __stdcall= \
|
---|
1736 | ms_abi=
|
---|
1737 | VBoxSVGA3D_INCS = $(VBOX_GRAPHICS_INCS)
|
---|
1738 | VBoxSVGA3D_INCS.win := \
|
---|
1739 | Graphics/shaderlib/libWineStub/include
|
---|
1740 | VBoxSVGA3D_INCS.linux := \
|
---|
1741 | Graphics/shaderlib/wine/include
|
---|
1742 | VBoxSVGA3D_INCS.darwin := \
|
---|
1743 | Graphics/ \
|
---|
1744 | Graphics/shaderlib/wine/include
|
---|
1745 | VBoxSVGA3D_SOURCES := \
|
---|
1746 | Graphics/shaderlib/glsl_shader.c \
|
---|
1747 | Graphics/shaderlib/shader.c \
|
---|
1748 | Graphics/shaderlib/shader_sm1.c \
|
---|
1749 | Graphics/shaderlib/shader_sm4.c \
|
---|
1750 | Graphics/shaderlib/shaderapi.c \
|
---|
1751 | Graphics/shaderlib/utils.c \
|
---|
1752 | Graphics/shaderlib/stateblock.c \
|
---|
1753 | Graphics/shaderlib/directx.c \
|
---|
1754 | Graphics/shaderlib/libWineStub/debug.c
|
---|
1755 | VBoxSVGA3D_LIBS = $(LIB_RUNTIME)
|
---|
1756 | VBoxSVGA3D_LIBS.win += $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/Opengl32.lib
|
---|
1757 | if1of ($(KBUILD_TARGET), solaris linux freebsd)
|
---|
1758 | VBoxSVGA3D_LIBS += GL
|
---|
1759 | endif
|
---|
1760 | VBoxSVGA3D_LDFLAGS.darwin += \
|
---|
1761 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSVGA3D.dylib
|
---|
1762 | $(call VBOX_SET_VER_INFO_DLL,VBoxSVGA3D,VirtualBox VMSVGA 3D)
|
---|
1763 | # -wd4100: unreferenced format parameter
|
---|
1764 | # -wd4204: nonstandard extension used : non-constant initializer
|
---|
1765 | # -wd4245: '=' : conversion from 'int' to 'DWORD', signed/unsigned mismatch
|
---|
1766 | # -wd4305: 'function' : truncation from 'double' to 'GLclampf'
|
---|
1767 | VBoxSVGA3D_CFLAGS.win = -wd4100 -wd4204 -wd4245 -wd4305
|
---|
1768 | ifneq ($(KBUILD_TARGET),win)
|
---|
1769 | VBoxSVGA3D_CFLAGS += -Wno-unused-parameter -Wno-unused-function
|
---|
1770 | endif
|
---|
1771 |
|
---|
1772 | #
|
---|
1773 | # The Objective C code needs to be separate since the shaderlib redefines most
|
---|
1774 | # GL functions as pointers, making it impossible to mix with code calling OpenGL
|
---|
1775 | # functions directly. This module must be compiled for 10.7 or later, thus it
|
---|
1776 | # needs to be separate from VBoxDD.dylib, or at least that's our belief...
|
---|
1777 | #
|
---|
1778 | DLLS.darwin += VBoxSVGA3DObjC
|
---|
1779 | VBoxSVGA3DObjC_TEMPLATE = VBoxSVGA3D
|
---|
1780 | VBoxSVGA3DObjC_DEFS = $(VBoxSVGA3D_DEFS) IN_VMSVGA3DCOCOA
|
---|
1781 | VBoxSVGA3DObjC_DEFS.x86 = __i386__
|
---|
1782 | VBoxSVGA3DObjC_DEFS.amd64 = __x86_64__
|
---|
1783 | VBoxSVGA3DObjC_DEFS.darwin = $(VBoxSVGA3D_DEFS.darwin)
|
---|
1784 | VBoxSVGA3DObjC_INCS = $(VBoxSVGA3D_INCS)
|
---|
1785 | VBoxSVGA3DObjC_INCS.darwin = $(VBoxSVGA3D_INCS.darwin)
|
---|
1786 | VBoxSVGA3DObjC_LIBS = $(LIB_RUNTIME)
|
---|
1787 | VBoxSVGA3DObjC_LDFLAGS.darwin = \
|
---|
1788 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/VBoxSVGA3DObjC.dylib \
|
---|
1789 | -framework OpenGL
|
---|
1790 | VBoxSVGA3DObjC_SOURCES.darwin += \
|
---|
1791 | Graphics/DevVGA-SVGA3d-cocoa.m
|
---|
1792 |
|
---|
1793 |
|
---|
1794 | endif # defined(VBOX_WITH_VMSVGA3D) && !defined(VBOX_ONLY_EXTPACKS) && "$(intersects $(KBUILD_TARGET_ARCH),$(VBOX_SUPPORTED_HOST_ARCHS))" != ""
|
---|
1795 |
|
---|
1796 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|