VirtualBox

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

Last change on this file since 28766 was 28741, checked in by vboxsync, 15 years ago

Main/HostHardwareLinux: introduce an ifdef for building USB with raw sysfs and FAM support

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