VirtualBox

source: vbox/trunk/src/VBox/Main/Makefile.kmk@ 92910

Last change on this file since 92910 was 92910, checked in by vboxsync, 3 years ago

/Config.kmk,*.kmk: Preparing to switch to Windows 10 SDK. bugref:10116

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 66.7 KB
Line 
1# $Id: Makefile.kmk 92910 2021-12-14 22:18:50Z vboxsync $
2## @file
3# Makefile for the VBox Main module.
4#
5
6#
7# Copyright (C) 2004-2020 Oracle Corporation
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18SUB_DEPTH = ../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21#
22# Make sure our Config.kmk is included.
23#
24ifndef VBOX_MAIN_CONFIG_KMK_INCLUDED
25 include $(PATH_SUB_CURRENT)/Config.kmk
26endif
27
28#
29# Include sub-makefile(s).
30#
31ifndef VBOX_ONLY_EXTPACKS
32 ifdef VBOX_WITH_WEBSERVICES
33 include $(PATH_SUB_CURRENT)/webservice/Makefile.kmk
34 endif
35 include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
36 include $(PATH_SUB_CURRENT)/cbinding/Makefile.kmk
37 include $(PATH_SUB_CURRENT)/UnattendedTemplates/Makefile.kmk
38 ifndef VBOX_ONLY_SDK
39 include $(PATH_SUB_CURRENT)/src-helper-apps/OpenGLTest/Makefile.kmk
40 endif
41endif
42
43
44#
45# Targets and globals (bit of a mess...)
46#
47VBOX_PATH_MAIN_SRC := $(PATH_SUB_CURRENT)
48
49ifdef VBOX_ONLY_SDK
50 # HACK ALERT! VBoxCOM is skipped, but its output dir is referenced a lot. So, define it.
51 VBoxCOM_0_OUTDIR := $(call TARGET_PATH,VBoxCOM)
52 BLDDIRS += $(VBoxCOM_0_OUTDIR) $(PATH_STAGE_BIN)/components
53 ifndef TOOL_$(VBOX_VCC_TOOL)
54 include $(KBUILD_PATH)/tools/$(VBOX_VCC_TOOL).kmk # For the idl /cpp statement.
55 endif
56 ifndef SDK_$(VBOX_WINPSDK)
57 include $(KBUILD_PATH)/sdks/$(VBOX_WINPSDK).kmk
58 endif
59endif # !VBOX_ONLY_SDK
60
61
62## VBOX_MAIN_DEFS is used by VBoxC, VBoxClient-x86, VBoxSVC and VBoxSVCM, making
63# sure they all have the same set of features enabled.
64VBOX_MAIN_DEFS :=
65ifneq ($(KBUILD_TARGET),win)
66 ifndef VBOX_WITH_XPCOM
67$(error "VBox: VBOX_WITH_XPCOM isn't defined")
68 endif
69VBOX_MAIN_DEFS += VBOX_WITH_GENERIC_SESSION_WATCHER
70endif
71ifdef VBOX_WITH_AUDIO_ALSA
72VBOX_MAIN_DEFS += VBOX_WITH_AUDIO_ALSA
73endif
74ifdef VBOX_WITH_AUDIO_DEBUG
75VBOX_MAIN_DEFS += VBOX_WITH_AUDIO_DEBUG
76endif
77ifdef VBOX_WITH_AUDIO_OSS
78VBOX_MAIN_DEFS += VBOX_WITH_AUDIO_OSS
79endif
80ifdef VBOX_WITH_AUDIO_PULSE
81VBOX_MAIN_DEFS += VBOX_WITH_AUDIO_PULSE
82endif
83ifdef VBOX_WITH_AUDIO_VALIDATIONKIT
84VBOX_MAIN_DEFS += VBOX_WITH_AUDIO_VALIDATIONKIT
85endif
86ifdef VBOX_WITH_AUDIO_VRDE
87VBOX_MAIN_DEFS += VBOX_WITH_AUDIO_VRDE
88endif
89ifdef VBOX_WITH_COPYTOGUEST
90VBOX_MAIN_DEFS += VBOX_WITH_COPYTOGUEST
91endif
92ifdef VBOX_WITH_E1000
93VBOX_MAIN_DEFS += VBOX_WITH_E1000
94endif
95ifdef VBOX_WITH_EXTPACK
96VBOX_MAIN_DEFS += VBOX_WITH_EXTPACK
97endif
98ifdef VBOX_WITH_GUEST_CONTROL
99VBOX_MAIN_DEFS += VBOX_WITH_GUEST_CONTROL
100endif
101ifdef VBOX_WITH_GUEST_PROPS
102VBOX_MAIN_DEFS += VBOX_WITH_GUEST_PROPS
103 ifdef VBOX_WITH_GUEST_PROPS_RDONLY_GUEST
104VBOX_MAIN_DEFS += VBOX_WITH_GUEST_PROPS_RDONLY_GUEST
105 endif
106endif
107ifdef VBOX_WITH_HGCM
108VBOX_MAIN_DEFS += VBOX_WITH_HGCM
109endif
110ifdef VBOX_WITH_HOSTNETIF_API
111VBOX_MAIN_DEFS += VBOX_WITH_HOSTNETIF_API
112endif
113ifdef VBOX_WITH_DHCPD
114VBOX_MAIN_DEFS += VBOX_WITH_DHCPD
115endif
116ifdef VBOX_WITH_LIVE_MIGRATION
117VBOX_MAIN_DEFS += VBOX_WITH_LIVE_MIGRATION
118endif
119ifdef VBOX_WITH_MIDL_PROXY_STUB
120VBOX_MAIN_DEFS += VBOX_WITH_MIDL_PROXY_STUB
121endif
122ifdef VBOX_WITH_NETFLT
123VBOX_MAIN_DEFS += VBOX_WITH_NETFLT
124endif
125ifdef VBOX_WITH_VMNET
126VBOX_MAIN_DEFS += VBOX_WITH_VMNET
127endif
128ifdef VBOX_WITH_CLOUD_NET
129VBOX_MAIN_DEFS += VBOX_WITH_CLOUD_NET
130endif
131ifdef VBOX_WITH_PCI_PASSTHROUGH
132VBOX_MAIN_DEFS += VBOX_WITH_PCI_PASSTHROUGH
133endif
134ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
135VBOX_MAIN_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
136endif
137ifdef VBOX_WITH_SDS
138VBOX_MAIN_DEFS += VBOX_WITH_SDS
139endif
140ifdef VBOX_WITH_SHARED_CLIPBOARD
141VBOX_MAIN_DEFS += VBOX_WITH_SHARED_CLIPBOARD
142 ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
143 VBOX_MAIN_DEFS += VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
144 endif
145endif
146ifdef VBOX_WITH_USB_CARDREADER
147VBOX_MAIN_DEFS += VBOX_WITH_USB_CARDREADER
148endif
149ifdef VBOX_WITH_USB_CARDREADER_TEST
150VBOX_MAIN_DEFS += VBOX_WITH_USB_CARDREADER_TEST
151endif
152ifdef VBOX_WITH_VIRTIO
153VBOX_MAIN_DEFS += VBOX_WITH_VIRTIO
154endif
155ifdef VBOX_WITH_VIRTIO_1_0
156VBOX_MAIN_DEFS += VBOX_WITH_VIRTIO_1_0
157endif
158ifdef VBOX_WITH_VIRTIO_NET_1_0
159VBOX_MAIN_DEFS += VBOX_WITH_VIRTIO_NET_1_0
160endif
161ifdef VBOX_WITH_VMSVGA
162VBOX_MAIN_DEFS += VBOX_WITH_VMSVGA
163endif
164ifdef VBOX_WITH_VMSVGA3D
165VBOX_MAIN_DEFS += VBOX_WITH_VMSVGA3D
166endif
167ifdef VBOX_WITH_VUSB
168VBOX_MAIN_DEFS += VBOX_WITH_VUSB
169endif
170ifdef VBOX_WITH_EHCI
171 ifdef VBOX_WITH_USB
172 VBOX_MAIN_DEFS += VBOX_WITH_EHCI
173 endif
174endif
175ifdef VBOX_WITH_EFI_IN_DD2
176 VBOX_MAIN_DEFS += VBOX_WITH_EFI_IN_DD2
177endif
178ifdef VBOX_WITH_MAIN_NLS
179 VBOX_MAIN_DEFS += VBOX_WITH_MAIN_NLS
180endif
181# Unconditionally enable the new semaphore key generation code
182VBOX_MAIN_DEFS += VBOX_WITH_NEW_SYS_V_KEYGEN
183
184
185VBOX_IDL_FILE.MSCOM = $(VBOX_PATH_SDK)/bindings/mscom/idl/VirtualBox.idl
186VBOX_IDL_FILE.XPCOM = $(VBOX_PATH_SDK)/bindings/xpcom/idl/VirtualBox_XPCOM.idl
187
188VBOX_IDL_TYPELIB.XPCOM = $(PATH_STAGE_BIN)/components/VirtualBox_XPCOM.xpt
189VBOX_IDL_HEADER.XPCOM = $(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_XPCOM.h
190
191# The MS COM specific stuff.
192if defined(VBOX_ONLY_SDK) || "$(KBUILD_TARGET)" == "win"
193 OTHERS += \
194 $(VBOX_IDL_FILE.MSCOM)
195 OTHER_CLEAN += \
196 $(VBOX_IDL_FILE.MSCOM)
197
198 INSTALLS += VBox-mscom-bindings-include VBox-mscom-bindings-lib
199 VBox-mscom-bindings-include_INST = $(INST_SDK)bindings/mscom/include/
200 VBox-mscom-bindings-include_MODE = a+r,u+w
201 VBox-mscom-bindings-include_SOURCES = $(VBoxCOM_0_OUTDIR)/VirtualBox.h
202 VBox-mscom-bindings-include_CLEAN = $(VBoxCOM_0_OUTDIR)/VirtualBox.h
203 VBox-mscom-bindings-lib_INST = $(INST_SDK)bindings/mscom/lib/
204 VBox-mscom-bindings-lib_MODE = a+r,u+w
205 VBox-mscom-bindings-lib_SOURCES = $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c \
206 $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb
207 VBox-mscom-bindings-lib_CLEAN = $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c \
208 $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb
209
210 BLDDIRS += $(VBOX_PATH_SDK)/bindings/mscom/idl
211endif
212
213# The XPCOM specific stuff.
214# if defined(VBOX_ONLY_SDK) || "$(KBUILD_TARGET)" != "win" -- does not build on Windows
215if "$(KBUILD_TARGET)" != "win"
216 OTHERS += $(VBOX_IDL_FILE.XPCOM) $(VBOX_IDL_TYPELIB.XPCOM) $(VBOX_IDL_HEADER.XPCOM)
217 OTHER_CLEAN += \
218 $(VBOX_IDL_FILE.XPCOM) \
219 $(VBOX_IDL_HEADER.XPCOM) \
220 $(VBOX_IDL_TYPELIB.XPCOM)
221
222 INSTALLS += VBox-xpcom-bindings-lib
223 VBox-xpcom-bindings-lib_INST = $(INST_SDK)bindings/xpcom/lib/
224 VBox-xpcom-bindings-lib_MODE = a+r,u+w
225 VBox-xpcom-bindings-lib_SOURCES = $(VBoxCOM_0_OUTDIR)/VirtualBox_XPCOM_i.c=>VirtualBox_i.c
226 VBox-xpcom-bindings-lib_CLEAN = $(VBoxCOM_0_OUTDIR)/VirtualBox_XPCOM_i.c
227
228 VBOX_MAIN_PREREQS += $(VBOX_IDL_TYPELIB.XPCOM) $(VBOX_IDL_HEADER.XPCOM)
229 BLDDIRS += \
230 $(VBOX_PATH_SDK)/bindings/xpcom/idl \
231 $(VBOX_PATH_SDK)/bindings/xpcom/include
232 # disable VBoxSDS for XPCOM
233 override VBOX_WITH_SDS =
234endif # xpcom
235
236
237#
238# Strip documentation from source XIDL so that we don't get a full
239# recompile every time a comma in the documentation is changed.
240#
241$(call KB_FN_AUTO_CMD_DEPS,$(VBOX_XIDL_FILE).ts)
242$(VBOX_XIDL_FILE).ts +| $(VBOX_XIDL_FILE): \
243 $(VBOX_XIDL_FILE_SRC) \
244 $(VBOX_PATH_MAIN_SRC)/idl/docstrip.xsl \
245 | $$(dir $$@)
246 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
247 $(QUIET)$(VBOX_XSLTPROC) -o $(VBOX_XIDL_FILE).ts-tmp $(VBOX_PATH_MAIN_SRC)/idl/docstrip.xsl $(VBOX_XIDL_FILE_SRC)
248 $(QUIET)$(SED) -e 's/ *$(DOLLAR)//g' -e '/^$(DOLLAR)/d' --output $(VBOX_XIDL_FILE).ts $(VBOX_XIDL_FILE).ts-tmp
249 $(QUIET)$(RM) -- $(VBOX_XIDL_FILE).ts-tmp
250 $(QUIET)$(CP) --changed -fv -- $(VBOX_XIDL_FILE).ts $(VBOX_XIDL_FILE)
251
252OTHER_CLEAN += $(VBOX_XIDL_FILE) $(VBOX_XIDL_FILE).ts
253
254
255#
256# The Main API documentation
257#
258VBOX_MAIN_DOC_DIR = $(VBOX_PATH_SDK)/docs
259BLDDIRS += $(VBOX_MAIN_DOC_DIR)
260
261$(PATH_TARGET)/docs.Main: \
262 $(VBOX_PATH_MAIN_SRC)/Doxyfile.Main \
263 $(VBOX_PATH_MAIN_SRC)/idl/doxygen.xsl \
264 $(VBOX_XIDL_FILE_SRC) \
265 | $(PATH_TARGET)/ \
266 $(VBOX_MAIN_DOC_DIR)/
267 $(call MSG_TOOL,xsltproc,doxygen input,$<,$@)
268 $(QUIET)$(RM) -f $(wildcard $(VBOX_MAIN_DOC_DIR)/html/*) $(PATH_TARGET)/docs.Main
269 $(QUIET)$(VBOX_XSLTPROC) --path ".:$(PATH_ROOT)/doc/manual" -o $(PATH_TARGET)/VirtualBox.idl $(VBOX_PATH_MAIN_SRC)/idl/doxygen.xsl $(VBOX_XIDL_FILE_SRC)
270 $(QUIET)$(REDIRECT) -E 'DOCDIR=$(VBOX_MAIN_DOC_DIR)' -E 'PATH_TARGET=$(PATH_TARGET)' \
271 -- doxygen $(VBOX_PATH_MAIN_SRC)/Doxyfile.Main
272 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) ">>>>>>>>>>>>>>>>>>>> Main.err: >>>>>>>>>>>>>>>>>>>>>>>>"
273 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(CAT) "$(PATH_TARGET)/Main.err"
274 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "<<<<<<<<<<<<<<<<<<<< Main.err <<<<<<<<<<<<<<<<<<<<<<<<<"
275 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> **************************************************"
276 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> Please fix above doxygen errors/warnings listed in"
277 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> $(PATH_TARGET)/Main.err"
278 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> **************************************************"
279 $(APPEND) $(PATH_TARGET)/docs.Main
280# aliases
281docs.main docs.Main: $(PATH_TARGET)/docs.Main
282if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
283docs: $(PATH_TARGET)/docs.Main
284else
285docs:
286endif
287
288
289ifndef VBOX_ONLY_SDK
290 #
291 # Generate library with API class wrappers from the XIDL file.
292 #
293 LIBRARIES += VBoxAPIWrap
294 VBoxAPIWrap_TEMPLATE = VBoxMainLib
295 ifeq ($(KBUILD_TARGET),win)
296 VBoxAPIWrap_USES = vccprecomp
297 VBoxAPIWrap_PCH_HDR := $(PATH_SUB_CURRENT)/src-all/win/VBoxAPIWrap-precomp_vcc.h
298 else if $(KBUILD_KMK_REVISION) >= 3256 && "$(KBUILD_TARGET)" != "darwin" && !defined(VBOX_WITHOUT_PRECOMPILED_HEADERS)
299 if $(VBOX_GCC_VERSION_CXX) >= 50000 # GCC 4.x runs into trouble compiling the header.
300VBoxAPIWrap_USES = gccprecomp
301VBoxAPIWrap_PCH_HDR := $(PATH_SUB_CURRENT)/src-all/xpcom/VBoxAPIWrap-precomp_gcc.h
302 endif
303 endif
304 VBoxAPIWrap_SOURCES = \
305 $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d \
306 $(if-expr defined(VBOX_ONLY_EXTPACKS) \
307 , $(addprefix $(VBoxAPIWrap_0_OUTDIR)/,$(filter \
308 Cloud%\
309 DataStreamWrap.cpp\
310 %FormValueWrap.cpp\
311 %FormWrap.cpp\
312 StringArrayWrap.cpp\
313 , $(notdir $(VBOX_MAIN_APIWRAPPER_GEN_SRCS)))) \
314 , $(VBOX_MAIN_APIWRAPPER_GEN_SRCS))
315 VBoxAPIWrap_INTERMEDIATES = $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
316 VBoxAPIWrap_DEFS.win.x86 += _WIN32_WINNT=0x0500
317 VBoxAPIWrap_DEFS.win.amd64 += _WIN32_WINNT=0x0510
318 VBoxAPIWrap_INCS += \
319 include
320 if ("$(KBUILD_TARGET)" == "solaris" && $(VBOX_GCC_VERSION_CXX) >= 70000)
321 # Avoid too long symbol names with Solaris 11.4 "dtrace: failed to link script .../VBoxAPI.d: failed to allocate space for probe"
322 VBoxAPIWrap_CXXFLAGS.solaris += -freorder-blocks-algorithm=simple -fno-reorder-blocks-and-partition -fno-reorder-functions
323 endif
324 VBoxAPIWrap_CLEAN = \
325 $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.cpp) \
326 $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.h) \
327 $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d.ts \
328 $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d \
329 $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-headers \
330 $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-even \
331 $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-odd
332
333 # Two VBox variables used here and/or in the rules generating wrappers.
334 VBoxAPIWrap_VBOX_XSLT = \
335 $(VBOX_PATH_MAIN_SRC)/idl/apiwrap-server.xsl
336
337
338 # This include file (generated at the bottom of this file), defines
339 # VBOX_MAIN_APIWRAPPER_GEN_SRCS and VBOX_MAIN_APIWRAPPER_GEN_HDRS.
340 VBoxAPIWrap_VBOX_KMK_FILE = $(PATH_OUT)/vboxapiwrap.kmk
341 include $(VBoxAPIWrap_VBOX_KMK_FILE)
342 OTHER_CLEAN += $(VBoxAPIWrap_VBOX_KMK_FILE) $(VBoxAPIWrap_VBOX_KMK_FILE).ts
343
344 ifdef VBOX_WITH_32_ON_64_MAIN_API
345 LIBRARIES += VBoxAPIWrap-x86
346 VBoxAPIWrap-x86_TEMPLATE = VBoxMainLib-x86
347 VBoxAPIWrap-x86_EXTENDS = VBoxAPIWrap
348 VBoxAPIWrap-x86_DTRACE_HDR_FLAGS = -32 # ugly, should be fixed in the tool in Config.kmk
349 ifeq ($(KBUILD_TARGET),win) ## @todo fix inheritance (fixed in r3253)
350 VBoxAPIWrap-x86_USES = vccprecomp
351 VBoxAPIWrap-x86_PCH_HDR := $(PATH_SUB_CURRENT)/src-all/win/VBoxAPIWrap-precomp_vcc.h
352 endif
353 endif
354
355endif # !VBOX_ONLY_SDK
356
357#
358# Some SDK bit.
359#
360INSTALLS += VBox-main-xidl
361VBox-main-xidl_INST = $(INST_SDK)bindings/
362VBox-main-xidl_MODE = a+r,u+w
363VBox-main-xidl_SOURCES = $(VBOX_XIDL_FILE_SRC)
364
365if defined(VBOX_WITH_PYTHON) && !defined(VBOX_ONLY_EXTPACKS)
366 INSTALLS += VBox-python-glue
367 VBox-python-glue_INST = $(INST_SDK)installer/vboxapi/
368 VBox-python-glue_MODE = a+r,u+w
369 VBox-python-glue_SOURCES = \
370 glue/vboxapi.py=>__init__.py \
371 $(VBox-python-glue_0_OUTDIR)/VirtualBox_constants.py
372 VBox-python-glue_CLEAN = \
373 $(VBox-python-glue_0_OUTDIR)/VirtualBox_constants.py \
374 $(VBox-python-glue_0_OUTDIR)/VirtualBox_constants_err_h_1.txt
375 $(call KB_FN_DO_PASS0_ON_TARGET,VBox-python-glue)
376 $(call KB_FN_AUTO_CMD_DEPS,$(VBox-python-glue_0_OUTDIR)/VirtualBox_constants.py)
377 $(VBox-python-glue_0_OUTDIR)/VirtualBox_constants.py \
378 + $(VBox-python-glue_0_OUTDIR)/VirtualBox_constants_err_h_1.txt: \
379 $(VBOX_PATH_MAIN_SRC)/glue/constants-python.xsl \
380 $(VBOX_PATH_MAIN_SRC)/glue/vbox-err-consts.sed \
381 $(PATH_ROOT)/include/iprt/err.h \
382 $(PATH_ROOT)/include/VBox/err.h \
383 $(VBOX_XIDL_FILE) \
384 | $$(dir $$@)
385 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
386 $(call MSG_TOOL,xsltproc,Python constants,$<,$@)
387 $(SED) -f $(VBOX_PATH_MAIN_SRC)/glue/vbox-err-consts.sed \
388 --output $(VBox-python-glue_0_OUTDIR)/VirtualBox_constants_err_h_1.txt \
389 $(PATH_ROOT)/include/iprt/err.h \
390 $(PATH_ROOT)/include/VBox/err.h
391 $(QUIET)$(VBOX_XSLTPROC) -o $@ \
392 --stringparam "g_sErrHFile" "$(VBox-python-glue_0_OUTDIR)/VirtualBox_constants_err_h_1.txt" \
393 $(VBOX_PATH_MAIN_SRC)/glue/constants-python.xsl $(VBOX_XIDL_FILE)
394endif # VBOX_WITH_PYTHON && !VBOX_ONLY_EXTPACKS
395
396if !defined(VBOX_ONLY_SDK) && !defined(VBOX_ONLY_EXTPACKS) # Note this goes on for *very* long
397
398#
399# Generate SchemaDefs.h and SchemaDefs.cpp from XML Schema
400# These two files are used by both VBoxC and VBoxSVC.
401#
402BLDDIRS += $(PATH_TARGET)/Main
403
404testschemadefs: $(VBOX_XML_SCHEMADEFS_H) $(VBOX_XML_SCHEMADEFS_CPP)
405
406
407#
408# Trust anchors and certificates -> .cpp
409#
410VBOX_SVC_CERTS_FILE = $(VBoxSVC_0_OUTDIR)/TrustAnchorsAndCerts.cpp
411VBOX_SVC_CERTS := \
412 UefiMicrosoftKek=MicCorKEKCA2011_2011-06-24.crt \
413 UefiMicrosoftCa=MicCorUEFCA2011_2011-06-27.crt \
414 UefiMicrosoftProPca=MicWinProPCA2011_2011-10-19.crt \
415 UefiOracleDefPk=OrclUefiDefPk2021_2021-09-29.crt
416
417VBOX_SVC_CERT_NAMES := $(foreach cert,$(VBOX_SVC_CERTS),$(firstword $(subst =,$(SPACE) ,$(cert))))
418VBOX_SVC_PATH_CERTIFICATES := $(PATH_SUB_CURRENT)/Certificates
419
420$$(VBOX_SVC_CERTS_FILE): $(MAKEFILE_CURRENT) \
421 $(foreach cert,$(VBOX_SVC_CERTS),$(VBOX_SVC_PATH_CERTIFICATES)/$(lastword $(subst =,$(SPACE) ,$(cert)))) \
422 $(VBOX_BIN2C) \
423 | $$(dir $$@)
424 $(QUIET)$(RM) -f -- $@
425 $(QUIET)$(APPEND) -n "$@" \
426 '' \
427 '#include "TrustAnchorsAndCerts.h"' \
428 ''
429 $(foreach cert,$(VBOX_SVC_CERTS), $(NLTAB)$(VBOX_BIN2C) -ascii --append \
430 "$(firstword $(subst =,$(SP) ,$(cert)))" \
431 "$(VBOX_SVC_PATH_CERTIFICATES)/$(lastword $(subst =,$(SP) ,$(cert)))" \
432 "$@")
433
434OTHER_CLEAN += $(VBOX_SVC_CERTS_FILE)
435
436tst-main-certificates: $(VBOX_SVC_CERTS_FILE)
437
438
439#
440# VBoxSDS executable
441#
442if defined(VBOX_WITH_SDS) && "$(KBUILD_TARGET)" == "win"
443PROGRAMS.win += VBoxSDS
444VBoxSDS_TEMPLATE = VBOXMAINEXE
445VBoxSDS_DEFS += VBOX_COM_OUTOFPROC_MODULE _WIN32_WINNT=0x0600
446 ifdef VBOX_WITH_VBOXSDL
447VBoxSDS_DEFS += VBOX_WITH_VBOXSDL
448 endif
449 ifdef VBOX_WITH_HEADLESS
450VBoxSDS_DEFS += VBOX_WITH_HEADLESS
451 endif
452 ifdef VBOX_WITH_QTGUI
453VBoxSDS_DEFS += VBOX_WITH_QTGUI
454 endif
455VBoxSDS_INCS = \
456 include \
457 $(VBoxSDS_0_OUTDIR) \
458 $(VBoxCOM_0_OUTDIR)
459VBoxSDS_INTERMEDIATES = \
460 $(VBOX_MAIN_PREREQS)
461VBoxSDS_SOURCES = \
462 src-global/win/VBoxSDS.cpp \
463 src-global/win/VirtualBoxSDSImpl.cpp \
464 src-global/win/VBoxSDS.rc \
465 src-all/MachineLaunchVMCommonWorker.cpp
466$(call KB_FN_DO_PASS0_ON_TARGET,VBoxSDS) # Sets VBoxSDS_0_OUTDIR
467
468src-global/win/VBoxSDS.rc_INCS = $(VBoxSDS_0_OUTDIR)
469src-global/win/VBoxSDS.rc_DEPS = $(VBoxSDS_0_OUTDIR)/VBoxSDS-icon.rc #$(VBoxSDS_0_OUTDIR)/VBoxSDS.rgs
470VBoxSDS_CLEAN = $(VBoxSDS_0_OUTDIR)/VBoxSDS-icon.rc #$(VBoxSDS_0_OUTDIR)/VBoxSDS.rgs
471
472$(call KB_FN_AUTO_CMD_DEPS,$(VBoxSDS_0_OUTDIR)/VBoxSDS-icon.rc)
473$(VBoxSDS_0_OUTDIR)/VBoxSDS-icon.rc: $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$@)
474 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
475 $(APPEND) -t $@ '1 ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
476
477# $(call KB_FN_AUTO_CMD_DEPS,$(VBoxSDS_0_OUTDIR)/VBoxSDS.rgs)
478# $(VBoxSDS_0_OUTDIR)/VBoxSDS.rgs: $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
479# $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
480# $(VBOX_XSLTPROC) \
481# --stringparam Application "VirtualBox System" \
482# --stringparam Module VBoxSDS \
483# -o $@ \
484# $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl \
485# $(VBOX_XIDL_FILE)
486#
487endif #if defined(VBOX_WITH_SDS) && "$(KBUILD_TARGET)" == "win"
488
489#
490# VBoxSVC executable
491#
492PROGRAMS += VBoxSVC
493VBoxSVC_TEMPLATE = VBOXMAINEXE
494if defined(VBOX_WITH_PRECOMPILED_HEADERS) && "$(KBUILD_TARGET)" == "win"
495 VBoxSVC_USES += vccprecomp
496 VBoxSVC_PCH_HDR := $(PATH_SUB_CURRENT)/src-server/win/precomp_vcc.h
497else if $(KBUILD_KMK_REVISION) >= 3256 && "$(KBUILD_TARGET)" != "darwin" && !defined(VBOX_WITHOUT_PRECOMPILED_HEADERS)
498 if $(VBOX_GCC_VERSION_CXX) >= 50000 # GCC 4.x runs into trouble compiling the header.
499VBoxSVC_USES += gccprecomp
500VBoxSVC_PCH_HDR := $(PATH_SUB_CURRENT)/src-server/xpcom/precomp_gcc.h
501 endif
502endif
503VBoxSVC_DEFS = \
504 IN_VBOXSVC \
505 VBOX_MAIN_SETTINGS_ADDONS \
506 IN_VMM_STATIC \
507 $(VBOX_MAIN_DEFS) \
508 $(if $(VBOX_WITH_VBOXSDL),VBOX_WITH_VBOXSDL,) \
509 $(if $(VBOX_WITH_HEADLESS),VBOX_WITH_HEADLESS,) \
510 $(if $(VBOX_WITH_QTGUI),VBOX_WITH_QTGUI,) \
511 $(if $(VBOX_WITH_AHCI),VBOX_WITH_AHCI,) \
512 $(if $(VBOX_WITH_LSILOGIC),VBOX_WITH_LSILOGIC,) \
513 $(if $(VBOX_WITH_LINUX_COMPILER_H),VBOX_WITH_LINUX_COMPILER_H,) \
514 $(if $(VBOX_WITH_RESOURCE_USAGE_API),VBOX_WITH_RESOURCE_USAGE_API,) \
515 $(if $(VBOX_WITH_UNATTENDED),VBOX_WITH_UNATTENDED,) \
516 $(if $(VBOX_WITH_DBUS),VBOX_WITH_DBUS,) \
517 $(if $(VBOX_WITH_DBUS),$(if $(VBOX_USB_WITH_DBUS),VBOX_USB_WITH_DBUS,),) \
518 $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,) \
519 $(if $(VBOX_USB_WITH_INOTIFY),VBOX_USB_WITH_INOTIFY,) \
520 $(if $(VBOX_WITH_NAT_SERVICE),VBOX_WITH_NAT_SERVICE,) \
521 $(if $(VBOX_WITH_LIBCURL),VBOX_WITH_HOST_UPDATE_CHECK,) \
522 $(if $(VBOX_WITH_IOMMU_AMD),VBOX_WITH_IOMMU_AMD,) \
523 $(if $(VBOX_WITH_IOMMU_INTEL),VBOX_WITH_IOMMU_INTEL,) \
524 $(if $(VBOX_WITH_TPM),VBOX_WITH_TPM,) \
525 $(if-expr defined(VBOX_WITH_SDS),VBOX_WITH_SDS,)
526ifdef VBOX_WITH_USB
527 VBoxSVC_DEFS += \
528 VBOX_WITH_USB \
529 $(if $(VBOX_WITH_EHCI),VBOX_WITH_EHCI,) \
530 $(if $(VBOX_WITH_NEW_USB_CODE_ON_DARWIN),VBOX_WITH_NEW_USB_CODE_ON_DARWIN,)
531endif
532VBoxSVC_DEFS.win += VBOX_COM_OUTOFPROC_MODULE _WIN32_WINNT=0x0600
533# Try to load and use libhal at runtime for probing removable media
534# VBoxSVC_DEFS.linux += VBOX_USE_LIBHAL
535VBoxSVC_DEFS.solaris += VBOX_USE_LIBHAL
536
537if $(KBUILD_TARGET) != "win" && $(VBOX_GCC_VERSION_CXX) >= 40900 # gcc 4.9.x (4.8.x is causing endless RT_ELEMENT trouble)
538 VBoxSVC_CXXFLAGS = -Wunused -Wconversion
539endif
540
541VBoxSVC_INCS = \
542 include \
543 $(VBoxSVC_0_OUTDIR) \
544 $(dir $(VBOX_XML_SCHEMADEFS_H)) \
545 $(VBOX_MAIN_APIWRAPPER_INCS) \
546 . \
547 $(VBOX_GRAPHICS_INCS)
548VBoxSVC_INCS.win = \
549 $(VBoxCOM_0_OUTDIR)
550ifdef VBOX_WITH_USB
551 VBoxSVC_INCS.os2 = \
552 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
553endif
554
555VBoxSVC_LIBS += \
556 $(PATH_STAGE_LIB)/VBoxAPIWrap$(VBOX_SUFF_LIB) \
557 $(PATH_STAGE_LIB)/SSMStandalone$(VBOX_SUFF_LIB) \
558 $(LIB_DDU)
559
560VBoxSVC_SDKS = VBOX_LIBPNG VBOX_ZLIB
561VBoxSVC_LIBS.solaris = \
562 adm \
563 nsl \
564 devinfo \
565 socket \
566 $(LIB_VMM)
567
568VBoxSVC_LIBS.win += \
569 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/dnsapi.lib
570
571VBoxSVC_INTERMEDIATES = \
572 $(VBOX_MAIN_PREREQS) \
573 $(VBOX_XML_SCHEMADEFS_H) \
574 $(VBOX_AUTOGEN_EVENT_H) \
575 $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
576
577VBoxSVC_SOURCES = \
578 $(VBOX_SVC_CERTS_FILE) \
579 $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d \
580 src-all/AuthLibrary.cpp \
581 src-all/DisplayPNGUtil.cpp \
582 src-all/DisplayResampleImage.cpp \
583 src-all/DisplayUtils.cpp \
584 src-all/EventImpl.cpp \
585 src-all/Global.cpp \
586 src-all/GlobalStatusConversion.cpp \
587 src-all/HashedPw.cpp \
588 src-all/Logging.cpp \
589 src-all/NvramStoreImpl.cpp \
590 src-all/PCIDeviceAttachmentImpl.cpp \
591 src-all/ProgressImpl.cpp \
592 src-all/SecretKeyStore.cpp \
593 src-all/SharedFolderImpl.cpp \
594 src-all/AutoCaller.cpp \
595 src-all/ThreadTask.cpp \
596 src-all/VirtualBoxBase.cpp \
597 src-all/VirtualBoxErrorInfoImpl.cpp \
598 $(if $(VBOX_WITH_EXTPACK),src-all/ExtPackManagerImpl.cpp src-all/ExtPackUtil.cpp,) \
599 src-server/CertificateImpl.cpp \
600 src-server/ApplianceImpl.cpp \
601 src-server/ApplianceImplExport.cpp \
602 src-server/ApplianceImplImport.cpp \
603 src-server/AudioAdapterImpl.cpp \
604 src-server/BandwidthControlImpl.cpp \
605 src-server/BandwidthGroupImpl.cpp \
606 src-server/BIOSSettingsImpl.cpp \
607 src-server/RecordingSettingsImpl.cpp \
608 src-server/RecordingScreenSettingsImpl.cpp \
609 src-server/GraphicsAdapterImpl.cpp \
610 src-server/ClientWatcher.cpp \
611 src-server/ClientToken.cpp \
612 src-server/CloudProviderManagerImpl.cpp \
613 src-server/CPUProfileImpl.cpp \
614 src-server/DataStreamImpl.cpp \
615 src-server/DHCPServerImpl.cpp \
616 src-server/DHCPConfigImpl.cpp \
617 ../NetworkServices/Dhcpd/DhcpOptions.cpp \
618 src-server/NetworkServiceRunner.cpp \
619 src-server/NATNetworkImpl.cpp \
620 $(if $(VBOX_WITH_VMNET), \
621 src-server/HostOnlyNetworkImpl.cpp \
622 ,) \
623 $(if $(VBOX_WITH_CLOUD_NET), \
624 src-server/CloudNetworkImpl.cpp \
625 ,) \
626 src-server/GuestOSTypeImpl.cpp \
627 src-server/HostDnsService.cpp \
628 src-server/HostImpl.cpp \
629 src-server/HostNetworkInterfaceImpl.cpp \
630 src-server/HostPower.cpp \
631 src-server/HostUpdateImpl.cpp \
632 src-server/HostVideoInputDeviceImpl.cpp \
633 src-server/HostDrivePartitionImpl.cpp \
634 src-server/HostDriveImpl.cpp \
635 src-server/MachineImpl.cpp \
636 src-all/MachineLaunchVMCommonWorker.cpp \
637 src-server/MachineImplCloneVM.cpp \
638 src-server/MachineImplMoveVM.cpp \
639 src-server/Matching.cpp \
640 src-server/MediumAttachmentImpl.cpp \
641 src-server/MediumFormatImpl.cpp \
642 src-server/MediumImpl.cpp \
643 src-server/MediumLock.cpp \
644 src-server/MediumIOImpl.cpp \
645 src-server/NATEngineImpl.cpp \
646 src-server/NetworkAdapterImpl.cpp \
647 src-server/ParallelPortImpl.cpp \
648 src-server/ProgressProxyImpl.cpp \
649 src-server/SerialPortImpl.cpp \
650 src-server/SnapshotImpl.cpp \
651 src-server/StorageControllerImpl.cpp \
652 src-server/SystemPropertiesImpl.cpp \
653 src-server/TokenImpl.cpp \
654 src-server/TrustedPlatformModuleImpl.cpp \
655 src-server/UefiVariableStoreImpl.cpp \
656 $(if $(VBOX_WITH_UNATTENDED), \
657 src-server/UnattendedImpl.cpp \
658 src-server/UnattendedInstaller.cpp \
659 src-server/UnattendedScript.cpp \
660 src-all/TextScript.cpp \
661 ,) \
662 src-server/USBControllerImpl.cpp \
663 src-server/USBDeviceFiltersImpl.cpp \
664 src-server/VFSExplorerImpl.cpp \
665 src-server/VirtualBoxImpl.cpp \
666 src-server/VRDEServerImpl.cpp \
667 src-server/generic/AutostartDb-generic.cpp \
668 xml/ovfreader.cpp \
669 xml/Settings.cpp \
670 $(VBOX_XML_SCHEMADEFS_CPP) \
671 $(VBOX_AUTOGEN_EVENT_CPP) \
672 $(if $(VBOX_WITH_XPCOM),src-server/xpcom/server.cpp,)
673
674ifdef VBOX_WITH_MAIN_NLS
675VBoxSVC_SOURCES += \
676 src-all/VirtualBoxTranslator.cpp \
677 src-all/QMTranslatorImpl.cpp
678endif
679
680ifn1of ($(KBUILD_TARGET), win darwin)
681VBoxSVC_SOURCES += $(PATH_ROOT)/src/VBox/Devices/Network/slirp/resolv_conf_parser.c
682#$(PATH_ROOT)/src/VBox/Devices/Network/slirp/resolv_conf_parser.c_DEFS += LOG_GROUP=LOG_GROUP_MAIN
683endif
684
685VBoxSVC_SOURCES.darwin = \
686 src-server/darwin/iokit.cpp \
687 src-server/darwin/HostPowerDarwin.cpp \
688 src-server/darwin/HostDnsServiceDarwin.cpp
689
690VBoxSVC_SOURCES.win = \
691 src-server/win/svcmain.cpp \
692 src-server/win/svchlp.cpp \
693 src-server/win/HostPowerWin.cpp \
694 src-server/win/VBoxSVC.rc \
695 src-server/win/HostDnsServiceWin.cpp
696
697VBoxSVC_SOURCES.linux = \
698 src-server/linux/HostHardwareLinux.cpp \
699 src-server/linux/HostDnsServiceLinux.cpp \
700 $(if $(VBOX_WITH_DBUS),src-server/linux/HostPowerLinux.cpp) \
701 src-server/HostDnsServiceResolvConf.cpp
702
703VBoxSVC_SOURCES.solaris = \
704 src-server/linux/vbox-libhal.cpp \
705 src-server/solaris/DynLoadLibSolaris.cpp \
706 src-server/HostDnsServiceResolvConf.cpp
707
708VBoxSVC_SOURCES.os2 = \
709 src-server/HostDnsServiceResolvConf.cpp
710
711VBoxSVC_SOURCES.freebsd = \
712 src-server/freebsd/HostHardwareFreeBSD.cpp \
713 src-server/HostDnsServiceResolvConf.cpp
714
715VBoxSVC_LDFLAGS.freebsd += -lcam
716
717
718ifdef VBOX_WITH_USB
719 ifdef VBOX_WITH_SYSFS_BY_DEFAULT
720 src-server/linux/USBProxyBackendLinux.cpp_DEFS += VBOX_WITH_SYSFS_BY_DEFAULT
721 endif
722 VBoxSVC_SOURCES += \
723 src-server/USBDeviceFilterImpl.cpp \
724 src-server/USBProxyService.cpp \
725 src-server/USBProxyBackend.cpp \
726 src-server/generic/USBProxyBackendUsbIp.cpp \
727 src-server/HostUSBDeviceImpl.cpp
728 VBoxSVC_SOURCES.darwin += src-server/darwin/USBProxyBackendDarwin.cpp
729 VBoxSVC_SOURCES.linux += src-server/linux/USBProxyBackendLinux.cpp
730 VBoxSVC_SOURCES.linux += src-server/linux/USBGetDevices.cpp
731 VBoxSVC_SOURCES.os2 += src-server/os2/USBProxyBackendOs2.cpp
732 VBoxSVC_SOURCES.solaris += src-server/solaris/USBProxyBackendSolaris.cpp
733 VBoxSVC_SOURCES.win += src-server/win/USBProxyBackendWindows.cpp
734 VBoxSVC_SOURCES.freebsd += src-server/freebsd/USBProxyBackendFreeBSD.cpp
735endif
736
737ifdef VBOX_WITH_NETFLT
738 VBoxSVC_LIBS.win += \
739 $(PATH_STAGE_LIB)/WinNetConfigNonStatic$(VBOX_SUFF_LIB) \
740 $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB) \
741 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/newdev.lib \
742 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/comsupp.lib \
743 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/WbemUuid.Lib
744endif
745VBoxSVC_LDFLAGS.darwin = -framework IOKit -framework SystemConfiguration
746
747ifdef VBOX_WITH_3D_ACCELERATION
748 VBoxSVC_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
749 VBoxSVC_LDFLAGS.darwin += -framework OpenGL
750endif
751
752ifeq ($(KBUILD_TYPE),debug)
753 VBoxSVC_LDFLAGS.linux += -rdynamic # for backtrace_symbols()
754endif
755
756ifdef VBOX_WITH_RESOURCE_USAGE_API
757 VBoxSVC_SOURCES += \
758 src-server/PerformanceImpl.cpp \
759 src-server/Performance.cpp
760 VBoxSVC_SOURCES.darwin += src-server/darwin/PerformanceDarwin.cpp
761 VBoxSVC_SOURCES.freebsd += src-server/freebsd/PerformanceFreeBSD.cpp
762 VBoxSVC_SOURCES.linux += src-server/linux/PerformanceLinux.cpp
763 VBoxSVC_SOURCES.os2 += src-server/os2/PerformanceOs2.cpp
764 VBoxSVC_SOURCES.solaris += src-server/solaris/PerformanceSolaris.cpp
765 VBoxSVC_SOURCES.win += src-server/win/PerformanceWin.cpp
766 VBoxSVC_LDFLAGS.darwin += -lproc
767 VBoxSVC_LDFLAGS.solaris += -lkstat -lnvpair
768 VBoxSVC_LDFLAGS.win += psapi.lib powrprof.lib
769endif
770
771ifdef VBOX_WITH_HOSTNETIF_API
772 VBoxSVC_SOURCES.win += src-server/win/NetIf-win.cpp
773 VBoxSVC_SOURCES.linux += src-server/linux/NetIf-linux.cpp
774 VBoxSVC_SOURCES.os2 += src-server/os2/NetIf-os2.cpp
775 VBoxSVC_SOURCES.darwin += src-server/darwin/NetIf-darwin.cpp
776 VBoxSVC_SOURCES.solaris += src-server/solaris/NetIf-solaris.cpp
777 VBoxSVC_SOURCES.freebsd += src-server/freebsd/NetIf-freebsd.cpp
778 VBoxSVC_DEFS += VBOX_WITH_HOSTNETIF_API
779 if1of ($(KBUILD_TARGET), linux darwin solaris freebsd)
780 VBoxSVC_SOURCES += src-server/generic/NetIf-generic.cpp
781 endif
782endif
783
784$(call KB_FN_DO_PASS0_ON_TARGET,VBoxSVC) # Sets VBoxSVC_0_OUTDIR
785
786ifdef VBOX_WITH_MAIN_USB_ID_DATABASE # Generate a database of USB vendor IDs and device IDs.
787 VBoxSVC_DEFS += VBOX_WITH_MAIN_USB_ID_DATABASE
788 VBoxSVC_SOURCES += $(VBoxSVC_0_OUTDIR)/USBIdDatabase.cpp
789 VBoxSVC_CLEAN += $(VBoxSVC_0_OUTDIR)/USBIdDatabase.cpp
790
791 $(call KB_FN_AUTO_CMD_DEPS,$(VBoxSVC_0_OUTDIR)/USBIdDatabase.cpp)
792 $(VBoxSVC_0_OUTDIR)/USBIdDatabase.cpp: $$(USBIdDatabaseGenerator_1_TARGET) \
793 $(PATH_SUB_CURRENT)/src-server/usb.ids $(PATH_SUB_CURRENT)/src-server/custom.ids | $$(dir $$@)
794 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
795 $(call MSG_GENERATE,USBIdDatabase,$@,$(USBIdDatabaseGenerator_1_TARGET))
796 $(QUIET)$(USBIdDatabaseGenerator_1_TARGET) -o "$@" $(filter %.ids,$^)
797
798 BLDPROGS += USBIdDatabaseGenerator
799 USBIdDatabaseGenerator_TEMPLATE = VBoxAdvBldProg
800 USBIdDatabaseGenerator_SOURCES = src-server/USBIdDatabaseGenerator.cpp
801else
802 VBoxSVC_SOURCES += src-server/USBIdDatabaseStub.cpp
803endif
804
805src-server/win/VBoxSVC.rc_INCS = $(VBoxSVC_0_OUTDIR)
806src-server/win/VBoxSVC.rc_DEPS = $(VBoxSVC_0_OUTDIR)/VBoxSVC-icon.rc
807VBoxSVC_CLEAN += $(VBoxSVC_0_OUTDIR)/VBoxSVC-icon.rc
808$(call KB_FN_AUTO_CMD_DEPS,$(VBoxSVC_0_OUTDIR)/VBoxSVC-icon.rc)
809$(VBoxSVC_0_OUTDIR)/VBoxSVC-icon.rc: $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$@)
810 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
811 $(APPEND) -t $@ '1 ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
812
813ifndef VBOX_WITH_MIDL_PROXY_STUB
814 src-server/win/VBoxSVC.rc_DEPS += $(VBoxSVC_0_OUTDIR)/VBoxSVC.rgs
815 VBoxSVC_CLEAN += $(VBoxSVC_0_OUTDIR)/VBoxSVC.rgs
816 $(call KB_FN_AUTO_CMD_DEPS,$(VBoxSVC_0_OUTDIR)/VBoxSVC.rgs)
817 $(VBoxSVC_0_OUTDIR)/VBoxSVC.rgs: $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
818 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
819 $(VBOX_XSLTPROC) \
820 --stringparam Application VirtualBox \
821 --stringparam Module VBoxSVC \
822 -o $@ \
823 $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl \
824 $(VBOX_XIDL_FILE)
825endif
826
827## @todo r=klaus unfortunately we don't have xmllint everywhere, would be
828# good to check the validity for every VirtualBox.xidl change.
829#$(VBOX_XIDL_FILE).validated.ts: $(VBOX_XIDL_FILE_SRC)
830# xmllint --dtdvalid $(VBOX_PATH_MAIN_SRC)/idl/VirtualBox.dtd --noout $<
831# $(QUIET)$(CP) --changed -fv $< $(VBOX_XIDL_FILE).validated.ts
832#
833#OTHERS += $(VBOX_XIDL_FILE).validated.ts
834#OTHER_CLEAN += $(VBOX_XIDL_FILE).validated.ts
835
836testvalidxidl: $(VBOX_XIDL_FILE_SRC)
837 xmllint --dtdvalid $(VBOX_PATH_MAIN_SRC)/idl/VirtualBox.dtd --noout $<
838
839
840#
841# Embed some constraints from XML Schema file into VBoxSVC
842#
843VBOX_XML_SCHEMA = $(VBOX_PATH_MAIN_SRC)/xml/VirtualBox-settings.xsd
844
845$(VBOX_XML_SCHEMADEFS_H): $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA) | $$(dir $$@)
846 $(call MSG_GENERATE,SchemaDefs,$@,$<)
847 $(QUIET)$(VBOX_XSLTPROC) --stringparam mode declare -o $@ $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA)
848
849$(VBOX_XML_SCHEMADEFS_CPP): $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA) | $$(dir $$@)
850 $(call MSG_GENERATE,SchemaDefs,$@,$<)
851 $(QUIET)$(VBOX_XSLTPROC) --stringparam mode define -o $@ $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA)
852
853testvalidsettings: $(VBOX_XML_SCHEMA)
854 xmllint --schema $< --noout $(HOME)/.VirtualBox/VirtualBox.xml
855 xmllint --schema $< --noout $(HOME)/.VirtualBox/Machines/*/*.xml
856 xmllint --schema $< --noout $(HOME)/.VirtualBox/Machines/*/*.vbox
857 xmllint --schema $< --noout $(HOME)/VirtualBox\ VMs/*/*.vbox
858
859OTHER_CLEAN += $(VBOX_XML_SCHEMADEFS_H) $(VBOX_XML_SCHEMADEFS_CPP)
860
861
862#
863# Generate some event stuff for VBoxSVC and VBoxC.
864#
865$(call KB_FN_AUTO_CMD_DEPS,$(VBOX_AUTOGEN_EVENT_H).ts)
866$(VBOX_AUTOGEN_EVENT_H).ts +| $(VBOX_AUTOGEN_EVENT_H): $(VBOX_PATH_MAIN_SRC)/idl/comimpl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
867 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
868 $(call MSG_TOOL,xsltproc,autogen events,$<,$@)
869 $(QUIET)$(VBOX_XSLTPROC) --stringparam G_kind VBoxEventHeader -o "$@" "$(VBOX_PATH_MAIN_SRC)/idl/comimpl.xsl" "$(VBOX_XIDL_FILE)"
870 $(QUIET)$(CP) --changed -fv -- "$@" "$(VBOX_AUTOGEN_EVENT_H)"
871
872$(call KB_FN_AUTO_CMD_DEPS,$(VBOX_AUTOGEN_EVENT_CPP).ts)
873$(VBOX_AUTOGEN_EVENT_CPP).ts +| $(VBOX_AUTOGEN_EVENT_CPP): $(VBOX_PATH_MAIN_SRC)/idl/comimpl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
874 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
875 $(call MSG_TOOL,xsltproc,autogen events,$<,$@)
876 $(QUIET)$(VBOX_XSLTPROC) --stringparam G_kind VBoxEvent -o "$@" "$(VBOX_PATH_MAIN_SRC)/idl/comimpl.xsl" "$(VBOX_XIDL_FILE)"
877 $(QUIET)$(CP) --changed -fv -- "$@" "$(VBOX_AUTOGEN_EVENT_CPP)"
878
879OTHER_CLEAN += $(VBOX_AUTOGEN_EVENT_H).ts $(VBOX_AUTOGEN_EVENT_H) $(VBOX_AUTOGEN_EVENT_CPP).ts $(VBOX_AUTOGEN_EVENT_CPP)
880
881ifdef VBOX_WITH_XPCOM
882#
883# VBoxSVCM - VBoxSVC wrapper module
884#
885DLLS += VBoxSVCM
886VBoxSVCM_TEMPLATE = VBOXMAINCOMP
887VBoxSVCM_DEFS = IN_RING3 $(VBOX_MAIN_DEFS)
888 ifdef VBOX_WITH_HARDENING
889VBoxSVCM_DEFS += VBOX_WITH_HARDENING
890 endif
891VBoxSVCM_INCS = \
892 include \
893 $(VBoxC_0_OUTDIR) \
894 .
895VBoxSVCM_INTERMEDIATES = $(VBOX_MAIN_PREREQS)
896VBoxSVCM_SOURCES = \
897 src-server/xpcom/server_module.cpp
898VBoxSVCM_LDFLAGS.darwin = \
899 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/components/VBoxSVCM.dylib \
900 -exported_symbols_list $(VBoxSVCM_0_OUTDIR)/VBoxSVCM.def
901 ifeq ($(KBUILD_TARGET),darwin)
902VBoxSVCM_ORDERDEPS += $(VBoxSVCM_0_OUTDIR)/VBoxSVCM.def
903VBoxSVCM_CLEAN += $(VBoxSVCM_0_OUTDIR)/VBoxSVCM.def
904$$(VBoxSVCM_0_OUTDIR)/VBoxSVCM.def:
905 $(RM) -f $@
906 $(APPEND) $@ _NSGetModule
907 endif
908VBoxSVCM_INTERMEDIATES += $(VBOX_IDL_HEADER.XPCOM)
909
910 # 32-bit version of the module.
911 ifdef VBOX_WITH_32_ON_64_MAIN_API
912DLLS += VBoxSVCM-x86
913VBoxSVCM-x86_TEMPLATE = VBoxMainComp-x86
914VBoxSVCM-x86_EXTENDS = VBoxSVCM
915 endif
916
917endif # VBOX_WITH_XPCOM
918
919
920#
921# VBoxC module
922#
923DLLS += VBoxC
924VBoxC_TEMPLATE = VBOXMAINCOMP
925if defined(VBOX_WITH_PRECOMPILED_HEADERS) && "$(KBUILD_TARGET)" == "win"
926 VBoxC_USES = vccprecomp
927 VBoxC_PCH_HDR := $(PATH_SUB_CURRENT)/src-client/win/precomp_vcc.h
928else if $(KBUILD_KMK_REVISION) >= 3256 && "$(KBUILD_TARGET)" != "darwin" && !defined(VBOX_WITHOUT_PRECOMPILED_HEADERS)
929 if $(VBOX_GCC_VERSION_CXX) >= 50000 # GCC 4.x runs into trouble compiling the header.
930VBoxC_USES += gccprecomp
931VBoxC_PCH_HDR := $(PATH_SUB_CURRENT)/src-client/xpcom/precomp_gcc.h
932 endif
933endif
934VBoxC_DEFS = \
935 IN_RING3 \
936 $(VBOX_MAIN_DEFS) \
937 VBOX_COM_INPROC \
938 $(if $(VBOX_WITH_EFI),VBOX_WITH_EFI,) \
939 $(if $(VBOX_WITH_HGSMI),VBOX_WITH_HGSMI,) \
940 $(if $(VBOX_WITH_VIDEOHWACCEL),VBOX_WITH_VIDEOHWACCEL,) \
941 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP,) \
942 $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,) \
943 $(if $(VBOX_WITH_USB),VBOX_WITH_USB,) \
944 $(if $(VBOX_WITH_VRDEAUTH_IN_VBOXSVC),VBOX_WITH_VRDEAUTH_IN_VBOXSVC,) \
945 $(if $(VBOX_WITH_LIBCURL), VBOX_WITH_PROXY_INFO) \
946 $(if $(VBOX_WITH_IOMMU_AMD),VBOX_WITH_IOMMU_AMD,) \
947 $(if $(VBOX_WITH_IOMMU_INTEL),VBOX_WITH_IOMMU_INTEL,) \
948 $(if $(VBOX_WITH_TPM),VBOX_WITH_TPM,)
949ifdef VBOX_WITH_NETSHAPER
950 VBoxC_DEFS += VBOX_WITH_NETSHAPER
951endif
952VBoxC_DEFS.darwin.x86 = VBOX_WITH_2X_4GB_ADDR_SPACE
953VBoxC_DEFS.win.x86 += _WIN32_WINNT=0x0500
954VBoxC_DEFS.win.amd64 += _WIN32_WINNT=0x0510
955
956if $(KBUILD_TARGET) != "win" && $(VBOX_GCC_VERSION_CXX) >= 40900 # gcc 4.9.x (4.8.x is causing endless RT_ELEMENT trouble)
957# VBoxC_CXXFLAGS = -Wunused -Wconversion
958endif
959
960VBoxC_SDKS = VBOX_LIBPNG VBOX_ZLIB
961
962if defined(VBOX_WITH_RECORDING) && defined(VBOX_WITH_LIBVPX)
963VBoxC_SDKS += VBOX_VPX
964VBoxC_DEFS += VBOX_WITH_RECORDING VBOX_WITH_LIBVPX
965VBoxC_SOURCES += \
966 xml/Settings.cpp \
967 src-client/EBMLWriter.cpp \
968 src-client/WebMWriter.cpp \
969 src-client/Recording.cpp \
970 src-client/RecordingInternals.cpp \
971 src-client/RecordingStream.cpp \
972 src-client/RecordingUtils.cpp
973
974 if defined(VBOX_WITH_AUDIO_RECORDING) && defined(VBOX_WITH_LIBOPUS)
975VBoxC_SDKS += VBOX_OPUS
976VBoxC_DEFS += VBOX_WITH_AUDIO_RECORDING VBOX_WITH_LIBOPUS
977VBoxC_SOURCES += src-client/DrvAudioRec.cpp
978 endif
979endif # VBOX_WITH_RECORDING && VBOX_WITH_LIBVPX
980
981ifdef VBOX_WITH_OPENSSL_FIPS
982VBoxC_SDKS += VBOX_OPENSSL2
983endif
984
985VBoxC_INCS = \
986 include \
987 $(VBoxC_0_OUTDIR) \
988 $(VBOX_MAIN_APIWRAPPER_INCS) \
989 $(dir $(VBOX_XML_SCHEMADEFS_H)) \
990 $(VBOX_MAIN_APIWRAPPER_DIR)/dtrace \
991 $(VBOX_GRAPHICS_INCS)
992VBoxC_INCS.win = \
993 $(VBoxCOM_0_OUTDIR) \
994 .
995
996VBoxC_LDFLAGS.darwin = \
997 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/components/VBoxC.dylib \
998 -exported_symbols_list $(VBoxC_0_OUTDIR)/VBoxC.def \
999 -framework IOKit
1000VBoxC_LDFLAGS.win += /MANIFEST \
1001 /DELAYLOAD:user32.dll
1002
1003
1004VBoxC_LIBS += \
1005 $(PATH_STAGE_LIB)/VBoxAPIWrap$(VBOX_SUFF_LIB) \
1006 $(if-expr "$(LIB_VMM)" == "$(VBOX_LIB_VMM_LAZY)",$(LIB_REM),) \
1007 $(VBOX_LIB_VMM_LAZY)
1008VBoxC_LIBS.win += \
1009 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/psapi.lib \
1010 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib
1011ifdef VBOX_WITH_NETFLT
1012 VBoxC_LIBS.win += \
1013 $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB) \
1014 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/newdev.lib \
1015 $(PATH_STAGE_LIB)/WinNetConfigNonStatic$(VBOX_SUFF_LIB) \
1016 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/comsupp.lib \
1017 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/WbemUuid.Lib
1018 VBoxC_LDFLAGS.win += \
1019 /DELAYLOAD:newdev.dll \
1020 /DELAYLOAD:setupapi.dll \
1021 /DELAYLOAD:iphlpapi.dll
1022endif
1023
1024ifdef VBOX_WITH_3D_ACCELERATION
1025 VBoxC_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
1026 VBoxC_LDFLAGS.darwin += -framework OpenGL
1027endif
1028
1029ifdef VBOX_WITH_DRAG_AND_DROP
1030 VBoxC_LIBS += $(PATH_STAGE_LIB)/VBoxDnDHostR3Lib$(VBOX_SUFF_LIB)
1031endif
1032
1033VBoxC_INTERMEDIATES = \
1034 $(VBOX_MAIN_PREREQS) \
1035 $(VBOX_XML_SCHEMADEFS_H) \
1036 $(VBOX_AUTOGEN_EVENT_H) \
1037 $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
1038
1039VBoxC_SOURCES += \
1040 $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d \
1041 src-all/DisplayPNGUtil.cpp \
1042 src-all/DisplayResampleImage.cpp \
1043 src-all/DisplayUtils.cpp \
1044 src-all/EventImpl.cpp \
1045 src-all/Global.cpp \
1046 src-all/GlobalStatusConversion.cpp \
1047 src-all/HashedPw.cpp \
1048 src-all/Logging.cpp \
1049 src-all/NvramStoreImpl.cpp \
1050 src-all/PCIDeviceAttachmentImpl.cpp \
1051 src-all/ProgressImpl.cpp \
1052 src-all/SecretKeyStore.cpp \
1053 src-all/SharedFolderImpl.cpp \
1054 src-all/AutoCaller.cpp \
1055 src-all/ThreadTask.cpp \
1056 src-all/VirtualBoxBase.cpp \
1057 src-all/VirtualBoxErrorInfoImpl.cpp \
1058 $(if $(VBOX_WITH_EXTPACK),src-all/ExtPackManagerImpl.cpp src-all/ExtPackUtil.cpp,) \
1059 src-client/UsbWebcamInterface.cpp \
1060 $(if $(VBOX_WITH_USB_CARDREADER),src-client/UsbCardReader.cpp,) \
1061 src-client/AdditionsFacilityImpl.cpp \
1062 src-client/BusAssignmentManager.cpp \
1063 $(if $(VBOX_WITH_PCI_PASSTHROUGH),src-client/PCIRawDevImpl.cpp,) \
1064 src-client/ClientTokenHolder.cpp \
1065 src-client/ConsoleImpl.cpp \
1066 src-client/ConsoleImpl2.cpp \
1067 src-client/ConsoleImplTeleporter.cpp \
1068 src-client/ConsoleVRDPServer.cpp \
1069 src-client/DisplayImpl.cpp \
1070 src-client/DisplayImplLegacy.cpp \
1071 src-client/DisplaySourceBitmapImpl.cpp \
1072 src-client/EmulatedUSBImpl.cpp \
1073 src-client/GuestImpl.cpp \
1074 src-client/GuestCtrlImpl.cpp \
1075 src-client/KeyboardImpl.cpp \
1076 src-client/MachineDebuggerImpl.cpp \
1077 src-client/MouseImpl.cpp \
1078 src-client/RemoteUSBDeviceImpl.cpp \
1079 src-client/SessionImpl.cpp \
1080 src-client/USBDeviceImpl.cpp \
1081 src-client/VBoxDriversRegister.cpp \
1082 src-client/VirtualBoxClientImpl.cpp \
1083 src-client/VMMDevInterface.cpp \
1084 $(VBOX_AUTOGEN_EVENT_CPP) \
1085 $(VBOX_XML_SCHEMADEFS_CPP)
1086
1087ifdef VBOX_WITH_MAIN_NLS
1088VBoxC_SOURCES += \
1089 src-all/VirtualBoxTranslator.cpp \
1090 src-all/QMTranslatorImpl.cpp
1091endif
1092
1093# Experimental cloud support
1094ifdef VBOX_WITH_CLOUD_NET
1095 VBoxC_DEFS += VBOX_WITH_CLOUD_NET
1096 VBoxC_SOURCES += src-client/CloudGateway.cpp
1097endif
1098
1099# Audio bits.
1100VBoxC_SOURCES += \
1101 src-client/AudioDriver.cpp \
1102 $(if $(VBOX_WITH_AUDIO_VRDE),src-client/DrvAudioVRDE.cpp,)
1103
1104VBoxC_SOURCES.win = \
1105 src-client/win/dllmain.cpp \
1106 src-client/win/VBoxC.def \
1107 src-client/win/VBoxC.rc
1108ifdef VBOX_WITH_GUEST_CONTROL
1109 VBoxC_SOURCES += \
1110 src-client/GuestSessionImplTasks.cpp \
1111 src-client/GuestCtrlPrivate.cpp \
1112 src-client/GuestDirectoryImpl.cpp \
1113 src-client/GuestFileImpl.cpp \
1114 src-client/GuestFsObjInfoImpl.cpp \
1115 src-client/GuestProcessImpl.cpp \
1116 src-client/GuestSessionImpl.cpp
1117endif
1118ifdef VBOX_WITH_DRAG_AND_DROP
1119 VBoxC_SOURCES += \
1120 src-client/GuestDnDPrivate.cpp \
1121 src-client/GuestDnDSourceImpl.cpp \
1122 src-client/GuestDnDTargetImpl.cpp
1123endif
1124ifdef VBOX_WITH_XPCOM
1125 VBoxC_SOURCES += \
1126 src-client/xpcom/module.cpp
1127endif
1128ifdef VBOX_WITH_HGCM
1129 VBoxC_SOURCES += \
1130 src-client/HGCMObjects.cpp \
1131 src-client/HGCMThread.cpp \
1132 src-client/HGCM.cpp
1133endif
1134ifdef VBOX_WITH_USB
1135 VBoxC_SOURCES += \
1136 src-client/RemoteUSBBackend.cpp
1137endif
1138ifndef VBOX_WITH_VRDEAUTH_IN_VBOXSVC
1139 VBoxC_SOURCES += \
1140 src-all/AuthLibrary.cpp
1141endif
1142
1143$(call KB_FN_DO_PASS0_ON_TARGET,VBoxC) # Sets VBoxC_0_OUTDIR
1144
1145ifeq ($(KBUILD_TARGET),darwin)
1146 VBoxC_ORDERDEPS += $(VBoxC_0_OUTDIR)/VBoxC.def
1147 VBoxC_CLEAN += $(VBoxC_0_OUTDIR)/VBoxC.def
1148 $(call KB_FN_AUTO_CMD_DEPS,$(VBoxC_0_OUTDIR)/VBoxC.def)
1149 $(VBoxC_0_OUTDIR)/VBoxC.def:
1150 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
1151 $(RM) -f $@
1152 $(APPEND) $@ _NSGetModule
1153 $(APPEND) $@ _VBoxDriversRegister
1154endif
1155
1156src-client/ConsoleImpl.cpp_DEFS = \
1157 $(if $(VBOX_WITH_OPENSSL_FIPS), VBOX_OPENSSL_FIPS,)
1158
1159
1160src-client/win/VBoxC.rc_DEPS = $(VBoxC_0_OUTDIR)/VBoxC.rgs $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb
1161VBoxC_CLEAN.win += $(VBoxC_0_OUTDIR)/VBoxC.rgs
1162$(call KB_FN_AUTO_CMD_DEPS,$(VBoxC_0_OUTDIR)/VBoxC.rgs)
1163$(VBoxC_0_OUTDIR)/VBoxC.rgs: $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
1164 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
1165 $(VBOX_XSLTPROC) \
1166 --stringparam Application VirtualBox \
1167 --stringparam Module VBoxC \
1168 -o $@ \
1169 $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl \
1170 $(VBOX_XIDL_FILE)
1171
1172ifdef VBOX_WITH_32_ON_64_MAIN_API
1173 #
1174 # 32-bit VBox API Client In-Process module.
1175 #
1176 # This is currently just a 32-bit version of VBoxC. It might be desirable to
1177 # split up VBoxC into a simple client and a VM client part later, in which
1178 # case this module will be a simple client.
1179 #
1180 # Note! One important thing is that the typelib for this DLL must be build
1181 # with the /env win32 switch and the VBoxC typelib with /env amd64, if
1182 # not they will overwrite each others typelib module entry.
1183 #
1184 DLLS += VBoxClient-x86
1185 VBoxClient-x86_TEMPLATE = VBoxMainComp-x86
1186 VBoxClient-x86_EXTENDS = VBoxC
1187if defined(VBOX_WITH_PRECOMPILED_HEADERS) && "$(KBUILD_TARGET)" == "win" ## @todo fix inheritance (fixed in r3253)
1188 VBoxClient-x86_USES = vccprecomp
1189 VBoxClient-x86_PCH_HDR := $(PATH_SUB_CURRENT)/src-client/win/precomp_vcc.h
1190endif
1191 VBoxClient-x86_SDKS = $(filter-out VBOX_OPUS VBOX_VPX,$(VBoxC_SDKS))
1192 VBoxClient-x86_DEFS = VBOX_COM_INPROC_API_CLIENT \
1193 $(filter-out VBOX_WITH_RECORDING VBOX_WITH_LIBVPX VBOX_WITH_AUDIO_RECORDING VBOX_WITH_LIBOPUS,$(VBoxC_DEFS))
1194 VBoxClient-x86_INCS.win = \
1195 $(VBoxClient-x86_0_OUTDIR) \
1196 $(VBoxCOM-x86_0_OUTDIR) \
1197 $(VBoxC_INCS.win)
1198 VBoxClient-x86_SOURCES = \
1199 src-all/EventImpl.cpp \
1200 src-all/Global.cpp \
1201 src-all/GlobalStatusConversion.cpp \
1202 src-all/AutoCaller.cpp \
1203 src-all/ThreadTask.cpp \
1204 src-all/VirtualBoxBase.cpp \
1205 src-all/VirtualBoxErrorInfoImpl.cpp \
1206 src-client/ClientTokenHolder.cpp \
1207 src-client/SessionImpl.cpp \
1208 src-client/VirtualBoxClientImpl.cpp \
1209 $(VBOX_AUTOGEN_EVENT_CPP) \
1210 $(VBOX_XML_SCHEMADEFS_CPP)
1211 ifdef VBOX_WITH_MAIN_NLS
1212 VBoxClient-x86_SOURCES += \
1213 src-all/VirtualBoxTranslator.cpp \
1214 src-all/QMTranslatorImpl.cpp
1215 endif
1216 VBoxClient-x86_SOURCES.win = \
1217 src-client/win/dllmain.cpp \
1218 src-client/win/VBoxClient-x86.def \
1219 src-client/win/VBoxClient-x86.rc
1220 ifdef VBOX_WITH_XPCOM
1221 VBoxClient-x86_SOURCES += \
1222 src-client/xpcom/module.cpp
1223 endif
1224 VBoxClient-x86_LIBS = \
1225 $(PATH_STAGE_LIB)/VBoxAPIWrap-x86$(VBOX_SUFF_LIB)
1226 VBoxClient-x86_LIBS.win = $(NO_SUCH_VARIABLE)
1227 VBoxClient-x86_LIBS.win.x86 += \
1228 $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/delayimp.lib \
1229 $(PATH_SDK_$(VBOX_WINPSDK)_LIB.x86)/WbemUuid.Lib
1230 VBoxClient-x86_CLEAN.win += $(VBoxClient-x86_0_OUTDIR)/VBoxClient-x86.rgs
1231 $(call KB_FN_DO_PASS0_ON_TARGET,VBoxClient-x86) # Sets VBoxClient-x86_0_OUTDIR
1232
1233 src-client/win/VBoxClient-x86.rc_DEPS = \
1234 $(VBoxClient-x86_0_OUTDIR)/VBoxClient-x86.rgs \
1235 $(VBoxCOM-x86_0_OUTDIR)/VirtualBox-x86.tlb
1236
1237 $(call KB_FN_AUTO_CMD_DEPS,$(VBoxClient-x86_0_OUTDIR)/VBoxClient-x86.rgs)
1238 $(VBoxClient-x86_0_OUTDIR)/VBoxClient-x86.rgs: \
1239 $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl \
1240 $(VBOX_XIDL_FILE) | $$(dir $$@)
1241 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
1242 $(VBOX_XSLTPROC) \
1243 --stringparam Application VirtualBox \
1244 --stringparam Module VBoxC \
1245 -o $@ \
1246 $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl \
1247 $(VBOX_XIDL_FILE)
1248endif
1249
1250#
1251# The VBoxExtPackHelperApp.
1252#
1253ifdef VBOX_WITH_EXTPACK
1254 PROGRAMS += VBoxExtPackHelperApp
1255 VBoxExtPackHelperApp_TEMPLATE = VBoxR3SetUidToRoot
1256 VBoxExtPackHelperApp_LDFLAGS.darwin = -framework Security
1257 VBoxExtPackHelperApp_LDFLAGS.win = /SUBSYSTEM:windows
1258 VBoxExtPackHelperApp_SOURCES = \
1259 src-helper-apps/VBoxExtPackHelperApp.cpp \
1260 src-all/ExtPackUtil.cpp
1261 VBoxExtPackHelperApp_SOURCES.win = \
1262 src-helper-apps/VBoxExtPackHelperApp.rc
1263 VBoxExtPackHelperApp_LIBS = \
1264 $(LIB_RUNTIME)
1265endif # VBOX_WITH_EXTPACK
1266
1267#
1268# VolInfo
1269#
1270ifdef VBOX_WITH_DEVMAPPER
1271 PROGRAMS.linux += VBoxVolInfo
1272 VBoxVolInfo_TEMPLATE = VBoxR3SetUidToRoot
1273 VBoxVolInfo_SOURCES = src-helper-apps/VBoxVolInfo.cpp
1274 VBoxVolInfo_LIBS = devmapper
1275endif
1276
1277
1278endif # !defined(VBOX_ONLY_SDK) && !defined(VBOX_ONLY_EXTPACKS) (the ifndef is far above)
1279ifndef VBOX_ONLY_SDK
1280
1281
1282#
1283# VBoxCOM - COM Abstraction Layer library
1284#
1285LIBRARIES += VBoxCOM
1286VBoxCOM_TEMPLATE = VBoxMainLib
1287VBoxCOM_INTERMEDIATES = $(VBOX_MAIN_PREREQS) \
1288 $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
1289VBoxCOM_SOURCES = \
1290 glue/com.cpp \
1291 glue/VBoxLogRelCreate.cpp \
1292 glue/GetVBoxUserHomeDirectory.cpp \
1293 glue/initterm.cpp \
1294 glue/string.cpp \
1295 glue/string-base64.cpp \
1296 glue/AutoLock.cpp \
1297 glue/EventQueue.cpp \
1298 glue/NativeEventQueue.cpp \
1299 glue/ErrorInfo.cpp \
1300 glue/errorprint.cpp
1301VBoxCOM_INCS += $(VBOX_MAIN_APIWRAPPER_INCS) \
1302 include
1303ifeq ($(KBUILD_TARGET),win)
1304 ifdef VBOX_WITH_MIDL_PROXY_STUB
1305 VBoxCOM_DEFS.win = VBOX_WITH_AUTO_COM_REG_UPDATE
1306 endif
1307 ifdef VBOX_WITH_SDS
1308 VBoxCOM_DEFS.win += VBOX_WITH_SDS
1309 endif
1310 VBoxCOM_DEFS.x86 = _WIN32_WINNT=0x0500
1311 VBoxCOM_DEFS.amd64 = _WIN32_WINNT=0x0510
1312 VBoxCOM_SOURCES += \
1313 $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c
1314 VBoxCOM_CLEAN = \
1315 $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c \
1316 $(VBoxCOM_0_OUTDIR)/VirtualBox_p.c \
1317 $(VBoxCOM_0_OUTDIR)/dlldata.c \
1318 $(VBoxCOM_0_OUTDIR)/VirtualBox.h \
1319 $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb
1320 VBoxCOM_CLEAN += \
1321 $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_i.c \
1322 $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_p.c \
1323 $(VBoxCOM_0_OUTDIR)/legacy/dlldata.c \
1324 $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.h \
1325 $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.tlb
1326 VBoxCOM_BLDDIRS = $(VBoxCOM_0_OUTDIR)/legacy/
1327else # !win
1328 VBoxCOM_SOURCES += \
1329 $(VBoxCOM_0_OUTDIR)/VirtualBox_XPCOM_i.c \
1330 glue/xpcom/helpers.cpp
1331endif # !win
1332
1333ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
1334glue/VBoxLogRelCreate.cpp_DEFS = KBUILD_TYPE="$(KBUILD_TYPE)"
1335else
1336glue/VBoxLogRelCreate.cpp_DEFS = KBUILD_TYPE=\"$(KBUILD_TYPE)\"
1337endif
1338
1339# 32-bit version of VBoxCOM.
1340if defined(VBOX_WITH_32_ON_64_MAIN_API) && !defined(VBOX_ONLY_EXTPACKS)
1341 LIBRARIES += VBoxCOM-x86
1342 VBoxCOM-x86_TEMPLATE = VBoxMainLib-x86
1343 VBoxCOM-x86_EXTENDS = VBoxCOM
1344 ifeq ($(KBUILD_TARGET),win)
1345 VBoxCOM-x86_CLEAN = \
1346 $(VBoxCOM-x86_0_OUTDIR)/VirtualBox_i.c \
1347 $(VBoxCOM-x86_0_OUTDIR)/VirtualBox_p.c \
1348 $(VBoxCOM-x86_0_OUTDIR)/dlldata.c \
1349 $(VBoxCOM-x86_0_OUTDIR)/VirtualBox.h \
1350 $(VBoxCOM-x86_0_OUTDIR)/VirtualBox-x86.tlb
1351 endif
1352endif
1353
1354# -MD version for the GUI in -MDd builds.
1355ifeq ($(KBUILD_TARGET).$(VBOX_VCC_CRT_TYPE),win.d)
1356 ifndef VBOX_ONLY_EXTPACKS
1357 LIBRARIES += VBoxCOM-GUI
1358 USES += qt5
1359 VBoxCOM-GUI_TEMPLATE = VBOXQTGUI$(if-expr defined(VBOX_WITH_HARDENING),,EXE)
1360 VBoxCOM-GUI_EXTENDS = VBoxCOM
1361 endif
1362endif
1363
1364# define qt5 tools for translation even if VBOX_ONLY_EXTPACKS is enabled
1365ifdef VBOX_WITH_NLS
1366 USES += qt5
1367endif
1368
1369
1370endif # !VBOX_ONLY_SDK
1371
1372
1373#
1374# Installs com related thing(s) to bin.
1375#
1376INSTALLS.win += VBoxMain-com-inst
1377VBoxMain-com-inst_INST = $(INST_BIN)
1378VBoxMain-com-inst_MODE = a+r,u+w
1379VBoxMain-com-inst_SOURCES = src-all/win/comregister.cmd
1380
1381
1382if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "linux" && !defined(VBOX_ONLY_EXTPACKS)
1383 #
1384 # Installs linux/hardening related things to components.
1385 #
1386 INSTALLS.linux += VBoxMain-hardening-inst
1387 VBoxMain-hardening-inst_INST = $(INST_BIN)components/
1388 VBoxMain-hardening-inst_SYMLINKS = \
1389 VBoxDDU.so=>../VBoxDDU.so \
1390 VBoxRT.so=>../VBoxRT.so \
1391 VBoxVMM.so=>../VBoxVMM.so \
1392 VBoxXPCOM.so=>../VBoxXPCOM.so
1393endif
1394
1395
1396if defined(VBOX_WITH_MIDL_PROXY_STUB) && "$(KBUILD_TARGET)" == "win" && !defined(VBOX_ONLY_EXTPACKS)
1397 #
1398 # Experimental COM proxy + stub DLL w/ automatic registration updating.
1399 #
1400 # The Legacy stub is for older 64-bit windows versions (pre Windows 7) as we
1401 # were having various problems on windows server 2003 and 2008 with the code
1402 # MIDL generated. Also, in windows 7 there are some potentially interesting
1403 # changes in the generated code where it uses new helpers from OLE32.
1404 #
1405 DLLS += VBoxProxyStub
1406 VBoxProxyStub_TEMPLATE = VBOXMAINCOMP
1407 ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
1408 VBoxProxyStub_DEFS := REGISTER_PROXY_DLL PROXY_CLSID_IS=$(quote $(VBOX_MIDL_PROXY_CLSID_IS))
1409 else
1410 VBoxProxyStub_DEFS := REGISTER_PROXY_DLL PROXY_CLSID_IS="$(VBOX_MIDL_PROXY_CLSID_IS)"
1411 endif
1412 ifdef VBOX_WITH_SDS
1413 VBoxProxyStub_DEFS += VBOX_WITH_SDS
1414 endif
1415 ifdef VBOX_WITH_SDS_CLIENT_WATCHER
1416 VBoxProxyStub_DEFS += VBOX_WITH_SDS_CLIENT_WATCHER,)
1417 endif
1418 VBoxProxyStub_DEFS.win.x86 = WIN32
1419 VBoxProxyStub_SDKS = VBOX_NTDLL
1420 VBoxProxyStub_DEFPATH = $(VBoxCOM_0_OUTDIR)/# Hack to workaround drive letter in $(VBoxCOM_0_OUTDIR)/ for CFLAGS hack below.
1421 VBoxProxyStub_INCS = $(VBoxCOM_0_OUTDIR)/
1422 VBoxProxyStub_SOURCES := \
1423 VirtualBox_p.c \
1424 VirtualBox_i.c \
1425 $(PATH_SUB_CURRENT)/src-all/win/VBoxProxyStub.def \
1426 $(PATH_SUB_CURRENT)/src-all/win/VBoxProxyStub.rc \
1427 $(PATH_SUB_CURRENT)/src-all/win/VBoxProxyStub.c
1428 src-all/win/VBoxProxyStub.rc_DEPS = $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb
1429 VBoxProxyStub_VirtualBox_p.c_CFLAGS.x86 = /Gz # Workaround for incorrect ObjectStublessClient* prototypes in SDK v7.1.
1430
1431 DLLS += VBoxProxyStubLegacy
1432 VBoxProxyStubLegacy_TEMPLATE = VBOXMAINCOMP
1433 VBoxProxyStubLegacy_EXTENDS = VBoxProxyStub
1434 VBoxProxyStubLegacy_DEFS = $(VBoxProxyStub_DEFS) VBOX_IN_PROXY_STUB_LEGACY
1435 VBoxProxyStubLegacy_INCS = $(VBoxCOM_0_OUTDIR)/legacy/
1436 VBoxProxyStubLegacy_SOURCES = \
1437 $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_p.c \
1438 $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_i.c \
1439 src-all/win/VBoxProxyStub.def \
1440 src-all/win/VBoxProxyStubLegacy.rc \
1441 src-all/win/VBoxProxyStub.c
1442 src-all/win/VBoxProxyStubLegacy.rc_DEPS = $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.tlb
1443
1444 ifdef VBOX_WITH_32_ON_64_MAIN_API
1445 DLLS += VBoxProxyStub-x86
1446 VBoxProxyStub-x86_TEMPLATE = VBoxMainComp-x86
1447 VBoxProxyStub-x86_SDKS = VBOX_NTDLL
1448 VBoxProxyStub-x86_DEFS = $(VBoxProxyStub_DEFS) VBOX_PROXY_STUB_32_ON_64 WIN32
1449 VBoxProxyStub-x86_INCS = $(VBoxCOM-x86_0_OUTDIR)/
1450 VBoxProxyStub-x86_SOURCES = \
1451 $(VBoxCOM-x86_0_OUTDIR)/VirtualBox_p.c \
1452 $(VBoxCOM-x86_0_OUTDIR)/VirtualBox_i.c \
1453 src-all/win/VBoxProxyStub.c \
1454 src-all/win/VBoxProxyStub-x86.rc \
1455 src-all/win/VBoxProxyStub.def
1456 src-all/win/VBoxProxyStub-x86.rc_DEPS = $(VBoxCOM-x86_0_OUTDIR)/VirtualBox-x86.tlb
1457 endif
1458endif
1459
1460
1461ifdef VBOX_WITH_MAIN_NLS
1462#
1463# NLS stuff.
1464#
1465include $(PATH_SUB_CURRENT)/nls/ApprovedLanguages.kmk
1466
1467PROGRAMS += VirtualBoxAPI
1468VirtualBoxAPI_TEMPLATE = VBoxNLS
1469VirtualBoxAPI_QT_TRANSLATIONS = $(addsuffix .ts,$(addprefix $(VBOX_PATH_MAIN_SRC)/nls/VirtualBoxAPI_,$(VBOX_APPROVED_MAIN_LANGUAGES)))
1470VirtualBoxAPI_VBOX_ALL_NLS_SOURCES = $(wildcard \
1471 $(VBOX_PATH_MAIN_SRC)/include/*.h\
1472 $(VBOX_PATH_MAIN_SRC)/src-all/*.cpp \
1473 $(VBOX_PATH_MAIN_SRC)/src-all/*.h \
1474 $(VBOX_PATH_MAIN_SRC)/src-server/*.cpp \
1475 $(VBOX_PATH_MAIN_SRC)/src-server/*.h \
1476 $(VBOX_PATH_MAIN_SRC)/src-client/*.cpp \
1477 $(VBOX_PATH_MAIN_SRC)/src-client/*.h )
1478
1479updatenls:: makeallnls $(VBOX_PATH_MAIN_SRC)/nls/VirtualBoxAPI_en.ts
1480
1481makeallnls:: $(VirtualBoxAPI_VBOX_ALL_NLS_SOURCES)
1482 $(call MSG_L1,lupdate all languages (nls/*.ts))
1483 $(QUIET)$(TOOL_QT5_LUPDATE) \
1484 $^ \
1485 -ts \
1486 $(filter-out nls/VirtualBoxAPI_en.ts, $(VirtualBoxAPI_QT_TRANSLATIONS)) \
1487 $(VBOX_PATH_MAIN_SRC)/nls/VirtualBoxAPI_xx_YY.ts
1488
1489#fake-main-nls:
1490# $(foreach file, $(VirtualBoxAPI_QT_TRANSLATIONS) \
1491# ,$(NLTAB)$(SED) -i \
1492# -e '/<source>.*<\/source>/h' \
1493# -e '/<source>.*<\/source>/p' \
1494# -e '/<translation type="unfinished"><\/translation>/{' \
1495# -e 'x' \
1496# -e 's/<source>\(.*\)<\/source>/<translation type="unfinished">$(notdir $(file)): \1<\/translation>/' \
1497# -e '}' \
1498# $(file) )
1499
1500
1501# Create the English translation file. This is something special cause it will
1502# contain the plural forms only.
1503$(VBOX_PATH_MAIN_SRC)/nls/VirtualBoxAPI_en.ts: $(VirtualBoxAPI_VBOX_ALL_NLS_SOURCES)
1504 $(call MSG_L1,lupdate $@)
1505 $(QUIET)$(TOOL_QT5_LUPDATE) \
1506 $^ \
1507 -ts \
1508 "$@"
1509 $(QUIET)$(SED) -n -i \
1510 -e '/<context>/,/<\/context>/!p' \
1511 -e '/<context>/h' \
1512 -e '/<name>/H' \
1513 -e '/<message numerus="yes">/,/<\/message>/H' \
1514 -e '/<\/context>/{H;x;/<message/p}' \
1515 "$@"
1516
1517endif # VBOX_WITH_MAIN_NLS
1518
1519
1520# generate rules
1521include $(FILE_KBUILD_SUB_FOOTER)
1522
1523
1524
1525#
1526# Additions rules.
1527#
1528
1529## @todo this hack ain't cutting it any longer. (the file name is abspath'ed since ages now.)
1530glue/xpcom/helpers.cpp: $(VBOX_IDL_TYPELIB.XPCOM)
1531
1532$(call KB_FN_AUTO_CMD_DEPS_EX,$(VBOX_IDL_FILE.XPCOM),$(PATH_OUT)/VBOX_IDL_FILE.XPCOM.vbox-dep)
1533$(VBOX_IDL_FILE.XPCOM): $(VBOX_PATH_MAIN_SRC)/idl/xpidl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
1534 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS_EX,$(PATH_OUT)/VBOX_IDL_FILE.XPCOM.vbox-dep)
1535 $(call MSG_TOOL,xsltproc,VBoxSVC,$(VBOX_PATH_MAIN_SRC)/idl/xpidl.xsl,$@)
1536 $(QUIET)$(VBOX_XSLTPROC) -o $@ $(VBOX_PATH_MAIN_SRC)/idl/xpidl.xsl $(VBOX_XIDL_FILE)
1537
1538$(call KB_FN_AUTO_CMD_DEPS_EX,$(VBOX_IDL_TYPELIB.XPCOM),$(PATH_OUT)/VBOX_IDL_TYPELIB.XPCOM.vbox-dep)
1539$(VBOX_IDL_TYPELIB.XPCOM): $(VBOX_IDL_FILE.XPCOM) | $$(dir $$@) $(VBOX_XPIDL)
1540 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS_EX,$(PATH_OUT)/VBOX_IDL_TYPELIB.XPCOM.vbox-dep)
1541 $(call MSG_TOOL,xpidl,VBoxSVC,$(VBOX_IDL_FILE.XPCOM),$@)
1542 $(QUIET)$(VBOX_XPIDL_ENV)$(VBOX_XPIDL) -m typelib -I $(VBOX_PATH_XPCOM_IDL) -e $@ $(VBOX_IDL_FILE.XPCOM)
1543 $(CHMOD) 0644 $@
1544## @todo ^^^^^^^^^^^^ fix horrible hack
1545
1546$(call KB_FN_AUTO_CMD_DEPS_EX,$(VBOX_IDL_HEADER.XPCOM),$(PATH_OUT)/VBOX_IDL_HEADER.XPCOM.vbox-dep)
1547$(VBOX_IDL_HEADER.XPCOM): $(VBOX_IDL_FILE.XPCOM) | $$(dir $$@) $(VBOX_XPIDL)
1548 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS_EX,$(PATH_OUT)/VBOX_IDL_HEADER.XPCOM.vbox-dep)
1549 $(call MSG_TOOL,xpidl,VBoxSVC,$(VBOX_IDL_FILE.XPCOM),$@)
1550 $(QUIET)$(VBOX_XPIDL_ENV)$(VBOX_XPIDL) -m header -I $(VBOX_PATH_XPCOM_IDL) -e $@ $(VBOX_IDL_FILE.XPCOM)
1551
1552$(call KB_FN_AUTO_CMD_DEPS_EX,$(VBOX_IDL_FILE.MSCOM),$(PATH_OUT)/VBOX_IDL_FILE.MSCOM.vbox-dep)
1553$(VBOX_IDL_FILE.MSCOM): $(VBOX_PATH_MAIN_SRC)/idl/midl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
1554 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS_EX,$(PATH_OUT)/VBOX_IDL_FILE.MSCOM.vbox-dep)
1555 $(call MSG_TOOL,xsltproc,VBoxSVC,$<,$@)
1556 $(QUIET)$(VBOX_XSLTPROC) -o $@ \
1557 $(if $(VBOX_WITH_MIDL_PROXY_STUB),-stringparam g_fGenProxy yes,) \
1558 $(if $(VBOX_WITH_SDS),-stringparam g_fVBoxWithSDS yes,) \
1559 $(VBOX_PATH_MAIN_SRC)/idl/midl.xsl $(VBOX_XIDL_FILE)
1560
1561
1562# Aliases for testing purposes.
1563ifdef VBOX_WITH_XPCOM
1564testidl: $(VBOX_IDL_FILE.XPCOM) $(VBOX_IDL_TYPELIB.XPCOM) $(VBoxCOM_0_OUTDIR)/VirtualBox_XPCOM_i.c
1565testidlhdr: $(VBOX_IDL_HEADER.XPCOM)
1566else
1567testidl: $(VBOX_IDL_FILE.MSCOM) $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c \
1568 $(if $(VBOX_WITH_32_ON_64_MAIN_API),$(VBoxCOM-x86_0_OUTDIR)/VirtualBox_i.c,)
1569endif
1570
1571
1572$(VBoxCOM_0_OUTDIR)/VirtualBox_XPCOM_i.c: $(VBOX_PATH_MAIN_SRC)/idl/xpidl_iid.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
1573 $(call MSG_TOOL,xsltproc,VBoxSVC,$<,$@)
1574 $(QUIET)$(VBOX_XSLTPROC) -o $@ $< $(VBOX_XIDL_FILE)
1575
1576if defined(VBOX_ONLY_SDK) || "$(KBUILD_TARGET)" == "win"
1577
1578 ##
1579 # Edits $1 and adding #pragma directives for disabling warnings windows.h causes.
1580 # @param 1 The name of the file to edit.
1581 define def_VBoxMainDisableMscWarnings
1582 $(QUIET)$(MV) -f "$1" "$1.tmp"
1583 $(QUIET)$(APPEND) -nt "$1" \
1584 '#if _MSC_VER >= 1920 /* RT_MSC_VER_VS2019 */' \
1585 '# pragma warning(disable:5031 5032) /* buggy winioctl.h in some w10 sdks */ ' \
1586 '#endif' \
1587 '#pragma warning(push) /* -Wall and windows.h */' \
1588 '#pragma warning(disable:4668 4255)' \
1589 '#if _MSC_VER >= 1800 /* RT_MSC_VER_VC120 */' \
1590 '# pragma warning(disable:4005)' \
1591 '#endif' \
1592 '#if _MSC_VER >= 1900 /* RT_MSC_VER_VC140 */' \
1593 '# pragma warning(disable:5039)' \
1594 '#endif' \
1595 ''
1596 $(QUIET)$(CAT_EXT) "$1.tmp" >> "$1"
1597 $(QUIET)$(APPEND) -n "$1" \
1598 '' \
1599 '#pragma warning(pop)' \
1600 ''
1601 $(QUIET)$(RM) -f "$1.tmp"
1602
1603 endef
1604
1605 # Note! Because we've got a different proxy stub DLL for pre windows 7 64-bit hosts, we target windows 7 for AMD64.
1606 # The output is different and hopefully more efficient, at least memory wise (using more helpers in OLE32).
1607 # Note! We're checking for win.amd64 below when setting the target because of the SDK build which happens on linux.amd64
1608 # but with a 32-bit Wine.
1609 $(call KB_FN_AUTO_CMD_DEPS,$(VBoxCOM_0_OUTDIR)/VirtualBox_i.c)
1610 $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c \
1611 $(if $(VBOX_WITH_MIDL_PROXY_STUB), + $(VBoxCOM_0_OUTDIR)/VirtualBox_p.c + $(VBoxCOM_0_OUTDIR)/dlldata.c,) \
1612 + $(VBoxCOM_0_OUTDIR)/VirtualBox.h \
1613 + $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb: $(VBOX_IDL_FILE.MSCOM) | $$(dir $$@)
1614 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
1615 $(VBOX_MIDL_REDIRECT) $(VBOX_WIN_MIDL) /nologo /W4 \
1616 /env $(if-expr "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.amd64" ,amd64,win32) \
1617 /robust /protocol all /target $(if-expr defined(VBOX_WITH_MIDL_PROXY_STUB),NT61,NT51) \
1618 /out $(call VBOX_FN_MAKE_WIN_PATH,$(VBoxCOM_0_OUTDIR)) \
1619 /cpp_cmd $(VBOX_MIDL_CPP_CMD) \
1620 $(foreachfile dir,$(SDK_$(VBOX_WINPSDK)_INCS),/I $(call VBOX_FN_MAKE_WIN_PATH,$(dir))) \
1621 /I idl \
1622 $(call VBOX_FN_MAKE_WIN_PATH,$(VBOX_IDL_FILE.MSCOM))
1623 $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM_0_OUTDIR)/VirtualBox.h)
1624 $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM_0_OUTDIR)/VirtualBox_i.c)
1625 $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM_0_OUTDIR)/VirtualBox_p.c)
1626
1627 if defined(VBOX_WITH_MIDL_PROXY_STUB)
1628 # -Windows Server 2003 AMD64 SP1 does not like the result when using '/protocol all' and '/target NT51'.
1629 # -Vista AMD64 SP1 and Windows Server 2008 AMD64 seems to have some objections as well, but it seemed
1630 # that using an older MIDL compiler (v7.00.0499 instead of v7.00.0555) helps. But the W2K3 fix also works.
1631 # To avoid 32-bit vs. 64-bit differences, we do the same for 32-bit windows versions.
1632 $(call KB_FN_AUTO_CMD_DEPS,$(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_i.c)
1633 $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_i.c \
1634 + $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_p.c\
1635 + $(VBoxCOM_0_OUTDIR)/legacy/dlldata.c \
1636 + $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.h \
1637 + $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.tlb: $(VBOX_IDL_FILE.MSCOM) | $$(dir $$@)
1638 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
1639 $(VBOX_MIDL_REDIRECT) $(VBOX_WIN_MIDL) /nologo /W4 \
1640 $(if-expr "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.amd64" \
1641 ,/env amd64 /x64 /target NT50 /robust \
1642 ,/env win32 /target NT51 /robust /protocol all ) \
1643 /out $(call VBOX_FN_MAKE_WIN_PATH,$(dir $@)) \
1644 /cpp_cmd $(VBOX_MIDL_CPP_CMD) \
1645 $(foreachfile dir,$(SDK_$(VBOX_WINPSDK)_INCS),/I $(call VBOX_FN_MAKE_WIN_PATH,$(dir))) \
1646 /I idl \
1647 $(call VBOX_FN_MAKE_WIN_PATH,$(VBOX_IDL_FILE.MSCOM))
1648 $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.h)
1649 $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_i.c)
1650 $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_p.c)
1651 endif
1652
1653 if defined(VBOX_WITH_32_ON_64_MAIN_API) && !defined(VBOX_ONLY_EXTPACKS)
1654 # The XP targetted 32-bit proxy stub works with all versions of windows (the
1655 # issues leading to the VBoxProxyStubLegacy.dll are only on 64-bit windows).
1656 $(call KB_FN_AUTO_CMD_DEPS,$(VBoxCOM-x86_0_OUTDIR)/VirtualBox_i.c)
1657 $(VBoxCOM-x86_0_OUTDIR)/VirtualBox_i.c \
1658 $(if $(VBOX_WITH_MIDL_PROXY_STUB), + $(VBoxCOM-x86_0_OUTDIR)/VirtualBox_p.c + $(VBoxCOM-x86_0_OUTDIR)/dlldata.c,) \
1659 + $(VBoxCOM-x86_0_OUTDIR)/VirtualBox.h \
1660 + $(VBoxCOM-x86_0_OUTDIR)/VirtualBox-x86.tlb: $(VBOX_IDL_FILE.MSCOM) | $$(dir $$@)
1661 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
1662 $(VBOX_MIDL_REDIRECT_X86) $(VBOX_WIN_MIDL) /nologo /W4 \
1663 /env win32 /target NT51 /robust /protocol all \
1664 /out $(call VBOX_FN_MAKE_WIN_PATH,$(VBoxCOM-x86_0_OUTDIR)) \
1665 /tlb $(call VBOX_FN_MAKE_WIN_PATH,$(VBoxCOM-x86_0_OUTDIR)/VirtualBox-x86.tlb) \
1666 /cpp_cmd $(VBOX_MIDL_CPP_CMD_X86) \
1667 $(foreachfile dir,$(SDK_$(VBOX_WINPSDK)_INCS),/I $(call VBOX_FN_MAKE_WIN_PATH,$(dir))) \
1668 /I idl \
1669 $(call VBOX_FN_MAKE_WIN_PATH,$(VBOX_IDL_FILE.MSCOM))
1670 $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM-x86_0_OUTDIR)/VirtualBox.h)
1671 $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM-x86_0_OUTDIR)/VirtualBox_i.c)
1672 $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM-x86_0_OUTDIR)/VirtualBox_p.c)
1673 endif
1674
1675endif # defined(VBOX_ONLY_SDK) || "$(KBUILD_TARGET)" == "win"
1676
1677#
1678# Translation stuff
1679#
1680VBoxSVC_VBOX_HEADERS = \
1681 include/collection.h \
1682 include/MachineImpl.h
1683VBoxSVC_VBOX_TRANSLATIONS = \
1684 nls/VBoxSVC_de.ts
1685
1686VBoxC_VBOX_HEADERS = \
1687 include/ConsoleImpl.h
1688
1689VBoxC_VBOX_INTERMEDIATES = $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
1690VBoxC_VBOX_HEADERS += $(VBOX_MAIN_APIWRAPPER_INCS)
1691
1692VBoxC_VBOX_TRANSLATIONS = \
1693 nls/VBoxC_de.ts
1694
1695ifdef VBOX_WITH_JMSCOM
1696
1697 #
1698 # Java glue JAR files
1699 #
1700 VBOX_JMSCOM_JAR = $(VBoxJMscom-inst-jar_0_OUTDIR)/vboxjmscom.jar
1701 VBOX_JMSCOM_TARGET := $(PATH_TARGET)/vboxjmscom-gen
1702 VBOX_JMSCOM_GEN = $(VBOX_JMSCOM_TARGET)/jmscomgen
1703 VBOX_JMSCOM_JDEST := $(VBOX_JMSCOM_TARGET)/jdest
1704 VBOX_GLUE_XSLT_DIR := $(PATH_ROOT)/src/VBox/Main/glue
1705 VBOX_JACOB_DIR := $(PATH_ROOT)/src/libs/jacob-1.17
1706
1707 INSTALLS += VBoxJMscom-inst-jar
1708 VBoxJMscom-inst-jar_INST = $(INST_SDK)bindings/mscom/java/
1709 VBoxJMscom-inst-jar_MODE = a+r,u+w
1710 VBoxJMscom-inst-jar_SOURCES = \
1711 $(VBoxJMscom-inst-jar_0_OUTDIR)/vboxjmscom.jar
1712 VBoxJMscom-inst-jar_CLEAN = \
1713 $(VBoxJMscom-inst-jar_0_OUTDIR)/vboxjmscom.jar \
1714 $(VBOX_JMSCOM_GEN)/jmscomglue.list \
1715 $(wildcard \
1716 $(VBOX_JMSCOM_GEN)/java/*.java \
1717 $(VBOX_JMSCOM_JDEST)/*.class \
1718 $(VBOX_JMSCOM_JDEST)/*/*.class \
1719 $(VBOX_JMSCOM_JDEST)/*/*/*.class \
1720 $(VBOX_JMSCOM_JDEST)/*/*/*/*.class \
1721 )
1722 VBoxJMscom-inst-jar_BLDDIRS += $(VBOX_JMSCOM_GEN)/java
1723 $(call KB_FN_DO_PASS0_ON_TARGET,VBoxJMscom-inst-jar) # Sets VBoxJMscom-inst-jar_0_OUTDIR
1724
1725 $(call KB_FN_AUTO_CMD_DEPS,$(VBOX_JMSCOM_GEN)/jmscomglue.list)
1726 $(VBOX_JMSCOM_GEN)/jmscomglue.list: \
1727 $(VBOX_XIDL_FILE) \
1728 $(VBOX_GLUE_XSLT_DIR)/glue-java.xsl \
1729 $(VBOX_FILESPLIT) \
1730 | $(VBOX_JMSCOM_GEN)/java/
1731 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
1732 $(call MSG_L1,Generating Java MSCOM glue files from XIDL)
1733 $(QUIET)$(RM) -f $(wildcard $(VBOX_JMSCOM_GEN)/java/*.java)
1734 $(QUIET)$(VBOX_XSLTPROC) \
1735 --stringparam filelistonly "" \
1736 --stringparam G_vboxApiSuffix $(VBOX_API_SUFFIX) \
1737 --stringparam G_vboxGlueStyle mscom \
1738 --stringparam G_vboxDirPrefix "" \
1739 -o $(VBOX_JMSCOM_GEN)/java/merged.file $(VBOX_GLUE_XSLT_DIR)/glue-java.xsl $(VBOX_XIDL_FILE)
1740 $(QUIET)$(VBOX_FILESPLIT) $(VBOX_JMSCOM_GEN)/java/merged.file $(VBOX_JMSCOM_GEN)/java
1741 $(QUIET)echo $(VBOX_JMSCOM_GEN)/java/*.java > $@
1742
1743 $(call KB_FN_AUTO_CMD_DEPS,$(VBoxJMscom-inst-jar_0_OUTDIR)/vboxjmscom.jar)
1744 $(VBoxJMscom-inst-jar_0_OUTDIR)/vboxjmscom.jar: $(VBOX_JMSCOM_GEN)/jmscomglue.list | $$(dir $$@)
1745 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
1746 $(call MSG_TOOL,javac,$(notdir $@),jmscomglue.list,)
1747 $(QUIET)$(RM) -Rf $(VBOX_JMSCOM_JDEST)
1748 $(QUIET)$(MKDIR) -p $(VBOX_JMSCOM_JDEST)
1749 $(call MSG_TOOL,javac,$(notdir $@),...,)
1750 $(QUIET)$(VBOX_JAVAC) $(VBOX_JAVAC_OPTS) @$(VBOX_JMSCOM_GEN)/jmscomglue.list \
1751 -d $(VBOX_JMSCOM_JDEST) -classpath "$(VBOX_JMSCOM_JDEST)$(VBOX_SEP)$(VBOX_JACOB_DIR)/jacob.jar"
1752 $(call MSG_LINK,$(notdir $@),$@)
1753 $(QUIET)$(VBOX_JAR) cf $@ -C $(VBOX_JMSCOM_JDEST) .
1754
1755 ## @todo compile TestVBox.java (see below) to have sanity checking
1756endif # VBOX_WITH_JMSCOM
1757
1758#
1759# Install Java glue sample code.
1760#
1761INSTALLS += javagluesample
1762javagluesample_INST = $(INST_SDK)bindings/glue/java/
1763javagluesample_MODE = a+r,u+w
1764javagluesample_SOURCES = \
1765 $(VBOX_PATH_MAIN_SRC)/glue/tests/TestVBox.java=>TestVBox.java \
1766 $(VBOX_PATH_MAIN_SRC)/glue/tests/Makefile=>Makefile
1767
1768#
1769# Rules associated with VBoxAPIWrap (in typical invocation order).
1770# We keep them down here to simplify the use of VBoxAPIWrap_0_OUTDIR.
1771#
1772
1773# Generate a make include file which lists the wrapper header and source files.
1774$(call KB_FN_AUTO_CMD_DEPS,$(VBoxAPIWrap_VBOX_KMK_FILE).ts)
1775$(VBoxAPIWrap_VBOX_KMK_FILE).ts \
1776+| $(VBoxAPIWrap_VBOX_KMK_FILE): \
1777 $(VBOX_XIDL_FILE) \
1778 $(VBOX_PATH_MAIN_SRC)/idl/apiwrap-server-filelist.xsl \
1779 $(VBOX_PATH_MAIN_SRC)/Makefile.kmk
1780 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
1781 $(call MSG_GENERATE,,$(VBoxAPIWrap_VBOX_KMK_FILE))
1782 $(QUIET)$(RM) -f $@
1783 $(QUIET)$(MKDIR) -p $(@D)
1784 $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
1785 $(if $(VBOX_WITH_SDS),-stringparam g_fVBoxWithSDS yes,) \
1786 -o $@ $(VBOX_PATH_MAIN_SRC)/idl/apiwrap-server-filelist.xsl $(VBOX_XIDL_FILE)
1787 $(QUIET)$(CP) --changed -fv $@ $(VBoxAPIWrap_VBOX_KMK_FILE)
1788
1789# Generate the header files for the wrappers.
1790$(call KB_FN_AUTO_CMD_DEPS,$(VBoxAPIWrap_0_OUTDIR)/apiwrappers-headers)
1791$(VBoxAPIWrap_0_OUTDIR)/apiwrappers-headers \
1792+| $(VBOX_MAIN_APIWRAPPER_GEN_HDRS): \
1793 $(VBOX_XIDL_FILE) \
1794 $(VBOX_PATH_MAIN_SRC)/idl/typemap-shared.inc.xsl \
1795 $(VBoxAPIWrap_VBOX_XSLT) \
1796 $(VBOX_FILESPLIT) \
1797 | $$(dir $$@)
1798 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
1799 $(call MSG_L1,Generating C++ Server API wrapper header files from XIDL)
1800 $(QUIET)$(RM) -f -- $(filter-out $(VBOX_MAIN_APIWRAPPER_GEN_HDRS), $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.h))
1801 $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
1802 --stringparam generating "headers" \
1803 -o $@ $(VBoxAPIWrap_VBOX_XSLT) $(VBOX_XIDL_FILE)
1804 $(QUIET)$(VBOX_FILESPLIT) $@ $(VBoxAPIWrap_0_OUTDIR)
1805
1806# Generate the DTrace probes for the wrappers and combine them with handcoded probes.
1807$(call KB_FN_AUTO_CMD_DEPS,$(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d.ts)
1808$(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d.ts \
1809+| $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d: \
1810 $(VBOX_XIDL_FILE) \
1811 $(VBOX_PATH_MAIN_SRC)/idl/typemap-shared.inc.xsl \
1812 $(VBoxAPIWrap_VBOX_XSLT) \
1813 $(VBOX_FILESPLIT) \
1814 | $$(dir $$@)
1815 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
1816 $(call MSG_L1,Generating DTrace Provider for the VBox API (from XIDL))
1817 $(QUIET)$(RM) -f -- "$@" "[email protected]"
1818 $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
1819 --stringparam generating "dtrace-probes" \
1820 -o "$@" $(VBoxAPIWrap_VBOX_XSLT) $(VBOX_XIDL_FILE)
1821 $(QUIET)$(SED) -e '' -o "[email protected]" \
1822 "$(VBOX_PATH_MAIN_SRC)/src-all/VBoxAPI-start$(if-expr "$(VBOX_HOST_DTRACE_VERSION)" == "dtrace: Sun D 1.6.2",-alternative,).d" \
1823 "$@" \
1824 "$(VBOX_PATH_MAIN_SRC)/src-all/VBoxAPI-end$(if-expr "$(VBOX_HOST_DTRACE_VERSION)" == "dtrace: Sun D 1.6.2",-alternative,).d"
1825 $(QUIET)$(MV) -- "[email protected]" "$@"
1826 $(QUIET)$(CP) --changed -fv -- "$@" "$(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d"
1827
1828# Generate the wrapper source files - split in two due to long processing time
1829$(call KB_FN_AUTO_CMD_DEPS,$(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-even)
1830$(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-even \
1831+| $(VBOX_MAIN_APIWRAPPER_GEN_SRCS_EVEN): \
1832 $(VBOX_XIDL_FILE) \
1833 $(VBOX_PATH_MAIN_SRC)/idl/typemap-shared.inc.xsl \
1834 $(VBoxAPIWrap_VBOX_XSLT) \
1835 $(VBOX_FILESPLIT) \
1836 | $$(dir $$@)
1837 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
1838 $(call MSG_L1,Generating C++ Server API wrapper files from XIDL - part 1)
1839 $(QUIET)$(RM) -f -- $(filter-out $(VBOX_MAIN_APIWRAPPER_GEN_SRCS), $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.cpp))
1840 $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
1841 --stringparam generating "sources" \
1842 --param reminder 0 \
1843 -o $@ $(VBoxAPIWrap_VBOX_XSLT) $(VBOX_XIDL_FILE)
1844 $(QUIET)$(VBOX_FILESPLIT) $@ $(VBoxAPIWrap_0_OUTDIR)
1845
1846$(call KB_FN_AUTO_CMD_DEPS,$(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-odd)
1847$(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-odd \
1848+| $(VBOX_MAIN_APIWRAPPER_GEN_SRCS_ODD): \
1849 $(VBOX_XIDL_FILE) \
1850 $(VBOX_PATH_MAIN_SRC)/idl/typemap-shared.inc.xsl \
1851 $(VBoxAPIWrap_VBOX_XSLT) \
1852 $(VBOX_FILESPLIT) \
1853 | $$(dir $$@)
1854 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
1855 $(call MSG_L1,Generating C++ Server API wrapper files from XIDL - part 2)
1856 $(QUIET)$(RM) -f -- $(filter-out $(VBOX_MAIN_APIWRAPPER_GEN_SRCS), $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.cpp))
1857 $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
1858 --stringparam generating "sources" \
1859 --param reminder 1 \
1860 -o $@ $(VBoxAPIWrap_VBOX_XSLT) $(VBOX_XIDL_FILE)
1861 $(QUIET)$(VBOX_FILESPLIT) $@ $(VBoxAPIWrap_0_OUTDIR)
1862
1863testapiwrappers:: \
1864 $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-headers \
1865 $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d.ts \
1866 $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-odd \
1867 $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-even
1868
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette