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