VirtualBox

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

Last change on this file since 3728 was 3720, checked in by vboxsync, 18 years ago

VRDP NO_COM code in Main.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 15.3 KB
Line 
1# $Id: Makefile.kmk 3720 2007-07-19 16:08:54Z vboxsync $
2## @file
3# Makefile for the VBox Main module.
4#
5
6#
7# Copyright (C) 2006-2007 innotek GmbH
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 as published by the Free Software Foundation,
13# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
14# distribution. VirtualBox OSE is distributed in the hope that it will
15# be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17# If you received this file as part of a commercial VirtualBox
18# distribution, then only the terms of your commercial VirtualBox
19# license agreement apply instead of the previous paragraph.
20#
21
22DEPTH = ../../..
23include $(PATH_KBUILD)/header.kmk
24
25SUBDIRS_AFTER = testcase
26
27ifndef VBOX_OSE
28SUBDIRS_AFTER += webservice
29endif
30
31LIBRARIES = VBoxCOM
32DLLS = VBoxXML VBoxC
33PROGRAMS = VBoxSVC
34ifneq ($(BUILD_TARGET),win)
35 ifndef VBOX_WITH_XPCOM
36 $(error "VBox: VBOX_WITH_XPCOM isn't defined")
37 endif
38 DLLS += VBoxSVCM
39 ifneq ($(BUILD_TARGET),os2)
40 DEFS += VBOX_WITH_SYS_V_IPC_SESSION_WATCHER
41 endif
42 DEFS += VBOX_WITH_UNIXY_TAP_NETWORKING
43endif
44
45#PROGRAMS = tstCFGLdr
46
47ifeq ($(BUILD_TARGET),win)
48 OTHERS = $(PATH_BIN)/comregister.cmd
49 IDLFILE = $(VBOX_PATH_SDK)/idl/VirtualBox.idl
50 OTHER_CLEAN = \
51 $(PATH_BIN)/comregister.cmd \
52 $(VBOX_PATH_SDK)/include/VirtualBox.h \
53 $(IDLFILE) \
54 $(VBOX_PATH_SDK)/lib/VirtualBox.tlb \
55 $(VBOX_PATH_SDK)/lib/VirtualBox_i.c \
56 $(PATH_VBoxCOM)/VirtualBox.h \
57 $(PATH_VBoxCOM)/VirtualBox_i.c \
58 $(PATH_VBoxCOM)/VirtualBox.tlb
59else
60 INSTALLS = xpcom-components
61 IDLFILE = $(VBOX_PATH_SDK)/idl/VirtualBox_XPCOM.idl
62 ifeq ($(BUILD_TARGET),linux)
63 IDLTYPELIB = $(PATH_BIN)/VirtualBox_XPCOM.xpt
64 else
65 IDLTYPELIB = $(PATH_BIN)/components/VirtualBox_XPCOM.xpt
66 endif
67 IDLHEADER = $(VBOX_PATH_SDK)/include/VirtualBox_XPCOM.h
68 OTHERS = $(IDLTYPELIB)
69 OTHER_CLEAN = \
70 $(IDLFILE) \
71 $(IDLHEADER) \
72 $(IDLTYPELIB)
73
74endif
75
76
77
78#
79# The Main API documentation
80#
81docs: $(PATH_TARGET)/docs.Main
82
83$(PATH_TARGET)/docs.Main: \
84 Doxyfile.Main \
85 idl/doxygen.xsl \
86 idl/VirtualBox.xidl \
87 | $(call DIRDEP, $(PATH_TARGET)) \
88 $(call DIRDEP, $(PATH_OUT)/docs/Main)
89 $(RM) -f $(wildcard $(PATH_OUT)/docs/Main/html/*)
90 $(VBOX_XSLTPROC) -o $(PATH_TARGET)/VirtualBox.idl idl/doxygen.xsl idl/VirtualBox.xidl
91 PATH_OUT="$(PATH_OUT)" PATH_TARGET="$(PATH_TARGET)" PATH_CHM="$(subst /,\\,$(PATH_BIN)/VirtualBoxAPI.chm)" doxygen Doxyfile.Main
92 -$(EXEC_X86_WIN32) $(VBOX_PATH_HTML_HELP_WORKSHOP)/hhc.exe $(subst /,\\,$(PATH_OUT)/docs/Main/html/index.hhp)
93 $(APPEND) $(PATH_TARGET)/docs.Main
94
95$(call DIRDEP, $(PATH_OUT)/docs/Main):
96 $(MKDIR) -p $@
97
98
99#
100# VBoxSVC executable
101#
102
103VBoxSVC_TEMPLATE = VBOXMAINEXE
104VBoxSVC_DEFS = CFGLDR_HAVE_COM IN_CFGLDR_R3
105ifdef VBOX_WITH_VRDP
106VBoxSVC_DEFS += VBOX_VRDP IN_VRDP_R3
107endif
108ifdef VBOX_WITH_HGCM
109VBoxSVC_DEFS += VBOX_HGCM
110endif
111ifdef VBOX_MAIN_RELEASE_LOG
112VBoxSVC_DEFS += VBOX_MAIN_RELEASE_LOG LOG_ENABLED
113endif
114ifdef VBOX_WITH_USB
115VBoxSVC_DEFS += VBOX_WITH_USB
116endif
117ifdef VBOX_WITH_ALSA
118VBoxSVC_DEFS += VBOX_WITH_ALSA
119endif
120ifdef VBOX_WITH_WINMM
121VBoxSVC_DEFS += VBOX_WITH_WINMM
122endif
123ifdef VBOX_WITHOUT_LINUX_COMPILER_H
124VBoxSVC_DEFS += VBOX_WITHOUT_LINUX_COMPILER_H
125endif
126
127VBoxSVC_DEFS.win += VBOX_COM_OUTOFPROC_MODULE
128VBoxSVC_DEFS.win.x86 += _WIN32_WINNT=0x0500
129VBoxSVC_DEFS.win.amd64 += _WIN32_WINNT=0x0510
130VBoxSVC_INCS = \
131 include \
132 $(PATH_VBoxSVC) \
133 $(PATH_VBoxCOM) \
134 $(PATH_CURRENT)
135ifeq ($(BUILD_TARGET),win)
136 VBoxSVC_LIBS += \
137 $(PATH_LIB)/VBoxDDU$(VBOX_SUFF_LIB) \
138 $(PATH_LIB)/VBoxXML$(VBOX_SUFF_LIB)
139else
140 VBoxSVC_LIBS += \
141 $(PATH_BIN)/VBoxDDU$(VBOX_SUFF_DLL) \
142 $(PATH_BIN)/VBoxXML$(VBOX_SUFF_DLL)
143endif
144VBoxSVC_LIBS.darwin = \
145 $(LIB_VMM) \
146 $(LIB_REM)
147
148ifdef VBOX_WITH_LIBHAL
149VBoxSVC_CXXFLAGS += \
150 $(LIB_HAL_CFLAGS)
151VBoxSVC_LIBPATH += \
152 $(LIB_HAL_LIBPATH)
153VBoxSVC_LIBS += \
154 $(LIB_HAL_LIBS)
155VBoxSVC_DEFS += \
156 VBOX_USE_LIBHAL
157endif
158
159VBoxSVC_SOURCES = \
160 Logging.cpp \
161 Matching.cpp \
162 USBDeviceFilterImpl.cpp \
163 USBProxyService.cpp \
164 VirtualBoxBase.cpp \
165 VirtualBoxXMLUtil.cpp \
166 VirtualBoxErrorInfoImpl.cpp \
167 VirtualBoxImpl.cpp \
168 MachineImpl.cpp \
169 SnapshotImpl.cpp \
170 HardDiskImpl.cpp \
171 HardDiskAttachmentImpl.cpp \
172 ProgressImpl.cpp \
173 DVDDriveImpl.cpp \
174 DVDImageImpl.cpp \
175 FloppyDriveImpl.cpp \
176 FloppyImageImpl.cpp \
177 HostImpl.cpp \
178 HostDVDDriveImpl.cpp \
179 HostFloppyDriveImpl.cpp \
180 HostUSBDeviceImpl.cpp \
181 GuestOSTypeImpl.cpp \
182 NetworkAdapterImpl.cpp \
183 SerialPortImpl.cpp \
184 ParallelPortImpl.cpp \
185 USBControllerImpl.cpp \
186 AudioAdapterImpl.cpp \
187 SharedFolderImpl.cpp \
188 SystemPropertiesImpl.cpp \
189 BIOSSettingsImpl.cpp
190
191ifdef VBOX_WITH_VRDP
192VBoxSVC_SOURCES += VRDPServerImpl.cpp
193endif
194
195VBoxSVC_SOURCES.darwin = \
196 darwin/iokit.cpp
197
198VBoxSVC_SOURCES.win = \
199 HostNetworkInterfaceImpl.cpp \
200 win32/svcmain.cpp \
201 win32/svchlp.cpp \
202 win32/VBoxSVC.rc
203
204ifdef VBOX_WITH_XPCOM
205VBoxSVC_SOURCES += \
206 linux/server.cpp
207endif
208
209ifdef VBOX_WITH_USB
210VBoxSVC_SOURCES.darwin += darwin/USBProxyServiceDarwin.cpp
211VBoxSVC_SOURCES.linux += linux/USBProxyServiceLinux.cpp
212VBoxSVC_SOURCES.win += win32/USBProxyServiceWin32.cpp
213endif
214
215VBoxSVC_LDFLAGS.darwin = -framework IOKit
216ifeq ($(BUILD_TYPE),debug)
217VBoxSVC_LDFLAGS.linux += -rdynamic # for backtrace_symbols()
218endif
219
220#
221# VBoxSVC wrapper module
222#
223
224ifdef VBOX_WITH_XPCOM
225
226VBoxSVCM_TEMPLATE = VBOXMAINDLL
227ifneq ($(BUILD_TARGET),linux)
228VBoxSVCM_INST = $(INST_BIN)components/
229endif
230VBoxSVCM_DEFS = IN_RING3 IN_CFGLDR_R3
231VBoxSVCM_INCS = \
232 include \
233 $(PATH_VBoxC) \
234 $(PATH_CURRENT)
235VBoxSVCM_SOURCES = \
236 linux/server_module.cpp
237VBoxSVCM_LDFLAGS.darwin = \
238 -install_name @executable_path/components/VBoxSVCM.dylib \
239 -exported_symbols_list $(PATH_TARGET)/VBoxSVCM.def
240ifeq ($(BUILD_TARGET),darwin)
241VBoxSVCM_ORDERDEPS += $(PATH_TARGET)/VBoxSVCM.def
242VBoxSVCM_CLEAN += $(PATH_TARGET)/VBoxSVCM.def
243$(PATH_TARGET)/VBoxSVCM.def:
244 $(RM) -f $@
245 $(APPEND) $@ _NSGetModule
246endif
247
248endif # VBOX_WITH_XPCOM
249
250#
251# VBoxC module
252#
253
254VBoxC_TEMPLATE = VBOXMAINDLL
255ifneq ($(filter-out linux win,$(BUILD_TARGET)),)
256VBoxC_INST = $(INST_BIN)components/
257endif
258
259VBoxC_DEFS = IN_RING3 IN_CFGLDR_R3
260VBoxC_DEFS += VBOX_COM_INPROC
261
262ifdef VBOX_WITH_VRDP
263VBoxC_DEFS += VBOX_VRDP IN_VRDP_R3
264ifdef VRDP_NO_COM
265VBoxC_DEFS += VRDP_NO_COM
266endif
267endif
268ifdef VBOX_WITH_HGCM
269VBoxC_DEFS += VBOX_HGCM
270endif
271ifdef VBOX_MAIN_RELEASE_LOG
272VBoxC_DEFS += VBOX_MAIN_RELEASE_LOG LOG_ENABLED
273endif
274ifdef VBOX_WITH_USB
275VBoxC_DEFS += VBOX_WITH_USB
276endif
277ifdef VBOX_WITH_ALSA
278VBoxC_DEFS += VBOX_WITH_ALSA
279endif
280ifdef VBOX_WITH_WINMM
281VBoxC_DEFS += VBOX_WITH_WINMM
282endif
283
284VBoxC_DEFS.win.x86 += _WIN32_WINNT=0x0500
285VBoxC_DEFS.win.amd64 += _WIN32_WINNT=0x0510
286
287VBoxC_INCS = \
288 include \
289 $(PATH_VBoxC) \
290 $(PATH_VBoxCOM)
291VBoxC_INCS.win := \
292 $(PATH_SUB_CURRENT)
293
294VBoxC_LDFLAGS.darwin = \
295 -install_name @executable_path/components/VBoxSVCM.dylib \
296 -exported_symbols_list $(PATH_TARGET)/VBoxC.def
297ifdef VBOX_USE_VCC80
298VBoxC_LDFLAGS.win = /MANIFEST
299endif
300
301VBoxC_LIBS += \
302 $(LIB_VMM) \
303 $(LIB_REM)
304
305VBoxC_SOURCES = \
306 Logging.cpp \
307 VBoxDll.cpp \
308 USBDeviceImpl.cpp \
309 RemoteUSBDeviceImpl.cpp \
310 VirtualBoxBase.cpp \
311 VirtualBoxErrorInfoImpl.cpp \
312 ProgressImpl.cpp \
313 SharedFolderImpl.cpp \
314 SessionImpl.cpp \
315 ConsoleImpl.cpp \
316 ConsoleVRDPServer.cpp \
317 GuestImpl.cpp \
318 KeyboardImpl.cpp \
319 MouseImpl.cpp \
320 DisplayImpl.cpp \
321 FramebufferImpl.cpp \
322 MachineDebuggerImpl.cpp \
323 VBoxDriversRegister.cpp \
324 AudioSnifferInterface.cpp \
325 VMMDevInterface.cpp
326VBoxC_SOURCES.win = \
327 win32/dllmain.cpp \
328 win32/VBoxC.def \
329 win32/VBoxC.rc
330ifdef VBOX_WITH_XPCOM
331VBoxC_SOURCES += \
332 linux/module.cpp
333endif
334
335ifdef VBOX_WITH_HGCM
336VBoxC_SOURCES += \
337 hgcm/HGCMObjects.cpp \
338 hgcm/HGCMThread.cpp \
339 hgcm/HGCM.cpp
340endif
341
342ifdef VBOX_WITH_USB
343VBoxC_SOURCES += \
344 RemoteUSBBackend.cpp
345endif
346
347ifeq ($(BUILD_TARGET),darwin)
348VBoxC_ORDERDEPS += $(PATH_TARGET)/VBoxC.def
349VBoxC_CLEAN += $(PATH_TARGET)/VBoxC.def
350$(PATH_TARGET)/VBoxC.def: $(MAKEFILE_CURRENT)
351 $(RM) -f $@
352 $(APPEND) $@ _NSGetModule
353 $(APPEND) $@ _VBoxDriversRegister
354endif
355
356# ConsoleImpl.cpp uses VBOX_SVN_REV.
357ConsoleImpl.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
358ConsoleImpl.cpp_DEPS = $(VBOX_SVN_REV_KMK)
359
360#
361# VBoxXML
362#
363VBoxXML_TEMPLATE = VBOXMAINDLL
364VBoxXML_SDKS = VBOX_XALAN VBOX_XERCES
365## @todo Why do we need this? Why isn't it in the template?!?
366VBoxXML_CXXFLAGS.win = -EHsc
367VBoxXML_DEFS = \
368 CFGLDR_HAVE_COM IN_RING3 IN_CFGLDR_R3
369VBoxXML_INCS = \
370 include \
371 $(PATH_TARGET)
372VBoxXML_SOURCES = \
373 xml/cfgldr.cpp \
374 xml/cfgldrhlp.cpp
375VBoxXML_LDFLAGS.darwin = -install_name @executable_path/VBoxXML.dylib -Wl,-x # no debug info please.
376
377## @todo (dmik): temporarily embed SettingsConverter.xsl into VBoxXML,
378# later it should go to VBoxSVC as well
379xml/cfgldr.cpp_DEPS = $(PATH_TARGET)/SettingsConverter_xsl.h
380OTHER_CLEAN += $(PATH_TARGET)/SettingsConverter_xsl.h
381$(PATH_TARGET)/SettingsConverter_xsl.h: xml/SettingsConverter.xsl $(VBOX_BIN2C) | $(call DIRDEP,$(PATH_TARGET))
382 $(call MSG_TOOL,bin2c,VBoxXML,$<,$@)
383 $(QUIET)$(VBOX_BIN2C) SettingsConverter_xsl $< $@
384
385
386#
387# tstCFGLdr - broken.
388#
389
390tstCFGLdr_TEMPLATE = VBOXMAINCLIENTEXE
391tstCFGLdr_SDKS = VBOX_XALAN VBOX_XERCES
392tstCFGLdr_DEFS = IN_CFGLDR_R3 STANDALONE_TEST
393tstCFGLdr_SOURCES = \
394 xml/cfgldr.cpp \
395 xml/cfgldrhlp.cpp
396tstCFGLdr_INCS = \
397 include \
398 $(PATH_TARGET)
399
400
401#
402# VBoxCOM - COM Abstraction Layer library
403#
404
405VBoxCOM_TEMPLATE = VBOXMAINLIB
406VBoxCOM_SOURCES = \
407 glue/com.cpp \
408 glue/initterm.cpp \
409 glue/string.cpp \
410 glue/EventQueue.cpp \
411 glue/ErrorInfo.cpp
412ifeq ($(BUILD_TARGET),win)
413 VBoxCOM_DEFS.x86 += _WIN32_WINNT=0x0500
414 VBoxCOM_DEFS.amd64 += _WIN32_WINNT=0x0510
415 VBoxCOM_SOURCES += \
416 $(PATH_VBoxCOM)/VirtualBox_i.c
417else
418 VBoxCOM_INCS += \
419 include
420 VBoxCOM_SOURCES += \
421 linux/helpers.cpp
422endif
423
424
425#
426# Generate _DEPS on all sources which depends on generated headers.
427#
428ifeq ($(BUILD_TARGET),win)
429PREREQS = $(PATH_VBoxCOM)/VirtualBox_i.c
430else
431PREREQS = $(IDLTYPELIB) $(IDLHEADER)
432endif
433
434# brute force way to ensure the prereqs are generated before anything is compiled.
435define def_src_deps
436$(src)_DEPS = $(PREREQS)
437endef
438$(foreach src,\
439 $(VBoxC_SOURCES) $(VBoxC_SOURCES.$(BUILD_TARGET)) \
440 $(VBoxSVC_SOURCES) $(VBoxSVC_SOURCES.$(BUILD_TARGET)) \
441 $(VBoxCOM_SOURCES) \
442 ,$(eval $(value def_src_deps)))
443
444
445#
446# Embed XML Schema files to VBoxSVC
447#
448VBOX_XML_ENTITIES = $(PATH_TARGET)/VirtualBoxXMLUtil_entities.h
449VBOX_XML_ENTITIES_COMMON = $(PATH_TARGET)/VirtualBoxXMLUtil_common_entities.h
450
451VBOX_XML_SCHEMA_COMMON = xml/VirtualBox-settings-common.xsd
452VBOX_XML_SCHEMA.darwin = xml/VirtualBox-settings-macosx.xsd
453VBOX_XML_SCHEMA.linux = xml/VirtualBox-settings-linux.xsd
454VBOX_XML_SCHEMA.win = xml/VirtualBox-settings-windows.xsd
455VBOX_XML_SCHEMA.os2 = xml/VirtualBox-settings-os2.xsd
456
457VirtualBoxXMLUtil.cpp_DEPS = $(VBOX_XML_ENTITIES) $(VBOX_XML_ENTITIES_COMMON)
458
459$(VBOX_XML_ENTITIES_COMMON): $(VBOX_XML_SCHEMA_COMMON) $(VBOX_BIN2C)
460 $(call MSG_TOOL,bin2c,VBoxXML,$<,$@)
461 $(QUIET)$(VBOX_BIN2C) VirtualBox_settings_common_xsd $< $@
462
463$(VBOX_XML_ENTITIES): $(VBOX_XML_SCHEMA.$(BUILD_TARGET)) $(VBOX_BIN2C)
464 $(call MSG_TOOL,bin2c,VBoxXML,$<,$@)
465 $(QUIET)$(VBOX_BIN2C) VirtualBox_settings_xsd $< $@
466
467OTHER_CLEAN += $(VBOX_XML_ENTITIES) $(VBOX_XML_ENTITIES_COMMON)
468
469
470#
471# Generate SchemaDefs.h from XML Schema
472#
473VBOX_XML_SCHEMADEFS_H = $(PATH_TARGET)/SchemaDefs.h
474VBOX_XML_SCHEMADEFS_XSL = xml/SchemaDefs.xsl
475
476VBoxC_DEPS += $(VBOX_XML_SCHEMADEFS_H)
477VBoxC_INCS += $(PATH_TARGET)
478VBoxSVC_DEPS += $(VBOX_XML_SCHEMADEFS_H)
479VBoxSVC_INCS += $(PATH_TARGET)
480
481$(VBOX_XML_SCHEMADEFS_H): $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA.$(BUILD_TARGET)) $(VBOX_XML_SCHEMA_COMMON)
482 $(call MSG_TOOL,xsltproc,VBoxXML,$<,$@)
483 $(QUIET)$(VBOX_XSLTPROC) -o $@ $(filter-out $(VBOX_XML_SCHEMA_COMMON),$^)
484
485OTHER_CLEAN += $(VBOX_XML_SCHEMADEFS_H)
486.NOTPARALLEL: $(VBOX_XML_SCHEMADEFS_H)
487
488
489
490#
491# Creates the symlinks necessary for making XPCOM work.
492#
493## @todo Figure out why Linux really needs this, darwin doesn't...
494xpcom-components_INST = $(INST_BIN)components/
495ifeq ($(BUILD_TARGET),linux)
496xpcom-components_SYMLINKS = \
497 VirtualBox_XPCOM.xpt=>../VirtualBox_XPCOM.xpt \
498 VBoxXPCOMBase.xpt=>../VBoxXPCOMBase.xpt \
499 VBoxC$(SUFF_DLL)=>../VBoxC$(SUFF_DLL) \
500 VBoxSVCM$(SUFF_DLL)=>../VBoxSVCM$(SUFF_DLL) \
501 VBoxXPCOMIPCC$(SUFF_DLL)=>../VBoxXPCOMIPCC$(SUFF_DLL)
502endif
503
504# generate
505include $(PATH_KBUILD)/footer.kmk
506
507
508#
509# Additions rules.
510#
511
512XIDLFILE = idl/VirtualBox.xidl
513
514ifneq ($(BUILD_TARGET),win)
515
516linux/helpers.cpp: $(IDLTYPELIB)
517
518$(IDLFILE): idl/xpidl.xsl $(XIDLFILE) | $(call DIRDEP,$(dir $(IDLFILE)))
519 $(call MSG_TOOL,xsltproc,VBoxXML,$<,$@)
520 $(QUIET)$(MKDIR) -p $(@D)
521 $(QUIET)$(VBOX_XSLTPROC) -o $@ $^
522
523$(IDLTYPELIB): $(IDLFILE) | $(call DIRDEP,$(dir $(IDLTYPELIB)))
524 $(call MSG_TOOL,xpidl,VBoxXML,$<,$@)
525 $(QUIET)$(VBOX_XPIDL) -m typelib -I $(VBOX_PATH_XPCOM_IDL) -e $@ $<
526
527$(IDLHEADER): $(IDLFILE) | $(call DIRDEP,$(dir $(IDLHEADER)))
528 $(call MSG_TOOL,xpidl,VBoxXML,$<,$@)
529 $(QUIET)$(VBOX_XPIDL) -m header -I $(VBOX_PATH_XPCOM_IDL) -e $@ $<
530
531else
532
533MAIN_IDL ?= $(EXEC_X86_WIN32) $(firstword $(wildcard \
534 $(PATH_SDK_WINPSDK_BIN)/Midl.Exe\
535 $(PATH_SDK_WINPSDK)/Bin/Midl.Exe\
536 $(PATH_DEVTOOLS)/win.x86/bin/midl.exe\
537 ) Sorry_Cannot_Find_The_Midl_Compiler_In_The_PSDK)
538IDL_DEFS = /nologo
539ifdef VBOX_WITH_VRDP
540 IDL_DEFS += /D VBOX_VRDP
541endif
542
543$(IDLFILE): idl/midl.xsl $(XIDLFILE)
544 $(call MSG_TOOL,xsltproc,VBoxXML,$<,$@)
545 $(QUIET)$(MKDIR) -p $(VBOX_PATH_SDK)/idl
546 $(QUIET)$(VBOX_XSLTPROC) -o $@ $^
547
548## @todo r=bird: last changes to this rule showed incorrect dependencies here as it broke testcase (see testboxwin2).
549# This is kind of obvious when looking at the rule, because it's (a) not specifing all it output
550# and (b) generating more stuff *after* the maintarget has been completed.
551#
552# What needs to be done is to not depend on _i.c in the object subdir, but on all the final outputs.
553$(PATH_VBoxCOM)/VirtualBox_i.c: $(IDLFILE) | $(call DIRDEP,$(PATH_VBoxCOM))
554 $(MAIN_IDL) $(IDL_DEFS) \
555 /out $(subst /,\\,$(PATH_VBoxCOM)) \
556 /cpp_cmd $(subst /,\\,$(TOOL_$(VBOX_VCC_TOOL)_CC)) \
557 /I $(subst /,\\,$(PATH_SDK_WINPSDK_INC)) \
558 /I idl \
559 $(subst /,\\,$<)
560 $(MKDIR) -p $(VBOX_PATH_SDK)/include
561 $(CP) $(PATH_VBoxCOM)/VirtualBox.h $(VBOX_PATH_SDK)/include
562 $(MKDIR) -p $(VBOX_PATH_SDK)/lib
563 $(CP) $(PATH_VBoxCOM)/VirtualBox.tlb $(VBOX_PATH_SDK)/lib
564 $(CP) $(PATH_VBoxCOM)/VirtualBox_i.c $(VBOX_PATH_SDK)/lib
565
566endif
567
568# bird: anyone still using this? If not it's a gonner.
569## Hack to work around wine's trouble with midl.exe and rc.exe (seems to be msvcrt.dll related)
570#gen: $(PREREQS)
571
572
573#
574# Translation stuff
575#
576VBoxSVC_HEADERS = \
577 include/collection.h \
578 include/MachineImpl.h \
579 include/HostDVDDriveImpl.h \
580 include/HostFloppyDriveImpl.h
581
582VBoxC_HEADERS = \
583 include/ConsoleImpl.h
584
585VBoxSVC_TRANSLATIONS = \
586 nls/VBoxSVC_de.ts
587
588VBoxC_TRANSLATIONS = \
589 nls/VBoxC_de.ts
590
591updatenls:
592 $(VBOX_LUPDATE) $(VBoxSVC_SOURCES) $(VBoxSVC_HEADERS) -ts $(VBoxSVC_TRANSLATIONS)
593 $(VBOX_LUPDATE) $(VBoxC_SOURCES) $(VBoxC_HEADERS) -ts $(VBoxC_TRANSLATIONS)
594
595ifdef VBOX_WITH_XPCOM
596
597testidl: $(IDLFILE) $(IDLTYPELIB)
598testidlhdr: $(IDLHEADER)
599
600else
601
602testidl: $(IDLFILE) $(PATH_VBoxCOM)/VirtualBox_i.c
603
604endif
605
606$(PATH_BIN)/comregister.cmd: win32/comregister.cmd
607 $(CP) $< $@
608
609
610# Hot fix when dependencies goes bad again...
611#.NOTPARALLEL: $(TARGET_VBoxC) $(TARGET_VBoxSVC) $(TARGET_VBoxCOM) $(IDLHEADER) $(IDLFILE) $(PATH_VBoxCOM)/VirtualBox_i.c
612
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