VirtualBox

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

Last change on this file since 53242 was 53242, checked in by vboxsync, 10 years ago

Main/HostDnsService: Tcpip\Parameters\NameServer value is not updated
when the list of name servers is statically configured, so don't
inspect NameServer and DhcpNameServer directly - instead use
DnsQueryConfig(DnsConfigDnsServerList, ...) from DnsAPI.dll

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 40.3 KB
Line 
1# $Id: Makefile.kmk 53242 2014-11-05 16:28:08Z vboxsync $
2## @file
3# Makefile for the VBox Main module.
4#
5
6#
7# Copyright (C) 2004-2014 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_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP,) \
69 $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,) \
70 $(if $(VBOX_WITH_CROGL),VBOX_WITH_CROGL,) \
71 $(if $(VBOX_WITH_CRHGSMI),VBOX_WITH_CRHGSMI,) \
72 $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,) \
73 $(if $(VBOX_WITH_GUEST_PROPS_RDONLY_GUEST),VBOX_WITH_GUEST_PROPS_RDONLY_GUEST,) \
74 $(if $(VBOX_WITH_GUEST_CONTROL),VBOX_WITH_GUEST_CONTROL,) \
75 $(if $(VBOX_WITH_USB_CARDREADER),VBOX_WITH_USB_CARDREADER,) \
76 $(if $(VBOX_WITH_USB_CARDREADER_TEST),VBOX_WITH_USB_CARDREADER_TEST,) \
77 $(if $(VBOX_WITH_HOSTNETIF_API),VBOX_WITH_HOSTNETIF_API,) \
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
129endif # xpcom
130
131
132#
133# Strip documentation from source XIDL so that we don't get a full
134# recompile every time a comma in the documentation is changed.
135#
136$(VBOX_XIDL_FILE).ts +| $(VBOX_XIDL_FILE): \
137 $(VBOX_XIDL_FILE_SRC) \
138 $(VBOX_PATH_MAIN_SRC)/idl/docstrip.xsl \
139 | $$(dir $$@)
140# $(CP) -fv $< $(VBOX_XIDL_FILE).ts
141 $(QUIET)$(VBOX_XSLTPROC) -o $(VBOX_XIDL_FILE).ts $(VBOX_PATH_MAIN_SRC)/idl/docstrip.xsl $<
142 $(QUIET)$(CP) --changed -fv $(VBOX_XIDL_FILE).ts $(VBOX_XIDL_FILE)
143
144OTHER_CLEAN += $(VBOX_XIDL_FILE) $(VBOX_XIDL_FILE).ts
145
146#
147# The Main API documentation
148#
149VBOX_MAIN_DOC_DIR = $(VBOX_PATH_SDK)/docs
150BLDDIRS += $(VBOX_MAIN_DOC_DIR)
151
152$(PATH_TARGET)/docs.Main: \
153 $(VBOX_PATH_MAIN_SRC)/Doxyfile.Main \
154 $(VBOX_PATH_MAIN_SRC)/idl/doxygen.xsl \
155 $(VBOX_XIDL_FILE_SRC) \
156 | $(PATH_TARGET)/ \
157 $(VBOX_MAIN_DOC_DIR)/
158 $(call MSG_TOOL,xsltproc,doxygen input,$<,$@)
159 $(QUIET)$(RM) -f $(wildcard $(VBOX_MAIN_DOC_DIR)/html/*) $(PATH_TARGET)/docs.Main
160 $(QUIET)$(VBOX_XSLTPROC) -o $(PATH_TARGET)/VirtualBox.idl $(VBOX_PATH_MAIN_SRC)/idl/doxygen.xsl $(VBOX_XIDL_FILE_SRC)
161 $(QUIET)$(REDIRECT) -E 'DOCDIR=$(VBOX_MAIN_DOC_DIR)' -E 'PATH_TARGET=$(PATH_TARGET)' -E 'PATH_CHM=$(subst /,\,$(VBOX_MAIN_DOC_DIR)/VirtualBoxAPI.chm)' \
162 -- doxygen $(VBOX_PATH_MAIN_SRC)/Doxyfile.Main
163 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) ">>>>>>>>>>>>>>>>>>>> Main.err: >>>>>>>>>>>>>>>>>>>>>>>>"
164 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(CAT) "$(PATH_TARGET)/Main.err"
165 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "<<<<<<<<<<<<<<<<<<<< Main.err <<<<<<<<<<<<<<<<<<<<<<<<<"
166 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> **************************************************"
167 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> Please fix above doxygen errors/warnings listed in"
168 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> $(PATH_TARGET)/Main.err"
169 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> **************************************************"
170 -$(EXEC_X86_WIN32) $(VBOX_PATH_HTML_HELP_WORKSHOP)/hhc.exe $(subst /,\\,$(VBOX_MAIN_DOC_DIR)/html/index.hhp)
171 $(APPEND) $(PATH_TARGET)/docs.Main
172# aliases
173docs.main docs.Main: $(PATH_TARGET)/docs.Main
174if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
175docs: $(PATH_TARGET)/docs.Main
176else
177docs:
178endif
179
180
181ifndef VBOX_ONLY_SDK
182#
183# Generate library with API class wrappers from the XIDL file.
184#
185LIBRARIES += VBoxAPIWrap
186VBoxAPIWrap_TEMPLATE = VBoxMainLib
187VBoxAPIWrap_SOURCES = $(filter %.cpp,$(VBOX_MAIN_APIWRAPPER_GEN_FILES))
188VBoxAPIWrap_DEFS.win.x86 += _WIN32_WINNT=0x0500
189VBoxAPIWrap_DEFS.win.amd64 += _WIN32_WINNT=0x0510
190VBoxAPIWrap_INCS += \
191 include
192VBoxAPIWrap_CLEAN = \
193 $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.cpp) \
194 $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.h) \
195 $(VBoxAPIWrap_VBOX_RAWSRC)
196
197# Two VBox variables used here and/or in the rules generating wrappers.
198VBoxAPIWrap_VBOX_RAWSRC = \
199 $(VBoxAPIWrap_0_OUTDIR)/apiwrappers
200VBoxAPIWrap_VBOX_XSLT = \
201 $(VBOX_PATH_MAIN_SRC)/idl/apiwrap-server.xsl
202
203# This include file (generated at the bottom of this file), defines
204# VBOX_MAIN_APIWRAPPER_GEN_FILES and VBOX_MAIN_APIWRAPPER_GEN_HDRS.
205VBoxAPIWrap_VBOX_KMK_FILE = $(PATH_OUT)/vboxapiwrap.kmk
206include $(VBoxAPIWrap_VBOX_KMK_FILE)
207
208ifdef VBOX_WITH_32_ON_64_MAIN_API
209LIBRARIES += VBoxAPIWrap-x86
210VBoxAPIWrap-x86_TEMPLATE = VBoxMainLib-x86
211VBoxAPIWrap-x86_EXTENDS = VBoxAPIWrap
212endif
213
214endif # !VBOX_ONLY_SDK
215
216#
217# Some SDK bit.
218#
219INSTALLS += VBox-main-xidl
220VBox-main-xidl_INST = $(INST_SDK)bindings/
221VBox-main-xidl_MODE = a+r,u+w
222VBox-main-xidl_SOURCES = $(VBOX_XIDL_FILE_SRC)
223
224ifdef VBOX_WITH_PYTHON
225INSTALLS += VBox-python-glue
226VBox-python-glue_INST = $(INST_SDK)installer/vboxapi/
227VBox-python-glue_MODE = a+r,u+w
228VBox-python-glue_SOURCES = \
229 glue/vboxapi.py=>__init__.py \
230 $(VBox-python-glue_0_OUTDIR)/VirtualBox_constants.py
231VBox-python-glue_CLEAN = \
232 $(VBox-python-glue_0_OUTDIR)/VirtualBox_constants.py
233
234$$(VBox-python-glue_0_OUTDIR)/VirtualBox_constants.py: \
235 $(VBOX_PATH_MAIN_SRC)/glue/constants-python.xsl \
236 $(VBOX_XIDL_FILE) \
237 | $$(dir $$@)
238 $(call MSG_TOOL,xsltproc,Python constants,$<,$@)
239 $(QUIET)$(VBOX_XSLTPROC) -o $@ $< $(VBOX_XIDL_FILE)
240
241endif # VBOX_WITH_PYTHON
242
243ifndef VBOX_ONLY_SDK # Note this goes on for *very* long
244
245#
246# Generate SchemaDefs.h and SchemaDefs.cpp from XML Schema
247# These two files are used by both VBoxC and VBoxSVC.
248#
249BLDDIRS += $(PATH_TARGET)/Main
250
251testschemadefs: $(VBOX_XML_SCHEMADEFS_H) $(VBOX_XML_SCHEMADEFS_CPP)
252
253
254#
255# VBoxSVC executable
256#
257PROGRAMS += VBoxSVC
258VBoxSVC_TEMPLATE = VBOXMAINEXE
259VBoxSVC_DEFS = \
260 VBOX_MAIN_SETTINGS_ADDONS \
261 IN_VMM_STATIC \
262 $(VBOX_MAIN_DEFS) \
263 $(if $(VBOX_WITH_VBOXSDL),VBOX_WITH_VBOXSDL,) \
264 $(if $(VBOX_WITH_HEADLESS),VBOX_WITH_HEADLESS,) \
265 $(if $(VBOX_WITH_QTGUI),VBOX_WITH_QTGUI,) \
266 $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) \
267 $(if $(VBOX_WITH_ALSA),VBOX_WITH_ALSA,) \
268 $(if $(VBOX_WITH_PULSE),VBOX_WITH_PULSE,) \
269 $(if $(VBOX_WITH_WINMM),VBOX_WITH_WINMM,) \
270 $(if $(VBOX_WITH_SOLARIS_OSS),VBOX_WITH_SOLARIS_OSS,) \
271 $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000,) \
272 $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO,) \
273 $(if $(VBOX_WITH_AHCI),VBOX_WITH_AHCI,) \
274 $(if $(VBOX_WITH_LSILOGIC),VBOX_WITH_LSILOGIC,) \
275 $(if $(VBOX_WITH_LINUX_COMPILER_H),VBOX_WITH_LINUX_COMPILER_H,) \
276 $(if $(VBOX_WITH_RESOURCE_USAGE_API),VBOX_WITH_RESOURCE_USAGE_API,) \
277 $(if $(VBOX_WITH_PDM_ASYNC_COMPLETION),VBOX_WITH_PDM_ASYNC_COMPLETION,) \
278 $(if $(VBOX_WITH_DBUS),$(if $(VBOX_USB_WITH_DBUS),VBOX_USB_WITH_DBUS,),) \
279 $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,) \
280 $(if $(VBOX_USB_WITH_INOTIFY),VBOX_USB_WITH_INOTIFY,) \
281 $(if $(VBOX_WITH_LIVE_MIGRATION),VBOX_WITH_LIVE_MIGRATION,) \
282 $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK,) \
283 $(if $(VBOX_WITH_VUSB),VBOX_WITH_VUSB,) \
284 $(if $(VBOX_WITH_S3),VBOX_WITH_S3,) \
285 $(if $(VBOX_WITH_PCI_PASSTHROUGH),VBOX_WITH_PCI_PASSTHROUGH,) \
286 $(if $(VBOX_WITH_PDM_AUDIO_DRIVER),VBOX_WITH_PDM_AUDIO_DRIVER,) \
287 $(if $(VBOX_WITH_NAT_SERVICE),VBOX_WITH_NAT_SERVICE,) \
288 $(if $(VBOX_WITH_CROGL),VBOX_WITH_CROGL,) \
289 $(if $(VBOX_WITH_CRHGSMI),VBOX_WITH_CRHGSMI,)
290ifdef VBOX_WITH_USB
291 VBoxSVC_DEFS += \
292 VBOX_WITH_USB \
293 $(if $(VBOX_WITH_EHCI),VBOX_WITH_EHCI,) \
294 $(if $(VBOX_WITH_NEW_USB_CODE_ON_DARWIN),VBOX_WITH_NEW_USB_CODE_ON_DARWIN,)
295endif
296VBoxSVC_DEFS.win += VBOX_COM_OUTOFPROC_MODULE
297VBoxSVC_DEFS.win += _WIN32_WINNT=0x0510
298# Try to load and use libhal at runtime for probing removable media
299# VBoxSVC_DEFS.linux += VBOX_USE_LIBHAL
300VBoxSVC_DEFS.solaris += VBOX_USE_LIBHAL
301VBoxSVC_DEFS.freebsd += VBOX_USE_LIBHAL
302
303VBoxSVC_CXXFLAGS = $(filter-out -Wno-unused,$(TEMPLATE_VBOXMAINEXE_CXXFLAGS))
304
305VBoxSVC_INCS = \
306 include \
307 $(VBoxSVC_0_OUTDIR) \
308 $(dir $(VBOX_XML_SCHEMADEFS_H)) \
309 $(VBOX_MAIN_APIWRAPPER_INCS) \
310 .
311VBoxSVC_INCS.win = \
312 $(VBoxCOM_0_OUTDIR)
313ifdef VBOX_WITH_USB
314 VBoxSVC_INCS.os2 = \
315 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
316endif
317
318VBoxSVC_LIBS += \
319 $(PATH_STAGE_LIB)/VBoxAPIWrap$(VBOX_SUFF_LIB) \
320 $(PATH_STAGE_LIB)/SSMStandalone$(VBOX_SUFF_LIB) \
321 $(LIB_DDU)
322
323VBoxSVC_SDKS = VBOX_LIBPNG VBOX_ZLIB VBOX_OPENSSL
324VBoxSVC_LIBS.solaris = \
325 adm \
326 nsl \
327 devinfo \
328 socket \
329 $(LIB_VMM)
330
331VBoxSVC_LIBS.win += \
332 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/dnsapi.lib
333
334VBoxSVC_INTERMEDIATES = \
335 $(VBOX_MAIN_PREREQS) \
336 $(VBOX_XML_SCHEMADEFS_H) \
337 $(VBOX_AUTOGEN_EVENT_H) \
338 $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
339
340VBoxSVC_SOURCES = \
341 src-all/DisplayPNGUtil.cpp \
342 src-all/DisplayResampleImage.cpp \
343 src-all/DisplayUtils.cpp \
344 src-all/EventImpl.cpp \
345 src-all/Global.cpp \
346 src-all/HashedPw.cpp \
347 src-all/Logging.cpp \
348 src-all/PCIDeviceAttachmentImpl.cpp \
349 src-all/ProgressImpl.cpp \
350 src-all/QMTranslatorImpl.cpp \
351 src-all/SharedFolderImpl.cpp \
352 src-all/AutoCaller.cpp \
353 src-all/VirtualBoxBase.cpp \
354 src-all/VirtualBoxErrorInfoImpl.cpp \
355 $(if $(VBOX_WITH_EXTPACK),src-all/ExtPackManagerImpl.cpp src-all/ExtPackUtil.cpp,) \
356 src-server/ApplianceImpl.cpp \
357 src-server/ApplianceImplExport.cpp \
358 src-server/ApplianceImplImport.cpp \
359 src-server/ApplianceImplIO.cpp \
360 src-server/AudioAdapterImpl.cpp \
361 src-server/BandwidthControlImpl.cpp \
362 src-server/BandwidthGroupImpl.cpp \
363 src-server/BIOSSettingsImpl.cpp \
364 src-server/ClientWatcher.cpp \
365 src-server/ClientToken.cpp \
366 src-server/DHCPServerImpl.cpp \
367 src-server/NetworkServiceRunner.cpp \
368 src-server/NATNetworkImpl.cpp \
369 src-server/GuestOSTypeImpl.cpp \
370 src-server/HostDnsService.cpp \
371 src-server/HostImpl.cpp \
372 src-server/HostNetworkInterfaceImpl.cpp \
373 src-server/HostPower.cpp \
374 src-server/HostVideoInputDeviceImpl.cpp \
375 src-server/MachineImpl.cpp \
376 src-server/MachineImplCloneVM.cpp \
377 src-server/Matching.cpp \
378 src-server/MediumAttachmentImpl.cpp \
379 src-server/MediumFormatImpl.cpp \
380 src-server/MediumImpl.cpp \
381 src-server/MediumLock.cpp \
382 src-server/NATEngineImpl.cpp \
383 src-server/NetworkAdapterImpl.cpp \
384 src-server/ParallelPortImpl.cpp \
385 src-server/ProgressProxyImpl.cpp \
386 src-server/SerialPortImpl.cpp \
387 src-server/SnapshotImpl.cpp \
388 src-server/StorageControllerImpl.cpp \
389 src-server/SystemPropertiesImpl.cpp \
390 src-server/TokenImpl.cpp \
391 src-server/USBControllerImpl.cpp \
392 src-server/USBDeviceFiltersImpl.cpp \
393 src-server/VFSExplorerImpl.cpp \
394 src-server/VirtualBoxImpl.cpp \
395 src-server/VRDEServerImpl.cpp \
396 src-server/generic/AutostartDb-generic.cpp \
397 xml/ovfreader.cpp \
398 xml/Settings.cpp \
399 $(VBOX_XML_SCHEMADEFS_CPP) \
400 $(VBOX_AUTOGEN_EVENT_CPP) \
401 $(if $(VBOX_WITH_XPCOM),src-server/xpcom/server.cpp,)
402
403ifn1of ($(KBUILD_TARGET), win darwin)
404 VBoxSVC_SOURCES += $(PATH_ROOT)/src/VBox/Devices/Network/slirp/resolv_conf_parser.c
405endif
406
407VBoxSVC_SOURCES.darwin = \
408 src-server/darwin/iokit.cpp \
409 src-server/darwin/HostPowerDarwin.cpp \
410 src-server/darwin/HostDnsServiceDarwin.cpp
411
412VBoxSVC_SOURCES.win = \
413 src-server/win/svcmain.cpp \
414 src-server/win/svchlp.cpp \
415 src-server/win/HostPowerWin.cpp \
416 src-server/win/VBoxSVC.rc \
417 src-server/win/VBoxComEvents.cpp \
418 src-server/win/HostDnsServiceWin.cpp
419
420VBoxSVC_SOURCES.linux = \
421 src-server/linux/HostHardwareLinux.cpp \
422 src-server/linux/HostDnsServiceLinux.cpp \
423 src-server/HostDnsServiceResolvConf.cpp
424
425VBoxSVC_SOURCES.solaris = \
426 src-server/linux/vbox-libhal.cpp \
427 src-server/solaris/DynLoadLibSolaris.cpp \
428 src-server/HostDnsServiceResolvConf.cpp
429
430VBoxSVC_SOURCES.os2 = \
431 src-server/HostDnsServiceResolvConf.cpp
432
433VBoxSVC_SOURCES.freebsd = \
434 src-server/freebsd/HostHardwareFreeBSD.cpp
435
436
437ifdef VBOX_WITH_USB
438 ifdef VBOX_WITH_SYSFS_BY_DEFAULT
439 src-server/linux/USBProxyServiceLinux.cpp_DEFS += VBOX_WITH_SYSFS_BY_DEFAULT
440 endif
441 VBoxSVC_SOURCES += \
442 src-server/USBDeviceFilterImpl.cpp \
443 src-server/USBProxyService.cpp \
444 src-server/HostUSBDeviceImpl.cpp
445 VBoxSVC_SOURCES.darwin += src-server/darwin/USBProxyServiceDarwin.cpp
446 VBoxSVC_SOURCES.linux += src-server/linux/USBProxyServiceLinux.cpp
447 VBoxSVC_SOURCES.linux += src-server/linux/USBGetDevices.cpp
448 VBoxSVC_SOURCES.os2 += src-server/os2/USBProxyServiceOs2.cpp
449 VBoxSVC_SOURCES.solaris += src-server/solaris/USBProxyServiceSolaris.cpp
450 VBoxSVC_SOURCES.win += src-server/win/USBProxyServiceWindows.cpp
451 VBoxSVC_SOURCES.freebsd += src-server/freebsd/USBProxyServiceFreeBSD.cpp
452endif
453
454ifdef VBOX_WITH_NETFLT
455 VBoxSVC_LIBS.win += \
456 $(PATH_STAGE_LIB)/WinNetConfig$(VBOX_SUFF_LIB) \
457 $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB) \
458 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/Newdev.lib \
459 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/comsupp.lib \
460 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/WbemUuid.Lib
461endif
462VBoxSVC_LDFLAGS.darwin = -framework IOKit -framework SystemConfiguration
463
464ifdef VBOX_WITH_CROGL
465 VBoxSVC_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
466 VBoxSVC_LDFLAGS.darwin += -framework OpenGL
467endif
468
469ifeq ($(KBUILD_TYPE),debug)
470 VBoxSVC_LDFLAGS.linux += -rdynamic # for backtrace_symbols()
471endif
472
473ifdef VBOX_WITH_RESOURCE_USAGE_API
474 VBoxSVC_SOURCES += \
475 src-server/PerformanceImpl.cpp \
476 src-server/Performance.cpp
477 VBoxSVC_SOURCES.darwin += src-server/darwin/PerformanceDarwin.cpp
478 VBoxSVC_SOURCES.freebsd += src-server/freebsd/PerformanceFreeBSD.cpp
479 VBoxSVC_SOURCES.linux += src-server/linux/PerformanceLinux.cpp
480 VBoxSVC_SOURCES.os2 += src-server/os2/PerformanceOs2.cpp
481 VBoxSVC_SOURCES.solaris += src-server/solaris/PerformanceSolaris.cpp
482 VBoxSVC_SOURCES.win += src-server/win/PerformanceWin.cpp
483 VBoxSVC_LDFLAGS.darwin += -lproc
484 VBoxSVC_LDFLAGS.solaris += -lkstat -lnvpair
485 VBoxSVC_LDFLAGS.win += psapi.lib powrprof.lib
486endif
487
488ifdef VBOX_WITH_HOSTNETIF_API
489 VBoxSVC_SOURCES.win += src-server/win/NetIf-win.cpp
490 VBoxSVC_SOURCES.linux += src-server/linux/NetIf-linux.cpp
491 VBoxSVC_SOURCES.os2 += src-server/os2/NetIf-os2.cpp
492 VBoxSVC_SOURCES.darwin += src-server/darwin/NetIf-darwin.cpp
493 VBoxSVC_SOURCES.solaris += src-server/solaris/NetIf-solaris.cpp
494 VBoxSVC_SOURCES.freebsd += src-server/freebsd/NetIf-freebsd.cpp
495 VBoxSVC_DEFS += VBOX_WITH_HOSTNETIF_API
496 if1of ($(KBUILD_TARGET), linux darwin solaris freebsd)
497 VBoxSVC_SOURCES += src-server/generic/NetIf-generic.cpp
498 endif
499endif
500
501src-server/win/VBoxSVC.rc_INCS = $(VBoxSVC_0_OUTDIR)
502src-server/win/VBoxSVC.rc_DEPS = $(VBoxSVC_0_OUTDIR)/VBoxSVC.rgs $(VBoxSVC_0_OUTDIR)/VBoxSVC-icon.rc
503src-server/win/VBoxSVC.rc_CLEAN = $(VBoxSVC_0_OUTDIR)/VBoxSVC.rgs $(VBoxSVC_0_OUTDIR)/VBoxSVC-icon.rc
504
505$$(VBoxSVC_0_OUTDIR)/VBoxSVC-icon.rc: $(MAKEFILE_CURRENT) $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$(@D))
506 $(APPEND) -t $@ '1 ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
507
508$$(VBoxSVC_0_OUTDIR)/VBoxSVC.rgs: $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl $(VBOX_XIDL_FILE) | $$(dir $$(@D))
509 $(VBOX_XSLTPROC) --stringparam Module VBoxSVC -o $@ $< $(VBOX_XIDL_FILE)
510
511## @todo r=klaus unfortunately we don't have xmllint everywhere, would be
512# good to check the validity for every VirtualBox.xidl change.
513#$(VBOX_XIDL_FILE).validated.ts: $(VBOX_XIDL_FILE_SRC)
514# xmllint --dtdvalid $(VBOX_PATH_MAIN_SRC)/idl/VirtualBox.dtd --noout $<
515# $(QUIET)$(CP) --changed -fv $< $(VBOX_XIDL_FILE).validated.ts
516#
517#OTHERS += $(VBOX_XIDL_FILE).validated.ts
518#OTHER_CLEAN += $(VBOX_XIDL_FILE).validated.ts
519
520testvalidxidl: $(VBOX_XIDL_FILE_SRC)
521 xmllint --dtdvalid $(VBOX_PATH_MAIN_SRC)/idl/VirtualBox.dtd --noout $<
522
523
524#
525# Embed some constraints from XML Schema file into VBoxSVC
526#
527VBOX_XML_SCHEMA = $(VBOX_PATH_MAIN_SRC)/xml/VirtualBox-settings.xsd
528
529$(VBOX_XML_SCHEMADEFS_H): $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA) | $$(dir $$@)
530 $(call MSG_GENERATE,SchemaDefs,$@,$<)
531 $(QUIET)$(VBOX_XSLTPROC) --stringparam mode declare -o $@ $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA)
532
533$(VBOX_XML_SCHEMADEFS_CPP): $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA) | $$(dir $$@)
534 $(call MSG_GENERATE,SchemaDefs,$@,$<)
535 $(QUIET)$(VBOX_XSLTPROC) --stringparam mode define -o $@ $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA)
536
537testvalidsettings: $(VBOX_XML_SCHEMA)
538 xmllint --schema $< --noout $(HOME)/.VirtualBox/VirtualBox.xml
539 xmllint --schema $< --noout $(HOME)/.VirtualBox/Machines/*/*.xml
540 xmllint --schema $< --noout $(HOME)/.VirtualBox/Machines/*/*.vbox
541 xmllint --schema $< --noout $(HOME)/VirtualBox\ VMs/*/*.vbox
542
543OTHER_CLEAN += $(VBOX_XML_SCHEMADEFS_H) $(VBOX_XML_SCHEMADEFS_CPP)
544
545
546#
547# Generate some event stuff for VBoxSVC and VBoxC.
548#
549$(VBOX_AUTOGEN_EVENT_H): $(VBOX_PATH_MAIN_SRC)/idl/comimpl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
550 $(call MSG_TOOL,xsltproc,autogen events,$<,$@)
551 $(QUIET)$(VBOX_XSLTPROC) --stringparam G_kind VBoxEventHeader -o $@ $< $(VBOX_XIDL_FILE)
552
553$(VBOX_AUTOGEN_EVENT_CPP): $(VBOX_PATH_MAIN_SRC)/idl/comimpl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
554 $(call MSG_TOOL,xsltproc,autogen events,$<,$@)
555 $(QUIET)$(VBOX_XSLTPROC) --stringparam G_kind VBoxEvent -o $@ $< $(VBOX_XIDL_FILE)
556
557OTHER_CLEAN += $(VBOX_AUTOGEN_EVENT_H) $(VBOX_AUTOGEN_EVENT_CPP)
558
559ifdef VBOX_WITH_XPCOM
560#
561# VBoxSVCM - VBoxSVC wrapper module
562#
563DLLS += VBoxSVCM
564VBoxSVCM_TEMPLATE = VBOXMAINCOMP
565VBoxSVCM_DEFS = IN_RING3 $(VBOX_MAIN_DEFS)
566ifdef VBOX_WITH_HARDENING
567 VBoxSVCM_DEFS += VBOX_WITH_HARDENING
568endif
569VBoxSVCM_INCS = \
570 include \
571 $(VBoxC_0_OUTDIR) \
572 .
573VBoxSVCM_INTERMEDIATES = $(VBOX_MAIN_PREREQS)
574VBoxSVCM_SOURCES = \
575 src-server/xpcom/server_module.cpp
576VBoxSVCM_LDFLAGS.darwin = \
577 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/components/VBoxSVCM.dylib \
578 -exported_symbols_list $(VBoxSVCM_0_OUTDIR)/VBoxSVCM.def
579 ifeq ($(KBUILD_TARGET),darwin)
580VBoxSVCM_ORDERDEPS += $(VBoxSVCM_0_OUTDIR)/VBoxSVCM.def
581VBoxSVCM_CLEAN += $(VBoxSVCM_0_OUTDIR)/VBoxSVCM.def
582$$(VBoxSVCM_0_OUTDIR)/VBoxSVCM.def:
583 $(RM) -f $@
584 $(APPEND) $@ _NSGetModule
585 endif
586VBoxSVCM_INTERMEDIATES += $(VBOX_IDL_HEADER.XPCOM)
587
588 # 32-bit version of the module.
589 ifdef VBOX_WITH_32_ON_64_MAIN_API
590DLLS += VBoxSVCM-x86
591VBoxSVCM-x86_TEMPLATE = VBoxMainComp-x86
592VBoxSVCM-x86_EXTENDS = VBoxSVCM
593 endif
594
595endif # VBOX_WITH_XPCOM
596
597
598#
599# VBoxC module
600#
601DLLS += VBoxC
602VBoxC_TEMPLATE = VBOXMAINCOMP
603VBoxC_DEFS = \
604 IN_RING3 \
605 $(VBOX_MAIN_DEFS) \
606 VBOX_COM_INPROC \
607 $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) \
608 $(if $(VBOX_WITH_ALSA),VBOX_WITH_ALSA,) \
609 $(if $(VBOX_WITH_PULSE),VBOX_WITH_PULSE,) \
610 $(if $(VBOX_WITH_WINMM),VBOX_WITH_WINMM,) \
611 $(if $(VBOX_WITH_SOLARIS_OSS),VBOX_WITH_SOLARIS_OSS,) \
612 $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000,) \
613 $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO,) \
614 $(if $(VBOX_WITH_EFI),VBOX_WITH_EFI,) \
615 $(if $(VBOX_WITH_PDM_ASYNC_COMPLETION),VBOX_WITH_PDM_ASYNC_COMPLETION,) \
616 $(if $(VBOX_WITH_LIVE_MIGRATION),VBOX_WITH_LIVE_MIGRATION,) \
617 $(if $(VBOX_WITH_VUSB),VBOX_WITH_VUSB,) \
618 $(if $(VBOX_WITH_HGSMI),VBOX_WITH_HGSMI,) \
619 $(if $(VBOX_WITH_VIDEOHWACCEL),VBOX_WITH_VIDEOHWACCEL,) \
620 $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP,) \
621 $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,) \
622 $(if $(VBOX_WITH_USB),VBOX_WITH_USB,) \
623 $(if-expr defined(VBOX_WITH_EHCI) && defined(VBOX_WITH_USB),VBOX_WITH_EHCI,) \
624 $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK,) \
625 $(if $(VBOX_WITH_PCI_PASSTHROUGH),VBOX_WITH_PCI_PASSTHROUGH,) \
626 $(if $(VBOX_WITH_VPX),VBOX_WITH_VPX,) \
627 $(if $(VBOX_WITH_PDM_AUDIO_DRIVER),VBOX_WITH_PDM_AUDIO_DRIVER,)
628ifdef VBOX_WITH_CRHGSMI
629 VBoxC_DEFS += VBOX_WITH_CRHGSMI
630endif
631ifdef VBOX_WITH_NETSHAPER
632 VBoxC_DEFS += VBOX_WITH_NETSHAPER
633endif
634VBoxC_DEFS.darwin.x86 = VBOX_WITH_2X_4GB_ADDR_SPACE
635VBoxC_DEFS.win.x86 += _WIN32_WINNT=0x0500
636VBoxC_DEFS.win.amd64 += _WIN32_WINNT=0x0510
637
638VBoxC_SDKS = VBOX_LIBPNG VBOX_ZLIB
639ifdef VBOX_WITH_VPX
640 VBoxC_SDKS += VBOX_VPX
641endif
642ifdef VBOX_WITH_OPENSSL_FIPS
643 VBoxC_SDKS += VBOX_OPENSSL2
644endif
645
646VBoxC_INCS = \
647 include \
648 $(VBoxC_0_OUTDIR) \
649 $(VBOX_MAIN_APIWRAPPER_INCS) \
650 $(dir $(VBOX_XML_SCHEMADEFS_H))
651VBoxC_INCS.win = \
652 $(VBoxCOM_0_OUTDIR) \
653 .
654
655VBoxC_LDFLAGS.darwin = \
656 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/components/VBoxC.dylib \
657 -exported_symbols_list $(VBoxC_0_OUTDIR)/VBoxC.def \
658 -framework IOKit
659VBoxC_LDFLAGS.win += /MANIFEST \
660 /DELAYLOAD:user32.dll
661
662
663VBoxC_LIBS += \
664 $(PATH_STAGE_LIB)/VBoxAPIWrap$(VBOX_SUFF_LIB) \
665 $(if-expr "$(LIB_VMM)" == "$(VBOX_LIB_VMM_LAZY)",$(LIB_REM),) \
666 $(VBOX_LIB_VMM_LAZY)
667VBoxC_LIBS.win += \
668 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib
669ifdef VBOX_WITH_NETFLT
670 VBoxC_LIBS.win += \
671 $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB) \
672 $(PATH_SDK_$(VBOX_WINDDK)_LIB)/Newdev.lib \
673 $(PATH_STAGE_LIB)/WinNetConfig$(VBOX_SUFF_LIB) \
674 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/comsupp.lib \
675 $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/WbemUuid.Lib
676 VBoxC_LDFLAGS.win += \
677 /DELAYLOAD:newdev.dll \
678 /DELAYLOAD:setupapi.dll \
679 /DELAYLOAD:iphlpapi.dll
680endif
681
682ifdef VBOX_WITH_CROGL
683 VBoxC_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
684 VBoxC_LDFLAGS.darwin += -framework OpenGL
685endif
686
687ifdef VBOX_WITH_DRAG_AND_DROP
688 VBoxC_LIBS += $(PATH_STAGE_LIB)/VBoxDnDHostR3Lib$(VBOX_SUFF_LIB)
689endif
690
691VBoxC_INTERMEDIATES = \
692 $(VBOX_MAIN_PREREQS) \
693 $(VBOX_XML_SCHEMADEFS_H) \
694 $(VBOX_AUTOGEN_EVENT_H) \
695 $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
696
697VBoxC_SOURCES = \
698 src-all/DisplayPNGUtil.cpp \
699 src-all/DisplayResampleImage.cpp \
700 src-all/DisplayUtils.cpp \
701 src-all/EventImpl.cpp \
702 src-all/Global.cpp \
703 src-all/HashedPw.cpp \
704 src-all/Logging.cpp \
705 src-all/PCIDeviceAttachmentImpl.cpp \
706 src-all/ProgressImpl.cpp \
707 src-all/SharedFolderImpl.cpp \
708 src-all/AutoCaller.cpp \
709 src-all/VirtualBoxBase.cpp \
710 src-all/VirtualBoxErrorInfoImpl.cpp \
711 $(if $(VBOX_WITH_EXTPACK),src-all/ExtPackManagerImpl.cpp src-all/ExtPackUtil.cpp,) \
712 src-client/UsbWebcamInterface.cpp \
713 $(if $(VBOX_WITH_USB_CARDREADER),src-client/UsbCardReader.cpp,) \
714 src-client/Nvram.cpp \
715 src-client/AdditionsFacilityImpl.cpp \
716 src-client/BusAssignmentManager.cpp \
717 $(if $(VBOX_WITH_PCI_PASSTHROUGH),src-client/PCIRawDevImpl.cpp,) \
718 src-client/ClientTokenHolder.cpp \
719 src-client/ConsoleImpl.cpp \
720 src-client/ConsoleImpl2.cpp \
721 src-client/ConsoleImplTeleporter.cpp \
722 src-client/ConsoleVRDPServer.cpp \
723 src-client/DisplayImpl.cpp \
724 src-client/DisplayImplLegacy.cpp \
725 src-client/DisplaySourceBitmapImpl.cpp \
726 src-client/EmulatedUSBImpl.cpp \
727 src-client/GuestImpl.cpp \
728 src-client/GuestDirectoryImpl.cpp \
729 src-client/GuestFileImpl.cpp \
730 src-client/GuestFsObjInfoImpl.cpp \
731 src-client/GuestProcessImpl.cpp \
732 src-client/GuestSessionImpl.cpp \
733 src-client/GuestCtrlImpl.cpp \
734 src-client/KeyboardImpl.cpp \
735 src-client/MachineDebuggerImpl.cpp \
736 src-client/MouseImpl.cpp \
737 src-client/RemoteUSBDeviceImpl.cpp \
738 src-client/SessionImpl.cpp \
739 src-client/USBDeviceImpl.cpp \
740 src-client/VBoxDriversRegister.cpp \
741 src-client/VirtualBoxClientImpl.cpp \
742 src-client/VMMDevInterface.cpp \
743 $(VBOX_AUTOGEN_EVENT_CPP) \
744 $(VBOX_XML_SCHEMADEFS_CPP)
745ifdef VBOX_WITH_PDM_AUDIO_DRIVER
746 VBoxC_SOURCES += \
747 src-client/DrvAudioVRDE.cpp
748else
749 VBoxC_SOURCES += \
750 src-client/AudioSnifferInterface.cpp
751endif
752VBoxC_SOURCES.win = \
753 src-client/win/dllmain.cpp \
754 src-client/win/VBoxC.def \
755 src-client/win/VBoxC.rc
756ifdef VBOX_WITH_GUEST_CONTROL
757 VBoxC_SOURCES += \
758 src-client/GuestSessionImplTasks.cpp \
759 src-client/GuestCtrlPrivate.cpp
760endif
761ifdef VBOX_WITH_DRAG_AND_DROP
762 VBoxC_SOURCES += \
763 src-client/GuestDnDPrivate.cpp \
764 src-client/GuestDnDSourceImpl.cpp \
765 src-client/GuestDnDTargetImpl.cpp
766endif
767ifdef VBOX_WITH_XPCOM
768 VBoxC_SOURCES += \
769 src-client/xpcom/module.cpp
770endif
771ifdef VBOX_WITH_HGCM
772 VBoxC_SOURCES += \
773 src-client/HGCMObjects.cpp \
774 src-client/HGCMThread.cpp \
775 src-client/HGCM.cpp
776endif
777ifdef VBOX_WITH_USB
778 VBoxC_SOURCES += \
779 src-client/RemoteUSBBackend.cpp
780endif
781ifdef VBOX_WITH_VPX
782 VBoxC_SOURCES += \
783 src-client/EbmlWriter.cpp \
784 src-client/VideoRec.cpp
785endif
786
787ifeq ($(KBUILD_TARGET),darwin)
788VBoxC_ORDERDEPS += $(VBoxC_0_OUTDIR)/VBoxC.def
789VBoxC_CLEAN += $(VBoxC_0_OUTDIR)/VBoxC.def
790$$(VBoxC_0_OUTDIR)/VBoxC.def: $(MAKEFILE_CURRENT)
791 $(RM) -f $@
792 $(APPEND) $@ _NSGetModule
793 $(APPEND) $@ _VBoxDriversRegister
794endif
795
796src-client/ConsoleImpl.cpp_DEFS = \
797 $(if $(VBOX_BLEEDING_EDGE),VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\",) \
798 $(if $(VBOX_WITH_OPENSSL_FIPS), VBOX_OPENSSL_FIPS,)
799
800
801src-client/win/VBoxC.rc_DEPS = $(VBoxC_0_OUTDIR)/VBoxC.rgs $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb
802VBoxC_CLEAN.win += $(VBoxC_0_OUTDIR)/VBoxC.rgs
803
804$$(VBoxC_0_OUTDIR)/VBoxC.rgs: $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
805 $(VBOX_XSLTPROC) --stringparam Module VBoxC -o $@ $< $(VBOX_XIDL_FILE)
806
807ifdef VBOX_WITH_32_ON_64_MAIN_API
808 #
809 # 32-bit VBox API Client In-Process module.
810 #
811 # This is currently just a 32-bit version of VBoxC. It might be desirable to
812 # split up VBoxC into a simple client and a VM client part later, in which
813 # case this module will be a simple client.
814 #
815 # Note! One important thing is that the typelib for this DLL must be build
816 # with the /env win32 switch and the VBoxC typelib with /env amd64, if
817 # not they will overwrite each others typelib module entry.
818 #
819 DLLS += VBoxClient-x86
820 VBoxClient-x86_TEMPLATE = VBoxMainComp-x86
821 VBoxClient-x86_EXTENDS = VBoxC
822 VBoxClient-x86_DEFS = VBOX_COM_INPROC_API_CLIENT $(VBoxC_DEFS)
823 VBoxClient-x86_INST.win = $(INST_DLL)x86/
824 VBoxClient-x86_INCS.win = \
825 $(VBoxClient-x86_0_OUTDIR) \
826 $(VBoxCOM-x86_0_OUTDIR) \
827 $(VBoxC_INCS.win)
828 VBoxClient-x86_SOURCES = \
829 src-all/EventImpl.cpp \
830 src-all/Global.cpp \
831 src-all/AutoCaller.cpp \
832 src-all/VirtualBoxBase.cpp \
833 src-all/VirtualBoxErrorInfoImpl.cpp \
834 src-client/ClientTokenHolder.cpp \
835 src-client/SessionImpl.cpp \
836 src-client/VirtualBoxClientImpl.cpp \
837 $(VBOX_AUTOGEN_EVENT_CPP) \
838 $(VBOX_XML_SCHEMADEFS_CPP)
839 VBoxClient-x86_SOURCES.win = \
840 src-client/win/dllmain.cpp \
841 src-client/win/VBoxClient-x86.def \
842 src-client/win/VBoxClient-x86.rc
843 ifdef VBOX_WITH_XPCOM
844 VBoxClient-x86_SOURCES += \
845 src-client/xpcom/module.cpp
846 endif
847 VBoxClient-x86_LIBS = \
848 $(PATH_STAGE_LIB)/VBoxAPIWrap-x86$(VBOX_SUFF_LIB)
849 VBoxClient-x86_LIBS.win = $(NO_SUCH_VARIABLE)
850 VBoxClient-x86_LIBS.win.x86 = $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/delayimp.lib
851 VBoxClient-x86_CLEAN.win += $(VBoxClient-x86_0_OUTDIR)/VBoxClient-x86.rgs
852 src-client/win/VBoxClient-x86.rc_DEPS = \
853 $(VBoxClient-x86_0_OUTDIR)/VBoxClient-x86.rgs \
854 $(VBoxCOM-x86_0_OUTDIR)/VirtualBox-x86.tlb
855
856 $$(VBoxClient-x86_0_OUTDIR)/VBoxClient-x86.rgs: \
857 $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl \
858 $(VBOX_XIDL_FILE) | $$(dir $$@)
859 $(VBOX_XSLTPROC) --stringparam Module VBoxC -o $@ $< $(VBOX_XIDL_FILE)
860
861endif
862
863
864#
865# VBoxCOM - COM Abstraction Layer library
866#
867LIBRARIES += VBoxCOM
868VBoxCOM_TEMPLATE = VBoxMainLib
869VBoxCOM_INTERMEDIATES = $(VBOX_MAIN_PREREQS) \
870 $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
871VBoxCOM_SOURCES = \
872 glue/com.cpp \
873 glue/initterm.cpp \
874 glue/string.cpp \
875 glue/AutoLock.cpp \
876 glue/EventQueue.cpp \
877 glue/NativeEventQueue.cpp \
878 glue/ErrorInfo.cpp \
879 glue/errorprint.cpp
880VBoxCOM_INCS += $(VBOX_MAIN_APIWRAPPER_INCS) \
881 include
882ifeq ($(KBUILD_TARGET),win)
883 VBoxCOM_DEFS.x86 = _WIN32_WINNT=0x0500
884 VBoxCOM_DEFS.amd64 = _WIN32_WINNT=0x0510
885 VBoxCOM_SOURCES += \
886 $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c
887else # !win
888 VBoxCOM_SOURCES += \
889 $(VBoxCOM_0_OUTDIR)/VirtualBox_XPCOM_i.c \
890 glue/xpcom/helpers.cpp
891endif # !win
892
893glue/com.cpp_DEFS = \
894 $(if $(VBOX_BLEEDING_EDGE),VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\",) \
895 KBUILD_TYPE=\"$(KBUILD_TYPE)\"
896
897# 32-bit version of VBoxCOM.
898ifdef VBOX_WITH_32_ON_64_MAIN_API
899 LIBRARIES += VBoxCOM-x86
900 VBoxCOM-x86_TEMPLATE = VBoxMainLib-x86
901 VBoxCOM-x86_EXTENDS = VBoxCOM
902endif
903
904
905
906#
907# The VBoxExtPackHelperApp.
908#
909ifdef VBOX_WITH_EXTPACK
910 PROGRAMS += VBoxExtPackHelperApp
911 VBoxExtPackHelperApp_TEMPLATE = VBoxR3SetUidToRoot
912 VBoxExtPackHelperApp_LDFLAGS.darwin = -framework Security
913 VBoxExtPackHelperApp_LDFLAGS.win = /SUBSYSTEM:windows
914 VBoxExtPackHelperApp_SOURCES = \
915 src-helper-apps/VBoxExtPackHelperApp.cpp \
916 src-all/ExtPackUtil.cpp
917 VBoxExtPackHelperApp_LIBS = \
918 $(LIB_RUNTIME)
919endif # VBOX_WITH_EXTPACK
920
921#
922# VolInfo
923#
924ifdef VBOX_WITH_DEVMAPPER
925 PROGRAMS.linux += VBoxVolInfo
926 VBoxVolInfo_TEMPLATE = VBoxR3SetUidToRoot
927 VBoxVolInfo_SOURCES = src-helper-apps/VBoxVolInfo.cpp
928 VBoxVolInfo_LIBS = devmapper
929endif
930
931endif # !VBOX_ONLY_SDK (the ifndef is far above)
932
933
934#
935# Installs com related thing(s) to bin.
936#
937INSTALLS.win += VBoxMain-com-inst
938VBoxMain-com-inst_INST = $(INST_BIN)
939VBoxMain-com-inst_MODE = a+r,u+w
940VBoxMain-com-inst_SOURCES = src-all/win/comregister.cmd
941
942
943if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "linux"
944 #
945 # Installs linux/hardening related things to components.
946 #
947 INSTALLS.linux += VBoxMain-hardening-inst
948 VBoxMain-hardening-inst_INST = $(INST_BIN)components/
949 VBoxMain-hardening-inst_SYMLINKS = \
950 VBoxDDU.so=>../VBoxDDU.so \
951 VBoxREM.so=>../VBoxREM.so \
952 VBoxRT.so=>../VBoxRT.so \
953 VBoxVMM.so=>../VBoxVMM.so \
954 VBoxXPCOM.so=>../VBoxXPCOM.so
955endif
956
957
958if defined(VBOX_WITH_MIDL_PROXY_STUB) && "$(KBUILD_TARGET)" == "win"
959 #
960 # Experimental COM proxy + stub DLL.
961 #
962 DLLS += VBoxProxyStub
963 VBoxProxyStub_TEMPLATE = VBOXMAINCOMP
964 VBoxProxyStub_DEFS = REGISTER_PROXY_DLL
965 VBoxProxyStub_DEFS.win.x86 = WIN32
966 VBoxProxyStub_SOURCES = \
967 $(VBoxCOM_0_OUTDIR)/dlldata.c \
968 $(VBoxCOM_0_OUTDIR)/VirtualBox_p.c \
969 $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c \
970 src-all/win/VBoxProxyStub.def
971
972 ifdef VBOX_WITH_32_ON_64_MAIN_API
973 DLLS += VBoxProxyStub-x86
974 VBoxProxyStub-x86_TEMPLATE = VBoxMainComp-x86
975 VBoxProxyStub-x86_DEFS = REGISTER_PROXY_DLL
976 VBoxProxyStub-x86_DEFS.win.x86 = WIN32
977 VBoxProxyStub-x86_SOURCES = \
978 $(VBoxCOM-x86_0_OUTDIR)/dlldata.c \
979 $(VBoxCOM-x86_0_OUTDIR)/VirtualBox_p.c \
980 $(VBoxCOM-x86_0_OUTDIR)/VirtualBox_i.c \
981 src-all/win/VBoxProxyStub.def
982 endif
983endif
984
985
986
987# generate rules
988include $(FILE_KBUILD_SUB_FOOTER)
989
990
991
992#
993# Additions rules.
994#
995
996## @todo this hack ain't cutting it any longer. (the file name is abspath'ed since ages now.)
997glue/xpcom/helpers.cpp: $(VBOX_IDL_TYPELIB.XPCOM)
998
999$(VBOX_IDL_FILE.XPCOM): $(VBOX_PATH_MAIN_SRC)/idl/xpidl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
1000 $(call MSG_TOOL,xsltproc,VBoxSVC,$<,$@)
1001 $(QUIET)$(VBOX_XSLTPROC) -o $@ $< $(VBOX_XIDL_FILE)
1002
1003$(VBOX_IDL_TYPELIB.XPCOM): $(VBOX_IDL_FILE.XPCOM) | $$(dir $$@) $(VBOX_XPIDL)
1004 $(call MSG_TOOL,xpidl,VBoxSVC,$<,$@)
1005 $(QUIET)$(VBOX_XPIDL_ENV)$(VBOX_XPIDL) -m typelib -I $(VBOX_PATH_XPCOM_IDL) -e $@ $<
1006 $(CHMOD) 0644 $@
1007## @todo ^^^^^^^^^^^^ fix horrible hack
1008
1009$(VBOX_IDL_HEADER.XPCOM): $(VBOX_IDL_FILE.XPCOM) | $$(dir $$@) $(VBOX_XPIDL)
1010 $(call MSG_TOOL,xpidl,VBoxSVC,$<,$@)
1011 $(QUIET)$(VBOX_XPIDL_ENV)$(VBOX_XPIDL) -m header -I $(VBOX_PATH_XPCOM_IDL) -e $@ $<
1012
1013$(VBOX_IDL_FILE.MSCOM): $(VBOX_PATH_MAIN_SRC)/idl/midl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
1014 $(call MSG_TOOL,xsltproc,VBoxSVC,$<,$@)
1015 $(QUIET)$(VBOX_XSLTPROC) -o $@ $(if $(VBOX_WITH_MIDL_PROXY_STUB),-stringparam g_fGenProxy yes,) $< $(VBOX_XIDL_FILE)
1016
1017# Aliases for testing purposes.
1018ifdef VBOX_WITH_XPCOM
1019testidl: $(VBOX_IDL_FILE.XPCOM) $(VBOX_IDL_TYPELIB.XPCOM) $(VBoxCOM_0_OUTDIR)/VirtualBox_XPCOM_i.c
1020testidlhdr: $(VBOX_IDL_HEADER.XPCOM)
1021else
1022testidl: $(VBOX_IDL_FILE.MSCOM) $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c \
1023 $(if $(VBOX_WITH_32_ON_64_MAIN_API),$(VBoxCOM-x86_0_OUTDIR)/VirtualBox_i.c,)
1024endif
1025
1026
1027$(VBoxCOM_0_OUTDIR)/VirtualBox_XPCOM_i.c: $(VBOX_PATH_MAIN_SRC)/idl/xpidl_iid.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
1028 $(call MSG_TOOL,xsltproc,VBoxSVC,$<,$@)
1029 $(QUIET)$(VBOX_XSLTPROC) -o $@ $< $(VBOX_XIDL_FILE)
1030
1031$(VBoxCOM_0_OUTDIR)/VirtualBox_i.c \
1032+ $(VBoxCOM_0_OUTDIR)/VirtualBox.h \
1033$(if $(VBOX_WITH_MIDL_PROXY_STUB),+ $(VBoxCOM_0_OUTDIR)/VirtualBox_p.c + $(VBoxCOM_0_OUTDIR)/dlldata.c,) \
1034+ $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb: $(VBOX_IDL_FILE.MSCOM) | $$(dir $$@)
1035 $(VBOX_WIN_MIDL) /nologo \
1036 $(if-expr "$(KBUILD_TARGET_ARCH)" == "amd64" && "$(KBUILD_HOST)" == "win",/env amd64,/env win32) \
1037 /robust /protocol all /target NT51 \
1038 /out $(call VBOX_FN_MAKE_WIN_PATH,$(VBoxCOM_0_OUTDIR)) \
1039 /cpp_cmd $(subst $(EXEC_X86_WIN32),,$(call VBOX_FN_MAKE_WIN_PATH,$(TOOL_$(VBOX_VCC_TOOL)_CC))) \
1040 /I $(call VBOX_FN_MAKE_WIN_PATH,$(PATH_SDK_$(VBOX_WINPSDK)_INC)) \
1041 /I idl \
1042 $(call VBOX_FN_MAKE_WIN_PATH,$<)
1043
1044$(VBoxCOM-x86_0_OUTDIR)/VirtualBox_i.c \
1045+ $(VBoxCOM-x86_0_OUTDIR)/VirtualBox.h \
1046$(if $(VBOX_WITH_MIDL_PROXY_STUB),+ $(VBoxCOM-x86_0_OUTDIR)/VirtualBox_p.c + $(VBoxCOM-x86_0_OUTDIR)/dlldata.c,) \
1047+ $(VBoxCOM-x86_0_OUTDIR)/VirtualBox-x86.tlb: $(VBOX_IDL_FILE.MSCOM) | $$(dir $$@)
1048 $(VBOX_WIN_MIDL) /nologo /env win32 /target NT51 \
1049 /robust /protocol all \
1050 /out $(call VBOX_FN_MAKE_WIN_PATH,$(VBoxCOM-x86_0_OUTDIR)) \
1051 /tlb $(call VBOX_FN_MAKE_WIN_PATH,$(VBoxCOM-x86_0_OUTDIR)/VirtualBox-x86.tlb) \
1052 /cpp_cmd $(subst $(EXEC_X86_WIN32),,$(call VBOX_FN_MAKE_WIN_PATH,$(TOOL_$(VBOX_VCC_TOOL_STEM)X86_CC))) \
1053 /I $(call VBOX_FN_MAKE_WIN_PATH,$(PATH_SDK_$(VBOX_WINPSDK)_INC)) \
1054 /I idl \
1055 $(call VBOX_FN_MAKE_WIN_PATH,$<)
1056
1057#
1058# Translation stuff
1059#
1060VBoxSVC_VBOX_HEADERS = \
1061 include/collection.h \
1062 include/MachineImpl.h
1063VBoxSVC_VBOX_TRANSLATIONS = \
1064 nls/VBoxSVC_de.ts
1065
1066VBoxC_VBOX_HEADERS = \
1067 include/ConsoleImpl.h
1068
1069VBoxC_VBOX_INTERMEDIATES = $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
1070VBoxC_VBOX_HEADERS += $(VBOX_MAIN_APIWRAPPER_INCS)
1071
1072VBoxC_VBOX_TRANSLATIONS = \
1073 nls/VBoxC_de.ts
1074
1075ifdef VBOX_WITH_JMSCOM
1076
1077#
1078# Java glue JAR files
1079#
1080VBOX_JMSCOM_JAR = $(VBoxJMscom-inst-jar_0_OUTDIR)/vboxjmscom.jar
1081VBOX_JMSCOM_TARGET := $(PATH_TARGET)/vboxjmscom-gen
1082VBOX_JMSCOM_GEN = $(VBOX_JMSCOM_TARGET)/jmscomgen
1083VBOX_JMSCOM_JDEST := $(VBOX_JMSCOM_TARGET)/jdest
1084VBOX_GLUE_XSLT_DIR := $(PATH_ROOT)/src/VBox/Main/glue
1085VBOX_JACOB_DIR := $(PATH_ROOT)/src/libs/jacob-1.17
1086
1087INSTALLS += VBoxJMscom-inst-jar
1088VBoxJMscom-inst-jar_INST = $(INST_SDK)bindings/mscom/java/
1089VBoxJMscom-inst-jar_MODE = a+r,u+w
1090VBoxJMscom-inst-jar_SOURCES = \
1091 $(VBOX_JMSCOM_JAR)
1092VBoxJMscom-inst-jar_CLEAN = \
1093 $(VBOX_JMSCOM_JAR) \
1094 $(VBOX_JMSCOM_GEN)/jmscomglue.list \
1095 $(wildcard \
1096 $(VBOX_JMSCOM_GEN)/java/*.java \
1097 $(VBOX_JMSCOM_JDEST)/*.class \
1098 $(VBOX_JMSCOM_JDEST)/*/*.class \
1099 $(VBOX_JMSCOM_JDEST)/*/*/*.class \
1100 $(VBOX_JMSCOM_JDEST)/*/*/*/*.class \
1101 )
1102VBoxJMscom-inst-jar_BLDDIRS += $(VBOX_JMSCOM_GEN)/java
1103
1104$(VBOX_JMSCOM_GEN)/jmscomglue.list: \
1105 $(VBOX_XIDL_FILE) \
1106 $(VBOX_GLUE_XSLT_DIR)/glue-java.xsl \
1107 $(VBOX_FILESPLIT) \
1108 | $(VBOX_JMSCOM_GEN)/java/
1109 $(call MSG_L1,Generating Java MSCOM glue files from XIDL)
1110 $(QUIET)$(RM) -f $(wildcard $(VBOX_JMSCOM_GEN)/java/*.java)
1111 $(QUIET)$(VBOX_XSLTPROC) \
1112 --stringparam filelistonly "" \
1113 --stringparam G_vboxApiSuffix $(VBOX_API_SUFFIX) \
1114 --stringparam G_vboxGlueStyle mscom \
1115 --stringparam G_vboxDirPrefix "" \
1116 -o $(VBOX_JMSCOM_GEN)/java/merged.file $(VBOX_GLUE_XSLT_DIR)/glue-java.xsl $<
1117 $(QUIET)$(VBOX_FILESPLIT) $(VBOX_JMSCOM_GEN)/java/merged.file $(VBOX_JMSCOM_GEN)/java
1118 $(QUIET)echo $(VBOX_JMSCOM_GEN)/java/*.java > $@
1119
1120$$(VBOX_JMSCOM_JAR): $(VBOX_JMSCOM_GEN)/jmscomglue.list | $$(dir $$@)
1121 $(call MSG_TOOL,javac,$(notdir $@),jmscomglue.list,)
1122 $(QUIET)$(RM) -Rf $(VBOX_JMSCOM_JDEST)
1123 $(QUIET)$(MKDIR) -p $(VBOX_JMSCOM_JDEST)
1124 $(call MSG_TOOL,javac,$(notdir $@),...,)
1125 $(QUIET)$(VBOX_JAVAC) $(VBOX_JAVAC_OPTS) @$(VBOX_JMSCOM_GEN)/jmscomglue.list \
1126 -d $(VBOX_JMSCOM_JDEST) -classpath "$(VBOX_JMSCOM_JDEST)$(VBOX_SEP)$(VBOX_JACOB_DIR)/jacob.jar"
1127 $(call MSG_LINK,$(notdir $@),$@)
1128 $(QUIET)$(VBOX_JAR) cf $@ -C $(VBOX_JMSCOM_JDEST) .
1129
1130## @todo compile TestVBox.java (see below) to have sanity checking
1131
1132endif # VBOX_WITH_JMSCOM
1133
1134#
1135# Install Java glue sample code.
1136#
1137INSTALLS += javagluesample
1138javagluesample_INST = $(INST_SDK)bindings/glue/java/
1139javagluesample_MODE = a+r,u+w
1140javagluesample_SOURCES = \
1141 $(VBOX_PATH_MAIN_SRC)/glue/tests/TestVBox.java=>TestVBox.java \
1142 $(VBOX_PATH_MAIN_SRC)/glue/tests/Makefile=>Makefile
1143
1144# Moved those rules to the end so that VBoxAPIWrap_0_OUTDIR can be expanded without $$ trickery.
1145$(VBoxAPIWrap_VBOX_RAWSRC) \
1146+| $(VBOX_MAIN_APIWRAPPER_GEN_FILES): \
1147 $(VBOX_XIDL_FILE) \
1148 $(VBoxAPIWrap_VBOX_XSLT) \
1149 $(VBOX_FILESPLIT) \
1150 | $$(dir $$@)
1151 $(call MSG_L1,Generating C++ Server API wrapper files from XIDL)
1152 $(QUIET)$(RM) -f $(filter-out $(VBOX_MAIN_APIWRAPPER_GEN_FILES),$(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.cpp) $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.h))
1153 $(QUIET)$(VBOX_XSLTPROC) --stringparam filelistonly "" -o $@ $(VBoxAPIWrap_VBOX_XSLT) $<
1154 $(QUIET)$(VBOX_FILESPLIT) $@ $(VBoxAPIWrap_0_OUTDIR)
1155
1156$(VBoxAPIWrap_VBOX_KMK_FILE).ts +| $(VBoxAPIWrap_VBOX_KMK_FILE): $(VBOX_XIDL_FILE) $(VBoxAPIWrap_VBOX_XSLT) $(VBOX_PATH_MAIN_SRC)/Makefile.kmk
1157 $(call MSG_GENERATE,,$(VBoxAPIWrap_VBOX_KMK_FILE))
1158 $(QUIET)$(RM) -f $@
1159 $(QUIET)$(MKDIR) -p $(@D)
1160 $(QUIET)$(VBOX_XSLTPROC) --stringparam filelistonly VBOX_MAIN_APIWRAPPER_GEN_FILES -o $@ $(VBoxAPIWrap_VBOX_XSLT) $<
1161 $(QUIET)$(APPEND) -n "$@" "" "" \
1162 'VBOX_MAIN_APIWRAPPER_GEN_FILES := $$(addprefix $$(VBOX_MAIN_APIWRAPPER_DIR)/,$$(VBOX_MAIN_APIWRAPPER_GEN_FILES))' \
1163 'VBOX_MAIN_APIWRAPPER_GEN_HDRS = $$(filter %.h,$$(VBOX_MAIN_APIWRAPPER_GEN_FILES))'
1164 $(QUIET)$(CP) --changed -fv $@ $(VBoxAPIWrap_VBOX_KMK_FILE)
1165
1166updatenls::
1167 $(VBOX_LUPDATE) $(VBoxSVC_SOURCES) $(VBoxSVC_VBOX_HEADERS) -ts $(VBoxSVC_VBOX_TRANSLATIONS)
1168 $(VBOX_LUPDATE) $(VBoxC_SOURCES) $(VBoxC_VBOX_HEADERS) -ts $(VBoxC_VBOX_TRANSLATIONS)
1169
1170testconverter:: $(VBOX_USER_HOME)/VirtualBox.xml
1171 $(call MSG_TOOL,xsltproc,Test Settings Converter,$<,$(VBOX_USER_HOME)/VirtualBox.xml.test)
1172 $(QUIET)$(VBOX_XSLTPROC) -o $(VBOX_USER_HOME)/VirtualBox.xml.test xml/SettingsConverter.xsl $<
1173
1174testconverter2:: $(VBOX_USER_HOME)/Machines/dos/dos.xml
1175 $(call MSG_TOOL,xsltproc,Test Settings Converter,$<,$<.test)
1176 $(QUIET)$(VBOX_XSLTPROC) -o $<.test xml/SettingsConverter.xsl $<
1177
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