VirtualBox

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

Last change on this file since 29576 was 29162, checked in by vboxsync, 15 years ago

SVC: link lsocket on Solaris too

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 27.3 KB
Line 
1# $Id: Makefile.kmk 29162 2010-05-06 15:15:40Z vboxsync $
2## @file
3# Makefile for the VBox Main module.
4#
5
6#
7# Copyright (C) 2006-2010 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# Include sub-makefile(s).
23#
24ifdef VBOX_WITH_WEBSERVICES
25 include $(PATH_SUB_CURRENT)/webservice/Makefile.kmk
26endif
27include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
28include $(PATH_SUB_CURRENT)/cbinding/Makefile.kmk
29
30
31#
32# Targets and globals (bit of a mess...)
33#
34VBOX_PATH_MAIN_SRC := $(PATH_SUB_CURRENT)
35
36ifdef VBOX_ONLY_SDK
37 # used by some rules
38 PATH_VBoxCOM = $(PATH_TARGET)/VBoxCOM
39 BLDDIRS += $(PATH_VBoxCOM) $(PATH_BIN)/components
40 # I'm Evil! Dr. Evil.
41 include $(KBUILD_PATH)/tools/VCC70.kmk
42 include $(KBUILD_PATH)/sdks/WINPSDK.kmk
43endif # !VBOX_ONLY_SDK
44
45
46# Construct VBOX_MAIN_DEFS
47## @todo eliminate or expand VBOX_MAIN_DEFS.
48VBOX_MAIN_DEFS =
49ifneq ($(KBUILD_TARGET),win)
50 ifndef VBOX_WITH_XPCOM
51 $(error "VBox: VBOX_WITH_XPCOM isn't defined")
52 endif
53 ifneq ($(KBUILD_TARGET),os2)
54 VBOX_MAIN_DEFS += VBOX_WITH_SYS_V_IPC_SESSION_WATCHER
55 endif
56endif
57VBOX_MAIN_DEFS += \
58 $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE,) \
59 $(if $(VBOX_WITH_NETFLT),VBOX_WITH_NETFLT,) \
60 $(if $(VBOX_WITH_CROGL),VBOX_WITH_CROGL,) \
61 $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,) \
62 $(if $(VBOX_WITH_GUEST_PROPS_RDONLY_GUEST),VBOX_WITH_GUEST_PROPS_RDONLY_GUEST,) \
63 $(if $(VBOX_WITH_GUEST_CONTROL),VBOX_WITH_GUEST_CONTROL,) \
64 $(if $(VBOX_WITH_HOSTNETIF_API),VBOX_WITH_HOSTNETIF_API,) \
65 $(if $(VBOX_WITH_VDE),VBOX_WITH_VDE,)
66
67# Unconditionally enable the new semaphore key generation code
68VBOX_MAIN_DEFS += VBOX_WITH_NEW_SYS_V_KEYGEN
69
70VBOX_IDL_FILE.MSCOM = $(VBOX_PATH_SDK)/bindings/mscom/idl/VirtualBox.idl
71VBOX_IDL_FILE.XPCOM = $(VBOX_PATH_SDK)/bindings/xpcom/idl/VirtualBox_XPCOM.idl
72
73VBOX_IDL_TYPELIB.XPCOM = $(PATH_BIN)/components/VirtualBox_XPCOM.xpt
74VBOX_IDL_HEADER.XPCOM = $(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_XPCOM.h
75
76# The MS COM specific stuff.
77if defined(VBOX_ONLY_SDK) || "$(KBUILD_TARGET)" == "win"
78 OTHERS += \
79 $(VBOX_IDL_FILE.MSCOM) \
80 $(VBOX_PATH_SDK)/bindings/mscom/include/VirtualBox.h \
81 $(VBOX_PATH_SDK)/bindings/mscom/lib/VirtualBox.tlb \
82 $(VBOX_PATH_SDK)/bindings/mscom/lib/VirtualBox_i.c
83 OTHER_CLEAN += \
84 $(VBOX_IDL_FILE.MSCOM) \
85 $(VBOX_PATH_SDK)/bindings/mscom/include/VirtualBox.h \
86 $(VBOX_PATH_SDK)/bindings/mscom/lib/VirtualBox.tlb \
87 $(VBOX_PATH_SDK)/bindings/mscom/lib/VirtualBox_i.c \
88 $(PATH_VBoxCOM)/VirtualBox.h \
89 $(PATH_VBoxCOM)/VirtualBox_i.c \
90 $(PATH_VBoxCOM)/VirtualBox.tlb
91
92 VBOX_MAIN_PREREQS += $(PATH_VBoxCOM)/VirtualBox_i.c
93 BLDDIRS += $(VBOX_PATH_SDK)/bindings/mscom/idl
94endif
95
96# The XPCOM specific stuff.
97if defined(VBOX_ONLY_SDK) || "$(KBUILD_TARGET)" != "win"
98 OTHERS += $(VBOX_IDL_FILE.XPCOM) $(VBOX_IDL_TYPELIB.XPCOM) $(VBOX_IDL_HEADER.XPCOM)
99 OTHER_CLEAN += \
100 $(VBOX_IDL_FILE.XPCOM) \
101 $(VBOX_IDL_HEADER.XPCOM) \
102 $(VBOX_IDL_TYPELIB.XPCOM)
103
104 VBOX_MAIN_PREREQS += $(VBOX_IDL_TYPELIB.XPCOM) $(VBOX_IDL_HEADER.XPCOM)
105 BLDDIRS += \
106 $(VBOX_PATH_SDK)/bindings/xpcom/idl \
107 $(VBOX_PATH_SDK)/bindings/xpcom/include
108endif # xpcom
109
110
111#
112# Strip documentation from source XIDL so that we don't get a full
113# recompile every time a comma in the documentation is changed.
114#
115$(VBOX_XIDL_FILE).ts +| $(VBOX_XIDL_FILE): \
116 $(VBOX_XIDL_FILE_SRC) \
117 $(VBOX_PATH_MAIN_SRC)/idl/docstrip.xsl \
118 | $$(dir $$@)
119# $(CP) -fv $< $(VBOX_XIDL_FILE).ts
120 $(VBOX_XSLTPROC) -o $(VBOX_XIDL_FILE).ts $(VBOX_PATH_MAIN_SRC)/idl/docstrip.xsl $<
121 $(CP) --changed -fv $(VBOX_XIDL_FILE).ts $(VBOX_XIDL_FILE)
122
123
124#
125# The Main API documentation
126#
127VBOX_MAIN_DOC_DIR = $(VBOX_PATH_SDK)/docs
128BLDDIRS += $(VBOX_MAIN_DOC_DIR)
129
130$(PATH_TARGET)/docs.Main: \
131 $(VBOX_PATH_MAIN_SRC)/Doxyfile.Main \
132 $(VBOX_PATH_MAIN_SRC)/idl/doxygen.xsl \
133 $(VBOX_XIDL_FILE_SRC) \
134 | $(PATH_TARGET)/ \
135 $(VBOX_MAIN_DOC_DIR)/
136 $(RM) -f $(wildcard $(VBOX_MAIN_DOC_DIR)/html/*) $(PATH_TARGET)/docs.Main
137 $(VBOX_XSLTPROC) -o $(PATH_TARGET)/VirtualBox.idl $(VBOX_PATH_MAIN_SRC)/idl/doxygen.xsl $(VBOX_XIDL_FILE_SRC)
138 $(REDIRECT) -E 'DOCDIR=$(VBOX_MAIN_DOC_DIR)' -E 'PATH_TARGET=$(PATH_TARGET)' -E 'PATH_CHM=$(subst /,\,$(VBOX_MAIN_DOC_DIR)/VirtualBoxAPI.chm)' \
139 -- doxygen $(VBOX_PATH_MAIN_SRC)/Doxyfile.Main
140 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) ">>>>>>>>>>>>>>>>>>>> Main.err: >>>>>>>>>>>>>>>>>>>>>>>>"
141 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(CAT) "$(PATH_TARGET)/Main.err"
142 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "<<<<<<<<<<<<<<<<<<<< Main.err <<<<<<<<<<<<<<<<<<<<<<<<<"
143 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> **************************************************"
144 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> Please fix above doxygen errors/warnings listed in"
145 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> $(PATH_TARGET)/Main.err"
146 $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> **************************************************"
147 -$(EXEC_X86_WIN32) $(VBOX_PATH_HTML_HELP_WORKSHOP)/hhc.exe $(subst /,\\,$(VBOX_MAIN_DOC_DIR)/html/index.hhp)
148 $(APPEND) $(PATH_TARGET)/docs.Main
149# aliases
150docs.main docs.Main: $(PATH_TARGET)/docs.Main
151if !defined(VBOX_ONLY_DOCS)
152docs: $(PATH_TARGET)/docs.Main
153endif
154
155
156#
157# Some SDK bit.
158#
159INSTALLS += VBox-main-xidl
160VBox-main-xidl_INST = $(INST_SDK)bindings/
161VBox-main-xidl_SOURCES = $(VBOX_XIDL_FILE_SRC)
162
163ifdef VBOX_WITH_PYTHON
164
165# or to some subdir?
166VBOX_PYTHON_CONSTANTS = $(PATH_TARGET)/VirtualBox_constants.py
167
168INSTALLS += VBox-python-glue
169VBox-python-glue_INST = $(INST_SDK)installer
170VBox-python-glue_SOURCES = glue/vboxapi.py=>vboxapi/__init__.py \
171 $(VBOX_PYTHON_CONSTANTS)=>vboxapi/VirtualBox_constants.py
172
173$(VBOX_PYTHON_CONSTANTS): $(VBOX_PATH_MAIN_SRC)/glue/constants-python.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
174 $(call MSG_TOOL,xsltproc,Python constants,$<,$@)
175 $(QUIET)$(VBOX_XSLTPROC) -o $@ $< $(VBOX_XIDL_FILE)
176
177endif # VBOX_WITH_PYTHON
178
179ifndef VBOX_ONLY_SDK # Note this goes on for *very* long
180
181#
182# Generate SchemaDefs.h and SchemaDefs.cpp from XML Schema
183# These two files are used by both VBoxC and VBoxSVC.
184#
185BLDDIRS += $(PATH_TARGET)/Main
186VBOX_XML_SCHEMADEFS_H = $(PATH_TARGET)/Main/SchemaDefs.h
187VBOX_XML_SCHEMADEFS_CPP = $(PATH_TARGET)/Main/SchemaDefs.cpp
188VBOX_XML_SCHEMADEFS_XSL = $(VBOX_PATH_MAIN_SRC)/xml/SchemaDefs.xsl
189
190testschemadefs: $(VBOX_XML_SCHEMADEFS_H) $(VBOX_XML_SCHEMADEFS_CPP)
191
192
193#
194# VBoxSVC executable
195#
196PROGRAMS += VBoxSVC
197VBoxSVC_TEMPLATE = VBOXMAINEXE
198VBoxSVC_DEFS = \
199 VBOX_MAIN_SETTINGS_ADDONS \
200 IN_VMM_STATIC \
201 $(VBOX_MAIN_DEFS) \
202 $(if $(VBOX_WITH_VBOXSDL),VBOX_WITH_VBOXSDL,) \
203 $(if $(VBOX_WITH_VRDP),VBOX_WITH_VRDP,) \
204 $(if $(VBOX_WITH_HEADLESS),VBOX_WITH_HEADLESS,) \
205 $(if $(VBOX_WITH_QTGUI),VBOX_WITH_QTGUI,) \
206 $(if $(VBOX_WITH_COCOA_QT),VBOX_WITH_COCOA_QT,) \
207 $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) \
208 $(if $(VBOX_MAIN_RELEASE_LOG),VBOX_MAIN_RELEASE_LOG LOG_ENABLED,) \
209 $(if $(VBOX_WITH_ALSA),VBOX_WITH_ALSA,) \
210 $(if $(VBOX_WITH_PULSE),VBOX_WITH_PULSE,) \
211 $(if $(VBOX_WITH_WINMM),VBOX_WITH_WINMM,) \
212 $(if $(VBOX_WITH_SOLARIS_OSS),VBOX_WITH_SOLARIS_OSS,) \
213 $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000,) \
214 $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO,) \
215 $(if $(VBOX_WITH_AHCI),VBOX_WITH_AHCI,) \
216 $(if $(VBOX_WITH_LSILOGIC),VBOX_WITH_LSILOGIC,) \
217 $(if $(VBOX_WITH_LINUX_COMPILER_H),VBOX_WITH_LINUX_COMPILER_H,) \
218 $(if $(VBOX_WITH_RESOURCE_USAGE_API),VBOX_WITH_RESOURCE_USAGE_API,) \
219 $(if $(VBOX_WITH_PDM_ASYNC_COMPLETION),VBOX_WITH_PDM_ASYNC_COMPLETION,) \
220 $(if $(VBOX_WITH_DBUS),$(if $(VBOX_USB_WITH_DBUS),VBOX_USB_WITH_DBUS,),) \
221 $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,) \
222 $(if $(VBOX_USB_WITH_INOTIFY),VBOX_USB_WITH_INOTIFY,) \
223 $(if $(VBOX_WITH_LIVE_MIGRATION),VBOX_WITH_LIVE_MIGRATION,) \
224 $(if $(VBOX_WITH_VUSB),VBOX_WITH_VUSB,)
225ifdef VBOX_WITH_USB
226 VBoxSVC_DEFS += \
227 VBOX_WITH_USB \
228 $(if $(VBOX_WITH_EHCI),VBOX_WITH_EHCI,) \
229 $(if $(VBOX_WITH_NEW_USB_CODE_ON_DARWIN),VBOX_WITH_NEW_USB_CODE_ON_DARWIN,) \
230 $(if $(VBOX_WITH_NEW_USB_CODE_ON_SOLARIS),VBOX_WITH_NEW_USB_CODE_ON_SOLARIS,)
231endif
232VBoxSVC_DEFS.win += VBOX_COM_OUTOFPROC_MODULE
233VBoxSVC_DEFS.win.x86 += _WIN32_WINNT=0x0500
234VBoxSVC_DEFS.win.amd64 += _WIN32_WINNT=0x0510
235# Try to load and use libhal at runtime for probing removable media
236# VBoxSVC_DEFS.linux += VBOX_USE_LIBHAL
237VBoxSVC_DEFS.solaris += VBOX_USE_LIBHAL
238VBoxSVC_DEFS.freebsd += VBOX_USE_LIBHAL
239ifdef VBOX_SOLARIS_NSL_RESOLVED
240 VBoxSVC_DEFS.solaris += VBOX_SOLARIS_NSL_RESOLVED
241endif
242
243VBoxSVC_CXXFLAGS = $(filter-out -Wno-unused,$(TEMPLATE_VBOXMAINEXE_CXXFLAGS))
244## @todo We're disabling optimizations on FreeBSD to work around strange linker
245# errors in release builds. Figure out why and how to work around it in a
246# more optimal fashion.
247VBoxSVC_CXXFLAGS.freebsd = -O0
248
249VBoxSVC_INCS = \
250 include \
251 $(PATH_VBoxSVC) \
252 $(dir $(VBOX_XML_SCHEMADEFS_H)) \
253 .
254VBoxSVC_INCS.win = \
255 $(PATH_VBoxCOM)
256ifdef VBOX_WITH_USB
257 VBoxSVC_INCS.os2 = \
258 $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
259endif
260
261VBoxSVC_LIBS += \
262 $(PATH_LIB)/SSMStandalone$(VBOX_SUFF_LIB) \
263 $(LIB_DDU)
264VBoxSVC_LIBS.solaris = \
265 adm \
266 nsl \
267 socket
268
269ifdef VBOX_WITH_NETFLT
270 ifdef VBOX_SOLARIS_NSL_RESOLVED
271 VBoxSVC_LIBS.solaris += devinfo
272 endif
273 VBoxSVC_LIBS.solaris += socket
274endif
275ifdef VBOX_WITH_USB
276 VBoxSVC_LIBS.solaris += \
277 devinfo
278endif
279
280VBoxSVC_INTERMEDIATES = \
281 $(VBOX_MAIN_PREREQS) \
282 $(VBOX_XML_SCHEMADEFS_H)
283
284VBoxSVC_SOURCES = \
285 Global.cpp \
286 Logging.cpp \
287 Matching.cpp \
288 xml/Settings.cpp \
289 VirtualBoxBase.cpp \
290 VirtualBoxErrorInfoImpl.cpp \
291 VirtualBoxImpl.cpp \
292 ApplianceImpl.cpp \
293 ApplianceImplExport.cpp \
294 ApplianceImplImport.cpp \
295 xml/ovfreader.cpp \
296 VFSExplorerImpl.cpp \
297 MachineImpl.cpp \
298 SnapshotImpl.cpp \
299 MediumImpl.cpp \
300 MediumLock.cpp \
301 MediumAttachmentImpl.cpp \
302 MediumFormatImpl.cpp \
303 ProgressImpl.cpp \
304 HostImpl.cpp \
305 HostNetworkInterfaceImpl.cpp \
306 DHCPServerImpl.cpp \
307 DHCPServerRunner.cpp \
308 GuestOSTypeImpl.cpp \
309 NATEngineImpl.cpp \
310 NetworkAdapterImpl.cpp \
311 SerialPortImpl.cpp \
312 ParallelPortImpl.cpp \
313 USBControllerImpl.cpp \
314 StorageControllerImpl.cpp \
315 AudioAdapterImpl.cpp \
316 SharedFolderImpl.cpp \
317 SystemPropertiesImpl.cpp \
318 BIOSSettingsImpl.cpp \
319 HostPower.cpp \
320 $(if $(VBOX_WITH_VRDP),VRDPServerImpl.cpp,) \
321 $(if $(VBOX_WITH_XPCOM),xpcom/server.cpp,) \
322 $(VBOX_XML_SCHEMADEFS_CPP)
323
324VBoxSVC_SOURCES.darwin = \
325 darwin/iokit.cpp \
326 darwin/HostPowerDarwin.cpp
327
328ifdef VBOX_WITH_CROGL
329 ifneq ($(KBUILD_TARGET),darwin)
330 VBoxSVC_SOURCES += generic/OpenGLTest.cpp
331 endif
332 VBoxSVC_SOURCES.darwin += darwin/OpenGLTestDarwin.cpp
333endif
334
335VBoxSVC_SOURCES.win = \
336 win/svcmain.cpp \
337 win/svchlp.cpp \
338 win/HostPowerWin.cpp \
339 win/VBoxSVC.rc
340
341VBoxSVC_SOURCES.linux = \
342 linux/HostHardwareLinux.cpp
343
344VBoxSVC_SOURCES.solaris = \
345 linux/vbox-libhal.cpp \
346 solaris/DynLoadLibSolaris.cpp
347
348VBoxSVC_SOURCES.freebsd = \
349 freebsd/HostHardwareFreeBSD.cpp
350
351ifdef VBOX_WITH_USB
352 ifdef VBOX_WITH_SYSFS_BY_DEFAULT
353 linux/USBProxyServiceLinux.cpp_DEFS += VBOX_WITH_SYSFS_BY_DEFAULT
354 endif
355 VBoxSVC_SOURCES += \
356 USBDeviceFilterImpl.cpp \
357 USBProxyService.cpp \
358 HostUSBDeviceImpl.cpp
359 VBoxSVC_SOURCES.darwin += darwin/USBProxyServiceDarwin.cpp
360 VBoxSVC_SOURCES.linux += linux/USBProxyServiceLinux.cpp
361 VBoxSVC_SOURCES.os2 += os2/USBProxyServiceOs2.cpp
362 VBoxSVC_SOURCES.solaris += solaris/USBProxyServiceSolaris.cpp
363 VBoxSVC_SOURCES.win += win/USBProxyServiceWindows.cpp
364 VBoxSVC_SOURCES.freebsd += freebsd/USBProxyServiceFreeBSD.cpp
365endif
366
367ifdef VBOX_WITH_NETFLT
368 # Note! The includes from the TOOL has lower priority than the SDKs,
369 # since comdef.h is in both the DDK and VCC we want to make sure
370 # we're using the VCC since we're not using the DDK compiler/crt.
371 # Since this is potentially risky, restrict it to the source file
372 # needing it.
373 win/NetIf-win.cpp_INCS.win += $(PATH_TOOL_$(VBOX_VCC_TOOL)_INC)
374 VBoxSVC_LIBS.win += \
375 $(PATH_LIB)/WinNetConfig.lib \
376 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/comsupp.lib \
377 $(PATH_SDK_WINPSDK_LIB)/WbemUuid.Lib
378 ifdef VBOX_NETFLT_ONDEMAND_BIND
379 VBoxSVC_DEFS.win += VBOX_NETFLT_ONDEMAND_BIND
380 endif
381endif
382VBoxSVC_LDFLAGS.darwin = -framework IOKit -framework SystemConfiguration
383
384ifdef VBOX_WITH_CROGL
385 VBoxSVC_LDFLAGS.darwin += -framework OpenGL
386endif
387
388ifeq ($(KBUILD_TYPE),debug)
389 VBoxSVC_LDFLAGS.linux += -rdynamic # for backtrace_symbols()
390endif
391
392ifdef VBOX_WITH_RESOURCE_USAGE_API
393 VBoxSVC_SOURCES += \
394 PerformanceImpl.cpp \
395 Performance.cpp
396 VBoxSVC_SOURCES.darwin += darwin/PerformanceDarwin.cpp
397 VBoxSVC_SOURCES.freebsd += freebsd/PerformanceFreeBSD.cpp
398 VBoxSVC_SOURCES.linux += linux/PerformanceLinux.cpp
399 VBoxSVC_SOURCES.os2 += os2/PerformanceOs2.cpp
400 VBoxSVC_SOURCES.solaris += solaris/PerformanceSolaris.cpp
401 VBoxSVC_SOURCES.win += win/PerformanceWin.cpp
402 VBoxSVC_LDFLAGS.darwin += -lproc
403 VBoxSVC_LDFLAGS.solaris += -lkstat
404 VBoxSVC_LDFLAGS.win += psapi.lib powrprof.lib
405endif
406
407ifdef VBOX_WITH_HOSTNETIF_API
408 VBoxSVC_SOURCES.win += win/NetIf-win.cpp
409 VBoxSVC_SOURCES.linux += linux/NetIf-linux.cpp
410 VBoxSVC_SOURCES.os2 += os2/NetIf-os2.cpp
411 VBoxSVC_SOURCES.darwin += darwin/NetIf-darwin.cpp
412 VBoxSVC_SOURCES.solaris += solaris/NetIf-solaris.cpp
413 VBoxSVC_SOURCES.freebsd += freebsd/NetIf-freebsd.cpp
414 VBoxSVC_DEFS += VBOX_WITH_HOSTNETIF_API
415 if1of ($(KBUILD_TARGET), linux darwin solaris freebsd)
416 VBoxSVC_SOURCES += generic/NetIf-generic.cpp
417 endif
418endif
419
420win/VBoxSVC.rc_INCS = $(PATH_VBoxSVC)
421win/VBoxSVC.rc_DEPS = $(PATH_VBoxSVC)/VBoxSVC.rgs $(PATH_VBoxSVC)/VBoxSVC-icon.rc
422win/VBoxSVC.rc_CLEAN = $(PATH_VBoxSVC)/VBoxSVC.rgs $(PATH_VBoxSVC)/VBoxSVC-icon.rc
423
424$$(PATH_VBoxSVC)/VBoxSVC-icon.rc: $(MAKEFILE_CURRENT) $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$(@D))
425 $(APPEND) -t $@ '1 ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
426
427$$(PATH_VBoxSVC)/VBoxSVC.rgs: $(VBOX_PATH_MAIN_SRC)/win/VirtualBox_rgs.xsl $(VBOX_XIDL_FILE) | $$(dir $$(@D))
428 $(VBOX_XSLTPROC) --stringparam Module VBoxSVC -o $@ $< $(VBOX_XIDL_FILE)
429
430#
431# Embed XML Schema files to VBoxSVC
432#
433VBOX_XML_SCHEMA_COMMON = $(VBOX_PATH_MAIN_SRC)/xml/VirtualBox-settings-common.xsd
434VBOX_XML_SCHEMA.darwin = $(VBOX_PATH_MAIN_SRC)/xml/VirtualBox-settings-macosx.xsd
435VBOX_XML_SCHEMA.linux = $(VBOX_PATH_MAIN_SRC)/xml/VirtualBox-settings-linux.xsd
436VBOX_XML_SCHEMA.freebsd = $(VBOX_PATH_MAIN_SRC)/xml/VirtualBox-settings-freebsd.xsd
437VBOX_XML_SCHEMA.win = $(VBOX_PATH_MAIN_SRC)/xml/VirtualBox-settings-windows.xsd
438VBOX_XML_SCHEMA.os2 = $(VBOX_PATH_MAIN_SRC)/xml/VirtualBox-settings-os2.xsd
439VBOX_XML_SCHEMA.solaris = $(VBOX_PATH_MAIN_SRC)/xml/VirtualBox-settings-solaris.xsd
440
441VBOX_XML_CONVERTER_TEMPLATE = $(VBOX_PATH_MAIN_SRC)/xml/SettingsConverter.xsl
442
443$$(PATH_VBoxSVC)/xml_VirtualBox_settings_xsd.h: $(VBOX_XML_SCHEMA.$(KBUILD_TARGET)) $(VBOX_BIN2C)
444 $(call MSG_TOOL,bin2c,VBoxSVC,$<,$@)
445 $(QUIET)$(VBOX_BIN2C) _xml_VirtualBox_settings_xsd $< $@
446
447$$(PATH_VBoxSVC)/xml_VirtualBox_settings_common_xsd.h: $(VBOX_XML_SCHEMA_COMMON) $(VBOX_BIN2C)
448 $(call MSG_TOOL,bin2c,VBoxSVC,$<,$@)
449 $(QUIET)$(VBOX_BIN2C) _xml_VirtualBox_settings_common_xsd $< $@
450
451$$(PATH_VBoxSVC)/xml_SettingsConverter_xsl.h: $(VBOX_XML_CONVERTER_TEMPLATE) $(VBOX_BIN2C)
452 $(call MSG_TOOL,bin2c,VBoxSVC,$<,$@)
453 $(QUIET)$(VBOX_BIN2C) _xml_SettingsConverter_xsl $< $@
454
455$(VBOX_XML_SCHEMADEFS_H): $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA.$(KBUILD_TARGET)) $(VBOX_XML_SCHEMA_COMMON) | $$(dir $$@)
456 $(call MSG_GENERATE,SchemaDefs,$@,$<)
457 $(VBOX_XSLTPROC) --stringparam mode declare -o $@ $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA.$(KBUILD_TARGET))
458
459$(VBOX_XML_SCHEMADEFS_CPP): $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA.$(KBUILD_TARGET)) $(VBOX_XML_SCHEMA_COMMON) | $$(dir $$@)
460 $(call MSG_GENERATE,SchemaDefs,$@,$<)
461 $(VBOX_XSLTPROC) --stringparam mode define -o $@ $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA.$(KBUILD_TARGET))
462
463OTHER_CLEAN += $(VBOX_XML_SCHEMADEFS_H) $(VBOX_XML_SCHEMADEFS_CPP)
464
465
466if ( defined(VBOX_WITH_QTGUI) \
467 && (defined(VBOX_WITH_CROGL) || defined(VBOX_WITH_VIDEOHWACCEL)) \
468 && !defined(VBOX_WITH_DEBUG_VCC_CRT))
469 ifneq ($(KBUILD_TARGET),darwin)
470 #
471 # VBoxTestOGL - OpenGL support test app.
472 # Note! Doesn't link with VBOX_WITH_DEBUG_VCC_CRT defined because it uses Qt.
473 #
474 ifdef VBOX_WITH_VIDEOHWACCEL
475 USES += qt4
476 endif
477 PROGRAMS += VBoxTestOGL
478 VBoxTestOGL_TEMPLATE = $(if $(VBOX_WITH_VIDEOHWACCEL),$(if $(VBOX_WITH_HARDENING),VBOXQT4GUI,VBOXQT4GUIEXE),VBOXMAINEXE)
479 VBoxTestOGL_SOURCES = generic/OpenGLTestApp.cpp
480 VBoxTestOGL_LIBS = \
481 $(if $(VBOX_WITH_CROGL), \
482 $(PATH_LIB)/VBoxOGLhostspuload$(VBOX_SUFF_LIB) \
483 $(VBOX_LIB_OGL_HOSTCRUTIL),) \
484 $(if $(VBOX_WITH_VIDEOHWACCEL), $(PATH_LIB)/VBoxOGL2D$(VBOX_SUFF_LIB),) \
485 $(LIB_RUNTIME)
486 VBoxTestOGL_DEFS += \
487 $(if $(VBOX_WITH_CROGL), VBOX_WITH_CROGL,) \
488 $(if $(VBOX_WITH_VIDEOHWACCEL), VBOX_WITH_VIDEOHWACCEL,) \
489 VBOX_BUILD_TARGET=\"$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)\" \
490 $(if $(VBOX_BLEEDING_EDGE),VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\",)
491 ifdef VBOX_WITH_VIDEOHWACCEL
492 VBoxTestOGL_QT_MODULES += Core Gui OpenGL
493 VBoxTestOGL_LDFLAGS.darwin += -framework OpenGL
494 VBoxTestOGL_LIBS.win += $(PATH_SDK_WINPSDK_LIB)/Opengl32.lib
495 if1of ($(KBUILD_TARGET), solaris linux freebsd)
496 # must come after VBoxOGL2D, therefore don't set the arch-specific LIBS variable here!
497 VBoxTestOGL_LIBS += GL
498 endif
499 endif
500 VBoxTestOGL_LDFLAGS.win = /SUBSYSTEM:windows
501 endif
502endif
503
504
505ifdef VBOX_WITH_XPCOM
506#
507# VBoxSVCM - VBoxSVC wrapper module
508#
509DLLS += VBoxSVCM
510VBoxSVCM_TEMPLATE = VBOXMAINCOMP
511VBoxSVCM_DEFS = IN_RING3 $(VBOX_MAIN_DEFS)
512ifdef VBOX_WITH_HARDENING
513 VBoxSVCM_DEFS += VBOX_WITH_HARDENING
514endif
515VBoxSVCM_INCS = \
516 include \
517 $(PATH_VBoxC) \
518 .
519VBoxSVCM_INTERMEDIATES = $(VBOX_MAIN_PREREQS)
520VBoxSVCM_SOURCES = \
521 xpcom/server_module.cpp
522VBoxSVCM_LDFLAGS.darwin = \
523 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/components/VBoxSVCM.dylib \
524 -exported_symbols_list $(PATH_VBoxSVCM)/VBoxSVCM.def
525 ifeq ($(KBUILD_TARGET),darwin)
526VBoxSVCM_ORDERDEPS += $(PATH_VBoxSVCM)/VBoxSVCM.def
527VBoxSVCM_CLEAN += $(PATH_VBoxSVCM)/VBoxSVCM.def
528$$(PATH_VBoxSVCM)/VBoxSVCM.def:
529 $(RM) -f $@
530 $(APPEND) $@ _NSGetModule
531 endif
532VBoxSVCM_INTERMEDIATES += $(VBOX_IDL_HEADER.XPCOM)
533
534endif # VBOX_WITH_XPCOM
535
536#
537# VBoxC module
538#
539DLLS += VBoxC
540VBoxC_TEMPLATE = VBOXMAINCOMP
541VBoxC_SDKS = VBOX_LIBPNG VBOX_ZLIB
542VBoxC_DEFS = \
543 IN_RING3 \
544 $(VBOX_MAIN_DEFS) \
545 VBOX_COM_INPROC \
546 $(if $(VBOX_WITH_VRDP),VBOX_WITH_VRDP,) \
547 $(if $(VBOX_WITH_VRDP_VIDEO_CHANNEL),VBOX_WITH_VRDP_VIDEO_CHANNEL,) \
548 $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) \
549 $(if $(VBOX_MAIN_RELEASE_LOG),VBOX_MAIN_RELEASE_LOG LOG_ENABLED,) \
550 $(if $(VBOX_WITH_ALSA),VBOX_WITH_ALSA,) \
551 $(if $(VBOX_WITH_PULSE),VBOX_WITH_PULSE,) \
552 $(if $(VBOX_WITH_WINMM),VBOX_WITH_WINMM,) \
553 $(if $(VBOX_WITH_SOLARIS_OSS),VBOX_WITH_SOLARIS_OSS,) \
554 $(if $(VBOX_WITH_CROSSBOW),VBOX_WITH_CROSSBOW,) \
555 $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000,) \
556 $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO,) \
557 $(if $(VBOX_WITH_EFI),VBOX_WITH_EFI,) \
558 $(if $(VBOX_WITH_HPET),VBOX_WITH_HPET,) \
559 $(if $(VBOX_WITH_SMC),VBOX_WITH_SMC,) \
560 $(if $(VBOX_WITH_LPC),VBOX_WITH_LPC,) \
561 $(if $(VBOX_WITH_PDM_ASYNC_COMPLETION),VBOX_WITH_PDM_ASYNC_COMPLETION,) \
562 $(if $(VBOX_WITH_LIVE_MIGRATION),VBOX_WITH_LIVE_MIGRATION,) \
563 $(if $(VBOX_WITH_VUSB),VBOX_WITH_VUSB,)
564ifdef VBOX_WITH_USB
565VBoxC_DEFS += \
566 VBOX_WITH_USB \
567 $(if $(VBOX_WITH_EHCI),VBOX_WITH_EHCI,)
568endif
569ifdef VBOX_WITH_OLD_VBVA_LOCK
570VBoxC_DEFS += VBOX_WITH_OLD_VBVA_LOCK
571endif
572ifdef VBOX_WITH_HGSMI
573VBoxC_DEFS += VBOX_WITH_HGSMI
574endif
575ifdef VBOX_WITH_VIDEOHWACCEL
576VBoxC_DEFS += VBOX_WITH_VIDEOHWACCEL
577endif
578
579ifdef VBOX_DYNAMIC_NET_ATTACH
580VBoxC_DEFS += VBOX_DYNAMIC_NET_ATTACH
581endif
582
583VBoxC_DEFS.darwin.x86 = VBOX_WITH_2X_4GB_ADDR_SPACE
584VBoxC_DEFS.win.x86 += _WIN32_WINNT=0x0500
585VBoxC_DEFS.win.amd64 += _WIN32_WINNT=0x0510
586
587#temporary define
588VBoxC_DEFS += MMSEAMLESS
589
590VBoxC_INCS = \
591 include \
592 $(PATH_VBoxC) \
593 $(dir $(VBOX_XML_SCHEMADEFS_H))
594VBoxC_INCS.win = \
595 $(PATH_VBoxCOM) \
596 .
597
598VBoxC_LDFLAGS.darwin = \
599 -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/components/VBoxC.dylib \
600 -exported_symbols_list $(PATH_VBoxC)/VBoxC.def \
601 -framework IOKit
602ifdef VBOX_USE_VCC80
603 VBoxC_LDFLAGS.win = /MANIFEST
604endif
605
606VBoxC_LIBS += \
607 $(LIB_VMM) \
608 $(LIB_REM)
609
610ifdef VBOX_WITH_NETFLT
611 VBoxC_LIBS.win += $(PATH_LIB)/WinNetConfig.lib \
612 $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/comsupp.lib \
613 $(PATH_SDK_WINPSDK_LIB)/WbemUuid.Lib
614endif
615
616VBoxC_INTERMEDIATES = \
617 $(VBOX_MAIN_PREREQS) \
618 $(VBOX_XML_SCHEMADEFS_H)
619
620VBoxC_SOURCES = \
621 Global.cpp \
622 Logging.cpp \
623 VBoxDll.cpp \
624 USBDeviceImpl.cpp \
625 RemoteUSBDeviceImpl.cpp \
626 VirtualBoxBase.cpp \
627 VirtualBoxErrorInfoImpl.cpp \
628 ProgressImpl.cpp \
629 SharedFolderImpl.cpp \
630 SessionImpl.cpp \
631 VirtualBoxCallbackImpl.cpp \
632 ConsoleImpl.cpp \
633 ConsoleImpl2.cpp \
634 ConsoleImplTeleporter.cpp \
635 ConsoleVRDPServer.cpp \
636 GuestImpl.cpp \
637 KeyboardImpl.cpp \
638 MouseImpl.cpp \
639 DisplayImpl.cpp \
640 DisplayResampleImage.cpp \
641 MachineDebuggerImpl.cpp \
642 VBoxDriversRegister.cpp \
643 AudioSnifferInterface.cpp \
644 VMMDevInterface.cpp \
645 $(VBOX_XML_SCHEMADEFS_CPP)
646VBoxC_SOURCES.win = \
647 win/dllmain.cpp \
648 win/VBoxC.def \
649 win/VBoxC.rc
650
651ifdef VBOX_WITH_XPCOM
652VBoxC_SOURCES += \
653 xpcom/module.cpp
654endif
655
656ifdef VBOX_WITH_HGCM
657VBoxC_SOURCES += \
658 hgcm/HGCMObjects.cpp \
659 hgcm/HGCMThread.cpp \
660 hgcm/HGCM.cpp
661endif
662
663ifdef VBOX_WITH_USB
664VBoxC_SOURCES += \
665 RemoteUSBBackend.cpp
666endif
667
668ifeq ($(KBUILD_TARGET),darwin)
669VBoxC_ORDERDEPS += $(PATH_VBoxC)/VBoxC.def
670VBoxC_CLEAN += $(PATH_VBoxC)/VBoxC.def
671$$(PATH_VBoxC)/VBoxC.def: $(MAKEFILE_CURRENT)
672 $(RM) -f $@
673 $(APPEND) $@ _NSGetModule
674 $(APPEND) $@ _VBoxDriversRegister
675endif
676
677ConsoleImpl.cpp_DEFS = \
678 VBOX_BUILD_TARGET=\"$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)\" \
679 $(if $(VBOX_BLEEDING_EDGE),VBOX_BLEEDING_EDGE=\"$(VBOX_BLEEDING_EDGE)\",)
680
681
682win/VBoxC.rc_DEPS = $(PATH_VBoxC)/VBoxC.rgs $(PATH_VBoxCOM)/VirtualBox.tlb
683VBoxC_CLEAN.win += $(PATH_VBoxC)/VBoxC.rgs
684
685$$(PATH_VBoxC)/VBoxC.rgs: $(VBOX_PATH_MAIN_SRC)/win/VirtualBox_rgs.xsl $(VBOX_XIDL_FILE) | $$(PATH_VBoxC)/
686 $(VBOX_XSLTPROC) --stringparam Module VBoxC -o $@ $< $(VBOX_XIDL_FILE)
687
688
689#
690# VBoxCOM - COM Abstraction Layer library
691#
692LIBRARIES += VBoxCOM
693VBoxCOM_TEMPLATE = VBOXMAINLIB
694VBoxCOM_INTERMEDIATES = $(VBOX_MAIN_PREREQS)
695VBoxCOM_SOURCES = \
696 glue/com.cpp \
697 glue/initterm.cpp \
698 glue/string.cpp \
699 glue/AutoLock.cpp \
700 glue/EventQueue.cpp \
701 glue/ErrorInfo.cpp \
702 glue/errorprint.cpp \
703 glue/SupportErrorInfo.cpp \
704 glue/VirtualBoxErrorInfo.cpp
705VBoxCOM_INCS += \
706 include
707ifeq ($(KBUILD_TARGET),win)
708 VBoxCOM_DEFS.x86 += _WIN32_WINNT=0x0500
709 VBoxCOM_DEFS.amd64 += _WIN32_WINNT=0x0510
710 VBoxCOM_SOURCES += \
711 $(PATH_VBoxCOM)/VirtualBox_i.c
712else # !win
713 VBoxCOM_SOURCES += \
714 xpcom/helpers.cpp
715endif # !win
716
717
718endif # !VBOX_ONLY_SDK (the ifndef is far above)
719
720
721#
722# Installs com related thing(s) to bin.
723#
724INSTALLS.win += VBoxMain-com-inst
725VBoxMain-com-inst_INST = $(INST_BIN)
726VBoxMain-com-inst_SOURCES = \
727 win/comregister.cmd
728
729
730if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "linux"
731 #
732 # Installs linux/hardening related things to components.
733 #
734 INSTALLS.linux += VBoxMain-hardening-inst
735 VBoxMain-hardening-inst_INST = $(INST_BIN)components/
736 VBoxMain-hardening-inst_SYMLINKS = \
737 VBoxDDU.so=>../VBoxDDU.so \
738 VBoxREM.so=>../VBoxREM.so \
739 VBoxRT.so=>../VBoxRT.so \
740 VBoxVMM.so=>../VBoxVMM.so \
741 VBoxXPCOM.so=>../VBoxXPCOM.so
742endif
743
744
745# generate rules
746include $(KBUILD_PATH)/subfooter.kmk
747
748
749
750#
751# Additions rules.
752#
753
754## @todo this hack ain't cutting it any longer. (the file name is abspath'ed since ages now.)
755xpcom/helpers.cpp: $(VBOX_IDL_TYPELIB.XPCOM)
756
757$(VBOX_IDL_FILE.XPCOM): $(VBOX_PATH_MAIN_SRC)/idl/xpidl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
758 $(call MSG_TOOL,xsltproc,VBoxSVC,$<,$@)
759 $(QUIET)$(VBOX_XSLTPROC) -o $@ $< $(VBOX_XIDL_FILE)
760
761$(VBOX_IDL_TYPELIB.XPCOM): $(VBOX_IDL_FILE.XPCOM) | $$(dir $$@) $(VBOX_XPIDL)
762 $(call MSG_TOOL,xpidl,VBoxSVC,$<,$@)
763 $(QUIET)$(VBOX_XPIDL_ENV)$(VBOX_XPIDL) -m typelib -I $(VBOX_PATH_XPCOM_IDL) -e $@ $<
764 $(CHMOD) 0644 $@
765## @todo ^^^^^^^^^^^^ fix horrible hack
766
767$(VBOX_IDL_HEADER.XPCOM): $(VBOX_IDL_FILE.XPCOM) | $$(dir $$@) $(VBOX_XPIDL)
768 $(call MSG_TOOL,xpidl,VBoxSVC,$<,$@)
769 $(QUIET)$(VBOX_XPIDL_ENV)$(VBOX_XPIDL) -m header -I $(VBOX_PATH_XPCOM_IDL) -e $@ $<
770
771
772VBOX_MAIN_IDL ?= $(EXEC_X86_WIN32) $(call VBOX_FN_MAKE_WIN_PATH,$(firstword $(wildcard \
773 $(PATH_SDK_WINPSDK_BIN)/Midl.Exe\
774 $(PATH_SDK_WINPSDK)/Bin/Midl.Exe\
775 $(PATH_DEVTOOLS)/win.x86/bin/midl.exe\
776 ) Sorry_Cannot_Find_The_Midl_Compiler_In_The_PSDK))
777IDL_DEFS = /nologo
778ifdef VBOX_WITH_VRDP
779 IDL_DEFS += /D VBOX_WITH_VRDP
780endif
781
782$(VBOX_IDL_FILE.MSCOM): $(VBOX_PATH_MAIN_SRC)/idl/midl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
783 $(call MSG_TOOL,xsltproc,VBoxSVC,$<,$@)
784 $(QUIET)$(VBOX_XSLTPROC) -o $@ $< $(VBOX_XIDL_FILE)
785
786# Aliases for testing purposes.
787ifdef VBOX_WITH_XPCOM
788testidl: $(VBOX_IDL_FILE.XPCOM) $(VBOX_IDL_TYPELIB.XPCOM)
789testidlhdr: $(VBOX_IDL_HEADER.XPCOM)
790else
791testidl: $(VBOX_IDL_FILE.MSCOM) $(PATH_VBoxCOM)/VirtualBox_i.c
792endif
793
794
795## @todo r=bird: last changes to this rule showed incorrect dependencies here as it broke testcase (see testboxwin2).
796# This is kind of obvious when looking at the rule, because it's (a) not specifying all it output
797# and (b) generating more stuff *after* the main target has been completed.
798#
799# What needs to be done is to not depend on _i.c in the object subdir, but on all the final outputs.
800$(PATH_VBoxCOM)/VirtualBox_i.c \
801+ $(VBOX_PATH_SDK)/bindings/mscom/lib/VirtualBox_i.c \
802+ $(PATH_VBoxCOM)/VirtualBox.h \
803+ $(VBOX_PATH_SDK)/bindings/mscom/include/VirtualBox.h \
804+ $(PATH_VBoxCOM)/VirtualBox.tlb \
805+ $(VBOX_PATH_SDK)/bindings/mscom/lib/VirtualBox.tlb: $(VBOX_IDL_FILE.MSCOM) | $(call DIRDEP,$(PATH_VBoxCOM))
806 $(VBOX_MAIN_IDL) $(IDL_DEFS) \
807 /out $(call VBOX_FN_MAKE_WIN_PATH,$(PATH_VBoxCOM)) \
808 /cpp_cmd $(subst $(EXEC_X86_WIN32),,$(call VBOX_FN_MAKE_WIN_PATH,$(TOOL_$(VBOX_VCC_TOOL)_CC))) \
809 /I $(call VBOX_FN_MAKE_WIN_PATH,$(PATH_SDK_WINPSDK_INC)) \
810 /I idl \
811 $(call VBOX_FN_MAKE_WIN_PATH,$<)
812 $(MKDIR) -p $(VBOX_PATH_SDK)/bindings/mscom/include
813 $(CP) $(PATH_VBoxCOM)/VirtualBox.h $(VBOX_PATH_SDK)/bindings/mscom/include
814 $(MKDIR) -p $(VBOX_PATH_SDK)/bindings/mscom/lib
815 $(CP) $(PATH_VBoxCOM)/VirtualBox.tlb $(VBOX_PATH_SDK)/bindings/mscom/lib
816 $(CP) $(PATH_VBoxCOM)/VirtualBox_i.c $(VBOX_PATH_SDK)/bindings/mscom/lib
817
818#
819# Translation stuff
820#
821VBoxSVC_VBOX_HEADERS = \
822 include/collection.h \
823 include/MachineImpl.h
824VBoxSVC_VBOX_TRANSLATIONS = \
825 nls/VBoxSVC_de.ts
826
827VBoxC_VBOX_HEADERS = \
828 include/ConsoleImpl.h
829VBoxC_VBOX_TRANSLATIONS = \
830 nls/VBoxC_de.ts
831
832updatenls::
833 $(VBOX_LUPDATE) $(VBoxSVC_SOURCES) $(VBoxSVC_VBOX_HEADERS) -ts $(VBoxSVC_VBOX_TRANSLATIONS)
834 $(VBOX_LUPDATE) $(VBoxC_SOURCES) $(VBoxC_VBOX_HEADERS) -ts $(VBoxC_VBOX_TRANSLATIONS)
835
836testconverter:: $(VBOX_USER_HOME)/VirtualBox.xml
837 $(call MSG_TOOL,xsltproc,Test Settings Converter,$<,$(VBOX_USER_HOME)/VirtualBox.xml.test)
838 $(QUIET)$(VBOX_XSLTPROC) -o $(VBOX_USER_HOME)/VirtualBox.xml.test xml/SettingsConverter.xsl $<
839
840testconverter2:: $(VBOX_USER_HOME)/Machines/dos/dos.xml
841 $(call MSG_TOOL,xsltproc,Test Settings Converter,$<,$<.test)
842 $(QUIET)$(VBOX_XSLTPROC) -o $<.test xml/SettingsConverter.xsl $<
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