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