VirtualBox

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

Last change on this file since 66280 was 66279, checked in by vboxsync, 8 years ago

Main/Frontends/Installer: bugref:3300: tabs, spaces, doxygen

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 53.9 KB
Line 
1# $Id: Makefile.kmk 66279 2017-03-28 07:23:33Z vboxsync $
2## @file
3# Makefile for the VBox Main module.
4#
5
6#
7# Copyright (C) 2004-2017 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#
31ifdef VBOX_WITH_WEBSERVICES
32 include $(PATH_SUB_CURRENT)/webservice/Makefile.kmk
33endif
34include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
35include $(PATH_SUB_CURRENT)/cbinding/Makefile.kmk
36
37
38#
39# Targets and globals (bit of a mess...)
40#
41VBOX_PATH_MAIN_SRC := $(PATH_SUB_CURRENT)
42
43ifdef VBOX_ONLY_SDK
44 # I'm Evil! Dr. Evil.
45 VBoxCOM_0_OUTDIR = $(PATH_TARGET)/VBoxCOM
46 BLDDIRS += $(VBoxCOM_0_OUTDIR) $(PATH_STAGE_BIN)/components
47 include $(KBUILD_PATH)/tools/$(VBOX_VCC_TOOL).kmk # For the idl /cpp statement.
48 include $(KBUILD_PATH)/sdks/$(VBOX_WINPSDK).kmk
49endif # !VBOX_ONLY_SDK
50
51
52# Construct VBOX_MAIN_DEFS
53## @todo eliminate or expand VBOX_MAIN_DEFS.
54VBOX_MAIN_DEFS =
55ifneq ($(KBUILD_TARGET),win)
56 ifndef VBOX_WITH_XPCOM
57 $(error "VBox: VBOX_WITH_XPCOM isn't defined")
58 endif
59 VBOX_MAIN_DEFS += VBOX_WITH_GENERIC_SESSION_WATCHER
60endif
61VBOX_MAIN_DEFS += \
62 $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE,) \
63 $(if $(VBOX_WITH_RAW_RING1),VBOX_WITH_RAW_RING1,) \
64 $(if $(VBOX_WITH_VMSVGA),VBOX_WITH_VMSVGA,) \
65 $(if $(VBOX_WITH_VMSVGA3D),VBOX_WITH_VMSVGA3D,) \
66 $(if $(VBOX_WITH_NETFLT),VBOX_WITH_NETFLT,) \
67 $(if $(VBOX_WITH_COPYTOGUEST),VBOX_WITH_COPYTOGUEST,) \
68 $(if $(VBOX_WITH_CROGL),VBOX_WITH_CROGL,) \
69 $(if $(VBOX_WITH_CRHGSMI),VBOX_WITH_CRHGSMI,) \
70 $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,) \
71 $(if $(VBOX_WITH_GUEST_PROPS_RDONLY_GUEST),VBOX_WITH_GUEST_PROPS_RDONLY_GUEST,) \
72 $(if $(VBOX_WITH_GUEST_CONTROL),VBOX_WITH_GUEST_CONTROL,) \
73 $(if $(VBOX_WITH_USB_CARDREADER),VBOX_WITH_USB_CARDREADER,) \
74 $(if $(VBOX_WITH_USB_CARDREADER_TEST),VBOX_WITH_USB_CARDREADER_TEST,) \
75 $(if $(VBOX_WITH_HOSTNETIF_API),VBOX_WITH_HOSTNETIF_API,) \
76 $(if $(VBOX_WITH_MIDL_PROXY_STUB),VBOX_WITH_MIDL_PROXY_STUB,) \
77 $(if $(VBOX_WITH_SDS),VBOX_WITH_SDS,) \
78
79# Unconditionally enable the new semaphore key generation code
80VBOX_MAIN_DEFS += VBOX_WITH_NEW_SYS_V_KEYGEN
81
82VBOX_IDL_FILE.MSCOM = $(VBOX_PATH_SDK)/bindings/mscom/idl/VirtualBox.idl
83VBOX_IDL_FILE.XPCOM = $(VBOX_PATH_SDK)/bindings/xpcom/idl/VirtualBox_XPCOM.idl
84
85VBOX_IDL_TYPELIB.XPCOM = $(PATH_STAGE_BIN)/components/VirtualBox_XPCOM.xpt
86VBOX_IDL_HEADER.XPCOM = $(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_XPCOM.h
87
88# The MS COM specific stuff.
89if defined(VBOX_ONLY_SDK) || "$(KBUILD_TARGET)" == "win"
90 OTHERS += \
91 $(VBOX_IDL_FILE.MSCOM)
92 OTHER_CLEAN += \
93 $(VBOX_IDL_FILE.MSCOM)
94
95 INSTALLS += VBox-mscom-bindings-include VBox-mscom-bindings-lib
96 VBox-mscom-bindings-include_INST = $(INST_SDK)bindings/mscom/include/
97 VBox-mscom-bindings-include_MODE = a+r,u+w
98 VBox-mscom-bindings-include_SOURCES = $(VBoxCOM_0_OUTDIR)/VirtualBox.h
99 VBox-mscom-bindings-include_CLEAN = $(VBoxCOM_0_OUTDIR)/VirtualBox.h
100 VBox-mscom-bindings-lib_INST = $(INST_SDK)bindings/mscom/lib/
101 VBox-mscom-bindings-lib_MODE = a+r,u+w
102 VBox-mscom-bindings-lib_SOURCES = $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c \
103 $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb
104 VBox-mscom-bindings-lib_CLEAN = $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c \
105 $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb
106
107 BLDDIRS += $(VBOX_PATH_SDK)/bindings/mscom/idl
108endif
109
110# The XPCOM specific stuff.
111# if defined(VBOX_ONLY_SDK) || "$(KBUILD_TARGET)" != "win" -- does not build on Windows
112if "$(KBUILD_TARGET)" != "win"
113 OTHERS += $(VBOX_IDL_FILE.XPCOM) $(VBOX_IDL_TYPELIB.XPCOM) $(VBOX_IDL_HEADER.XPCOM)
114 OTHER_CLEAN += \
115 $(VBOX_IDL_FILE.XPCOM) \
116 $(VBOX_IDL_HEADER.XPCOM) \
117 $(VBOX_IDL_TYPELIB.XPCOM)
118
119 INSTALLS += VBox-xpcom-bindings-lib
120 VBox-xpcom-bindings-lib_INST = $(INST_SDK)bindings/xpcom/lib/
121 VBox-xpcom-bindings-lib_MODE = a+r,u+w
122 VBox-xpcom-bindings-lib_SOURCES = $(VBoxCOM_0_OUTDIR)/VirtualBox_XPCOM_i.c=>VirtualBox_i.c
123 VBox-xpcom-bindings-lib_CLEAN = $(VBoxCOM_0_OUTDIR)/VirtualBox_XPCOM_i.c
124
125 VBOX_MAIN_PREREQS += $(VBOX_IDL_TYPELIB.XPCOM) $(VBOX_IDL_HEADER.XPCOM)
126 BLDDIRS += \
127 $(VBOX_PATH_SDK)/bindings/xpcom/idl \
128 $(VBOX_PATH_SDK)/bindings/xpcom/include
129 # disable VBoxSDS for XPCOM
130 override VBOX_WITH_SDS =
131endif # xpcom
132
133
134#
135# Strip documentation from source XIDL so that we don't get a full
136# recompile every time a comma in the documentation is changed.
137#
138$(VBOX_XIDL_FILE).ts +| $(VBOX_XIDL_FILE): \
139 $(VBOX_XIDL_FILE_SRC) \
140 $(VBOX_PATH_MAIN_SRC)/idl/docstrip.xsl \
141 | $$(dir $$@)
142# $(CP) -fv $< $(VBOX_XIDL_FILE).ts
143 $(QUIET)$(VBOX_XSLTPROC) -o $(VBOX_XIDL_FILE).ts $(VBOX_PATH_MAIN_SRC)/idl/docstrip.xsl $<
144 $(QUIET)$(CP) --changed -fv $(VBOX_XIDL_FILE).ts $(VBOX_XIDL_FILE)
145
146OTHER_CLEAN += $(VBOX_XIDL_FILE) $(VBOX_XIDL_FILE).ts
147
148#
149# The Main API documentation
150#
151VBOX_MAIN_DOC_DIR = $(VBOX_PATH_SDK)/docs
152BLDDIRS += $(VBOX_MAIN_DOC_DIR)
153
154$(PATH_TARGET)/docs.Main: \
155 $(VBOX_PATH_MAIN_SRC)/Doxyfile.Main \
156 $(VBOX_PATH_MAIN_SRC)/idl/doxygen.xsl \
157 $(VBOX_XIDL_FILE_SRC) \
158 | $(PATH_TARGET)/ \
159 $(VBOX_MAIN_DOC_DIR)/
160 $(call MSG_TOOL,xsltproc,doxygen input,$<,$@)
161 $(QUIET)$(RM) -f $(wildcard $(VBOX_MAIN_DOC_DIR)/html/*) $(PATH_TARGET)/docs.Main
162 $(QUIET)$(VBOX_XSLTPROC) -o $(PATH_TARGET)/VirtualBox.idl $(VBOX_PATH_MAIN_SRC)/idl/doxygen.xsl $(VBOX_XIDL_FILE_SRC)
163 $(QUIET)$(REDIRECT) -E 'DOCDIR=$(VBOX_MAIN_DOC_DIR)' -E 'PATH_TARGET=$(PATH_TARGET)' -E 'PATH_CHM=$(subst /,\,$(VBOX_MAIN_DOC_DIR)/VirtualBoxAPI.chm)' \
164 -- doxygen $(VBOX_PATH_MAIN_SRC)/Doxyfile.Main
165 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) ">>>>>>>>>>>>>>>>>>>> Main.err: >>>>>>>>>>>>>>>>>>>>>>>>"
166 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(CAT) "$(PATH_TARGET)/Main.err"
167 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "<<<<<<<<<<<<<<<<<<<< Main.err <<<<<<<<<<<<<<<<<<<<<<<<<"
168 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> **************************************************"
169 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> Please fix above doxygen errors/warnings listed in"
170 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> $(PATH_TARGET)/Main.err"
171 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> **************************************************"
172 -$(EXEC_X86_WIN32) $(VBOX_PATH_HTML_HELP_WORKSHOP)/hhc.exe $(subst /,\\,$(VBOX_MAIN_DOC_DIR)/html/index.hhp)
173 $(APPEND) $(PATH_TARGET)/docs.Main
174# aliases
175docs.main docs.Main: $(PATH_TARGET)/docs.Main
176if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
177docs: $(PATH_TARGET)/docs.Main
178else
179docs:
180endif
181
182
183ifndef VBOX_ONLY_SDK
184 #
185 # Generate library with API class wrappers from the XIDL file.
186 #
187 LIBRARIES += VBoxAPIWrap
188 VBoxAPIWrap_TEMPLATE = VBoxMainLib
189 ifeq ($(KBUILD_TARGET),win)
190 VBoxAPIWrap_USES = vccprecomp
191 VBoxAPIWrap_PCH_HDR := $(PATH_SUB_CURRENT)/src-all/win/VBoxAPIWrap-precomp_vcc.h
192 endif
193 VBoxAPIWrap_SOURCES = \
194 $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d \
195 $(VBOX_MAIN_APIWRAPPER_GEN_SRCS)
196 VBoxAPIWrap_INTERMEDIATES = $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
197 VBoxAPIWrap_DEFS.win.x86 += _WIN32_WINNT=0x0500
198 VBoxAPIWrap_DEFS.win.amd64 += _WIN32_WINNT=0x0510
199 VBoxAPIWrap_INCS += \
200 include
201 VBoxAPIWrap_CLEAN = \
202 $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.cpp) \
203 $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.h) \
204 $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d.ts \
205 $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d \
206 $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-headers \
207 $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-even \
208 $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-odd
209
210 # Two VBox variables used here and/or in the rules generating wrappers.
211 VBoxAPIWrap_VBOX_XSLT = \
212 $(VBOX_PATH_MAIN_SRC)/idl/apiwrap-server.xsl
213
214
215 # This include file (generated at the bottom of this file), defines
216 # VBOX_MAIN_APIWRAPPER_GEN_SRCS and VBOX_MAIN_APIWRAPPER_GEN_HDRS.
217 VBoxAPIWrap_VBOX_KMK_FILE = $(PATH_OUT)/vboxapiwrap.kmk
218 include $(VBoxAPIWrap_VBOX_KMK_FILE)
219
220 ifdef VBOX_WITH_32_ON_64_MAIN_API
221 LIBRARIES += VBoxAPIWrap-x86
222 VBoxAPIWrap-x86_TEMPLATE = VBoxMainLib-x86
223 VBoxAPIWrap-x86_EXTENDS = VBoxAPIWrap
224 VBoxAPIWrap-x86_DTRACE_HDR_FLAGS = -32 # ugly, should be fixed in the tool in Config.kmk
225 ifeq ($(KBUILD_TARGET),win) ## @todo fix inheritance
226 VBoxAPIWrap-x86_USES = vccprecomp
227 VBoxAPIWrap-x86_PCH_HDR := $(PATH_SUB_CURRENT)/src-all/win/VBoxAPIWrap-precomp_vcc.h
228 endif
229 endif
230
231endif # !VBOX_ONLY_SDK
232
233#
234# Some SDK bit.
235#
236INSTALLS += VBox-main-xidl
237VBox-main-xidl_INST = $(INST_SDK)bindings/
238VBox-main-xidl_MODE = a+r,u+w
239VBox-main-xidl_SOURCES = $(VBOX_XIDL_FILE_SRC)
240
241ifdef VBOX_WITH_PYTHON
242INSTALLS += VBox-python-glue
243VBox-python-glue_INST = $(INST_SDK)installer/vboxapi/
244VBox-python-glue_MODE = a+r,u+w
245VBox-python-glue_SOURCES = \
246 glue/vboxapi.py=>__init__.py \
247 $(VBox-python-glue_0_OUTDIR)/VirtualBox_constants.py
248VBox-python-glue_CLEAN = \
249 $(VBox-python-glue_0_OUTDIR)/VirtualBox_constants.py
250
251$$(VBox-python-glue_0_OUTDIR)/VirtualBox_constants.py: \
252 $(VBOX_PATH_MAIN_SRC)/glue/constants-python.xsl \
253 $(VBOX_XIDL_FILE) \
254 | $$(dir $$@)
255 $(call MSG_TOOL,xsltproc,Python constants,$<,$@)
256 $(QUIET)$(VBOX_XSLTPROC) -o $@ $< $(VBOX_XIDL_FILE)
257
258endif # VBOX_WITH_PYTHON
259
260ifndef VBOX_ONLY_SDK # Note this goes on for *very* long
261
262#
263# Generate SchemaDefs.h and SchemaDefs.cpp from XML Schema
264# These two files are used by both VBoxC and VBoxSVC.
265#
266BLDDIRS += $(PATH_TARGET)/Main
267
268testschemadefs: $(VBOX_XML_SCHEMADEFS_H) $(VBOX_XML_SCHEMADEFS_CPP)
269
270
271#
272# VBoxSDS executable
273#
274if defined(VBOX_WITH_SDS) && "$(KBUILD_TARGET)" == "win"
275PROGRAMS += VBoxSDS
276VBoxSDS_TEMPLATE = VBOXMAINEXE
277VBoxSDS_DEFS = \
278VBoxSDS_DEFS.win += VBOX_COM_OUTOFPROC_MODULE
279VBoxSDS_DEFS.win += _WIN32_WINNT=0x0510
280VBoxSDS_INCS = \
281 include \
282 $(VBoxSDS_0_OUTDIR) \
283 $(VBOX_MAIN_APIWRAPPER_INCS)
284VBoxSDS_INCS.win = \
285 $(VBoxCOM_0_OUTDIR)
286VBoxSDS_LIBS += \
287 $(PATH_STAGE_LIB)/VBoxAPIWrap$(VBOX_SUFF_LIB)
288VBoxSDS_INTERMEDIATES = \
289 $(VBOX_MAIN_PREREQS) \
290 $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
291VBoxSDS_SOURCES = \
292 src-all/Global.cpp \
293 src-all/AutoCaller.cpp \
294 src-all/VirtualBoxBase.cpp \
295 src-all/VirtualBoxErrorInfoImpl.cpp \
296 src-global/VirtualBoxSDSImpl.cpp
297VBoxSDS_SOURCES.win = \
298 src-global/win/VBoxSDS.cpp \
299 src-global/win/VBoxSDS.rc
300
301src-global/win/VBoxSDS.rc_INCS = $(VBoxSDS_0_OUTDIR)
302src-global/win/VBoxSDS.rc_DEPS = $(VBoxSDS_0_OUTDIR)/VBoxSDS.rgs $(VBoxSDS_0_OUTDIR)/VBoxSDS-icon.rc
303src-global/win/VBoxSDS.rc_CLEAN = $(VBoxSDS_0_OUTDIR)/VBoxSDS.rgs $(VBoxSDS_0_OUTDIR)/VBoxSDS-icon.rc
304
305$$(VBoxSDS_0_OUTDIR)/VBoxSDS-icon.rc: $(MAKEFILE_CURRENT) $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$(@D))
306 $(APPEND) -t $@ '1 ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
307
308$$(VBoxSDS_0_OUTDIR)/VBoxSDS.rgs: $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl $(VBOX_XIDL_FILE) | $$(dir $$(@D))
309 $(VBOX_XSLTPROC) --stringparam Application "VirtualBox System" --stringparam Module VBoxSDS -o $@ $< $(VBOX_XIDL_FILE)
310
311endif #if defined(VBOX_WITH_SDS) && "$(KBUILD_TARGET)" == "win"
312
313#
314# VBoxSVC executable
315#
316PROGRAMS += VBoxSVC
317VBoxSVC_TEMPLATE = VBOXMAINEXE
318if defined(VBOX_WITH_PRECOMPILED_HEADERS) && "$(KBUILD_TARGET)" == "win"
319 VBoxSVC_USES += vccprecomp
320 VBoxSVC_PCH_HDR := $(PATH_SUB_CURRENT)/src-server/win/precomp_vcc.h
321endif
322VBoxSVC_DEFS = \
323 VBOX_MAIN_SETTINGS_ADDONS \
324 IN_VMM_STATIC \
325 $(VBOX_MAIN_DEFS) \
326 $(if $(VBOX_WITH_VBOXSDL),VBOX_WITH_VBOXSDL,) \
327 $(if $(VBOX_WITH_HEADLESS),VBOX_WITH_HEADLESS,) \
328 $(if $(VBOX_WITH_QTGUI),VBOX_WITH_QTGUI,) \
329 $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) \
330 $(if $(VBOX_WITH_AUDIO_OSS),VBOX_WITH_AUDIO_OSS,) \
331 $(if $(VBOX_WITH_AUDIO_ALSA),VBOX_WITH_AUDIO_ALSA,) \
332 $(if $(VBOX_WITH_AUDIO_PULSE),VBOX_WITH_AUDIO_PULSE,) \
333 $(if $(VBOX_WITH_AUDIO_DEBUG),VBOX_WITH_AUDIO_DEBUG,) \
334 $(if $(VBOX_WITH_AUDIO_VALIDATIONKIT),VBOX_WITH_AUDIO_VALIDATIONKIT,) \
335 $(if $(VBOX_WITH_AUDIO_VIDEOREC),VBOX_WITH_AUDIO_VIDEOREC,) \
336 $(if $(VBOX_WITH_VIDEOREC),VBOX_WITH_VIDEOREC,) \
337 $(if $(VBOX_WITH_VRDE_AUDIO),VBOX_WITH_VRDE_AUDIO,) \
338 $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000,) \
339 $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO,) \
340 $(if $(VBOX_WITH_AHCI),VBOX_WITH_AHCI,) \
341 $(if $(VBOX_WITH_LSILOGIC),VBOX_WITH_LSILOGIC,) \
342 $(if $(VBOX_WITH_LINUX_COMPILER_H),VBOX_WITH_LINUX_COMPILER_H,) \
343 $(if $(VBOX_WITH_RESOURCE_USAGE_API),VBOX_WITH_RESOURCE_USAGE_API,) \
344 $(if $(VBOX_WITH_UNATTENDED),VBOX_WITH_UNATTENDED,) \
345 $(if $(VBOX_WITH_PDM_ASYNC_COMPLETION),VBOX_WITH_PDM_ASYNC_COMPLETION,) \
346 $(if $(VBOX_WITH_DBUS),VBOX_WITH_DBUS,) \
347 $(if $(VBOX_WITH_DBUS),$(if $(VBOX_USB_WITH_DBUS),VBOX_USB_WITH_DBUS,),) \
348 $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,) \
349 $(if $(VBOX_USB_WITH_INOTIFY),VBOX_USB_WITH_INOTIFY,) \
350 $(if $(VBOX_WITH_LIVE_MIGRATION),VBOX_WITH_LIVE_MIGRATION,) \
351 $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK,) \
352 $(if $(VBOX_WITH_VUSB),VBOX_WITH_VUSB,) \
353 $(if $(VBOX_WITH_PCI_PASSTHROUGH),VBOX_WITH_PCI_PASSTHROUGH,) \
354 $(if $(VBOX_WITH_NAT_SERVICE),VBOX_WITH_NAT_SERVICE,) \
355 $(if $(VBOX_WITH_CROGL),VBOX_WITH_CROGL,) \
356 $(if $(VBOX_WITH_CRHGSMI),VBOX_WITH_CRHGSMI,)
357ifdef VBOX_WITH_USB
358 VBoxSVC_DEFS += \
359 VBOX_WITH_USB \
360 $(if $(VBOX_WITH_EHCI),VBOX_WITH_EHCI,) \
361 $(if $(VBOX_WITH_NEW_USB_CODE_ON_DARWIN),VBOX_WITH_NEW_USB_CODE_ON_DARWIN,)
362endif
363VBoxSVC_DEFS.win += VBOX_COM_OUTOFPROC_MODULE
364VBoxSVC_DEFS.win += _WIN32_WINNT=0x0510
365# Try to load and use libhal at runtime for probing removable media
366# VBoxSVC_DEFS.linux += VBOX_USE_LIBHAL
367VBoxSVC_DEFS.solaris += VBOX_USE_LIBHAL
368
369if $(KBUILD_TARGET) != "win" && $(VBOX_GCC_VERSION_CXX) >= 40900 # gcc 4.9.x (4.8.x is causing endless RT_ELEMENT trouble)
370 VBoxSVC_CXXFLAGS = -Wunused -Wconversion
371endif
372
373VBoxSVC_INCS = \
374 include \
375 $(VBoxSVC_0_OUTDIR) \
376 $(dir $(VBOX_XML_SCHEMADEFS_H)) \
377 $(VBOX_MAIN_APIWRAPPER_INCS) \
378 . \
379 $(VBOX_GRAPHICS_INCS)
380VBoxSVC_INCS.win = \
381 $(VBoxCOM_0_OUTDIR)
382ifdef VBOX_WITH_USB
383 VBoxSVC_INCS.os2 = \
384 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
385endif
386
387VBoxSVC_LIBS += \
388 $(PATH_STAGE_LIB)/VBoxAPIWrap$(VBOX_SUFF_LIB) \
389 $(PATH_STAGE_LIB)/SSMStandalone$(VBOX_SUFF_LIB) \
390 $(LIB_DDU)
391
392VBoxSVC_SDKS = VBOX_LIBPNG VBOX_ZLIB
393VBoxSVC_LIBS.solaris = \
394 adm \
395 nsl \
396 devinfo \
397 socket \
398 $(LIB_VMM)
399
400VBoxSVC_LIBS.win += \
401 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/dnsapi.lib
402
403VBoxSVC_INTERMEDIATES = \
404 $(VBOX_MAIN_PREREQS) \
405 $(VBOX_XML_SCHEMADEFS_H) \
406 $(VBOX_AUTOGEN_EVENT_H) \
407 $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
408
409VBoxSVC_SOURCES = \
410 $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d \
411 src-all/AuthLibrary.cpp \
412 src-all/DisplayPNGUtil.cpp \
413 src-all/DisplayResampleImage.cpp \
414 src-all/DisplayUtils.cpp \
415 src-all/EventImpl.cpp \
416 src-all/Global.cpp \
417 src-all/HashedPw.cpp \
418 src-all/Logging.cpp \
419 src-all/PCIDeviceAttachmentImpl.cpp \
420 src-all/ProgressImpl.cpp \
421 src-all/QMTranslatorImpl.cpp \
422 src-all/SecretKeyStore.cpp \
423 src-all/SharedFolderImpl.cpp \
424 src-all/AutoCaller.cpp \
425 src-all/ThreadTask.cpp \
426 src-all/VirtualBoxBase.cpp \
427 src-all/VirtualBoxErrorInfoImpl.cpp \
428 $(if $(VBOX_WITH_EXTPACK),src-all/ExtPackManagerImpl.cpp src-all/ExtPackUtil.cpp,) \
429 src-server/CertificateImpl.cpp \
430 src-server/ApplianceImpl.cpp \
431 src-server/ApplianceImplExport.cpp \
432 src-server/ApplianceImplImport.cpp \
433 src-server/ApplianceImplIO.cpp \
434 src-server/AudioAdapterImpl.cpp \
435 src-server/BandwidthControlImpl.cpp \
436 src-server/BandwidthGroupImpl.cpp \
437 src-server/BIOSSettingsImpl.cpp \
438 src-server/ClientWatcher.cpp \
439 src-server/ClientToken.cpp \
440 src-server/DHCPServerImpl.cpp \
441 src-server/NetworkServiceRunner.cpp \
442 src-server/NATNetworkImpl.cpp \
443 src-server/GuestOSTypeImpl.cpp \
444 src-server/HostDnsService.cpp \
445 src-server/HostImpl.cpp \
446 src-server/HostNetworkInterfaceImpl.cpp \
447 src-server/HostPower.cpp \
448 src-server/HostVideoInputDeviceImpl.cpp \
449 src-server/MachineImpl.cpp \
450 src-server/MachineImplCloneVM.cpp \
451 src-server/Matching.cpp \
452 src-server/MediumAttachmentImpl.cpp \
453 src-server/MediumFormatImpl.cpp \
454 src-server/MediumImpl.cpp \
455 src-server/MediumLock.cpp \
456 src-server/NATEngineImpl.cpp \
457 src-server/NetworkAdapterImpl.cpp \
458 src-server/ParallelPortImpl.cpp \
459 src-server/ProgressProxyImpl.cpp \
460 src-server/SerialPortImpl.cpp \
461 src-server/SnapshotImpl.cpp \
462 src-server/StorageControllerImpl.cpp \
463 src-server/SystemPropertiesImpl.cpp \
464 src-server/TokenImpl.cpp \
465 src-server/$(if $(VBOX_WITH_UNATTENDED),UnattendedImpl.cpp,) \
466 src-server/$(if $(VBOX_WITH_UNATTENDED),UnattendedInstaller.cpp,) \
467 src-server/$(if $(VBOX_WITH_UNATTENDED),UnattendedScript.cpp,) \
468 src-server/$(if $(VBOX_WITH_UNATTENDED),UnattendedHelper.cpp,) \
469 src-server/USBControllerImpl.cpp \
470 src-server/USBDeviceFiltersImpl.cpp \
471 src-server/VFSExplorerImpl.cpp \
472 src-server/VirtualBoxImpl.cpp \
473 src-server/VRDEServerImpl.cpp \
474 src-server/generic/AutostartDb-generic.cpp \
475 xml/ovfreader.cpp \
476 xml/Settings.cpp \
477 $(VBOX_XML_SCHEMADEFS_CPP) \
478 $(VBOX_AUTOGEN_EVENT_CPP) \
479 $(if $(VBOX_WITH_XPCOM),src-server/xpcom/server.cpp,)
480
481ifn1of ($(KBUILD_TARGET), win darwin)
482 VBoxSVC_SOURCES += $(PATH_ROOT)/src/VBox/Devices/Network/slirp/resolv_conf_parser.c
483# $(PATH_ROOT)/src/VBox/Devices/Network/slirp/resolv_conf_parser.c_DEFS += LOG_GROUP=LOG_GROUP_MAIN
484endif
485
486VBoxSVC_SOURCES.darwin = \
487 src-server/darwin/iokit.cpp \
488 src-server/darwin/HostPowerDarwin.cpp \
489 src-server/darwin/HostDnsServiceDarwin.cpp
490
491VBoxSVC_SOURCES.win = \
492 src-server/win/svcmain.cpp \
493 src-server/win/svchlp.cpp \
494 src-server/win/HostPowerWin.cpp \
495 src-server/win/VBoxSVC.rc \
496 src-server/win/HostDnsServiceWin.cpp
497
498VBoxSVC_SOURCES.linux = \
499 src-server/linux/HostHardwareLinux.cpp \
500 src-server/linux/HostDnsServiceLinux.cpp \
501 $(if $(VBOX_WITH_DBUS),src-server/linux/HostPowerLinux.cpp) \
502 src-server/HostDnsServiceResolvConf.cpp
503
504VBoxSVC_SOURCES.solaris = \
505 src-server/linux/vbox-libhal.cpp \
506 src-server/solaris/DynLoadLibSolaris.cpp \
507 src-server/HostDnsServiceResolvConf.cpp
508
509VBoxSVC_SOURCES.os2 = \
510 src-server/HostDnsServiceResolvConf.cpp
511
512VBoxSVC_SOURCES.freebsd = \
513 src-server/freebsd/HostHardwareFreeBSD.cpp \
514 src-server/HostDnsServiceResolvConf.cpp
515
516
517ifdef VBOX_WITH_USB
518 ifdef VBOX_WITH_SYSFS_BY_DEFAULT
519 src-server/linux/USBProxyBackendLinux.cpp_DEFS += VBOX_WITH_SYSFS_BY_DEFAULT
520 endif
521 VBoxSVC_SOURCES += \
522 src-server/USBDeviceFilterImpl.cpp \
523 src-server/USBProxyService.cpp \
524 src-server/USBProxyBackend.cpp \
525 src-server/generic/USBProxyBackendUsbIp.cpp \
526 src-server/HostUSBDeviceImpl.cpp
527 VBoxSVC_SOURCES.darwin += src-server/darwin/USBProxyBackendDarwin.cpp
528 VBoxSVC_SOURCES.linux += src-server/linux/USBProxyBackendLinux.cpp
529 VBoxSVC_SOURCES.linux += src-server/linux/USBGetDevices.cpp
530 VBoxSVC_SOURCES.os2 += src-server/os2/USBProxyBackendOs2.cpp
531 VBoxSVC_SOURCES.solaris += src-server/solaris/USBProxyBackendSolaris.cpp
532 VBoxSVC_SOURCES.win += src-server/win/USBProxyBackendWindows.cpp
533 VBoxSVC_SOURCES.freebsd += src-server/freebsd/USBProxyBackendFreeBSD.cpp
534endif
535
536ifdef VBOX_WITH_NETFLT
537 VBoxSVC_LIBS.win += \
538 $(PATH_STAGE_LIB)/WinNetConfig$(VBOX_SUFF_LIB) \
539 $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB) \
540 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/newdev.lib \
541 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/comsupp.lib \
542 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/WbemUuid.Lib
543endif
544VBoxSVC_LDFLAGS.darwin = -framework IOKit -framework SystemConfiguration
545
546ifdef VBOX_WITH_CROGL
547 VBoxSVC_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
548 VBoxSVC_LDFLAGS.darwin += -framework OpenGL
549endif
550
551ifeq ($(KBUILD_TYPE),debug)
552 VBoxSVC_LDFLAGS.linux += -rdynamic # for backtrace_symbols()
553endif
554
555ifdef VBOX_WITH_RESOURCE_USAGE_API
556 VBoxSVC_SOURCES += \
557 src-server/PerformanceImpl.cpp \
558 src-server/Performance.cpp
559 VBoxSVC_SOURCES.darwin += src-server/darwin/PerformanceDarwin.cpp
560 VBoxSVC_SOURCES.freebsd += src-server/freebsd/PerformanceFreeBSD.cpp
561 VBoxSVC_SOURCES.linux += src-server/linux/PerformanceLinux.cpp
562 VBoxSVC_SOURCES.os2 += src-server/os2/PerformanceOs2.cpp
563 VBoxSVC_SOURCES.solaris += src-server/solaris/PerformanceSolaris.cpp
564 VBoxSVC_SOURCES.win += src-server/win/PerformanceWin.cpp
565 VBoxSVC_LDFLAGS.darwin += -lproc
566 VBoxSVC_LDFLAGS.solaris += -lkstat -lnvpair
567 VBoxSVC_LDFLAGS.win += psapi.lib powrprof.lib
568endif
569
570ifdef VBOX_WITH_HOSTNETIF_API
571 VBoxSVC_SOURCES.win += src-server/win/NetIf-win.cpp
572 VBoxSVC_SOURCES.linux += src-server/linux/NetIf-linux.cpp
573 VBoxSVC_SOURCES.os2 += src-server/os2/NetIf-os2.cpp
574 VBoxSVC_SOURCES.darwin += src-server/darwin/NetIf-darwin.cpp
575 VBoxSVC_SOURCES.solaris += src-server/solaris/NetIf-solaris.cpp
576 VBoxSVC_SOURCES.freebsd += src-server/freebsd/NetIf-freebsd.cpp
577 VBoxSVC_DEFS += VBOX_WITH_HOSTNETIF_API
578 if1of ($(KBUILD_TARGET), linux darwin solaris freebsd)
579 VBoxSVC_SOURCES += src-server/generic/NetIf-generic.cpp
580 endif
581endif
582
583ifdef VBOX_WITH_MAIN_USB_ID_DATABASE # Generate a database of USB vendor IDs and device IDs.
584 VBoxSVC_DEFS += VBOX_WITH_MAIN_USB_ID_DATABASE
585 VBoxSVC_SOURCES += $(VBoxSVC_0_OUTDIR)/USBIdDatabase.cpp
586 VBoxSVC_CLEAN += $(VBoxSVC_0_OUTDIR)/USBIdDatabase.cpp
587
588 $$(VBoxSVC_0_OUTDIR)/USBIdDatabase.cpp: $$(USBIdDatabaseGenerator_1_TARGET) \
589 $(PATH_SUB_CURRENT)/src-server/usb.ids $(PATH_SUB_CURRENT)/src-server/custom.ids | $$(dir $$@)
590 $(call MSG_GENERATE,USBIdDatabase,$@,$<)
591 $(QUIET)$(USBIdDatabaseGenerator_1_TARGET) -o "$@" $(filter %.ids,$^)
592
593 BLDPROGS += USBIdDatabaseGenerator
594 USBIdDatabaseGenerator_TEMPLATE = VBoxAdvBldProg
595 USBIdDatabaseGenerator_SOURCES = src-server/USBIdDatabaseGenerator.cpp
596else
597 VBoxSVC_SOURCES += src-server/USBIdDatabaseStub.cpp
598endif
599
600src-server/win/VBoxSVC.rc_INCS = $(VBoxSVC_0_OUTDIR)
601src-server/win/VBoxSVC.rc_DEPS = $(VBoxSVC_0_OUTDIR)/VBoxSVC-icon.rc
602src-server/win/VBoxSVC.rc_CLEAN = $(VBoxSVC_0_OUTDIR)/VBoxSVC-icon.rc
603$$(VBoxSVC_0_OUTDIR)/VBoxSVC-icon.rc: $(MAKEFILE_CURRENT) $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$(@D))
604 $(APPEND) -t $@ '1 ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
605
606ifndef VBOX_WITH_MIDL_PROXY_STUB
607src-server/win/VBoxSVC.rc_DEPS += $(VBoxSVC_0_OUTDIR)/VBoxSVC.rgs
608src-server/win/VBoxSVC.rc_CLEAN += $(VBoxSVC_0_OUTDIR)/VBoxSVC.rgs
609$$(VBoxSVC_0_OUTDIR)/VBoxSVC.rgs: $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl $(VBOX_XIDL_FILE) | $$(dir $$(@D))
610 $(VBOX_XSLTPROC) --stringparam Application VirtualBox --stringparam Module VBoxSVC -o $@ $< $(VBOX_XIDL_FILE)
611endif
612
613## @todo r=klaus unfortunately we don't have xmllint everywhere, would be
614# good to check the validity for every VirtualBox.xidl change.
615#$(VBOX_XIDL_FILE).validated.ts: $(VBOX_XIDL_FILE_SRC)
616# xmllint --dtdvalid $(VBOX_PATH_MAIN_SRC)/idl/VirtualBox.dtd --noout $<
617# $(QUIET)$(CP) --changed -fv $< $(VBOX_XIDL_FILE).validated.ts
618#
619#OTHERS += $(VBOX_XIDL_FILE).validated.ts
620#OTHER_CLEAN += $(VBOX_XIDL_FILE).validated.ts
621
622testvalidxidl: $(VBOX_XIDL_FILE_SRC)
623 xmllint --dtdvalid $(VBOX_PATH_MAIN_SRC)/idl/VirtualBox.dtd --noout $<
624
625
626#
627# Embed some constraints from XML Schema file into VBoxSVC
628#
629VBOX_XML_SCHEMA = $(VBOX_PATH_MAIN_SRC)/xml/VirtualBox-settings.xsd
630
631$(VBOX_XML_SCHEMADEFS_H): $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA) | $$(dir $$@)
632 $(call MSG_GENERATE,SchemaDefs,$@,$<)
633 $(QUIET)$(VBOX_XSLTPROC) --stringparam mode declare -o $@ $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA)
634
635$(VBOX_XML_SCHEMADEFS_CPP): $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA) | $$(dir $$@)
636 $(call MSG_GENERATE,SchemaDefs,$@,$<)
637 $(QUIET)$(VBOX_XSLTPROC) --stringparam mode define -o $@ $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA)
638
639testvalidsettings: $(VBOX_XML_SCHEMA)
640 xmllint --schema $< --noout $(HOME)/.VirtualBox/VirtualBox.xml
641 xmllint --schema $< --noout $(HOME)/.VirtualBox/Machines/*/*.xml
642 xmllint --schema $< --noout $(HOME)/.VirtualBox/Machines/*/*.vbox
643 xmllint --schema $< --noout $(HOME)/VirtualBox\ VMs/*/*.vbox
644
645OTHER_CLEAN += $(VBOX_XML_SCHEMADEFS_H) $(VBOX_XML_SCHEMADEFS_CPP)
646
647
648#
649# Generate some event stuff for VBoxSVC and VBoxC.
650#
651$(VBOX_AUTOGEN_EVENT_H): $(VBOX_PATH_MAIN_SRC)/idl/comimpl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
652 $(call MSG_TOOL,xsltproc,autogen events,$<,$@)
653 $(QUIET)$(VBOX_XSLTPROC) --stringparam G_kind VBoxEventHeader -o $@ $< $(VBOX_XIDL_FILE)
654
655$(VBOX_AUTOGEN_EVENT_CPP): $(VBOX_PATH_MAIN_SRC)/idl/comimpl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
656 $(call MSG_TOOL,xsltproc,autogen events,$<,$@)
657 $(QUIET)$(VBOX_XSLTPROC) --stringparam G_kind VBoxEvent -o $@ $< $(VBOX_XIDL_FILE)
658
659OTHER_CLEAN += $(VBOX_AUTOGEN_EVENT_H) $(VBOX_AUTOGEN_EVENT_CPP)
660
661ifdef VBOX_WITH_XPCOM
662#
663# VBoxSVCM - VBoxSVC wrapper module
664#
665DLLS += VBoxSVCM
666VBoxSVCM_TEMPLATE = VBOXMAINCOMP
667VBoxSVCM_DEFS = IN_RING3 $(VBOX_MAIN_DEFS)
668ifdef VBOX_WITH_HARDENING
669 VBoxSVCM_DEFS += VBOX_WITH_HARDENING
670endif
671VBoxSVCM_INCS = \
672 include \
673 $(VBoxC_0_OUTDIR) \
674 .
675VBoxSVCM_INTERMEDIATES = $(VBOX_MAIN_PREREQS)
676VBoxSVCM_SOURCES = \
677 src-server/xpcom/server_module.cpp
678VBoxSVCM_LDFLAGS.darwin = \
679 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/components/VBoxSVCM.dylib \
680 -exported_symbols_list $(VBoxSVCM_0_OUTDIR)/VBoxSVCM.def
681 ifeq ($(KBUILD_TARGET),darwin)
682VBoxSVCM_ORDERDEPS += $(VBoxSVCM_0_OUTDIR)/VBoxSVCM.def
683VBoxSVCM_CLEAN += $(VBoxSVCM_0_OUTDIR)/VBoxSVCM.def
684$$(VBoxSVCM_0_OUTDIR)/VBoxSVCM.def:
685 $(RM) -f $@
686 $(APPEND) $@ _NSGetModule
687 endif
688VBoxSVCM_INTERMEDIATES += $(VBOX_IDL_HEADER.XPCOM)
689
690 # 32-bit version of the module.
691 ifdef VBOX_WITH_32_ON_64_MAIN_API
692DLLS += VBoxSVCM-x86
693VBoxSVCM-x86_TEMPLATE = VBoxMainComp-x86
694VBoxSVCM-x86_EXTENDS = VBoxSVCM
695 endif
696
697endif # VBOX_WITH_XPCOM
698
699
700#
701# VBoxC module
702#
703DLLS += VBoxC
704VBoxC_TEMPLATE = VBOXMAINCOMP
705if defined(VBOX_WITH_PRECOMPILED_HEADERS) && "$(KBUILD_TARGET)" == "win"
706 VBoxC_USES = vccprecomp
707 VBoxC_PCH_HDR := $(PATH_SUB_CURRENT)/src-client/win/precomp_vcc.h
708endif
709VBoxC_DEFS = \
710 IN_RING3 \
711 $(VBOX_MAIN_DEFS) \
712 VBOX_COM_INPROC \
713 $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) \
714 $(if $(VBOX_WITH_AUDIO_OSS),VBOX_WITH_AUDIO_OSS,) \
715 $(if $(VBOX_WITH_AUDIO_ALSA),VBOX_WITH_AUDIO_ALSA,) \
716 $(if $(VBOX_WITH_AUDIO_PULSE),VBOX_WITH_AUDIO_PULSE,) \
717 $(if $(VBOX_WITH_AUDIO_DEBUG),VBOX_WITH_AUDIO_DEBUG,) \
718 $(if $(VBOX_WITH_AUDIO_VALIDATIONKIT),VBOX_WITH_AUDIO_VALIDATIONKIT,) \
719 $(if $(VBOX_WITH_AUDIO_VIDEOREC),VBOX_WITH_AUDIO_VIDEOREC,) \
720 $(if $(VBOX_WITH_VIDEOREC),VBOX_WITH_VIDEOREC,) \
721 $(if $(VBOX_WITH_VRDE_AUDIO),VBOX_WITH_VRDE_AUDIO,) \
722 $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000,) \
723 $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO,) \
724 $(if $(VBOX_WITH_EFI),VBOX_WITH_EFI,) \
725 $(if $(VBOX_WITH_PDM_ASYNC_COMPLETION),VBOX_WITH_PDM_ASYNC_COMPLETION,) \
726 $(if $(VBOX_WITH_LIVE_MIGRATION),VBOX_WITH_LIVE_MIGRATION,) \
727 $(if $(VBOX_WITH_VUSB),VBOX_WITH_VUSB,) \
728 $(if $(VBOX_WITH_HGSMI),VBOX_WITH_HGSMI,) \
729 $(if $(VBOX_WITH_VIDEOHWACCEL),VBOX_WITH_VIDEOHWACCEL,) \
730 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP,) \
731 $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,) \
732 $(if $(VBOX_WITH_USB),VBOX_WITH_USB,) \
733 $(if-expr defined(VBOX_WITH_EHCI) && defined(VBOX_WITH_USB),VBOX_WITH_EHCI,) \
734 $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK,) \
735 $(if $(VBOX_WITH_PCI_PASSTHROUGH),VBOX_WITH_PCI_PASSTHROUGH,) \
736 $(if $(VBOX_WITH_VRDEAUTH_IN_VBOXSVC),VBOX_WITH_VRDEAUTH_IN_VBOXSVC,) \
737 $(if $(VBOX_WITH_SDS),VBOX_WITH_SDS,)
738ifdef VBOX_WITH_CRHGSMI
739 VBoxC_DEFS += VBOX_WITH_CRHGSMI
740endif
741ifdef VBOX_WITH_NETSHAPER
742 VBoxC_DEFS += VBOX_WITH_NETSHAPER
743endif
744VBoxC_DEFS.darwin.x86 = VBOX_WITH_2X_4GB_ADDR_SPACE
745VBoxC_DEFS.win.x86 += _WIN32_WINNT=0x0500
746VBoxC_DEFS.win.amd64 += _WIN32_WINNT=0x0510
747
748if $(KBUILD_TARGET) != "win" && $(VBOX_GCC_VERSION_CXX) >= 40900 # gcc 4.9.x (4.8.x is causing endless RT_ELEMENT trouble)
749# VBoxC_CXXFLAGS = -Wunused -Wconversion
750endif
751
752VBoxC_SDKS = VBOX_LIBPNG VBOX_ZLIB
753
754ifdef VBOX_WITH_VIDEOREC
755 ifdef VBOX_WITH_LIBVPX
756 VBoxC_SDKS += VBOX_VPX
757 VBoxC_DEFS += VBOX_WITH_LIBVPX
758 VBoxC_SOURCES += \
759 src-client/VideoRec.cpp
760 else
761 $(error "VBox: No alternative for VPX when using video capturing support yet")
762 endif
763endif
764
765ifdef VBOX_WITH_AUDIO_VIDEOREC
766 ifdef VBOX_WITH_LIBOPUS
767 VBoxC_SDKS += VBOX_OPUS
768 VBoxC_DEFS += VBOX_WITH_LIBOPUS
769 else
770 $(error "VBox: No alternative for Opus when using audio support for video capturing yet")
771 endif
772endif
773
774ifdef VBOX_WITH_OPENSSL_FIPS
775 VBoxC_SDKS += VBOX_OPENSSL2
776endif
777
778VBoxC_INCS = \
779 include \
780 $(VBoxC_0_OUTDIR) \
781 $(VBOX_MAIN_APIWRAPPER_INCS) \
782 $(dir $(VBOX_XML_SCHEMADEFS_H)) \
783 $(VBOX_MAIN_APIWRAPPER_DIR)/dtrace \
784 $(VBOX_GRAPHICS_INCS)
785VBoxC_INCS.win = \
786 $(VBoxCOM_0_OUTDIR) \
787 .
788
789VBoxC_LDFLAGS.darwin = \
790 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/components/VBoxC.dylib \
791 -exported_symbols_list $(VBoxC_0_OUTDIR)/VBoxC.def \
792 -framework IOKit
793VBoxC_LDFLAGS.win += /MANIFEST \
794 /DELAYLOAD:user32.dll
795
796
797VBoxC_LIBS += \
798 $(PATH_STAGE_LIB)/VBoxAPIWrap$(VBOX_SUFF_LIB) \
799 $(if-expr "$(LIB_VMM)" == "$(VBOX_LIB_VMM_LAZY)",$(LIB_REM),) \
800 $(VBOX_LIB_VMM_LAZY)
801VBoxC_LIBS.win += \
802 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/psapi.lib \
803 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib
804ifdef VBOX_WITH_NETFLT
805 VBoxC_LIBS.win += \
806 $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB) \
807 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/newdev.lib \
808 $(PATH_STAGE_LIB)/WinNetConfig$(VBOX_SUFF_LIB) \
809 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/comsupp.lib \
810 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/WbemUuid.Lib
811 VBoxC_LDFLAGS.win += \
812 /DELAYLOAD:newdev.dll \
813 /DELAYLOAD:setupapi.dll \
814 /DELAYLOAD:iphlpapi.dll
815endif
816
817ifdef VBOX_WITH_CROGL
818 VBoxC_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
819 VBoxC_LDFLAGS.darwin += -framework OpenGL
820endif
821
822ifdef VBOX_WITH_DRAG_AND_DROP
823 VBoxC_LIBS += $(PATH_STAGE_LIB)/VBoxDnDHostR3Lib$(VBOX_SUFF_LIB)
824endif
825
826VBoxC_INTERMEDIATES = \
827 $(VBOX_MAIN_PREREQS) \
828 $(VBOX_XML_SCHEMADEFS_H) \
829 $(VBOX_AUTOGEN_EVENT_H) \
830 $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
831
832VBoxC_SOURCES += \
833 $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d \
834 src-all/DisplayPNGUtil.cpp \
835 src-all/DisplayResampleImage.cpp \
836 src-all/DisplayUtils.cpp \
837 src-all/EventImpl.cpp \
838 src-all/Global.cpp \
839 src-all/HashedPw.cpp \
840 src-all/Logging.cpp \
841 src-all/PCIDeviceAttachmentImpl.cpp \
842 src-all/ProgressImpl.cpp \
843 src-all/SecretKeyStore.cpp \
844 src-all/SharedFolderImpl.cpp \
845 src-all/AutoCaller.cpp \
846 src-all/ThreadTask.cpp \
847 src-all/VirtualBoxBase.cpp \
848 src-all/VirtualBoxErrorInfoImpl.cpp \
849 $(if $(VBOX_WITH_EXTPACK),src-all/ExtPackManagerImpl.cpp src-all/ExtPackUtil.cpp,) \
850 src-client/UsbWebcamInterface.cpp \
851 $(if $(VBOX_WITH_USB_CARDREADER),src-client/UsbCardReader.cpp,) \
852 src-client/Nvram.cpp \
853 src-client/AdditionsFacilityImpl.cpp \
854 src-client/BusAssignmentManager.cpp \
855 $(if $(VBOX_WITH_PCI_PASSTHROUGH),src-client/PCIRawDevImpl.cpp,) \
856 src-client/ClientTokenHolder.cpp \
857 src-client/ConsoleImpl.cpp \
858 src-client/ConsoleImpl2.cpp \
859 src-client/ConsoleImplTeleporter.cpp \
860 src-client/ConsoleVRDPServer.cpp \
861 src-client/DisplayImpl.cpp \
862 src-client/DisplayImplLegacy.cpp \
863 src-client/DisplaySourceBitmapImpl.cpp \
864 src-client/EbmlWriter.cpp \
865 src-client/EmulatedUSBImpl.cpp \
866 src-client/GuestImpl.cpp \
867 src-client/GuestCtrlImpl.cpp \
868 src-client/KeyboardImpl.cpp \
869 src-client/MachineDebuggerImpl.cpp \
870 src-client/MouseImpl.cpp \
871 src-client/RemoteUSBDeviceImpl.cpp \
872 src-client/SessionImpl.cpp \
873 src-client/USBDeviceImpl.cpp \
874 src-client/VBoxDriversRegister.cpp \
875 src-client/VirtualBoxClientImpl.cpp \
876 src-client/VMMDevInterface.cpp \
877 $(VBOX_AUTOGEN_EVENT_CPP) \
878 $(VBOX_XML_SCHEMADEFS_CPP)
879
880# Audio bits.
881VBoxC_SOURCES += \
882 ../Devices/Audio/AudioMixBuffer.cpp \
883 ../Devices/Audio/DrvAudioCommon.cpp \
884 $(if $(VBOX_WITH_VRDE_AUDIO),src-client/DrvAudioVRDE.cpp,) \
885 $(if $(VBOX_WITH_AUDIO_VIDEOREC),src-client/DrvAudioVideoRec.cpp,)
886
887VBoxC_SOURCES.win = \
888 src-client/win/dllmain.cpp \
889 src-client/win/VBoxC.def \
890 src-client/win/VBoxC.rc
891ifdef VBOX_WITH_GUEST_CONTROL
892 VBoxC_SOURCES += \
893 src-client/GuestSessionImplTasks.cpp \
894 src-client/GuestCtrlPrivate.cpp \
895 src-client/GuestDirectoryImpl.cpp \
896 src-client/GuestFileImpl.cpp \
897 src-client/GuestFsObjInfoImpl.cpp \
898 src-client/GuestProcessImpl.cpp \
899 src-client/GuestSessionImpl.cpp
900endif
901ifdef VBOX_WITH_DRAG_AND_DROP
902 VBoxC_SOURCES += \
903 src-client/GuestDnDPrivate.cpp \
904 src-client/GuestDnDSourceImpl.cpp \
905 src-client/GuestDnDTargetImpl.cpp
906endif
907ifdef VBOX_WITH_XPCOM
908 VBoxC_SOURCES += \
909 src-client/xpcom/module.cpp
910endif
911ifdef VBOX_WITH_HGCM
912 VBoxC_SOURCES += \
913 src-client/HGCMObjects.cpp \
914 src-client/HGCMThread.cpp \
915 src-client/HGCM.cpp
916endif
917ifdef VBOX_WITH_USB
918 VBoxC_SOURCES += \
919 src-client/RemoteUSBBackend.cpp
920endif
921ifndef VBOX_WITH_VRDEAUTH_IN_VBOXSVC
922 VBoxC_SOURCES += \
923 src-all/AuthLibrary.cpp
924endif
925
926ifeq ($(KBUILD_TARGET),darwin)
927VBoxC_ORDERDEPS += $(VBoxC_0_OUTDIR)/VBoxC.def
928VBoxC_CLEAN += $(VBoxC_0_OUTDIR)/VBoxC.def
929$$(VBoxC_0_OUTDIR)/VBoxC.def: $(MAKEFILE_CURRENT)
930 $(RM) -f $@
931 $(APPEND) $@ _NSGetModule
932 $(APPEND) $@ _VBoxDriversRegister
933endif
934
935src-client/ConsoleImpl.cpp_DEFS = \
936 $(if $(VBOX_WITH_OPENSSL_FIPS), VBOX_OPENSSL_FIPS,)
937
938
939src-client/win/VBoxC.rc_DEPS = $(VBoxC_0_OUTDIR)/VBoxC.rgs $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb
940VBoxC_CLEAN.win += $(VBoxC_0_OUTDIR)/VBoxC.rgs
941
942$$(VBoxC_0_OUTDIR)/VBoxC.rgs: $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
943 $(VBOX_XSLTPROC) --stringparam Application VirtualBox --stringparam Module VBoxC -o $@ $< $(VBOX_XIDL_FILE)
944
945ifdef VBOX_WITH_32_ON_64_MAIN_API
946 #
947 # 32-bit VBox API Client In-Process module.
948 #
949 # This is currently just a 32-bit version of VBoxC. It might be desirable to
950 # split up VBoxC into a simple client and a VM client part later, in which
951 # case this module will be a simple client.
952 #
953 # Note! One important thing is that the typelib for this DLL must be build
954 # with the /env win32 switch and the VBoxC typelib with /env amd64, if
955 # not they will overwrite each others typelib module entry.
956 #
957 DLLS += VBoxClient-x86
958 VBoxClient-x86_TEMPLATE = VBoxMainComp-x86
959 VBoxClient-x86_EXTENDS = VBoxC
960if defined(VBOX_WITH_PRECOMPILED_HEADERS) && "$(KBUILD_TARGET)" == "win" ## @todo fix inheritance
961 VBoxClient-x86_USES = vccprecomp
962 VBoxClient-x86_PCH_HDR := $(PATH_SUB_CURRENT)/src-client/win/precomp_vcc.h
963endif
964 VBoxClient-x86_DEFS = VBOX_COM_INPROC_API_CLIENT $(VBoxC_DEFS)
965 VBoxClient-x86_INCS.win = \
966 $(VBoxClient-x86_0_OUTDIR) \
967 $(VBoxCOM-x86_0_OUTDIR) \
968 $(VBoxC_INCS.win)
969 VBoxClient-x86_SOURCES = \
970 src-all/EventImpl.cpp \
971 src-all/Global.cpp \
972 src-all/AutoCaller.cpp \
973 src-all/ThreadTask.cpp \
974 src-all/VirtualBoxBase.cpp \
975 src-all/VirtualBoxErrorInfoImpl.cpp \
976 src-client/ClientTokenHolder.cpp \
977 src-client/SessionImpl.cpp \
978 src-client/VirtualBoxClientImpl.cpp \
979 $(VBOX_AUTOGEN_EVENT_CPP) \
980 $(VBOX_XML_SCHEMADEFS_CPP)
981 VBoxClient-x86_SOURCES.win = \
982 src-client/win/dllmain.cpp \
983 src-client/win/VBoxClient-x86.def \
984 src-client/win/VBoxClient-x86.rc
985 ifdef VBOX_WITH_XPCOM
986 VBoxClient-x86_SOURCES += \
987 src-client/xpcom/module.cpp
988 endif
989 VBoxClient-x86_LIBS = \
990 $(PATH_STAGE_LIB)/VBoxAPIWrap-x86$(VBOX_SUFF_LIB)
991 VBoxClient-x86_LIBS.win = $(NO_SUCH_VARIABLE)
992 VBoxClient-x86_LIBS.win.x86 = $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/delayimp.lib
993 VBoxClient-x86_CLEAN.win += $(VBoxClient-x86_0_OUTDIR)/VBoxClient-x86.rgs
994 src-client/win/VBoxClient-x86.rc_DEPS = \
995 $(VBoxClient-x86_0_OUTDIR)/VBoxClient-x86.rgs \
996 $(VBoxCOM-x86_0_OUTDIR)/VirtualBox-x86.tlb
997
998 $$(VBoxClient-x86_0_OUTDIR)/VBoxClient-x86.rgs: \
999 $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl \
1000 $(VBOX_XIDL_FILE) | $$(dir $$@)
1001 $(VBOX_XSLTPROC) --stringparam Application VirtualBox --stringparam Module VBoxC -o $@ $< $(VBOX_XIDL_FILE)
1002
1003endif
1004
1005
1006#
1007# VBoxCOM - COM Abstraction Layer library
1008#
1009LIBRARIES += VBoxCOM
1010VBoxCOM_TEMPLATE = VBoxMainLib
1011VBoxCOM_INTERMEDIATES = $(VBOX_MAIN_PREREQS) \
1012 $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
1013VBoxCOM_SOURCES = \
1014 glue/com.cpp \
1015 glue/initterm.cpp \
1016 glue/string.cpp \
1017 glue/AutoLock.cpp \
1018 glue/EventQueue.cpp \
1019 glue/NativeEventQueue.cpp \
1020 glue/ErrorInfo.cpp \
1021 glue/errorprint.cpp
1022VBoxCOM_INCS += $(VBOX_MAIN_APIWRAPPER_INCS) \
1023 include
1024ifeq ($(KBUILD_TARGET),win)
1025 ifdef VBOX_WITH_MIDL_PROXY_STUB
1026 VBoxCOM_DEFS.win = VBOX_WITH_AUTO_COM_REG_UPDATE
1027 endif
1028 VBoxCOM_DEFS.x86 = _WIN32_WINNT=0x0500
1029 VBoxCOM_DEFS.amd64 = _WIN32_WINNT=0x0510
1030 VBoxCOM_SOURCES += \
1031 $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c
1032 VBoxCOM_CLEAN = \
1033 $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c \
1034 $(VBoxCOM_0_OUTDIR)/VirtualBox_p.c \
1035 $(VBoxCOM_0_OUTDIR)/dlldata.c \
1036 $(VBoxCOM_0_OUTDIR)/VirtualBox.h \
1037 $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb
1038 VBoxCOM_CLEAN += \
1039 $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_i.c \
1040 $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_p.c \
1041 $(VBoxCOM_0_OUTDIR)/legacy/dlldata.c \
1042 $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.h \
1043 $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.tlb
1044 VBoxCOM_BLDDIRS = $(VBoxCOM_0_OUTDIR)/legacy/
1045else # !win
1046 VBoxCOM_SOURCES += \
1047 $(VBoxCOM_0_OUTDIR)/VirtualBox_XPCOM_i.c \
1048 glue/xpcom/helpers.cpp
1049endif # !win
1050
1051glue/com.cpp_DEFS = \
1052 KBUILD_TYPE=\"$(KBUILD_TYPE)\"
1053
1054# 32-bit version of VBoxCOM.
1055ifdef VBOX_WITH_32_ON_64_MAIN_API
1056 LIBRARIES += VBoxCOM-x86
1057 VBoxCOM-x86_TEMPLATE = VBoxMainLib-x86
1058 VBoxCOM-x86_EXTENDS = VBoxCOM
1059 ifeq ($(KBUILD_TARGET),win)
1060 VBoxCOM-x86_CLEAN = \
1061 $(VBoxCOM-x86_0_OUTDIR)/VirtualBox_i.c \
1062 $(VBoxCOM-x86_0_OUTDIR)/VirtualBox_p.c \
1063 $(VBoxCOM-x86_0_OUTDIR)/dlldata.c \
1064 $(VBoxCOM-x86_0_OUTDIR)/VirtualBox.h \
1065 $(VBoxCOM-x86_0_OUTDIR)/VirtualBox.tlb
1066 endif
1067endif
1068
1069# -MD version for the GUI in -MDd builds.
1070ifeq ($(KBUILD_TARGET).$(VBOX_VCC_CRT_TYPE),win.d)
1071 LIBRARIES += VBoxCOM-GUI
1072 ifndef VBOX_WITH_QTGUI_V5
1073 USES += qt4
1074 else # VBOX_WITH_QTGUI_V5
1075 USES += qt5
1076 endif # VBOX_WITH_QTGUI_V5
1077 VBoxCOM-GUI_TEMPLATE = VBOXQTGUI$(if-expr defined(VBOX_WITH_HARDENING),,EXE)
1078 VBoxCOM-GUI_EXTENDS = VBoxCOM
1079endif
1080
1081
1082
1083#
1084# The VBoxExtPackHelperApp.
1085#
1086ifdef VBOX_WITH_EXTPACK
1087 PROGRAMS += VBoxExtPackHelperApp
1088 VBoxExtPackHelperApp_TEMPLATE = VBoxR3SetUidToRoot
1089 VBoxExtPackHelperApp_LDFLAGS.darwin = -framework Security
1090 VBoxExtPackHelperApp_LDFLAGS.win = /SUBSYSTEM:windows
1091 VBoxExtPackHelperApp_SOURCES = \
1092 src-helper-apps/VBoxExtPackHelperApp.cpp \
1093 src-all/ExtPackUtil.cpp
1094 VBoxExtPackHelperApp_SOURCES.win = \
1095 src-helper-apps/VBoxExtPackHelperApp.rc
1096 VBoxExtPackHelperApp_LIBS = \
1097 $(LIB_RUNTIME)
1098endif # VBOX_WITH_EXTPACK
1099
1100#
1101# VolInfo
1102#
1103ifdef VBOX_WITH_DEVMAPPER
1104 PROGRAMS.linux += VBoxVolInfo
1105 VBoxVolInfo_TEMPLATE = VBoxR3SetUidToRoot
1106 VBoxVolInfo_SOURCES = src-helper-apps/VBoxVolInfo.cpp
1107 VBoxVolInfo_LIBS = devmapper
1108endif
1109
1110endif # !VBOX_ONLY_SDK (the ifndef is far above)
1111
1112
1113#
1114# Installs com related thing(s) to bin.
1115#
1116INSTALLS.win += VBoxMain-com-inst
1117VBoxMain-com-inst_INST = $(INST_BIN)
1118VBoxMain-com-inst_MODE = a+r,u+w
1119VBoxMain-com-inst_SOURCES = src-all/win/comregister.cmd
1120
1121
1122if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "linux"
1123 #
1124 # Installs linux/hardening related things to components.
1125 #
1126 INSTALLS.linux += VBoxMain-hardening-inst
1127 VBoxMain-hardening-inst_INST = $(INST_BIN)components/
1128 VBoxMain-hardening-inst_SYMLINKS = \
1129 VBoxDDU.so=>../VBoxDDU.so \
1130 VBoxREM.so=>../VBoxREM.so \
1131 VBoxRT.so=>../VBoxRT.so \
1132 VBoxVMM.so=>../VBoxVMM.so \
1133 VBoxXPCOM.so=>../VBoxXPCOM.so
1134endif
1135
1136
1137if defined(VBOX_WITH_MIDL_PROXY_STUB) && "$(KBUILD_TARGET)" == "win"
1138 #
1139 # Experimental COM proxy + stub DLL w/ automatic registration updating.
1140 #
1141 # The Legacy stub is for older 64-bit windows versions (pre Windows 7) as we
1142 # were having various problems on windows server 2003 and 2008 with the code
1143 # MIDL generated. Also, in windows 7 there are some potentially interesting
1144 # changes in the generated code where it uses new helpers from OLE32.
1145 #
1146 DLLS += VBoxProxyStub
1147 VBoxProxyStub_TEMPLATE = VBOXMAINCOMP
1148 VBoxProxyStub_DEFS = REGISTER_PROXY_DLL PROXY_CLSID_IS="$(VBOX_MIDL_PROXY_CLSID_IS)" \
1149 $(if $(VBOX_WITH_SDS),VBOX_WITH_SDS,)
1150 VBoxProxyStub_DEFS.win.x86 = WIN32
1151 VBoxProxyStub_SDKS = VBOX_NTDLL
1152 VBoxProxyStub_DEFPATH = $(VBoxCOM_0_OUTDIR)/# Hack to workaround drive letter in $(VBoxCOM_0_OUTDIR)/ for CFLAGS hack below.
1153 VBoxProxyStub_INCS = $(VBoxCOM_0_OUTDIR)/
1154 VBoxProxyStub_SOURCES := \
1155 VirtualBox_p.c \
1156 VirtualBox_i.c \
1157 $(PATH_SUB_CURRENT)/src-all/win/VBoxProxyStub.def \
1158 $(PATH_SUB_CURRENT)/src-all/win/VBoxProxyStub.rc \
1159 $(PATH_SUB_CURRENT)/src-all/win/VBoxProxyStub.c
1160 src-all/win/VBoxProxyStub.rc_DEPS = $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb
1161 VBoxProxyStub_VirtualBox_p.c_CFLAGS.x86 = /Gz # Workaround for incorrect ObjectStublessClient* prototypes in SDK v7.1.
1162
1163 DLLS += VBoxProxyStubLegacy
1164 VBoxProxyStubLegacy_TEMPLATE = VBOXMAINCOMP
1165 VBoxProxyStubLegacy_EXTENDS = VBoxProxyStub
1166 VBoxProxyStubLegacy_DEFS = $(VBoxProxyStub_DEFS) VBOX_IN_PROXY_STUB_LEGACY
1167 VBoxProxyStubLegacy_INCS = $(VBoxCOM_0_OUTDIR)/legacy/
1168 VBoxProxyStubLegacy_SOURCES = \
1169 $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_p.c \
1170 $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_i.c \
1171 src-all/win/VBoxProxyStub.def \
1172 src-all/win/VBoxProxyStubLegacy.rc \
1173 src-all/win/VBoxProxyStub.c
1174 src-all/win/VBoxProxyStubLegacy.rc_DEPS = $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.tlb
1175
1176 ifdef VBOX_WITH_32_ON_64_MAIN_API
1177 DLLS += VBoxProxyStub-x86
1178 VBoxProxyStub-x86_TEMPLATE = VBoxMainComp-x86
1179 VBoxProxyStub-x86_SDKS = VBOX_NTDLL
1180 VBoxProxyStub-x86_DEFS = $(VBoxProxyStub_DEFS) VBOX_PROXY_STUB_32_ON_64 WIN32
1181 VBoxProxyStub-x86_INCS = $(VBoxCOM-x86_0_OUTDIR)/
1182 VBoxProxyStub-x86_SOURCES = \
1183 $(VBoxCOM-x86_0_OUTDIR)/VirtualBox_p.c \
1184 $(VBoxCOM-x86_0_OUTDIR)/VirtualBox_i.c \
1185 src-all/win/VBoxProxyStub.c \
1186 src-all/win/VBoxProxyStub-x86.rc \
1187 src-all/win/VBoxProxyStub.def
1188 src-all/win/VBoxProxyStub-x86.rc_DEPS = $(VBoxCOM-x86_0_OUTDIR)/VirtualBox-x86.tlb
1189 endif
1190endif
1191
1192
1193
1194# generate rules
1195include $(FILE_KBUILD_SUB_FOOTER)
1196
1197
1198
1199#
1200# Additions rules.
1201#
1202
1203## @todo this hack ain't cutting it any longer. (the file name is abspath'ed since ages now.)
1204glue/xpcom/helpers.cpp: $(VBOX_IDL_TYPELIB.XPCOM)
1205
1206$(VBOX_IDL_FILE.XPCOM): $(VBOX_PATH_MAIN_SRC)/idl/xpidl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
1207 $(call MSG_TOOL,xsltproc,VBoxSVC,$<,$@)
1208 $(QUIET)$(VBOX_XSLTPROC) -o $@ $< $(VBOX_XIDL_FILE)
1209
1210$(VBOX_IDL_TYPELIB.XPCOM): $(VBOX_IDL_FILE.XPCOM) | $$(dir $$@) $(VBOX_XPIDL)
1211 $(call MSG_TOOL,xpidl,VBoxSVC,$<,$@)
1212 $(QUIET)$(VBOX_XPIDL_ENV)$(VBOX_XPIDL) -m typelib -I $(VBOX_PATH_XPCOM_IDL) -e $@ $<
1213 $(CHMOD) 0644 $@
1214## @todo ^^^^^^^^^^^^ fix horrible hack
1215
1216$(VBOX_IDL_HEADER.XPCOM): $(VBOX_IDL_FILE.XPCOM) | $$(dir $$@) $(VBOX_XPIDL)
1217 $(call MSG_TOOL,xpidl,VBoxSVC,$<,$@)
1218 $(QUIET)$(VBOX_XPIDL_ENV)$(VBOX_XPIDL) -m header -I $(VBOX_PATH_XPCOM_IDL) -e $@ $<
1219
1220$(VBOX_IDL_FILE.MSCOM): $(VBOX_PATH_MAIN_SRC)/idl/midl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
1221 $(call MSG_TOOL,xsltproc,VBoxSVC,$<,$@)
1222 $(QUIET)$(VBOX_XSLTPROC) -o $@ \
1223 $(if $(VBOX_WITH_MIDL_PROXY_STUB),-stringparam g_fGenProxy yes,) \
1224 $(if $(VBOX_WITH_SDS),-stringparam g_fVBoxWithSDS yes,) \
1225 $< $(VBOX_XIDL_FILE)
1226
1227# Aliases for testing purposes.
1228ifdef VBOX_WITH_XPCOM
1229testidl: $(VBOX_IDL_FILE.XPCOM) $(VBOX_IDL_TYPELIB.XPCOM) $(VBoxCOM_0_OUTDIR)/VirtualBox_XPCOM_i.c
1230testidlhdr: $(VBOX_IDL_HEADER.XPCOM)
1231else
1232testidl: $(VBOX_IDL_FILE.MSCOM) $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c \
1233 $(if $(VBOX_WITH_32_ON_64_MAIN_API),$(VBoxCOM-x86_0_OUTDIR)/VirtualBox_i.c,)
1234endif
1235
1236
1237$(VBoxCOM_0_OUTDIR)/VirtualBox_XPCOM_i.c: $(VBOX_PATH_MAIN_SRC)/idl/xpidl_iid.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
1238 $(call MSG_TOOL,xsltproc,VBoxSVC,$<,$@)
1239 $(QUIET)$(VBOX_XSLTPROC) -o $@ $< $(VBOX_XIDL_FILE)
1240
1241##
1242# Edits $1 and adding #pragma directives for disabling warnings windows.h causes.
1243# @param 1 The name of the file to edit.
1244define def_VBoxMainDisableMscWarnings
1245 $(QUIET)$(MV) -f "$1" "$1.tmp"
1246 $(QUIET)$(APPEND) -nt "$1" \
1247 '#pragma warning(push) /* -Wall and windows.h */' \
1248 '#pragma warning(disable:4668 4255)' \
1249 ''
1250 $(QUIET)$(CAT_EXT) "$1.tmp" >> "$1"
1251 $(QUIET)$(APPEND) -n "$1" \
1252 '' \
1253 '#pragma warning(pop)' \
1254 ''
1255 $(QUIET)$(RM) -f "$1.tmp"
1256
1257endef
1258
1259# Note! Because we've got a different proxy stub DLL for pre windows 7 64-bit hosts, we target windows 7 for AMD64.
1260# The output is different and hopefully more efficient, at least memory wise (using more helpers in OLE32).
1261# Note! We're checking for win.amd64 below when setting the target because of the SDK build which happens on linux.amd64
1262# but with a 32-bit Wine.
1263$(if $(VBOX_WITH_MIDL_PROXY_STUB),$(VBoxCOM_0_OUTDIR)/VirtualBox_p.c + $(VBoxCOM_0_OUTDIR)/dlldata.c +,) \
1264$(VBoxCOM_0_OUTDIR)/VirtualBox_i.c \
1265+ $(VBoxCOM_0_OUTDIR)/VirtualBox.h \
1266+ $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb: $(VBOX_IDL_FILE.MSCOM) | $$(dir $$@)
1267 $(VBOX_WIN_MIDL) /nologo /W4 \
1268 /env $(if-expr "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.amd64" ,amd64,win32) \
1269 /robust /protocol all /target $(if-expr defined(VBOX_WITH_MIDL_PROXY_STUB),NT61,NT51) \
1270 /out $(call VBOX_FN_MAKE_WIN_PATH,$(VBoxCOM_0_OUTDIR)) \
1271 /cpp_cmd $(subst $(EXEC_X86_WIN32),,$(call VBOX_FN_MAKE_WIN_PATH,$(TOOL_$(VBOX_VCC_TOOL)_CC))) \
1272 /I $(call VBOX_FN_MAKE_WIN_PATH,$(PATH_SDK_$(VBOX_WINPSDK)_INC)) \
1273 /I idl \
1274 $(call VBOX_FN_MAKE_WIN_PATH,$<)
1275 $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM_0_OUTDIR)/VirtualBox.h)
1276 $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM_0_OUTDIR)/VirtualBox_i.c)
1277 $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM_0_OUTDIR)/VirtualBox_p.c)
1278
1279if defined(VBOX_WITH_MIDL_PROXY_STUB)
1280# -Windows Server 2003 AMD64 SP1 does not like the result when using '/protocol all' and '/target NT51'.
1281# -Vista AMD64 SP1 and Windows Server 2008 AMD64 seems to have some objections as well, but it seemed
1282# that using an older MIDL compiler (v7.00.0499 instead of v7.00.0555) helps. But the W2K3 fix also works.
1283# To avoid 32-bit vs. 64-bit differences, we do the same for 32-bit windows versions.
1284$(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_i.c \
1285+ $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_p.c\
1286+ $(VBoxCOM_0_OUTDIR)/legacy/dlldata.c \
1287+ $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.h \
1288+ $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.tlb: $(VBOX_IDL_FILE.MSCOM) | $$(dir $$@)
1289 $(VBOX_WIN_MIDL) /nologo /W4 \
1290 $(if-expr "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.amd64" \
1291 ,/env amd64 /x64 /target NT50 /robust \
1292 ,/env win32 /target NT51 /robust /protocol all ) \
1293 /out $(call VBOX_FN_MAKE_WIN_PATH,$(dir $@)) \
1294 /cpp_cmd $(subst $(EXEC_X86_WIN32),,$(call VBOX_FN_MAKE_WIN_PATH,$(TOOL_$(VBOX_VCC_TOOL)_CC))) \
1295 /I $(call VBOX_FN_MAKE_WIN_PATH,$(PATH_SDK_$(VBOX_WINPSDK)_INC)) \
1296 /I idl \
1297 $(call VBOX_FN_MAKE_WIN_PATH,$<)
1298 $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.h)
1299 $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_i.c)
1300 $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_p.c)
1301endif
1302
1303# The XP targetted 32-bit proxy stub works with all versions of windows (the
1304# issues leading to the VBoxProxyStubLegacy.dll are only on 64-bit windows).
1305$(if $(VBOX_WITH_MIDL_PROXY_STUB),$(VBoxCOM-x86_0_OUTDIR)/VirtualBox_p.c + $(VBoxCOM-x86_0_OUTDIR)/dlldata.c +,) \
1306$(VBoxCOM-x86_0_OUTDIR)/VirtualBox_i.c \
1307+ $(VBoxCOM-x86_0_OUTDIR)/VirtualBox.h \
1308+ $(VBoxCOM-x86_0_OUTDIR)/VirtualBox-x86.tlb: $(VBOX_IDL_FILE.MSCOM) | $$(dir $$@)
1309 $(VBOX_WIN_MIDL) /nologo /W4 \
1310 /env win32 /target NT51 /robust /protocol all \
1311 /out $(call VBOX_FN_MAKE_WIN_PATH,$(VBoxCOM-x86_0_OUTDIR)) \
1312 /tlb $(call VBOX_FN_MAKE_WIN_PATH,$(VBoxCOM-x86_0_OUTDIR)/VirtualBox-x86.tlb) \
1313 /cpp_cmd $(subst $(EXEC_X86_WIN32),,$(call VBOX_FN_MAKE_WIN_PATH,$(TOOL_$(VBOX_VCC_TOOL_STEM)X86_CC))) \
1314 /I $(call VBOX_FN_MAKE_WIN_PATH,$(PATH_SDK_$(VBOX_WINPSDK)_INC)) \
1315 /I idl \
1316 $(call VBOX_FN_MAKE_WIN_PATH,$<)
1317 $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM-x86_0_OUTDIR)/VirtualBox.h)
1318 $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM-x86_0_OUTDIR)/VirtualBox_i.c)
1319 $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM-x86_0_OUTDIR)/VirtualBox_p.c)
1320
1321#
1322# Translation stuff
1323#
1324VBoxSVC_VBOX_HEADERS = \
1325 include/collection.h \
1326 include/MachineImpl.h
1327VBoxSVC_VBOX_TRANSLATIONS = \
1328 nls/VBoxSVC_de.ts
1329
1330VBoxC_VBOX_HEADERS = \
1331 include/ConsoleImpl.h
1332
1333VBoxC_VBOX_INTERMEDIATES = $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
1334VBoxC_VBOX_HEADERS += $(VBOX_MAIN_APIWRAPPER_INCS)
1335
1336VBoxC_VBOX_TRANSLATIONS = \
1337 nls/VBoxC_de.ts
1338
1339ifdef VBOX_WITH_JMSCOM
1340
1341#
1342# Java glue JAR files
1343#
1344VBOX_JMSCOM_JAR = $(VBoxJMscom-inst-jar_0_OUTDIR)/vboxjmscom.jar
1345VBOX_JMSCOM_TARGET := $(PATH_TARGET)/vboxjmscom-gen
1346VBOX_JMSCOM_GEN = $(VBOX_JMSCOM_TARGET)/jmscomgen
1347VBOX_JMSCOM_JDEST := $(VBOX_JMSCOM_TARGET)/jdest
1348VBOX_GLUE_XSLT_DIR := $(PATH_ROOT)/src/VBox/Main/glue
1349VBOX_JACOB_DIR := $(PATH_ROOT)/src/libs/jacob-1.17
1350
1351INSTALLS += VBoxJMscom-inst-jar
1352VBoxJMscom-inst-jar_INST = $(INST_SDK)bindings/mscom/java/
1353VBoxJMscom-inst-jar_MODE = a+r,u+w
1354VBoxJMscom-inst-jar_SOURCES = \
1355 $(VBOX_JMSCOM_JAR)
1356VBoxJMscom-inst-jar_CLEAN = \
1357 $(VBOX_JMSCOM_JAR) \
1358 $(VBOX_JMSCOM_GEN)/jmscomglue.list \
1359 $(wildcard \
1360 $(VBOX_JMSCOM_GEN)/java/*.java \
1361 $(VBOX_JMSCOM_JDEST)/*.class \
1362 $(VBOX_JMSCOM_JDEST)/*/*.class \
1363 $(VBOX_JMSCOM_JDEST)/*/*/*.class \
1364 $(VBOX_JMSCOM_JDEST)/*/*/*/*.class \
1365 )
1366VBoxJMscom-inst-jar_BLDDIRS += $(VBOX_JMSCOM_GEN)/java
1367
1368$(VBOX_JMSCOM_GEN)/jmscomglue.list: \
1369 $(VBOX_XIDL_FILE) \
1370 $(VBOX_GLUE_XSLT_DIR)/glue-java.xsl \
1371 $(VBOX_FILESPLIT) \
1372 | $(VBOX_JMSCOM_GEN)/java/
1373 $(call MSG_L1,Generating Java MSCOM glue files from XIDL)
1374 $(QUIET)$(RM) -f $(wildcard $(VBOX_JMSCOM_GEN)/java/*.java)
1375 $(QUIET)$(VBOX_XSLTPROC) \
1376 --stringparam filelistonly "" \
1377 --stringparam G_vboxApiSuffix $(VBOX_API_SUFFIX) \
1378 --stringparam G_vboxGlueStyle mscom \
1379 --stringparam G_vboxDirPrefix "" \
1380 -o $(VBOX_JMSCOM_GEN)/java/merged.file $(VBOX_GLUE_XSLT_DIR)/glue-java.xsl $<
1381 $(QUIET)$(VBOX_FILESPLIT) $(VBOX_JMSCOM_GEN)/java/merged.file $(VBOX_JMSCOM_GEN)/java
1382 $(QUIET)echo $(VBOX_JMSCOM_GEN)/java/*.java > $@
1383
1384$$(VBOX_JMSCOM_JAR): $(VBOX_JMSCOM_GEN)/jmscomglue.list | $$(dir $$@)
1385 $(call MSG_TOOL,javac,$(notdir $@),jmscomglue.list,)
1386 $(QUIET)$(RM) -Rf $(VBOX_JMSCOM_JDEST)
1387 $(QUIET)$(MKDIR) -p $(VBOX_JMSCOM_JDEST)
1388 $(call MSG_TOOL,javac,$(notdir $@),...,)
1389 $(QUIET)$(VBOX_JAVAC) $(VBOX_JAVAC_OPTS) @$(VBOX_JMSCOM_GEN)/jmscomglue.list \
1390 -d $(VBOX_JMSCOM_JDEST) -classpath "$(VBOX_JMSCOM_JDEST)$(VBOX_SEP)$(VBOX_JACOB_DIR)/jacob.jar"
1391 $(call MSG_LINK,$(notdir $@),$@)
1392 $(QUIET)$(VBOX_JAR) cf $@ -C $(VBOX_JMSCOM_JDEST) .
1393
1394## @todo compile TestVBox.java (see below) to have sanity checking
1395
1396endif # VBOX_WITH_JMSCOM
1397
1398#
1399# Install Java glue sample code.
1400#
1401INSTALLS += javagluesample
1402javagluesample_INST = $(INST_SDK)bindings/glue/java/
1403javagluesample_MODE = a+r,u+w
1404javagluesample_SOURCES = \
1405 $(VBOX_PATH_MAIN_SRC)/glue/tests/TestVBox.java=>TestVBox.java \
1406 $(VBOX_PATH_MAIN_SRC)/glue/tests/Makefile=>Makefile
1407
1408#
1409# Rules associated with VBoxAPIWrap (in typical invocation order).
1410# We keep them down here to simplify the use of VBoxAPIWrap_0_OUTDIR.
1411#
1412
1413# Generate a make include file which lists the wrapper header and source files.
1414$(VBoxAPIWrap_VBOX_KMK_FILE).ts \
1415+| $(VBoxAPIWrap_VBOX_KMK_FILE): \
1416 $(VBOX_XIDL_FILE) \
1417 $(VBOX_PATH_MAIN_SRC)/idl/apiwrap-server-filelist.xsl \
1418 $(VBOX_PATH_MAIN_SRC)/Makefile.kmk
1419 $(call MSG_GENERATE,,$(VBoxAPIWrap_VBOX_KMK_FILE))
1420 $(QUIET)$(RM) -f $@
1421 $(QUIET)$(MKDIR) -p $(@D)
1422 $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
1423 $(if $(VBOX_WITH_SDS),-stringparam g_fVBoxWithSDS yes,) \
1424 -o $@ $(VBOX_PATH_MAIN_SRC)/idl/apiwrap-server-filelist.xsl $<
1425 $(QUIET)$(CP) --changed -fv $@ $(VBoxAPIWrap_VBOX_KMK_FILE)
1426
1427# Generate the header files for the wrappers.
1428$(VBoxAPIWrap_0_OUTDIR)/apiwrappers-headers \
1429+| $(VBOX_MAIN_APIWRAPPER_GEN_HDRS): \
1430 $(VBOX_XIDL_FILE) \
1431 $(VBOX_PATH_MAIN_SRC)/idl/typemap-shared.inc.xsl \
1432 $(VBoxAPIWrap_VBOX_XSLT) \
1433 $(VBOX_FILESPLIT) \
1434 | $$(dir $$@)
1435 $(call MSG_L1,Generating C++ Server API wrapper header files from XIDL)
1436 $(QUIET)$(RM) -f -- $(filter-out $(VBOX_MAIN_APIWRAPPER_GEN_HDRS), $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.h))
1437 $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
1438 --stringparam generating "headers" \
1439 -o $@ $(VBoxAPIWrap_VBOX_XSLT) $<
1440 $(QUIET)$(VBOX_FILESPLIT) $@ $(VBoxAPIWrap_0_OUTDIR)
1441
1442# Generate the DTrace probes for the wrappers and combine them with handcoded probes.
1443$(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d.ts \
1444+| $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d: \
1445 $(VBOX_XIDL_FILE) \
1446 $(VBOX_PATH_MAIN_SRC)/idl/typemap-shared.inc.xsl \
1447 $(VBoxAPIWrap_VBOX_XSLT) \
1448 $(VBOX_FILESPLIT) \
1449 | $$(dir $$@)
1450 $(call MSG_L1,Generating DTrace Provider for the VBox API (from XIDL))
1451 $(QUIET)$(RM) -f -- "$@" "[email protected]"
1452 $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
1453 --stringparam generating "dtrace-probes" \
1454 -o "$@" $(VBoxAPIWrap_VBOX_XSLT) $<
1455 $(QUIET)$(SED) -e '' -o "[email protected]" \
1456 "$(VBOX_PATH_MAIN_SRC)/src-all/VBoxAPI-start.d" \
1457 "$@" \
1458 "$(VBOX_PATH_MAIN_SRC)/src-all/VBoxAPI-end.d"
1459 $(QUIET)$(MV) -- "[email protected]" "$@"
1460 $(QUIET)$(CP) --changed -fv -- "$@" "$(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d"
1461
1462# Generate the wrapper source files - split in two due to long processing time
1463$(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-even \
1464+| $(VBOX_MAIN_APIWRAPPER_GEN_SRCS_EVEN): \
1465 $(VBOX_XIDL_FILE) \
1466 $(VBOX_PATH_MAIN_SRC)/idl/typemap-shared.inc.xsl \
1467 $(VBoxAPIWrap_VBOX_XSLT) \
1468 $(VBOX_FILESPLIT) \
1469 | $$(dir $$@)
1470 $(call MSG_L1,Generating C++ Server API wrapper files from XIDL - part 1)
1471 $(QUIET)$(RM) -f -- $(filter-out $(VBOX_MAIN_APIWRAPPER_GEN_SRCS), $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.cpp))
1472 $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
1473 --stringparam generating "sources" \
1474 --param reminder 0 \
1475 -o $@ $(VBoxAPIWrap_VBOX_XSLT) $<
1476 $(QUIET)$(VBOX_FILESPLIT) $@ $(VBoxAPIWrap_0_OUTDIR)
1477
1478$(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-odd \
1479+| $(VBOX_MAIN_APIWRAPPER_GEN_SRCS_ODD): \
1480 $(VBOX_XIDL_FILE) \
1481 $(VBOX_PATH_MAIN_SRC)/idl/typemap-shared.inc.xsl \
1482 $(VBoxAPIWrap_VBOX_XSLT) \
1483 $(VBOX_FILESPLIT) \
1484 | $$(dir $$@)
1485 $(call MSG_L1,Generating C++ Server API wrapper files from XIDL - part 2)
1486 $(QUIET)$(RM) -f -- $(filter-out $(VBOX_MAIN_APIWRAPPER_GEN_SRCS), $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.cpp))
1487 $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
1488 --stringparam generating "sources" \
1489 --param reminder 1 \
1490 -o $@ $(VBoxAPIWrap_VBOX_XSLT) $<
1491 $(QUIET)$(VBOX_FILESPLIT) $@ $(VBoxAPIWrap_0_OUTDIR)
1492
1493testapiwrappers:: \
1494 $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-headers \
1495 $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d.ts \
1496 $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-odd \
1497 $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-even
1498
1499
1500#
1501# NLS stuff.
1502#
1503updatenls::
1504 $(VBOX_LUPDATE) $(VBoxSVC_SOURCES) $(VBoxSVC_VBOX_HEADERS) -ts $(VBoxSVC_VBOX_TRANSLATIONS)
1505 $(VBOX_LUPDATE) $(VBoxC_SOURCES) $(VBoxC_VBOX_HEADERS) -ts $(VBoxC_VBOX_TRANSLATIONS)
1506
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