1 | # $Id: Makefile.kmk 70496 2018-01-09 16:09:23Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the VBox Main module.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2004-2018 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 |
|
---|
18 | SUB_DEPTH = ../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | #
|
---|
22 | # Make sure our Config.kmk is included.
|
---|
23 | #
|
---|
24 | ifndef VBOX_MAIN_CONFIG_KMK_INCLUDED
|
---|
25 | include $(PATH_SUB_CURRENT)/Config.kmk
|
---|
26 | endif
|
---|
27 |
|
---|
28 | #
|
---|
29 | # Include sub-makefile(s).
|
---|
30 | #
|
---|
31 | ifdef VBOX_WITH_WEBSERVICES
|
---|
32 | include $(PATH_SUB_CURRENT)/webservice/Makefile.kmk
|
---|
33 | endif
|
---|
34 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
35 | include $(PATH_SUB_CURRENT)/cbinding/Makefile.kmk
|
---|
36 | include $(PATH_SUB_CURRENT)/UnattendedTemplates/Makefile.kmk
|
---|
37 |
|
---|
38 |
|
---|
39 | #
|
---|
40 | # Targets and globals (bit of a mess...)
|
---|
41 | #
|
---|
42 | VBOX_PATH_MAIN_SRC := $(PATH_SUB_CURRENT)
|
---|
43 |
|
---|
44 | ifdef VBOX_ONLY_SDK
|
---|
45 | # I'm Evil! Dr. Evil.
|
---|
46 | VBoxCOM_0_OUTDIR = $(PATH_TARGET)/VBoxCOM
|
---|
47 | BLDDIRS += $(VBoxCOM_0_OUTDIR) $(PATH_STAGE_BIN)/components
|
---|
48 | include $(KBUILD_PATH)/tools/$(VBOX_VCC_TOOL).kmk # For the idl /cpp statement.
|
---|
49 | include $(KBUILD_PATH)/sdks/$(VBOX_WINPSDK).kmk
|
---|
50 | endif # !VBOX_ONLY_SDK
|
---|
51 |
|
---|
52 |
|
---|
53 | # Construct VBOX_MAIN_DEFS
|
---|
54 | ## @todo eliminate or expand VBOX_MAIN_DEFS.
|
---|
55 | VBOX_MAIN_DEFS =
|
---|
56 | ifneq ($(KBUILD_TARGET),win)
|
---|
57 | ifndef VBOX_WITH_XPCOM
|
---|
58 | $(error "VBox: VBOX_WITH_XPCOM isn't defined")
|
---|
59 | endif
|
---|
60 | VBOX_MAIN_DEFS += VBOX_WITH_GENERIC_SESSION_WATCHER
|
---|
61 | endif
|
---|
62 | VBOX_MAIN_DEFS += \
|
---|
63 | $(if $(VBOX_WITH_RAW_MODE),VBOX_WITH_RAW_MODE,) \
|
---|
64 | $(if $(VBOX_WITH_RAW_RING1),VBOX_WITH_RAW_RING1,) \
|
---|
65 | $(if $(VBOX_WITH_VMSVGA),VBOX_WITH_VMSVGA,) \
|
---|
66 | $(if $(VBOX_WITH_VMSVGA3D),VBOX_WITH_VMSVGA3D,) \
|
---|
67 | $(if $(VBOX_WITH_NETFLT),VBOX_WITH_NETFLT,) \
|
---|
68 | $(if $(VBOX_WITH_COPYTOGUEST),VBOX_WITH_COPYTOGUEST,) \
|
---|
69 | $(if $(VBOX_WITH_CROGL),VBOX_WITH_CROGL,) \
|
---|
70 | $(if $(VBOX_WITH_CRHGSMI),VBOX_WITH_CRHGSMI,) \
|
---|
71 | $(if $(VBOX_WITH_GUEST_PROPS),VBOX_WITH_GUEST_PROPS,) \
|
---|
72 | $(if $(VBOX_WITH_GUEST_PROPS_RDONLY_GUEST),VBOX_WITH_GUEST_PROPS_RDONLY_GUEST,) \
|
---|
73 | $(if $(VBOX_WITH_GUEST_CONTROL),VBOX_WITH_GUEST_CONTROL,) \
|
---|
74 | $(if $(VBOX_WITH_USB_CARDREADER),VBOX_WITH_USB_CARDREADER,) \
|
---|
75 | $(if $(VBOX_WITH_USB_CARDREADER_TEST),VBOX_WITH_USB_CARDREADER_TEST,) \
|
---|
76 | $(if $(VBOX_WITH_HOSTNETIF_API),VBOX_WITH_HOSTNETIF_API,) \
|
---|
77 | $(if $(VBOX_WITH_MIDL_PROXY_STUB),VBOX_WITH_MIDL_PROXY_STUB,) \
|
---|
78 | $(if $(VBOX_WITH_SDS),VBOX_WITH_SDS,) \
|
---|
79 |
|
---|
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_STAGE_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 | OTHER_CLEAN += \
|
---|
94 | $(VBOX_IDL_FILE.MSCOM)
|
---|
95 |
|
---|
96 | INSTALLS += VBox-mscom-bindings-include VBox-mscom-bindings-lib
|
---|
97 | VBox-mscom-bindings-include_INST = $(INST_SDK)bindings/mscom/include/
|
---|
98 | VBox-mscom-bindings-include_MODE = a+r,u+w
|
---|
99 | VBox-mscom-bindings-include_SOURCES = $(VBoxCOM_0_OUTDIR)/VirtualBox.h
|
---|
100 | VBox-mscom-bindings-include_CLEAN = $(VBoxCOM_0_OUTDIR)/VirtualBox.h
|
---|
101 | VBox-mscom-bindings-lib_INST = $(INST_SDK)bindings/mscom/lib/
|
---|
102 | VBox-mscom-bindings-lib_MODE = a+r,u+w
|
---|
103 | VBox-mscom-bindings-lib_SOURCES = $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c \
|
---|
104 | $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb
|
---|
105 | VBox-mscom-bindings-lib_CLEAN = $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c \
|
---|
106 | $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb
|
---|
107 |
|
---|
108 | BLDDIRS += $(VBOX_PATH_SDK)/bindings/mscom/idl
|
---|
109 | endif
|
---|
110 |
|
---|
111 | # The XPCOM specific stuff.
|
---|
112 | # if defined(VBOX_ONLY_SDK) || "$(KBUILD_TARGET)" != "win" -- does not build on Windows
|
---|
113 | if "$(KBUILD_TARGET)" != "win"
|
---|
114 | OTHERS += $(VBOX_IDL_FILE.XPCOM) $(VBOX_IDL_TYPELIB.XPCOM) $(VBOX_IDL_HEADER.XPCOM)
|
---|
115 | OTHER_CLEAN += \
|
---|
116 | $(VBOX_IDL_FILE.XPCOM) \
|
---|
117 | $(VBOX_IDL_HEADER.XPCOM) \
|
---|
118 | $(VBOX_IDL_TYPELIB.XPCOM)
|
---|
119 |
|
---|
120 | INSTALLS += VBox-xpcom-bindings-lib
|
---|
121 | VBox-xpcom-bindings-lib_INST = $(INST_SDK)bindings/xpcom/lib/
|
---|
122 | VBox-xpcom-bindings-lib_MODE = a+r,u+w
|
---|
123 | VBox-xpcom-bindings-lib_SOURCES = $(VBoxCOM_0_OUTDIR)/VirtualBox_XPCOM_i.c=>VirtualBox_i.c
|
---|
124 | VBox-xpcom-bindings-lib_CLEAN = $(VBoxCOM_0_OUTDIR)/VirtualBox_XPCOM_i.c
|
---|
125 |
|
---|
126 | VBOX_MAIN_PREREQS += $(VBOX_IDL_TYPELIB.XPCOM) $(VBOX_IDL_HEADER.XPCOM)
|
---|
127 | BLDDIRS += \
|
---|
128 | $(VBOX_PATH_SDK)/bindings/xpcom/idl \
|
---|
129 | $(VBOX_PATH_SDK)/bindings/xpcom/include
|
---|
130 | # disable VBoxSDS for XPCOM
|
---|
131 | override VBOX_WITH_SDS =
|
---|
132 | endif # xpcom
|
---|
133 |
|
---|
134 |
|
---|
135 | #
|
---|
136 | # Strip documentation from source XIDL so that we don't get a full
|
---|
137 | # recompile every time a comma in the documentation is changed.
|
---|
138 | #
|
---|
139 | $(call KB_FN_AUTO_CMD_DEPS,$(VBOX_XIDL_FILE).ts)
|
---|
140 | $(VBOX_XIDL_FILE).ts +| $(VBOX_XIDL_FILE): \
|
---|
141 | $(VBOX_XIDL_FILE_SRC) \
|
---|
142 | $(VBOX_PATH_MAIN_SRC)/idl/docstrip.xsl \
|
---|
143 | | $$(dir $$@)
|
---|
144 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
145 | # $(CP) -fv $(VBOX_XIDL_FILE_SRC) $(VBOX_XIDL_FILE).ts
|
---|
146 | $(QUIET)$(VBOX_XSLTPROC) -o $(VBOX_XIDL_FILE).ts $(VBOX_PATH_MAIN_SRC)/idl/docstrip.xsl $(VBOX_XIDL_FILE_SRC)
|
---|
147 | $(QUIET)$(CP) --changed -fv $(VBOX_XIDL_FILE).ts $(VBOX_XIDL_FILE)
|
---|
148 |
|
---|
149 | OTHER_CLEAN += $(VBOX_XIDL_FILE) $(VBOX_XIDL_FILE).ts
|
---|
150 |
|
---|
151 | #
|
---|
152 | # The Main API documentation
|
---|
153 | #
|
---|
154 | VBOX_MAIN_DOC_DIR = $(VBOX_PATH_SDK)/docs
|
---|
155 | BLDDIRS += $(VBOX_MAIN_DOC_DIR)
|
---|
156 |
|
---|
157 | $(PATH_TARGET)/docs.Main: \
|
---|
158 | $(VBOX_PATH_MAIN_SRC)/Doxyfile.Main \
|
---|
159 | $(VBOX_PATH_MAIN_SRC)/idl/doxygen.xsl \
|
---|
160 | $(VBOX_XIDL_FILE_SRC) \
|
---|
161 | | $(PATH_TARGET)/ \
|
---|
162 | $(VBOX_MAIN_DOC_DIR)/
|
---|
163 | $(call MSG_TOOL,xsltproc,doxygen input,$<,$@)
|
---|
164 | $(QUIET)$(RM) -f $(wildcard $(VBOX_MAIN_DOC_DIR)/html/*) $(PATH_TARGET)/docs.Main
|
---|
165 | $(QUIET)$(VBOX_XSLTPROC) -o $(PATH_TARGET)/VirtualBox.idl $(VBOX_PATH_MAIN_SRC)/idl/doxygen.xsl $(VBOX_XIDL_FILE_SRC)
|
---|
166 | $(QUIET)$(REDIRECT) -E 'DOCDIR=$(VBOX_MAIN_DOC_DIR)' -E 'PATH_TARGET=$(PATH_TARGET)' -E 'PATH_CHM=$(subst /,\,$(VBOX_MAIN_DOC_DIR)/VirtualBoxAPI.chm)' \
|
---|
167 | -- doxygen $(VBOX_PATH_MAIN_SRC)/Doxyfile.Main
|
---|
168 | $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) ">>>>>>>>>>>>>>>>>>>> Main.err: >>>>>>>>>>>>>>>>>>>>>>>>"
|
---|
169 | $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(CAT) "$(PATH_TARGET)/Main.err"
|
---|
170 | $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "<<<<<<<<<<<<<<<<<<<< Main.err <<<<<<<<<<<<<<<<<<<<<<<<<"
|
---|
171 | $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> **************************************************"
|
---|
172 | $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> Please fix above doxygen errors/warnings listed in"
|
---|
173 | $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> $(PATH_TARGET)/Main.err"
|
---|
174 | $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> **************************************************"
|
---|
175 | -$(EXEC_X86_WIN32) $(VBOX_PATH_HTML_HELP_WORKSHOP)/hhc.exe $(subst /,\\,$(VBOX_MAIN_DOC_DIR)/html/index.hhp)
|
---|
176 | $(APPEND) $(PATH_TARGET)/docs.Main
|
---|
177 | # aliases
|
---|
178 | docs.main docs.Main: $(PATH_TARGET)/docs.Main
|
---|
179 | if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
|
---|
180 | docs: $(PATH_TARGET)/docs.Main
|
---|
181 | else
|
---|
182 | docs:
|
---|
183 | endif
|
---|
184 |
|
---|
185 |
|
---|
186 | ifndef VBOX_ONLY_SDK
|
---|
187 | #
|
---|
188 | # Generate library with API class wrappers from the XIDL file.
|
---|
189 | #
|
---|
190 | LIBRARIES += VBoxAPIWrap
|
---|
191 | VBoxAPIWrap_TEMPLATE = VBoxMainLib
|
---|
192 | ifeq ($(KBUILD_TARGET),win)
|
---|
193 | VBoxAPIWrap_USES = vccprecomp
|
---|
194 | VBoxAPIWrap_PCH_HDR := $(PATH_SUB_CURRENT)/src-all/win/VBoxAPIWrap-precomp_vcc.h
|
---|
195 | endif
|
---|
196 | VBoxAPIWrap_SOURCES = \
|
---|
197 | $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d \
|
---|
198 | $(VBOX_MAIN_APIWRAPPER_GEN_SRCS)
|
---|
199 | VBoxAPIWrap_INTERMEDIATES = $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
|
---|
200 | VBoxAPIWrap_DEFS.win.x86 += _WIN32_WINNT=0x0500
|
---|
201 | VBoxAPIWrap_DEFS.win.amd64 += _WIN32_WINNT=0x0510
|
---|
202 | VBoxAPIWrap_INCS += \
|
---|
203 | include
|
---|
204 | VBoxAPIWrap_CLEAN = \
|
---|
205 | $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.cpp) \
|
---|
206 | $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.h) \
|
---|
207 | $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d.ts \
|
---|
208 | $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d \
|
---|
209 | $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-headers \
|
---|
210 | $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-even \
|
---|
211 | $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-odd
|
---|
212 |
|
---|
213 | # Two VBox variables used here and/or in the rules generating wrappers.
|
---|
214 | VBoxAPIWrap_VBOX_XSLT = \
|
---|
215 | $(VBOX_PATH_MAIN_SRC)/idl/apiwrap-server.xsl
|
---|
216 |
|
---|
217 |
|
---|
218 | # This include file (generated at the bottom of this file), defines
|
---|
219 | # VBOX_MAIN_APIWRAPPER_GEN_SRCS and VBOX_MAIN_APIWRAPPER_GEN_HDRS.
|
---|
220 | VBoxAPIWrap_VBOX_KMK_FILE = $(PATH_OUT)/vboxapiwrap.kmk
|
---|
221 | include $(VBoxAPIWrap_VBOX_KMK_FILE)
|
---|
222 |
|
---|
223 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
224 | LIBRARIES += VBoxAPIWrap-x86
|
---|
225 | VBoxAPIWrap-x86_TEMPLATE = VBoxMainLib-x86
|
---|
226 | VBoxAPIWrap-x86_EXTENDS = VBoxAPIWrap
|
---|
227 | VBoxAPIWrap-x86_DTRACE_HDR_FLAGS = -32 # ugly, should be fixed in the tool in Config.kmk
|
---|
228 | ifeq ($(KBUILD_TARGET),win) ## @todo fix inheritance
|
---|
229 | VBoxAPIWrap-x86_USES = vccprecomp
|
---|
230 | VBoxAPIWrap-x86_PCH_HDR := $(PATH_SUB_CURRENT)/src-all/win/VBoxAPIWrap-precomp_vcc.h
|
---|
231 | endif
|
---|
232 | endif
|
---|
233 |
|
---|
234 | endif # !VBOX_ONLY_SDK
|
---|
235 |
|
---|
236 | #
|
---|
237 | # Some SDK bit.
|
---|
238 | #
|
---|
239 | INSTALLS += VBox-main-xidl
|
---|
240 | VBox-main-xidl_INST = $(INST_SDK)bindings/
|
---|
241 | VBox-main-xidl_MODE = a+r,u+w
|
---|
242 | VBox-main-xidl_SOURCES = $(VBOX_XIDL_FILE_SRC)
|
---|
243 |
|
---|
244 | ifdef VBOX_WITH_PYTHON
|
---|
245 | INSTALLS += VBox-python-glue
|
---|
246 | VBox-python-glue_INST = $(INST_SDK)installer/vboxapi/
|
---|
247 | VBox-python-glue_MODE = a+r,u+w
|
---|
248 | VBox-python-glue_SOURCES = \
|
---|
249 | glue/vboxapi.py=>__init__.py \
|
---|
250 | $(VBox-python-glue_0_OUTDIR)/VirtualBox_constants.py
|
---|
251 | VBox-python-glue_CLEAN = \
|
---|
252 | $(VBox-python-glue_0_OUTDIR)/VirtualBox_constants.py
|
---|
253 | $(call KB_FN_DO_PASS0_ON_TARGET,VBox-python-glue)
|
---|
254 | $(call KB_FN_AUTO_CMD_DEPS,$(VBox-python-glue_0_OUTDIR)/VirtualBox_constants.py)
|
---|
255 | $(VBox-python-glue_0_OUTDIR)/VirtualBox_constants.py: \
|
---|
256 | $(VBOX_PATH_MAIN_SRC)/glue/constants-python.xsl \
|
---|
257 | $(VBOX_XIDL_FILE) \
|
---|
258 | | $$(dir $$@)
|
---|
259 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
260 | $(QUIET)$(VBOX_XSLTPROC) -o $@ $(VBOX_PATH_MAIN_SRC)/glue/constants-python.xsl $(VBOX_XIDL_FILE)
|
---|
261 | endif # VBOX_WITH_PYTHON
|
---|
262 |
|
---|
263 | ifndef VBOX_ONLY_SDK # Note this goes on for *very* long
|
---|
264 |
|
---|
265 | #
|
---|
266 | # Generate SchemaDefs.h and SchemaDefs.cpp from XML Schema
|
---|
267 | # These two files are used by both VBoxC and VBoxSVC.
|
---|
268 | #
|
---|
269 | BLDDIRS += $(PATH_TARGET)/Main
|
---|
270 |
|
---|
271 | testschemadefs: $(VBOX_XML_SCHEMADEFS_H) $(VBOX_XML_SCHEMADEFS_CPP)
|
---|
272 |
|
---|
273 |
|
---|
274 | #
|
---|
275 | # VBoxSDS executable
|
---|
276 | #
|
---|
277 | if defined(VBOX_WITH_SDS) && "$(KBUILD_TARGET)" == "win"
|
---|
278 | PROGRAMS += VBoxSDS
|
---|
279 | VBoxSDS_TEMPLATE = VBOXMAINEXE
|
---|
280 | VBoxSDS_DEFS.win += VBOX_COM_OUTOFPROC_MODULE
|
---|
281 | VBoxSDS_DEFS.win += _WIN32_WINNT=0x0510
|
---|
282 | VBoxSDS_INCS = \
|
---|
283 | include \
|
---|
284 | $(VBoxSDS_0_OUTDIR) \
|
---|
285 | $(VBOX_MAIN_APIWRAPPER_INCS)
|
---|
286 | VBoxSDS_INCS.win = \
|
---|
287 | $(VBoxCOM_0_OUTDIR)
|
---|
288 | VBoxSDS_LIBS += \
|
---|
289 | $(PATH_STAGE_LIB)/VBoxAPIWrap$(VBOX_SUFF_LIB)
|
---|
290 | VBoxSDS_INTERMEDIATES = \
|
---|
291 | $(VBOX_MAIN_PREREQS) \
|
---|
292 | $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
|
---|
293 | VBoxSDS_SOURCES = \
|
---|
294 | src-all/Global.cpp \
|
---|
295 | src-all/AutoCaller.cpp \
|
---|
296 | src-all/VirtualBoxBase.cpp \
|
---|
297 | src-all/VirtualBoxErrorInfoImpl.cpp \
|
---|
298 | src-global/VirtualBoxSDSImpl.cpp
|
---|
299 | VBoxSDS_SOURCES.win = \
|
---|
300 | src-global/win/VBoxSDS.cpp \
|
---|
301 | src-global/win/VBoxSDS.rc
|
---|
302 | $(call KB_FN_DO_PASS0_ON_TARGET,VBoxSDS) # Sets VBoxSDS_0_OUTDIR
|
---|
303 |
|
---|
304 | src-global/win/VBoxSDS.rc_INCS = $(VBoxSDS_0_OUTDIR)
|
---|
305 | src-global/win/VBoxSDS.rc_DEPS = $(VBoxSDS_0_OUTDIR)/VBoxSDS-icon.rc #$(VBoxSDS_0_OUTDIR)/VBoxSDS.rgs
|
---|
306 | src-global/win/VBoxSDS.rc_CLEAN = $(VBoxSDS_0_OUTDIR)/VBoxSDS-icon.rc #$(VBoxSDS_0_OUTDIR)/VBoxSDS.rgs
|
---|
307 |
|
---|
308 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxSDS_0_OUTDIR)/VBoxSDS-icon.rc)
|
---|
309 | $(VBoxSDS_0_OUTDIR)/VBoxSDS-icon.rc: $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$@)
|
---|
310 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
311 | $(APPEND) -t $@ '1 ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
|
---|
312 |
|
---|
313 | # $(call KB_FN_AUTO_CMD_DEPS,$(VBoxSDS_0_OUTDIR)/VBoxSDS.rgs)
|
---|
314 | # $(VBoxSDS_0_OUTDIR)/VBoxSDS.rgs: $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
|
---|
315 | # $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
316 | # $(VBOX_XSLTPROC) \
|
---|
317 | # --stringparam Application "VirtualBox System" \
|
---|
318 | # --stringparam Module VBoxSDS \
|
---|
319 | # -o $@ \
|
---|
320 | # $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl \
|
---|
321 | # $(VBOX_XIDL_FILE)
|
---|
322 | #
|
---|
323 | endif #if defined(VBOX_WITH_SDS) && "$(KBUILD_TARGET)" == "win"
|
---|
324 |
|
---|
325 | #
|
---|
326 | # VBoxSVC executable
|
---|
327 | #
|
---|
328 | PROGRAMS += VBoxSVC
|
---|
329 | VBoxSVC_TEMPLATE = VBOXMAINEXE
|
---|
330 | if defined(VBOX_WITH_PRECOMPILED_HEADERS) && "$(KBUILD_TARGET)" == "win"
|
---|
331 | VBoxSVC_USES += vccprecomp
|
---|
332 | VBoxSVC_PCH_HDR := $(PATH_SUB_CURRENT)/src-server/win/precomp_vcc.h
|
---|
333 | endif
|
---|
334 | VBoxSVC_DEFS = \
|
---|
335 | VBOX_MAIN_SETTINGS_ADDONS \
|
---|
336 | IN_VMM_STATIC \
|
---|
337 | $(VBOX_MAIN_DEFS) \
|
---|
338 | $(if $(VBOX_WITH_VBOXSDL),VBOX_WITH_VBOXSDL,) \
|
---|
339 | $(if $(VBOX_WITH_HEADLESS),VBOX_WITH_HEADLESS,) \
|
---|
340 | $(if $(VBOX_WITH_QTGUI),VBOX_WITH_QTGUI,) \
|
---|
341 | $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) \
|
---|
342 | $(if $(VBOX_WITH_AUDIO_OSS),VBOX_WITH_AUDIO_OSS,) \
|
---|
343 | $(if $(VBOX_WITH_AUDIO_ALSA),VBOX_WITH_AUDIO_ALSA,) \
|
---|
344 | $(if $(VBOX_WITH_AUDIO_PULSE),VBOX_WITH_AUDIO_PULSE,) \
|
---|
345 | $(if $(VBOX_WITH_AUDIO_DEBUG),VBOX_WITH_AUDIO_DEBUG,) \
|
---|
346 | $(if $(VBOX_WITH_AUDIO_VALIDATIONKIT),VBOX_WITH_AUDIO_VALIDATIONKIT,) \
|
---|
347 | $(if $(VBOX_WITH_AUDIO_VIDEOREC),VBOX_WITH_AUDIO_VIDEOREC,) \
|
---|
348 | $(if $(VBOX_WITH_VIDEOREC),VBOX_WITH_VIDEOREC,) \
|
---|
349 | $(if $(VBOX_WITH_AUDIO_VRDE),VBOX_WITH_AUDIO_VRDE,) \
|
---|
350 | $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000,) \
|
---|
351 | $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO,) \
|
---|
352 | $(if $(VBOX_WITH_AHCI),VBOX_WITH_AHCI,) \
|
---|
353 | $(if $(VBOX_WITH_LSILOGIC),VBOX_WITH_LSILOGIC,) \
|
---|
354 | $(if $(VBOX_WITH_LINUX_COMPILER_H),VBOX_WITH_LINUX_COMPILER_H,) \
|
---|
355 | $(if $(VBOX_WITH_RESOURCE_USAGE_API),VBOX_WITH_RESOURCE_USAGE_API,) \
|
---|
356 | $(if $(VBOX_WITH_UNATTENDED),VBOX_WITH_UNATTENDED,) \
|
---|
357 | $(if $(VBOX_WITH_PDM_ASYNC_COMPLETION),VBOX_WITH_PDM_ASYNC_COMPLETION,) \
|
---|
358 | $(if $(VBOX_WITH_DBUS),VBOX_WITH_DBUS,) \
|
---|
359 | $(if $(VBOX_WITH_DBUS),$(if $(VBOX_USB_WITH_DBUS),VBOX_USB_WITH_DBUS,),) \
|
---|
360 | $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,) \
|
---|
361 | $(if $(VBOX_USB_WITH_INOTIFY),VBOX_USB_WITH_INOTIFY,) \
|
---|
362 | $(if $(VBOX_WITH_LIVE_MIGRATION),VBOX_WITH_LIVE_MIGRATION,) \
|
---|
363 | $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK,) \
|
---|
364 | $(if $(VBOX_WITH_VUSB),VBOX_WITH_VUSB,) \
|
---|
365 | $(if $(VBOX_WITH_PCI_PASSTHROUGH),VBOX_WITH_PCI_PASSTHROUGH,) \
|
---|
366 | $(if $(VBOX_WITH_NAT_SERVICE),VBOX_WITH_NAT_SERVICE,) \
|
---|
367 | $(if $(VBOX_WITH_CROGL),VBOX_WITH_CROGL,) \
|
---|
368 | $(if $(VBOX_WITH_CRHGSMI),VBOX_WITH_CRHGSMI,) \
|
---|
369 | $(if-expr defined(VBOX_WITH_SDS),VBOX_WITH_SDS,)
|
---|
370 | ifdef VBOX_WITH_USB
|
---|
371 | VBoxSVC_DEFS += \
|
---|
372 | VBOX_WITH_USB \
|
---|
373 | $(if $(VBOX_WITH_EHCI),VBOX_WITH_EHCI,) \
|
---|
374 | $(if $(VBOX_WITH_NEW_USB_CODE_ON_DARWIN),VBOX_WITH_NEW_USB_CODE_ON_DARWIN,)
|
---|
375 | endif
|
---|
376 | VBoxSVC_DEFS.win += VBOX_COM_OUTOFPROC_MODULE
|
---|
377 | VBoxSVC_DEFS.win += _WIN32_WINNT=0x0510
|
---|
378 | # Try to load and use libhal at runtime for probing removable media
|
---|
379 | # VBoxSVC_DEFS.linux += VBOX_USE_LIBHAL
|
---|
380 | VBoxSVC_DEFS.solaris += VBOX_USE_LIBHAL
|
---|
381 |
|
---|
382 | if $(KBUILD_TARGET) != "win" && $(VBOX_GCC_VERSION_CXX) >= 40900 # gcc 4.9.x (4.8.x is causing endless RT_ELEMENT trouble)
|
---|
383 | VBoxSVC_CXXFLAGS = -Wunused -Wconversion
|
---|
384 | endif
|
---|
385 |
|
---|
386 | VBoxSVC_INCS = \
|
---|
387 | include \
|
---|
388 | $(VBoxSVC_0_OUTDIR) \
|
---|
389 | $(dir $(VBOX_XML_SCHEMADEFS_H)) \
|
---|
390 | $(VBOX_MAIN_APIWRAPPER_INCS) \
|
---|
391 | . \
|
---|
392 | $(VBOX_GRAPHICS_INCS)
|
---|
393 | VBoxSVC_INCS.win = \
|
---|
394 | $(VBoxCOM_0_OUTDIR)
|
---|
395 | ifdef VBOX_WITH_USB
|
---|
396 | VBoxSVC_INCS.os2 = \
|
---|
397 | $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
|
---|
398 | endif
|
---|
399 |
|
---|
400 | VBoxSVC_LIBS += \
|
---|
401 | $(PATH_STAGE_LIB)/VBoxAPIWrap$(VBOX_SUFF_LIB) \
|
---|
402 | $(PATH_STAGE_LIB)/SSMStandalone$(VBOX_SUFF_LIB) \
|
---|
403 | $(LIB_DDU)
|
---|
404 |
|
---|
405 | VBoxSVC_SDKS = VBOX_LIBPNG VBOX_ZLIB
|
---|
406 | VBoxSVC_LIBS.solaris = \
|
---|
407 | adm \
|
---|
408 | nsl \
|
---|
409 | devinfo \
|
---|
410 | socket \
|
---|
411 | $(LIB_VMM)
|
---|
412 |
|
---|
413 | VBoxSVC_LIBS.win += \
|
---|
414 | $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/dnsapi.lib
|
---|
415 |
|
---|
416 | VBoxSVC_INTERMEDIATES = \
|
---|
417 | $(VBOX_MAIN_PREREQS) \
|
---|
418 | $(VBOX_XML_SCHEMADEFS_H) \
|
---|
419 | $(VBOX_AUTOGEN_EVENT_H) \
|
---|
420 | $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
|
---|
421 |
|
---|
422 | VBoxSVC_SOURCES = \
|
---|
423 | $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d \
|
---|
424 | src-all/AuthLibrary.cpp \
|
---|
425 | src-all/DisplayPNGUtil.cpp \
|
---|
426 | src-all/DisplayResampleImage.cpp \
|
---|
427 | src-all/DisplayUtils.cpp \
|
---|
428 | src-all/EventImpl.cpp \
|
---|
429 | src-all/Global.cpp \
|
---|
430 | src-all/HashedPw.cpp \
|
---|
431 | src-all/Logging.cpp \
|
---|
432 | src-all/PCIDeviceAttachmentImpl.cpp \
|
---|
433 | src-all/ProgressImpl.cpp \
|
---|
434 | src-all/QMTranslatorImpl.cpp \
|
---|
435 | src-all/SecretKeyStore.cpp \
|
---|
436 | src-all/SharedFolderImpl.cpp \
|
---|
437 | src-all/AutoCaller.cpp \
|
---|
438 | src-all/ThreadTask.cpp \
|
---|
439 | src-all/VirtualBoxBase.cpp \
|
---|
440 | src-all/VirtualBoxErrorInfoImpl.cpp \
|
---|
441 | $(if $(VBOX_WITH_EXTPACK),src-all/ExtPackManagerImpl.cpp src-all/ExtPackUtil.cpp,) \
|
---|
442 | src-server/CertificateImpl.cpp \
|
---|
443 | src-server/ApplianceImpl.cpp \
|
---|
444 | src-server/ApplianceImplExport.cpp \
|
---|
445 | src-server/ApplianceImplImport.cpp \
|
---|
446 | src-server/AudioAdapterImpl.cpp \
|
---|
447 | src-server/BandwidthControlImpl.cpp \
|
---|
448 | src-server/BandwidthGroupImpl.cpp \
|
---|
449 | src-server/BIOSSettingsImpl.cpp \
|
---|
450 | src-server/ClientWatcher.cpp \
|
---|
451 | src-server/ClientToken.cpp \
|
---|
452 | src-server/DHCPServerImpl.cpp \
|
---|
453 | src-server/NetworkServiceRunner.cpp \
|
---|
454 | src-server/NATNetworkImpl.cpp \
|
---|
455 | src-server/GuestOSTypeImpl.cpp \
|
---|
456 | src-server/HostDnsService.cpp \
|
---|
457 | src-server/HostImpl.cpp \
|
---|
458 | src-server/HostNetworkInterfaceImpl.cpp \
|
---|
459 | src-server/HostPower.cpp \
|
---|
460 | src-server/HostVideoInputDeviceImpl.cpp \
|
---|
461 | src-server/MachineImpl.cpp \
|
---|
462 | src-server/MachineImplCloneVM.cpp \
|
---|
463 | src-server/Matching.cpp \
|
---|
464 | src-server/MediumAttachmentImpl.cpp \
|
---|
465 | src-server/MediumFormatImpl.cpp \
|
---|
466 | src-server/MediumImpl.cpp \
|
---|
467 | src-server/MediumLock.cpp \
|
---|
468 | src-server/NATEngineImpl.cpp \
|
---|
469 | src-server/NetworkAdapterImpl.cpp \
|
---|
470 | src-server/ParallelPortImpl.cpp \
|
---|
471 | src-server/ProgressProxyImpl.cpp \
|
---|
472 | src-server/SerialPortImpl.cpp \
|
---|
473 | src-server/SnapshotImpl.cpp \
|
---|
474 | src-server/StorageControllerImpl.cpp \
|
---|
475 | src-server/SystemPropertiesImpl.cpp \
|
---|
476 | src-server/TokenImpl.cpp \
|
---|
477 | $(if $(VBOX_WITH_UNATTENDED), \
|
---|
478 | src-server/UnattendedImpl.cpp \
|
---|
479 | src-server/UnattendedInstaller.cpp \
|
---|
480 | src-server/UnattendedScript.cpp \
|
---|
481 | ,) \
|
---|
482 | src-server/USBControllerImpl.cpp \
|
---|
483 | src-server/USBDeviceFiltersImpl.cpp \
|
---|
484 | src-server/VFSExplorerImpl.cpp \
|
---|
485 | src-server/VirtualBoxImpl.cpp \
|
---|
486 | src-server/VRDEServerImpl.cpp \
|
---|
487 | src-server/generic/AutostartDb-generic.cpp \
|
---|
488 | xml/ovfreader.cpp \
|
---|
489 | xml/Settings.cpp \
|
---|
490 | $(VBOX_XML_SCHEMADEFS_CPP) \
|
---|
491 | $(VBOX_AUTOGEN_EVENT_CPP) \
|
---|
492 | $(if $(VBOX_WITH_XPCOM),src-server/xpcom/server.cpp,)
|
---|
493 |
|
---|
494 | src-server/ApplianceImplExport.cpp_DEFS = VBOX_SVN_REV=$(VBOX_SVN_REV)
|
---|
495 |
|
---|
496 | ifn1of ($(KBUILD_TARGET), win darwin)
|
---|
497 | VBoxSVC_SOURCES += $(PATH_ROOT)/src/VBox/Devices/Network/slirp/resolv_conf_parser.c
|
---|
498 | # $(PATH_ROOT)/src/VBox/Devices/Network/slirp/resolv_conf_parser.c_DEFS += LOG_GROUP=LOG_GROUP_MAIN
|
---|
499 | endif
|
---|
500 |
|
---|
501 | VBoxSVC_SOURCES.darwin = \
|
---|
502 | src-server/darwin/iokit.cpp \
|
---|
503 | src-server/darwin/HostPowerDarwin.cpp \
|
---|
504 | src-server/darwin/HostDnsServiceDarwin.cpp
|
---|
505 |
|
---|
506 | VBoxSVC_SOURCES.win = \
|
---|
507 | src-server/win/svcmain.cpp \
|
---|
508 | src-server/win/svchlp.cpp \
|
---|
509 | src-server/win/HostPowerWin.cpp \
|
---|
510 | src-server/win/VBoxSVC.rc \
|
---|
511 | src-server/win/HostDnsServiceWin.cpp
|
---|
512 |
|
---|
513 | VBoxSVC_SOURCES.linux = \
|
---|
514 | src-server/linux/HostHardwareLinux.cpp \
|
---|
515 | src-server/linux/HostDnsServiceLinux.cpp \
|
---|
516 | $(if $(VBOX_WITH_DBUS),src-server/linux/HostPowerLinux.cpp) \
|
---|
517 | src-server/HostDnsServiceResolvConf.cpp
|
---|
518 |
|
---|
519 | VBoxSVC_SOURCES.solaris = \
|
---|
520 | src-server/linux/vbox-libhal.cpp \
|
---|
521 | src-server/solaris/DynLoadLibSolaris.cpp \
|
---|
522 | src-server/HostDnsServiceResolvConf.cpp
|
---|
523 |
|
---|
524 | VBoxSVC_SOURCES.os2 = \
|
---|
525 | src-server/HostDnsServiceResolvConf.cpp
|
---|
526 |
|
---|
527 | VBoxSVC_SOURCES.freebsd = \
|
---|
528 | src-server/freebsd/HostHardwareFreeBSD.cpp \
|
---|
529 | src-server/HostDnsServiceResolvConf.cpp
|
---|
530 |
|
---|
531 |
|
---|
532 | ifdef VBOX_WITH_USB
|
---|
533 | ifdef VBOX_WITH_SYSFS_BY_DEFAULT
|
---|
534 | src-server/linux/USBProxyBackendLinux.cpp_DEFS += VBOX_WITH_SYSFS_BY_DEFAULT
|
---|
535 | endif
|
---|
536 | VBoxSVC_SOURCES += \
|
---|
537 | src-server/USBDeviceFilterImpl.cpp \
|
---|
538 | src-server/USBProxyService.cpp \
|
---|
539 | src-server/USBProxyBackend.cpp \
|
---|
540 | src-server/generic/USBProxyBackendUsbIp.cpp \
|
---|
541 | src-server/HostUSBDeviceImpl.cpp
|
---|
542 | VBoxSVC_SOURCES.darwin += src-server/darwin/USBProxyBackendDarwin.cpp
|
---|
543 | VBoxSVC_SOURCES.linux += src-server/linux/USBProxyBackendLinux.cpp
|
---|
544 | VBoxSVC_SOURCES.linux += src-server/linux/USBGetDevices.cpp
|
---|
545 | VBoxSVC_SOURCES.os2 += src-server/os2/USBProxyBackendOs2.cpp
|
---|
546 | VBoxSVC_SOURCES.solaris += src-server/solaris/USBProxyBackendSolaris.cpp
|
---|
547 | VBoxSVC_SOURCES.win += src-server/win/USBProxyBackendWindows.cpp
|
---|
548 | VBoxSVC_SOURCES.freebsd += src-server/freebsd/USBProxyBackendFreeBSD.cpp
|
---|
549 | endif
|
---|
550 |
|
---|
551 | ifdef VBOX_WITH_NETFLT
|
---|
552 | VBoxSVC_LIBS.win += \
|
---|
553 | $(PATH_STAGE_LIB)/WinNetConfig$(VBOX_SUFF_LIB) \
|
---|
554 | $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB) \
|
---|
555 | $(PATH_SDK_$(VBOX_WINDDK)_LIB)/newdev.lib \
|
---|
556 | $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/comsupp.lib \
|
---|
557 | $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/WbemUuid.Lib
|
---|
558 | endif
|
---|
559 | VBoxSVC_LDFLAGS.darwin = -framework IOKit -framework SystemConfiguration
|
---|
560 |
|
---|
561 | ifdef VBOX_WITH_CROGL
|
---|
562 | VBoxSVC_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
|
---|
563 | VBoxSVC_LDFLAGS.darwin += -framework OpenGL
|
---|
564 | endif
|
---|
565 |
|
---|
566 | ifeq ($(KBUILD_TYPE),debug)
|
---|
567 | VBoxSVC_LDFLAGS.linux += -rdynamic # for backtrace_symbols()
|
---|
568 | endif
|
---|
569 |
|
---|
570 | ifdef VBOX_WITH_RESOURCE_USAGE_API
|
---|
571 | VBoxSVC_SOURCES += \
|
---|
572 | src-server/PerformanceImpl.cpp \
|
---|
573 | src-server/Performance.cpp
|
---|
574 | VBoxSVC_SOURCES.darwin += src-server/darwin/PerformanceDarwin.cpp
|
---|
575 | VBoxSVC_SOURCES.freebsd += src-server/freebsd/PerformanceFreeBSD.cpp
|
---|
576 | VBoxSVC_SOURCES.linux += src-server/linux/PerformanceLinux.cpp
|
---|
577 | VBoxSVC_SOURCES.os2 += src-server/os2/PerformanceOs2.cpp
|
---|
578 | VBoxSVC_SOURCES.solaris += src-server/solaris/PerformanceSolaris.cpp
|
---|
579 | VBoxSVC_SOURCES.win += src-server/win/PerformanceWin.cpp
|
---|
580 | VBoxSVC_LDFLAGS.darwin += -lproc
|
---|
581 | VBoxSVC_LDFLAGS.solaris += -lkstat -lnvpair
|
---|
582 | VBoxSVC_LDFLAGS.win += psapi.lib powrprof.lib
|
---|
583 | endif
|
---|
584 |
|
---|
585 | ifdef VBOX_WITH_HOSTNETIF_API
|
---|
586 | VBoxSVC_SOURCES.win += src-server/win/NetIf-win.cpp
|
---|
587 | VBoxSVC_SOURCES.linux += src-server/linux/NetIf-linux.cpp
|
---|
588 | VBoxSVC_SOURCES.os2 += src-server/os2/NetIf-os2.cpp
|
---|
589 | VBoxSVC_SOURCES.darwin += src-server/darwin/NetIf-darwin.cpp
|
---|
590 | VBoxSVC_SOURCES.solaris += src-server/solaris/NetIf-solaris.cpp
|
---|
591 | VBoxSVC_SOURCES.freebsd += src-server/freebsd/NetIf-freebsd.cpp
|
---|
592 | VBoxSVC_DEFS += VBOX_WITH_HOSTNETIF_API
|
---|
593 | if1of ($(KBUILD_TARGET), linux darwin solaris freebsd)
|
---|
594 | VBoxSVC_SOURCES += src-server/generic/NetIf-generic.cpp
|
---|
595 | endif
|
---|
596 | endif
|
---|
597 |
|
---|
598 | $(call KB_FN_DO_PASS0_ON_TARGET,VBoxSVC) # Sets VBoxSVC_0_OUTDIR
|
---|
599 |
|
---|
600 | ifdef VBOX_WITH_MAIN_USB_ID_DATABASE # Generate a database of USB vendor IDs and device IDs.
|
---|
601 | VBoxSVC_DEFS += VBOX_WITH_MAIN_USB_ID_DATABASE
|
---|
602 | VBoxSVC_SOURCES += $(VBoxSVC_0_OUTDIR)/USBIdDatabase.cpp
|
---|
603 | VBoxSVC_CLEAN += $(VBoxSVC_0_OUTDIR)/USBIdDatabase.cpp
|
---|
604 |
|
---|
605 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxSVC_0_OUTDIR)/USBIdDatabase.cpp)
|
---|
606 | $(VBoxSVC_0_OUTDIR)/USBIdDatabase.cpp: $$(USBIdDatabaseGenerator_1_TARGET) \
|
---|
607 | $(PATH_SUB_CURRENT)/src-server/usb.ids $(PATH_SUB_CURRENT)/src-server/custom.ids | $$(dir $$@)
|
---|
608 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
609 | $(call MSG_GENERATE,USBIdDatabase,$@,$(USBIdDatabaseGenerator_1_TARGET))
|
---|
610 | $(QUIET)$(USBIdDatabaseGenerator_1_TARGET) -o "$@" $(filter %.ids,$^)
|
---|
611 |
|
---|
612 | BLDPROGS += USBIdDatabaseGenerator
|
---|
613 | USBIdDatabaseGenerator_TEMPLATE = VBoxAdvBldProg
|
---|
614 | USBIdDatabaseGenerator_SOURCES = src-server/USBIdDatabaseGenerator.cpp
|
---|
615 | else
|
---|
616 | VBoxSVC_SOURCES += src-server/USBIdDatabaseStub.cpp
|
---|
617 | endif
|
---|
618 |
|
---|
619 | src-server/win/VBoxSVC.rc_INCS = $(VBoxSVC_0_OUTDIR)
|
---|
620 | src-server/win/VBoxSVC.rc_DEPS = $(VBoxSVC_0_OUTDIR)/VBoxSVC-icon.rc
|
---|
621 | src-server/win/VBoxSVC.rc_CLEAN = $(VBoxSVC_0_OUTDIR)/VBoxSVC-icon.rc
|
---|
622 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxSVC_0_OUTDIR)/VBoxSVC-icon.rc)
|
---|
623 | $(VBoxSVC_0_OUTDIR)/VBoxSVC-icon.rc: $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$@)
|
---|
624 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
625 | $(APPEND) -t $@ '1 ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
|
---|
626 |
|
---|
627 | ifndef VBOX_WITH_MIDL_PROXY_STUB
|
---|
628 | src-server/win/VBoxSVC.rc_DEPS += $(VBoxSVC_0_OUTDIR)/VBoxSVC.rgs
|
---|
629 | src-server/win/VBoxSVC.rc_CLEAN += $(VBoxSVC_0_OUTDIR)/VBoxSVC.rgs
|
---|
630 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxSVC_0_OUTDIR)/VBoxSVC.rgs)
|
---|
631 | $(VBoxSVC_0_OUTDIR)/VBoxSVC.rgs: $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
|
---|
632 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
633 | $(VBOX_XSLTPROC) \
|
---|
634 | --stringparam Application VirtualBox \
|
---|
635 | --stringparam Module VBoxSVC \
|
---|
636 | -o $@ \
|
---|
637 | $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl \
|
---|
638 | $(VBOX_XIDL_FILE)
|
---|
639 | endif
|
---|
640 |
|
---|
641 | ## @todo r=klaus unfortunately we don't have xmllint everywhere, would be
|
---|
642 | # good to check the validity for every VirtualBox.xidl change.
|
---|
643 | #$(VBOX_XIDL_FILE).validated.ts: $(VBOX_XIDL_FILE_SRC)
|
---|
644 | # xmllint --dtdvalid $(VBOX_PATH_MAIN_SRC)/idl/VirtualBox.dtd --noout $<
|
---|
645 | # $(QUIET)$(CP) --changed -fv $< $(VBOX_XIDL_FILE).validated.ts
|
---|
646 | #
|
---|
647 | #OTHERS += $(VBOX_XIDL_FILE).validated.ts
|
---|
648 | #OTHER_CLEAN += $(VBOX_XIDL_FILE).validated.ts
|
---|
649 |
|
---|
650 | testvalidxidl: $(VBOX_XIDL_FILE_SRC)
|
---|
651 | xmllint --dtdvalid $(VBOX_PATH_MAIN_SRC)/idl/VirtualBox.dtd --noout $<
|
---|
652 |
|
---|
653 |
|
---|
654 | #
|
---|
655 | # Embed some constraints from XML Schema file into VBoxSVC
|
---|
656 | #
|
---|
657 | VBOX_XML_SCHEMA = $(VBOX_PATH_MAIN_SRC)/xml/VirtualBox-settings.xsd
|
---|
658 |
|
---|
659 | $(VBOX_XML_SCHEMADEFS_H): $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA) | $$(dir $$@)
|
---|
660 | $(call MSG_GENERATE,SchemaDefs,$@,$<)
|
---|
661 | $(QUIET)$(VBOX_XSLTPROC) --stringparam mode declare -o $@ $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA)
|
---|
662 |
|
---|
663 | $(VBOX_XML_SCHEMADEFS_CPP): $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA) | $$(dir $$@)
|
---|
664 | $(call MSG_GENERATE,SchemaDefs,$@,$<)
|
---|
665 | $(QUIET)$(VBOX_XSLTPROC) --stringparam mode define -o $@ $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA)
|
---|
666 |
|
---|
667 | testvalidsettings: $(VBOX_XML_SCHEMA)
|
---|
668 | xmllint --schema $< --noout $(HOME)/.VirtualBox/VirtualBox.xml
|
---|
669 | xmllint --schema $< --noout $(HOME)/.VirtualBox/Machines/*/*.xml
|
---|
670 | xmllint --schema $< --noout $(HOME)/.VirtualBox/Machines/*/*.vbox
|
---|
671 | xmllint --schema $< --noout $(HOME)/VirtualBox\ VMs/*/*.vbox
|
---|
672 |
|
---|
673 | OTHER_CLEAN += $(VBOX_XML_SCHEMADEFS_H) $(VBOX_XML_SCHEMADEFS_CPP)
|
---|
674 |
|
---|
675 |
|
---|
676 | #
|
---|
677 | # Generate some event stuff for VBoxSVC and VBoxC.
|
---|
678 | #
|
---|
679 | $(VBOX_AUTOGEN_EVENT_H): $(VBOX_PATH_MAIN_SRC)/idl/comimpl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
|
---|
680 | $(call MSG_TOOL,xsltproc,autogen events,$<,$@)
|
---|
681 | $(QUIET)$(VBOX_XSLTPROC) --stringparam G_kind VBoxEventHeader -o $@ $< $(VBOX_XIDL_FILE)
|
---|
682 |
|
---|
683 | $(VBOX_AUTOGEN_EVENT_CPP): $(VBOX_PATH_MAIN_SRC)/idl/comimpl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
|
---|
684 | $(call MSG_TOOL,xsltproc,autogen events,$<,$@)
|
---|
685 | $(QUIET)$(VBOX_XSLTPROC) --stringparam G_kind VBoxEvent -o $@ $< $(VBOX_XIDL_FILE)
|
---|
686 |
|
---|
687 | OTHER_CLEAN += $(VBOX_AUTOGEN_EVENT_H) $(VBOX_AUTOGEN_EVENT_CPP)
|
---|
688 |
|
---|
689 | ifdef VBOX_WITH_XPCOM
|
---|
690 | #
|
---|
691 | # VBoxSVCM - VBoxSVC wrapper module
|
---|
692 | #
|
---|
693 | DLLS += VBoxSVCM
|
---|
694 | VBoxSVCM_TEMPLATE = VBOXMAINCOMP
|
---|
695 | VBoxSVCM_DEFS = IN_RING3 $(VBOX_MAIN_DEFS)
|
---|
696 | ifdef VBOX_WITH_HARDENING
|
---|
697 | VBoxSVCM_DEFS += VBOX_WITH_HARDENING
|
---|
698 | endif
|
---|
699 | VBoxSVCM_INCS = \
|
---|
700 | include \
|
---|
701 | $(VBoxC_0_OUTDIR) \
|
---|
702 | .
|
---|
703 | VBoxSVCM_INTERMEDIATES = $(VBOX_MAIN_PREREQS)
|
---|
704 | VBoxSVCM_SOURCES = \
|
---|
705 | src-server/xpcom/server_module.cpp
|
---|
706 | VBoxSVCM_LDFLAGS.darwin = \
|
---|
707 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/components/VBoxSVCM.dylib \
|
---|
708 | -exported_symbols_list $(VBoxSVCM_0_OUTDIR)/VBoxSVCM.def
|
---|
709 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
710 | VBoxSVCM_ORDERDEPS += $(VBoxSVCM_0_OUTDIR)/VBoxSVCM.def
|
---|
711 | VBoxSVCM_CLEAN += $(VBoxSVCM_0_OUTDIR)/VBoxSVCM.def
|
---|
712 | $$(VBoxSVCM_0_OUTDIR)/VBoxSVCM.def:
|
---|
713 | $(RM) -f $@
|
---|
714 | $(APPEND) $@ _NSGetModule
|
---|
715 | endif
|
---|
716 | VBoxSVCM_INTERMEDIATES += $(VBOX_IDL_HEADER.XPCOM)
|
---|
717 |
|
---|
718 | # 32-bit version of the module.
|
---|
719 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
720 | DLLS += VBoxSVCM-x86
|
---|
721 | VBoxSVCM-x86_TEMPLATE = VBoxMainComp-x86
|
---|
722 | VBoxSVCM-x86_EXTENDS = VBoxSVCM
|
---|
723 | endif
|
---|
724 |
|
---|
725 | endif # VBOX_WITH_XPCOM
|
---|
726 |
|
---|
727 |
|
---|
728 | #
|
---|
729 | # VBoxC module
|
---|
730 | #
|
---|
731 | DLLS += VBoxC
|
---|
732 | VBoxC_TEMPLATE = VBOXMAINCOMP
|
---|
733 | if defined(VBOX_WITH_PRECOMPILED_HEADERS) && "$(KBUILD_TARGET)" == "win"
|
---|
734 | VBoxC_USES = vccprecomp
|
---|
735 | VBoxC_PCH_HDR := $(PATH_SUB_CURRENT)/src-client/win/precomp_vcc.h
|
---|
736 | endif
|
---|
737 | VBoxC_DEFS = \
|
---|
738 | IN_RING3 \
|
---|
739 | $(VBOX_MAIN_DEFS) \
|
---|
740 | VBOX_COM_INPROC \
|
---|
741 | $(if $(VBOX_WITH_HGCM),VBOX_WITH_HGCM,) \
|
---|
742 | $(if $(VBOX_WITH_AUDIO_OSS),VBOX_WITH_AUDIO_OSS,) \
|
---|
743 | $(if $(VBOX_WITH_AUDIO_ALSA),VBOX_WITH_AUDIO_ALSA,) \
|
---|
744 | $(if $(VBOX_WITH_AUDIO_PULSE),VBOX_WITH_AUDIO_PULSE,) \
|
---|
745 | $(if $(VBOX_WITH_AUDIO_DEBUG),VBOX_WITH_AUDIO_DEBUG,) \
|
---|
746 | $(if $(VBOX_WITH_AUDIO_VALIDATIONKIT),VBOX_WITH_AUDIO_VALIDATIONKIT,) \
|
---|
747 | $(if $(VBOX_WITH_AUDIO_VIDEOREC),VBOX_WITH_AUDIO_VIDEOREC,) \
|
---|
748 | $(if $(VBOX_WITH_VIDEOREC),VBOX_WITH_VIDEOREC,) \
|
---|
749 | $(if $(VBOX_WITH_AUDIO_VRDE),VBOX_WITH_AUDIO_VRDE,) \
|
---|
750 | $(if $(VBOX_WITH_E1000),VBOX_WITH_E1000,) \
|
---|
751 | $(if $(VBOX_WITH_VIRTIO),VBOX_WITH_VIRTIO,) \
|
---|
752 | $(if $(VBOX_WITH_EFI),VBOX_WITH_EFI,) \
|
---|
753 | $(if $(VBOX_WITH_PDM_ASYNC_COMPLETION),VBOX_WITH_PDM_ASYNC_COMPLETION,) \
|
---|
754 | $(if $(VBOX_WITH_LIVE_MIGRATION),VBOX_WITH_LIVE_MIGRATION,) \
|
---|
755 | $(if $(VBOX_WITH_VUSB),VBOX_WITH_VUSB,) \
|
---|
756 | $(if $(VBOX_WITH_HGSMI),VBOX_WITH_HGSMI,) \
|
---|
757 | $(if $(VBOX_WITH_VIDEOHWACCEL),VBOX_WITH_VIDEOHWACCEL,) \
|
---|
758 | $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP,) \
|
---|
759 | $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,) \
|
---|
760 | $(if $(VBOX_WITH_USB),VBOX_WITH_USB,) \
|
---|
761 | $(if-expr defined(VBOX_WITH_EHCI) && defined(VBOX_WITH_USB),VBOX_WITH_EHCI,) \
|
---|
762 | $(if $(VBOX_WITH_EXTPACK),VBOX_WITH_EXTPACK,) \
|
---|
763 | $(if $(VBOX_WITH_PCI_PASSTHROUGH),VBOX_WITH_PCI_PASSTHROUGH,) \
|
---|
764 | $(if $(VBOX_WITH_VRDEAUTH_IN_VBOXSVC),VBOX_WITH_VRDEAUTH_IN_VBOXSVC,) \
|
---|
765 | $(if $(VBOX_WITH_SDS),VBOX_WITH_SDS,)
|
---|
766 | ifdef VBOX_WITH_CRHGSMI
|
---|
767 | VBoxC_DEFS += VBOX_WITH_CRHGSMI
|
---|
768 | endif
|
---|
769 | ifdef VBOX_WITH_NETSHAPER
|
---|
770 | VBoxC_DEFS += VBOX_WITH_NETSHAPER
|
---|
771 | endif
|
---|
772 | VBoxC_DEFS.darwin.x86 = VBOX_WITH_2X_4GB_ADDR_SPACE
|
---|
773 | VBoxC_DEFS.win.x86 += _WIN32_WINNT=0x0500
|
---|
774 | VBoxC_DEFS.win.amd64 += _WIN32_WINNT=0x0510
|
---|
775 |
|
---|
776 | if $(KBUILD_TARGET) != "win" && $(VBOX_GCC_VERSION_CXX) >= 40900 # gcc 4.9.x (4.8.x is causing endless RT_ELEMENT trouble)
|
---|
777 | # VBoxC_CXXFLAGS = -Wunused -Wconversion
|
---|
778 | endif
|
---|
779 |
|
---|
780 | VBoxC_SDKS = VBOX_LIBPNG VBOX_ZLIB
|
---|
781 |
|
---|
782 | ifdef VBOX_WITH_VIDEOREC
|
---|
783 | VBoxC_SOURCES += \
|
---|
784 | src-client/EBMLWriter.cpp \
|
---|
785 | src-client/WebMWriter.cpp
|
---|
786 | ifdef VBOX_WITH_LIBVPX
|
---|
787 | VBoxC_SDKS += VBOX_VPX
|
---|
788 | VBoxC_DEFS += VBOX_WITH_LIBVPX
|
---|
789 | VBoxC_SOURCES += \
|
---|
790 | src-client/VideoRec.cpp
|
---|
791 | else
|
---|
792 | $(error "VBox: No alternative for VPX when using video capturing support yet")
|
---|
793 | endif
|
---|
794 | endif
|
---|
795 |
|
---|
796 | ifdef VBOX_WITH_AUDIO_VIDEOREC
|
---|
797 | ifdef VBOX_WITH_LIBOPUS
|
---|
798 | VBoxC_SDKS += VBOX_OPUS
|
---|
799 | VBoxC_DEFS += VBOX_WITH_LIBOPUS
|
---|
800 | else
|
---|
801 | $(error "VBox: No alternative for Opus when using audio support for video capturing yet")
|
---|
802 | endif
|
---|
803 | endif
|
---|
804 |
|
---|
805 | ifdef VBOX_WITH_OPENSSL_FIPS
|
---|
806 | VBoxC_SDKS += VBOX_OPENSSL2
|
---|
807 | endif
|
---|
808 |
|
---|
809 | VBoxC_INCS = \
|
---|
810 | include \
|
---|
811 | $(VBoxC_0_OUTDIR) \
|
---|
812 | $(VBOX_MAIN_APIWRAPPER_INCS) \
|
---|
813 | $(dir $(VBOX_XML_SCHEMADEFS_H)) \
|
---|
814 | $(VBOX_MAIN_APIWRAPPER_DIR)/dtrace \
|
---|
815 | $(VBOX_GRAPHICS_INCS)
|
---|
816 | VBoxC_INCS.win = \
|
---|
817 | $(VBoxCOM_0_OUTDIR) \
|
---|
818 | .
|
---|
819 |
|
---|
820 | VBoxC_LDFLAGS.darwin = \
|
---|
821 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/components/VBoxC.dylib \
|
---|
822 | -exported_symbols_list $(VBoxC_0_OUTDIR)/VBoxC.def \
|
---|
823 | -framework IOKit
|
---|
824 | VBoxC_LDFLAGS.win += /MANIFEST \
|
---|
825 | /DELAYLOAD:user32.dll
|
---|
826 |
|
---|
827 |
|
---|
828 | VBoxC_LIBS += \
|
---|
829 | $(PATH_STAGE_LIB)/VBoxAPIWrap$(VBOX_SUFF_LIB) \
|
---|
830 | $(if-expr "$(LIB_VMM)" == "$(VBOX_LIB_VMM_LAZY)",$(LIB_REM),) \
|
---|
831 | $(VBOX_LIB_VMM_LAZY)
|
---|
832 | VBoxC_LIBS.win += \
|
---|
833 | $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/psapi.lib \
|
---|
834 | $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib
|
---|
835 | ifdef VBOX_WITH_NETFLT
|
---|
836 | VBoxC_LIBS.win += \
|
---|
837 | $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB) \
|
---|
838 | $(PATH_SDK_$(VBOX_WINDDK)_LIB)/newdev.lib \
|
---|
839 | $(PATH_STAGE_LIB)/WinNetConfig$(VBOX_SUFF_LIB) \
|
---|
840 | $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/comsupp.lib \
|
---|
841 | $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/WbemUuid.Lib
|
---|
842 | VBoxC_LDFLAGS.win += \
|
---|
843 | /DELAYLOAD:newdev.dll \
|
---|
844 | /DELAYLOAD:setupapi.dll \
|
---|
845 | /DELAYLOAD:iphlpapi.dll
|
---|
846 | endif
|
---|
847 |
|
---|
848 | ifdef VBOX_WITH_CROGL
|
---|
849 | VBoxC_LIBS += $(PATH_STAGE_LIB)/VBoxOGLTest$(VBOX_SUFF_LIB)
|
---|
850 | VBoxC_LDFLAGS.darwin += -framework OpenGL
|
---|
851 | endif
|
---|
852 |
|
---|
853 | ifdef VBOX_WITH_DRAG_AND_DROP
|
---|
854 | VBoxC_LIBS += $(PATH_STAGE_LIB)/VBoxDnDHostR3Lib$(VBOX_SUFF_LIB)
|
---|
855 | endif
|
---|
856 |
|
---|
857 | VBoxC_INTERMEDIATES = \
|
---|
858 | $(VBOX_MAIN_PREREQS) \
|
---|
859 | $(VBOX_XML_SCHEMADEFS_H) \
|
---|
860 | $(VBOX_AUTOGEN_EVENT_H) \
|
---|
861 | $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
|
---|
862 |
|
---|
863 | VBoxC_SOURCES += \
|
---|
864 | $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d \
|
---|
865 | src-all/DisplayPNGUtil.cpp \
|
---|
866 | src-all/DisplayResampleImage.cpp \
|
---|
867 | src-all/DisplayUtils.cpp \
|
---|
868 | src-all/EventImpl.cpp \
|
---|
869 | src-all/Global.cpp \
|
---|
870 | src-all/HashedPw.cpp \
|
---|
871 | src-all/Logging.cpp \
|
---|
872 | src-all/PCIDeviceAttachmentImpl.cpp \
|
---|
873 | src-all/ProgressImpl.cpp \
|
---|
874 | src-all/SecretKeyStore.cpp \
|
---|
875 | src-all/SharedFolderImpl.cpp \
|
---|
876 | src-all/AutoCaller.cpp \
|
---|
877 | src-all/ThreadTask.cpp \
|
---|
878 | src-all/VirtualBoxBase.cpp \
|
---|
879 | src-all/VirtualBoxErrorInfoImpl.cpp \
|
---|
880 | $(if $(VBOX_WITH_EXTPACK),src-all/ExtPackManagerImpl.cpp src-all/ExtPackUtil.cpp,) \
|
---|
881 | src-client/UsbWebcamInterface.cpp \
|
---|
882 | $(if $(VBOX_WITH_USB_CARDREADER),src-client/UsbCardReader.cpp,) \
|
---|
883 | src-client/Nvram.cpp \
|
---|
884 | src-client/AdditionsFacilityImpl.cpp \
|
---|
885 | src-client/BusAssignmentManager.cpp \
|
---|
886 | $(if $(VBOX_WITH_PCI_PASSTHROUGH),src-client/PCIRawDevImpl.cpp,) \
|
---|
887 | src-client/ClientTokenHolder.cpp \
|
---|
888 | src-client/ConsoleImpl.cpp \
|
---|
889 | src-client/ConsoleImpl2.cpp \
|
---|
890 | src-client/ConsoleImplTeleporter.cpp \
|
---|
891 | src-client/ConsoleVRDPServer.cpp \
|
---|
892 | src-client/DisplayImpl.cpp \
|
---|
893 | src-client/DisplayImplLegacy.cpp \
|
---|
894 | src-client/DisplaySourceBitmapImpl.cpp \
|
---|
895 | src-client/EmulatedUSBImpl.cpp \
|
---|
896 | src-client/GuestImpl.cpp \
|
---|
897 | src-client/GuestCtrlImpl.cpp \
|
---|
898 | src-client/KeyboardImpl.cpp \
|
---|
899 | src-client/MachineDebuggerImpl.cpp \
|
---|
900 | src-client/MouseImpl.cpp \
|
---|
901 | src-client/RemoteUSBDeviceImpl.cpp \
|
---|
902 | src-client/SessionImpl.cpp \
|
---|
903 | src-client/USBDeviceImpl.cpp \
|
---|
904 | src-client/VBoxDriversRegister.cpp \
|
---|
905 | src-client/VirtualBoxClientImpl.cpp \
|
---|
906 | src-client/VMMDevInterface.cpp \
|
---|
907 | $(VBOX_AUTOGEN_EVENT_CPP) \
|
---|
908 | $(VBOX_XML_SCHEMADEFS_CPP)
|
---|
909 |
|
---|
910 | # Audio bits.
|
---|
911 | VBoxC_SOURCES += \
|
---|
912 | ../Devices/Audio/AudioMixBuffer.cpp \
|
---|
913 | ../Devices/Audio/DrvAudioCommon.cpp \
|
---|
914 | $(if $(VBOX_WITH_AUDIO_VRDE),src-client/DrvAudioVRDE.cpp,) \
|
---|
915 | $(if $(VBOX_WITH_AUDIO_VIDEOREC),src-client/DrvAudioVideoRec.cpp,)
|
---|
916 |
|
---|
917 | VBoxC_SOURCES.win = \
|
---|
918 | src-client/win/dllmain.cpp \
|
---|
919 | src-client/win/VBoxC.def \
|
---|
920 | src-client/win/VBoxC.rc
|
---|
921 | ifdef VBOX_WITH_GUEST_CONTROL
|
---|
922 | VBoxC_SOURCES += \
|
---|
923 | src-client/GuestSessionImplTasks.cpp \
|
---|
924 | src-client/GuestCtrlPrivate.cpp \
|
---|
925 | src-client/GuestDirectoryImpl.cpp \
|
---|
926 | src-client/GuestFileImpl.cpp \
|
---|
927 | src-client/GuestFsObjInfoImpl.cpp \
|
---|
928 | src-client/GuestProcessImpl.cpp \
|
---|
929 | src-client/GuestSessionImpl.cpp
|
---|
930 | endif
|
---|
931 | ifdef VBOX_WITH_DRAG_AND_DROP
|
---|
932 | VBoxC_SOURCES += \
|
---|
933 | src-client/GuestDnDPrivate.cpp \
|
---|
934 | src-client/GuestDnDSourceImpl.cpp \
|
---|
935 | src-client/GuestDnDTargetImpl.cpp
|
---|
936 | endif
|
---|
937 | ifdef VBOX_WITH_XPCOM
|
---|
938 | VBoxC_SOURCES += \
|
---|
939 | src-client/xpcom/module.cpp
|
---|
940 | endif
|
---|
941 | ifdef VBOX_WITH_HGCM
|
---|
942 | VBoxC_SOURCES += \
|
---|
943 | src-client/HGCMObjects.cpp \
|
---|
944 | src-client/HGCMThread.cpp \
|
---|
945 | src-client/HGCM.cpp
|
---|
946 | endif
|
---|
947 | ifdef VBOX_WITH_USB
|
---|
948 | VBoxC_SOURCES += \
|
---|
949 | src-client/RemoteUSBBackend.cpp
|
---|
950 | endif
|
---|
951 | ifndef VBOX_WITH_VRDEAUTH_IN_VBOXSVC
|
---|
952 | VBoxC_SOURCES += \
|
---|
953 | src-all/AuthLibrary.cpp
|
---|
954 | endif
|
---|
955 |
|
---|
956 | $(call KB_FN_DO_PASS0_ON_TARGET,VBoxC) # Sets VBoxC_0_OUTDIR
|
---|
957 |
|
---|
958 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
959 | VBoxC_ORDERDEPS += $(VBoxC_0_OUTDIR)/VBoxC.def
|
---|
960 | VBoxC_CLEAN += $(VBoxC_0_OUTDIR)/VBoxC.def
|
---|
961 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxC_0_OUTDIR)/VBoxC.def)
|
---|
962 | $(VBoxC_0_OUTDIR)/VBoxC.def:
|
---|
963 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
964 | $(RM) -f $@
|
---|
965 | $(APPEND) $@ _NSGetModule
|
---|
966 | $(APPEND) $@ _VBoxDriversRegister
|
---|
967 | endif
|
---|
968 |
|
---|
969 | src-client/ConsoleImpl.cpp_DEFS = \
|
---|
970 | $(if $(VBOX_WITH_OPENSSL_FIPS), VBOX_OPENSSL_FIPS,)
|
---|
971 |
|
---|
972 |
|
---|
973 | src-client/win/VBoxC.rc_DEPS = $(VBoxC_0_OUTDIR)/VBoxC.rgs $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb
|
---|
974 | VBoxC_CLEAN.win += $(VBoxC_0_OUTDIR)/VBoxC.rgs
|
---|
975 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxC_0_OUTDIR)/VBoxC.rgs)
|
---|
976 | $(VBoxC_0_OUTDIR)/VBoxC.rgs: $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
|
---|
977 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
978 | $(VBOX_XSLTPROC) \
|
---|
979 | --stringparam Application VirtualBox \
|
---|
980 | --stringparam Module VBoxC \
|
---|
981 | -o $@ \
|
---|
982 | $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl \
|
---|
983 | $(VBOX_XIDL_FILE)
|
---|
984 |
|
---|
985 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
986 | #
|
---|
987 | # 32-bit VBox API Client In-Process module.
|
---|
988 | #
|
---|
989 | # This is currently just a 32-bit version of VBoxC. It might be desirable to
|
---|
990 | # split up VBoxC into a simple client and a VM client part later, in which
|
---|
991 | # case this module will be a simple client.
|
---|
992 | #
|
---|
993 | # Note! One important thing is that the typelib for this DLL must be build
|
---|
994 | # with the /env win32 switch and the VBoxC typelib with /env amd64, if
|
---|
995 | # not they will overwrite each others typelib module entry.
|
---|
996 | #
|
---|
997 | DLLS += VBoxClient-x86
|
---|
998 | VBoxClient-x86_TEMPLATE = VBoxMainComp-x86
|
---|
999 | VBoxClient-x86_EXTENDS = VBoxC
|
---|
1000 | if defined(VBOX_WITH_PRECOMPILED_HEADERS) && "$(KBUILD_TARGET)" == "win" ## @todo fix inheritance
|
---|
1001 | VBoxClient-x86_USES = vccprecomp
|
---|
1002 | VBoxClient-x86_PCH_HDR := $(PATH_SUB_CURRENT)/src-client/win/precomp_vcc.h
|
---|
1003 | endif
|
---|
1004 | VBoxClient-x86_DEFS = VBOX_COM_INPROC_API_CLIENT $(VBoxC_DEFS)
|
---|
1005 | VBoxClient-x86_INCS.win = \
|
---|
1006 | $(VBoxClient-x86_0_OUTDIR) \
|
---|
1007 | $(VBoxCOM-x86_0_OUTDIR) \
|
---|
1008 | $(VBoxC_INCS.win)
|
---|
1009 | VBoxClient-x86_SOURCES = \
|
---|
1010 | src-all/EventImpl.cpp \
|
---|
1011 | src-all/Global.cpp \
|
---|
1012 | src-all/AutoCaller.cpp \
|
---|
1013 | src-all/ThreadTask.cpp \
|
---|
1014 | src-all/VirtualBoxBase.cpp \
|
---|
1015 | src-all/VirtualBoxErrorInfoImpl.cpp \
|
---|
1016 | src-client/ClientTokenHolder.cpp \
|
---|
1017 | src-client/SessionImpl.cpp \
|
---|
1018 | src-client/VirtualBoxClientImpl.cpp \
|
---|
1019 | $(VBOX_AUTOGEN_EVENT_CPP) \
|
---|
1020 | $(VBOX_XML_SCHEMADEFS_CPP)
|
---|
1021 | VBoxClient-x86_SOURCES.win = \
|
---|
1022 | src-client/win/dllmain.cpp \
|
---|
1023 | src-client/win/VBoxClient-x86.def \
|
---|
1024 | src-client/win/VBoxClient-x86.rc
|
---|
1025 | ifdef VBOX_WITH_XPCOM
|
---|
1026 | VBoxClient-x86_SOURCES += \
|
---|
1027 | src-client/xpcom/module.cpp
|
---|
1028 | endif
|
---|
1029 | VBoxClient-x86_LIBS = \
|
---|
1030 | $(PATH_STAGE_LIB)/VBoxAPIWrap-x86$(VBOX_SUFF_LIB)
|
---|
1031 | VBoxClient-x86_LIBS.win = $(NO_SUCH_VARIABLE)
|
---|
1032 | VBoxClient-x86_LIBS.win.x86 += \
|
---|
1033 | $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/delayimp.lib \
|
---|
1034 | $(PATH_SDK_$(VBOX_WINPSDK)_LIB.x86)/WbemUuid.Lib
|
---|
1035 | VBoxClient-x86_CLEAN.win += $(VBoxClient-x86_0_OUTDIR)/VBoxClient-x86.rgs
|
---|
1036 | $(call KB_FN_DO_PASS0_ON_TARGET,VBoxClient-x86) # Sets VBoxClient-x86_0_OUTDIR
|
---|
1037 |
|
---|
1038 | src-client/win/VBoxClient-x86.rc_DEPS = \
|
---|
1039 | $(VBoxClient-x86_0_OUTDIR)/VBoxClient-x86.rgs \
|
---|
1040 | $(VBoxCOM-x86_0_OUTDIR)/VirtualBox-x86.tlb
|
---|
1041 |
|
---|
1042 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxClient-x86_0_OUTDIR)/VBoxClient-x86.rgs)
|
---|
1043 | $(VBoxClient-x86_0_OUTDIR)/VBoxClient-x86.rgs: \
|
---|
1044 | $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl \
|
---|
1045 | $(VBOX_XIDL_FILE) | $$(dir $$@)
|
---|
1046 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
1047 | $(VBOX_XSLTPROC) \
|
---|
1048 | --stringparam Application VirtualBox \
|
---|
1049 | --stringparam Module VBoxC \
|
---|
1050 | -o $@ \
|
---|
1051 | $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl \
|
---|
1052 | $(VBOX_XIDL_FILE)
|
---|
1053 | endif
|
---|
1054 |
|
---|
1055 |
|
---|
1056 | #
|
---|
1057 | # VBoxCOM - COM Abstraction Layer library
|
---|
1058 | #
|
---|
1059 | LIBRARIES += VBoxCOM
|
---|
1060 | VBoxCOM_TEMPLATE = VBoxMainLib
|
---|
1061 | VBoxCOM_INTERMEDIATES = $(VBOX_MAIN_PREREQS) \
|
---|
1062 | $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
|
---|
1063 | VBoxCOM_SOURCES = \
|
---|
1064 | glue/com.cpp \
|
---|
1065 | glue/VBoxLogRelCreate.cpp \
|
---|
1066 | glue/GetVBoxUserHomeDirectory.cpp \
|
---|
1067 | glue/initterm.cpp \
|
---|
1068 | glue/string.cpp \
|
---|
1069 | glue/AutoLock.cpp \
|
---|
1070 | glue/EventQueue.cpp \
|
---|
1071 | glue/NativeEventQueue.cpp \
|
---|
1072 | glue/ErrorInfo.cpp \
|
---|
1073 | glue/errorprint.cpp
|
---|
1074 | VBoxCOM_INCS += $(VBOX_MAIN_APIWRAPPER_INCS) \
|
---|
1075 | include
|
---|
1076 | ifeq ($(KBUILD_TARGET),win)
|
---|
1077 | ifdef VBOX_WITH_MIDL_PROXY_STUB
|
---|
1078 | VBoxCOM_DEFS.win = VBOX_WITH_AUTO_COM_REG_UPDATE
|
---|
1079 | endif
|
---|
1080 | VBoxCOM_DEFS.x86 = _WIN32_WINNT=0x0500
|
---|
1081 | VBoxCOM_DEFS.amd64 = _WIN32_WINNT=0x0510
|
---|
1082 | VBoxCOM_SOURCES += \
|
---|
1083 | $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c
|
---|
1084 | VBoxCOM_CLEAN = \
|
---|
1085 | $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c \
|
---|
1086 | $(VBoxCOM_0_OUTDIR)/VirtualBox_p.c \
|
---|
1087 | $(VBoxCOM_0_OUTDIR)/dlldata.c \
|
---|
1088 | $(VBoxCOM_0_OUTDIR)/VirtualBox.h \
|
---|
1089 | $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb
|
---|
1090 | VBoxCOM_CLEAN += \
|
---|
1091 | $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_i.c \
|
---|
1092 | $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_p.c \
|
---|
1093 | $(VBoxCOM_0_OUTDIR)/legacy/dlldata.c \
|
---|
1094 | $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.h \
|
---|
1095 | $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.tlb
|
---|
1096 | VBoxCOM_BLDDIRS = $(VBoxCOM_0_OUTDIR)/legacy/
|
---|
1097 | else # !win
|
---|
1098 | VBoxCOM_SOURCES += \
|
---|
1099 | $(VBoxCOM_0_OUTDIR)/VirtualBox_XPCOM_i.c \
|
---|
1100 | glue/xpcom/helpers.cpp
|
---|
1101 | endif # !win
|
---|
1102 |
|
---|
1103 | glue/VBoxLogRelCreate.cpp_DEFS = KBUILD_TYPE=\"$(KBUILD_TYPE)\"
|
---|
1104 |
|
---|
1105 | # 32-bit version of VBoxCOM.
|
---|
1106 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
1107 | LIBRARIES += VBoxCOM-x86
|
---|
1108 | VBoxCOM-x86_TEMPLATE = VBoxMainLib-x86
|
---|
1109 | VBoxCOM-x86_EXTENDS = VBoxCOM
|
---|
1110 | ifeq ($(KBUILD_TARGET),win)
|
---|
1111 | VBoxCOM-x86_CLEAN = \
|
---|
1112 | $(VBoxCOM-x86_0_OUTDIR)/VirtualBox_i.c \
|
---|
1113 | $(VBoxCOM-x86_0_OUTDIR)/VirtualBox_p.c \
|
---|
1114 | $(VBoxCOM-x86_0_OUTDIR)/dlldata.c \
|
---|
1115 | $(VBoxCOM-x86_0_OUTDIR)/VirtualBox.h \
|
---|
1116 | $(VBoxCOM-x86_0_OUTDIR)/VirtualBox.tlb
|
---|
1117 | endif
|
---|
1118 | endif
|
---|
1119 |
|
---|
1120 | # -MD version for the GUI in -MDd builds.
|
---|
1121 | ifeq ($(KBUILD_TARGET).$(VBOX_VCC_CRT_TYPE),win.d)
|
---|
1122 | LIBRARIES += VBoxCOM-GUI
|
---|
1123 | USES += qt5
|
---|
1124 | VBoxCOM-GUI_TEMPLATE = VBOXQTGUI$(if-expr defined(VBOX_WITH_HARDENING),,EXE)
|
---|
1125 | VBoxCOM-GUI_EXTENDS = VBoxCOM
|
---|
1126 | endif
|
---|
1127 |
|
---|
1128 |
|
---|
1129 |
|
---|
1130 | #
|
---|
1131 | # The VBoxExtPackHelperApp.
|
---|
1132 | #
|
---|
1133 | ifdef VBOX_WITH_EXTPACK
|
---|
1134 | PROGRAMS += VBoxExtPackHelperApp
|
---|
1135 | VBoxExtPackHelperApp_TEMPLATE = VBoxR3SetUidToRoot
|
---|
1136 | VBoxExtPackHelperApp_LDFLAGS.darwin = -framework Security
|
---|
1137 | VBoxExtPackHelperApp_LDFLAGS.win = /SUBSYSTEM:windows
|
---|
1138 | VBoxExtPackHelperApp_SOURCES = \
|
---|
1139 | src-helper-apps/VBoxExtPackHelperApp.cpp \
|
---|
1140 | src-all/ExtPackUtil.cpp
|
---|
1141 | VBoxExtPackHelperApp_SOURCES.win = \
|
---|
1142 | src-helper-apps/VBoxExtPackHelperApp.rc
|
---|
1143 | VBoxExtPackHelperApp_LIBS = \
|
---|
1144 | $(LIB_RUNTIME)
|
---|
1145 | endif # VBOX_WITH_EXTPACK
|
---|
1146 |
|
---|
1147 | #
|
---|
1148 | # VolInfo
|
---|
1149 | #
|
---|
1150 | ifdef VBOX_WITH_DEVMAPPER
|
---|
1151 | PROGRAMS.linux += VBoxVolInfo
|
---|
1152 | VBoxVolInfo_TEMPLATE = VBoxR3SetUidToRoot
|
---|
1153 | VBoxVolInfo_SOURCES = src-helper-apps/VBoxVolInfo.cpp
|
---|
1154 | VBoxVolInfo_LIBS = devmapper
|
---|
1155 | endif
|
---|
1156 |
|
---|
1157 | endif # !VBOX_ONLY_SDK (the ifndef is far above)
|
---|
1158 |
|
---|
1159 |
|
---|
1160 | #
|
---|
1161 | # Installs com related thing(s) to bin.
|
---|
1162 | #
|
---|
1163 | INSTALLS.win += VBoxMain-com-inst
|
---|
1164 | VBoxMain-com-inst_INST = $(INST_BIN)
|
---|
1165 | VBoxMain-com-inst_MODE = a+r,u+w
|
---|
1166 | VBoxMain-com-inst_SOURCES = src-all/win/comregister.cmd
|
---|
1167 |
|
---|
1168 |
|
---|
1169 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "linux"
|
---|
1170 | #
|
---|
1171 | # Installs linux/hardening related things to components.
|
---|
1172 | #
|
---|
1173 | INSTALLS.linux += VBoxMain-hardening-inst
|
---|
1174 | VBoxMain-hardening-inst_INST = $(INST_BIN)components/
|
---|
1175 | VBoxMain-hardening-inst_SYMLINKS = \
|
---|
1176 | VBoxDDU.so=>../VBoxDDU.so \
|
---|
1177 | VBoxREM.so=>../VBoxREM.so \
|
---|
1178 | VBoxRT.so=>../VBoxRT.so \
|
---|
1179 | VBoxVMM.so=>../VBoxVMM.so \
|
---|
1180 | VBoxXPCOM.so=>../VBoxXPCOM.so
|
---|
1181 | endif
|
---|
1182 |
|
---|
1183 |
|
---|
1184 | if defined(VBOX_WITH_MIDL_PROXY_STUB) && "$(KBUILD_TARGET)" == "win"
|
---|
1185 | #
|
---|
1186 | # Experimental COM proxy + stub DLL w/ automatic registration updating.
|
---|
1187 | #
|
---|
1188 | # The Legacy stub is for older 64-bit windows versions (pre Windows 7) as we
|
---|
1189 | # were having various problems on windows server 2003 and 2008 with the code
|
---|
1190 | # MIDL generated. Also, in windows 7 there are some potentially interesting
|
---|
1191 | # changes in the generated code where it uses new helpers from OLE32.
|
---|
1192 | #
|
---|
1193 | DLLS += VBoxProxyStub
|
---|
1194 | VBoxProxyStub_TEMPLATE = VBOXMAINCOMP
|
---|
1195 | VBoxProxyStub_DEFS = REGISTER_PROXY_DLL PROXY_CLSID_IS="$(VBOX_MIDL_PROXY_CLSID_IS)" \
|
---|
1196 | $(if $(VBOX_WITH_SDS),VBOX_WITH_SDS,)
|
---|
1197 | VBoxProxyStub_DEFS.win.x86 = WIN32
|
---|
1198 | VBoxProxyStub_SDKS = VBOX_NTDLL
|
---|
1199 | VBoxProxyStub_DEFPATH = $(VBoxCOM_0_OUTDIR)/# Hack to workaround drive letter in $(VBoxCOM_0_OUTDIR)/ for CFLAGS hack below.
|
---|
1200 | VBoxProxyStub_INCS = $(VBoxCOM_0_OUTDIR)/
|
---|
1201 | VBoxProxyStub_SOURCES := \
|
---|
1202 | VirtualBox_p.c \
|
---|
1203 | VirtualBox_i.c \
|
---|
1204 | $(PATH_SUB_CURRENT)/src-all/win/VBoxProxyStub.def \
|
---|
1205 | $(PATH_SUB_CURRENT)/src-all/win/VBoxProxyStub.rc \
|
---|
1206 | $(PATH_SUB_CURRENT)/src-all/win/VBoxProxyStub.c
|
---|
1207 | src-all/win/VBoxProxyStub.rc_DEPS = $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb
|
---|
1208 | VBoxProxyStub_VirtualBox_p.c_CFLAGS.x86 = /Gz # Workaround for incorrect ObjectStublessClient* prototypes in SDK v7.1.
|
---|
1209 |
|
---|
1210 | DLLS += VBoxProxyStubLegacy
|
---|
1211 | VBoxProxyStubLegacy_TEMPLATE = VBOXMAINCOMP
|
---|
1212 | VBoxProxyStubLegacy_EXTENDS = VBoxProxyStub
|
---|
1213 | VBoxProxyStubLegacy_DEFS = $(VBoxProxyStub_DEFS) VBOX_IN_PROXY_STUB_LEGACY
|
---|
1214 | VBoxProxyStubLegacy_INCS = $(VBoxCOM_0_OUTDIR)/legacy/
|
---|
1215 | VBoxProxyStubLegacy_SOURCES = \
|
---|
1216 | $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_p.c \
|
---|
1217 | $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_i.c \
|
---|
1218 | src-all/win/VBoxProxyStub.def \
|
---|
1219 | src-all/win/VBoxProxyStubLegacy.rc \
|
---|
1220 | src-all/win/VBoxProxyStub.c
|
---|
1221 | src-all/win/VBoxProxyStubLegacy.rc_DEPS = $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.tlb
|
---|
1222 |
|
---|
1223 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
1224 | DLLS += VBoxProxyStub-x86
|
---|
1225 | VBoxProxyStub-x86_TEMPLATE = VBoxMainComp-x86
|
---|
1226 | VBoxProxyStub-x86_SDKS = VBOX_NTDLL
|
---|
1227 | VBoxProxyStub-x86_DEFS = $(VBoxProxyStub_DEFS) VBOX_PROXY_STUB_32_ON_64 WIN32
|
---|
1228 | VBoxProxyStub-x86_INCS = $(VBoxCOM-x86_0_OUTDIR)/
|
---|
1229 | VBoxProxyStub-x86_SOURCES = \
|
---|
1230 | $(VBoxCOM-x86_0_OUTDIR)/VirtualBox_p.c \
|
---|
1231 | $(VBoxCOM-x86_0_OUTDIR)/VirtualBox_i.c \
|
---|
1232 | src-all/win/VBoxProxyStub.c \
|
---|
1233 | src-all/win/VBoxProxyStub-x86.rc \
|
---|
1234 | src-all/win/VBoxProxyStub.def
|
---|
1235 | src-all/win/VBoxProxyStub-x86.rc_DEPS = $(VBoxCOM-x86_0_OUTDIR)/VirtualBox-x86.tlb
|
---|
1236 | endif
|
---|
1237 | endif
|
---|
1238 |
|
---|
1239 |
|
---|
1240 |
|
---|
1241 | # generate rules
|
---|
1242 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
1243 |
|
---|
1244 |
|
---|
1245 |
|
---|
1246 | #
|
---|
1247 | # Additions rules.
|
---|
1248 | #
|
---|
1249 |
|
---|
1250 | ## @todo this hack ain't cutting it any longer. (the file name is abspath'ed since ages now.)
|
---|
1251 | glue/xpcom/helpers.cpp: $(VBOX_IDL_TYPELIB.XPCOM)
|
---|
1252 |
|
---|
1253 | $(call KB_FN_AUTO_CMD_DEPS_EX,$(VBOX_IDL_FILE.XPCOM),$(PATH_OUT)/VBOX_IDL_FILE.XPCOM.vbox-dep)
|
---|
1254 | $(VBOX_IDL_FILE.XPCOM): $(VBOX_PATH_MAIN_SRC)/idl/xpidl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
|
---|
1255 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS_EX,$(PATH_OUT)/VBOX_IDL_FILE.XPCOM.vbox-dep)
|
---|
1256 | $(QUIET)$(VBOX_XSLTPROC) -o $@ $(VBOX_PATH_MAIN_SRC)/idl/xpidl.xsl $(VBOX_XIDL_FILE)
|
---|
1257 |
|
---|
1258 | $(call KB_FN_AUTO_CMD_DEPS_EX,$(VBOX_IDL_TYPELIB.XPCOM),$(PATH_OUT)/VBOX_IDL_TYPELIB.XPCOM.vbox-dep)
|
---|
1259 | $(VBOX_IDL_TYPELIB.XPCOM): $(VBOX_IDL_FILE.XPCOM) | $$(dir $$@) $(VBOX_XPIDL)
|
---|
1260 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS_EX,$(PATH_OUT)/VBOX_IDL_TYPELIB.XPCOM.vbox-dep)
|
---|
1261 | $(QUIET)$(VBOX_XPIDL_ENV)$(VBOX_XPIDL) -m typelib -I $(VBOX_PATH_XPCOM_IDL) -e $@ $(VBOX_IDL_FILE.XPCOM)
|
---|
1262 | $(CHMOD) 0644 $@
|
---|
1263 | ## @todo ^^^^^^^^^^^^ fix horrible hack
|
---|
1264 |
|
---|
1265 | $(call KB_FN_AUTO_CMD_DEPS_EX,$(VBOX_IDL_HEADER.XPCOM),$(PATH_OUT)/VBOX_IDL_HEADER.XPCOM.vbox-dep)
|
---|
1266 | $(VBOX_IDL_HEADER.XPCOM): $(VBOX_IDL_FILE.XPCOM) | $$(dir $$@) $(VBOX_XPIDL)
|
---|
1267 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS_EX,$(PATH_OUT)/VBOX_IDL_HEADER.XPCOM.vbox-dep)
|
---|
1268 | $(QUIET)$(VBOX_XPIDL_ENV)$(VBOX_XPIDL) -m header -I $(VBOX_PATH_XPCOM_IDL) -e $@ $(VBOX_IDL_FILE.XPCOM)
|
---|
1269 |
|
---|
1270 | $(call KB_FN_AUTO_CMD_DEPS_EX,$(VBOX_IDL_FILE.MSCOM),$(PATH_OUT)/VBOX_IDL_FILE.MSCOM.vbox-dep)
|
---|
1271 | $(VBOX_IDL_FILE.MSCOM): $(VBOX_PATH_MAIN_SRC)/idl/midl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
|
---|
1272 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS_EX,$(PATH_OUT)/VBOX_IDL_FILE.MSCOM.vbox-dep)
|
---|
1273 | $(call MSG_TOOL,xsltproc,VBoxSVC,$<,$@)
|
---|
1274 | $(QUIET)$(VBOX_XSLTPROC) -o $@ \
|
---|
1275 | $(if $(VBOX_WITH_MIDL_PROXY_STUB),-stringparam g_fGenProxy yes,) \
|
---|
1276 | $(if $(VBOX_WITH_SDS),-stringparam g_fVBoxWithSDS yes,) \
|
---|
1277 | $(VBOX_PATH_MAIN_SRC)/idl/midl.xsl $(VBOX_XIDL_FILE)
|
---|
1278 |
|
---|
1279 |
|
---|
1280 | # Aliases for testing purposes.
|
---|
1281 | ifdef VBOX_WITH_XPCOM
|
---|
1282 | testidl: $(VBOX_IDL_FILE.XPCOM) $(VBOX_IDL_TYPELIB.XPCOM) $(VBoxCOM_0_OUTDIR)/VirtualBox_XPCOM_i.c
|
---|
1283 | testidlhdr: $(VBOX_IDL_HEADER.XPCOM)
|
---|
1284 | else
|
---|
1285 | testidl: $(VBOX_IDL_FILE.MSCOM) $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c \
|
---|
1286 | $(if $(VBOX_WITH_32_ON_64_MAIN_API),$(VBoxCOM-x86_0_OUTDIR)/VirtualBox_i.c,)
|
---|
1287 | endif
|
---|
1288 |
|
---|
1289 |
|
---|
1290 | $(VBoxCOM_0_OUTDIR)/VirtualBox_XPCOM_i.c: $(VBOX_PATH_MAIN_SRC)/idl/xpidl_iid.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
|
---|
1291 | $(call MSG_TOOL,xsltproc,VBoxSVC,$<,$@)
|
---|
1292 | $(QUIET)$(VBOX_XSLTPROC) -o $@ $< $(VBOX_XIDL_FILE)
|
---|
1293 |
|
---|
1294 | ##
|
---|
1295 | # Edits $1 and adding #pragma directives for disabling warnings windows.h causes.
|
---|
1296 | # @param 1 The name of the file to edit.
|
---|
1297 | define def_VBoxMainDisableMscWarnings
|
---|
1298 | $(QUIET)$(MV) -f "$1" "$1.tmp"
|
---|
1299 | $(QUIET)$(APPEND) -nt "$1" \
|
---|
1300 | '#pragma warning(push) /* -Wall and windows.h */' \
|
---|
1301 | '#pragma warning(disable:4668 4255)' \
|
---|
1302 | '#if _MSC_VER >= 1800 /* RT_MSC_VER_VC120 */' \
|
---|
1303 | '# pragma warning(disable:4005)' \
|
---|
1304 | '#endif' \
|
---|
1305 | ''
|
---|
1306 | $(QUIET)$(CAT_EXT) "$1.tmp" >> "$1"
|
---|
1307 | $(QUIET)$(APPEND) -n "$1" \
|
---|
1308 | '' \
|
---|
1309 | '#pragma warning(pop)' \
|
---|
1310 | ''
|
---|
1311 | $(QUIET)$(RM) -f "$1.tmp"
|
---|
1312 |
|
---|
1313 | endef
|
---|
1314 |
|
---|
1315 | # Note! Because we've got a different proxy stub DLL for pre windows 7 64-bit hosts, we target windows 7 for AMD64.
|
---|
1316 | # The output is different and hopefully more efficient, at least memory wise (using more helpers in OLE32).
|
---|
1317 | # Note! We're checking for win.amd64 below when setting the target because of the SDK build which happens on linux.amd64
|
---|
1318 | # but with a 32-bit Wine.
|
---|
1319 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxCOM_0_OUTDIR)/VirtualBox_i.c)
|
---|
1320 | $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c \
|
---|
1321 | $(if $(VBOX_WITH_MIDL_PROXY_STUB), + $(VBoxCOM_0_OUTDIR)/VirtualBox_p.c + $(VBoxCOM_0_OUTDIR)/dlldata.c,) \
|
---|
1322 | + $(VBoxCOM_0_OUTDIR)/VirtualBox.h \
|
---|
1323 | + $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb: $(VBOX_IDL_FILE.MSCOM) | $$(dir $$@)
|
---|
1324 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
1325 | $(VBOX_WIN_MIDL) /nologo /W4 \
|
---|
1326 | /env $(if-expr "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.amd64" ,amd64,win32) \
|
---|
1327 | /robust /protocol all /target $(if-expr defined(VBOX_WITH_MIDL_PROXY_STUB),NT61,NT51) \
|
---|
1328 | /out $(call VBOX_FN_MAKE_WIN_PATH,$(VBoxCOM_0_OUTDIR)) \
|
---|
1329 | /cpp_cmd $(subst $(EXEC_X86_WIN32),,$(call VBOX_FN_MAKE_WIN_PATH,$(TOOL_$(VBOX_VCC_TOOL)_CC))) \
|
---|
1330 | /I $(call VBOX_FN_MAKE_WIN_PATH,$(PATH_SDK_$(VBOX_WINPSDK)_INC)) \
|
---|
1331 | /I idl \
|
---|
1332 | $(call VBOX_FN_MAKE_WIN_PATH,$(VBOX_IDL_FILE.MSCOM))
|
---|
1333 | $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM_0_OUTDIR)/VirtualBox.h)
|
---|
1334 | $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM_0_OUTDIR)/VirtualBox_i.c)
|
---|
1335 | $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM_0_OUTDIR)/VirtualBox_p.c)
|
---|
1336 |
|
---|
1337 | if defined(VBOX_WITH_MIDL_PROXY_STUB)
|
---|
1338 | # -Windows Server 2003 AMD64 SP1 does not like the result when using '/protocol all' and '/target NT51'.
|
---|
1339 | # -Vista AMD64 SP1 and Windows Server 2008 AMD64 seems to have some objections as well, but it seemed
|
---|
1340 | # that using an older MIDL compiler (v7.00.0499 instead of v7.00.0555) helps. But the W2K3 fix also works.
|
---|
1341 | # To avoid 32-bit vs. 64-bit differences, we do the same for 32-bit windows versions.
|
---|
1342 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_i.c)
|
---|
1343 | $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_i.c \
|
---|
1344 | + $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_p.c\
|
---|
1345 | + $(VBoxCOM_0_OUTDIR)/legacy/dlldata.c \
|
---|
1346 | + $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.h \
|
---|
1347 | + $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.tlb: $(VBOX_IDL_FILE.MSCOM) | $$(dir $$@)
|
---|
1348 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
1349 | $(VBOX_WIN_MIDL) /nologo /W4 \
|
---|
1350 | $(if-expr "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.amd64" \
|
---|
1351 | ,/env amd64 /x64 /target NT50 /robust \
|
---|
1352 | ,/env win32 /target NT51 /robust /protocol all ) \
|
---|
1353 | /out $(call VBOX_FN_MAKE_WIN_PATH,$(dir $@)) \
|
---|
1354 | /cpp_cmd $(subst $(EXEC_X86_WIN32),,$(call VBOX_FN_MAKE_WIN_PATH,$(TOOL_$(VBOX_VCC_TOOL)_CC))) \
|
---|
1355 | /I $(call VBOX_FN_MAKE_WIN_PATH,$(PATH_SDK_$(VBOX_WINPSDK)_INC)) \
|
---|
1356 | /I idl \
|
---|
1357 | $(call VBOX_FN_MAKE_WIN_PATH,$(VBOX_IDL_FILE.MSCOM))
|
---|
1358 | $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.h)
|
---|
1359 | $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_i.c)
|
---|
1360 | $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_p.c)
|
---|
1361 | endif
|
---|
1362 |
|
---|
1363 | # The XP targetted 32-bit proxy stub works with all versions of windows (the
|
---|
1364 | # issues leading to the VBoxProxyStubLegacy.dll are only on 64-bit windows).
|
---|
1365 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxCOM-x86_0_OUTDIR)/VirtualBox_i.c)
|
---|
1366 | $(VBoxCOM-x86_0_OUTDIR)/VirtualBox_i.c \
|
---|
1367 | $(if $(VBOX_WITH_MIDL_PROXY_STUB), + $(VBoxCOM-x86_0_OUTDIR)/VirtualBox_p.c + $(VBoxCOM-x86_0_OUTDIR)/dlldata.c,) \
|
---|
1368 | + $(VBoxCOM-x86_0_OUTDIR)/VirtualBox.h \
|
---|
1369 | + $(VBoxCOM-x86_0_OUTDIR)/VirtualBox-x86.tlb: $(VBOX_IDL_FILE.MSCOM) | $$(dir $$@)
|
---|
1370 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
1371 | $(VBOX_WIN_MIDL) /nologo /W4 \
|
---|
1372 | /env win32 /target NT51 /robust /protocol all \
|
---|
1373 | /out $(call VBOX_FN_MAKE_WIN_PATH,$(VBoxCOM-x86_0_OUTDIR)) \
|
---|
1374 | /tlb $(call VBOX_FN_MAKE_WIN_PATH,$(VBoxCOM-x86_0_OUTDIR)/VirtualBox-x86.tlb) \
|
---|
1375 | /cpp_cmd $(subst $(EXEC_X86_WIN32),,$(call VBOX_FN_MAKE_WIN_PATH,$(TOOL_$(VBOX_VCC_TOOL_STEM)X86_CC))) \
|
---|
1376 | /I $(call VBOX_FN_MAKE_WIN_PATH,$(PATH_SDK_$(VBOX_WINPSDK)_INC)) \
|
---|
1377 | /I idl \
|
---|
1378 | $(call VBOX_FN_MAKE_WIN_PATH,$(VBOX_IDL_FILE.MSCOM))
|
---|
1379 | $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM-x86_0_OUTDIR)/VirtualBox.h)
|
---|
1380 | $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM-x86_0_OUTDIR)/VirtualBox_i.c)
|
---|
1381 | $(call def_VBoxMainDisableMscWarnings,$(VBoxCOM-x86_0_OUTDIR)/VirtualBox_p.c)
|
---|
1382 |
|
---|
1383 | #
|
---|
1384 | # Translation stuff
|
---|
1385 | #
|
---|
1386 | VBoxSVC_VBOX_HEADERS = \
|
---|
1387 | include/collection.h \
|
---|
1388 | include/MachineImpl.h
|
---|
1389 | VBoxSVC_VBOX_TRANSLATIONS = \
|
---|
1390 | nls/VBoxSVC_de.ts
|
---|
1391 |
|
---|
1392 | VBoxC_VBOX_HEADERS = \
|
---|
1393 | include/ConsoleImpl.h
|
---|
1394 |
|
---|
1395 | VBoxC_VBOX_INTERMEDIATES = $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
|
---|
1396 | VBoxC_VBOX_HEADERS += $(VBOX_MAIN_APIWRAPPER_INCS)
|
---|
1397 |
|
---|
1398 | VBoxC_VBOX_TRANSLATIONS = \
|
---|
1399 | nls/VBoxC_de.ts
|
---|
1400 |
|
---|
1401 | ifdef VBOX_WITH_JMSCOM
|
---|
1402 |
|
---|
1403 | #
|
---|
1404 | # Java glue JAR files
|
---|
1405 | #
|
---|
1406 | VBOX_JMSCOM_JAR = $(VBoxJMscom-inst-jar_0_OUTDIR)/vboxjmscom.jar
|
---|
1407 | VBOX_JMSCOM_TARGET := $(PATH_TARGET)/vboxjmscom-gen
|
---|
1408 | VBOX_JMSCOM_GEN = $(VBOX_JMSCOM_TARGET)/jmscomgen
|
---|
1409 | VBOX_JMSCOM_JDEST := $(VBOX_JMSCOM_TARGET)/jdest
|
---|
1410 | VBOX_GLUE_XSLT_DIR := $(PATH_ROOT)/src/VBox/Main/glue
|
---|
1411 | VBOX_JACOB_DIR := $(PATH_ROOT)/src/libs/jacob-1.17
|
---|
1412 |
|
---|
1413 | INSTALLS += VBoxJMscom-inst-jar
|
---|
1414 | VBoxJMscom-inst-jar_INST = $(INST_SDK)bindings/mscom/java/
|
---|
1415 | VBoxJMscom-inst-jar_MODE = a+r,u+w
|
---|
1416 | VBoxJMscom-inst-jar_SOURCES = \
|
---|
1417 | $(VBoxJMscom-inst-jar_0_OUTDIR)/vboxjmscom.jar
|
---|
1418 | VBoxJMscom-inst-jar_CLEAN = \
|
---|
1419 | $(VBoxJMscom-inst-jar_0_OUTDIR)/vboxjmscom.jar \
|
---|
1420 | $(VBOX_JMSCOM_GEN)/jmscomglue.list \
|
---|
1421 | $(wildcard \
|
---|
1422 | $(VBOX_JMSCOM_GEN)/java/*.java \
|
---|
1423 | $(VBOX_JMSCOM_JDEST)/*.class \
|
---|
1424 | $(VBOX_JMSCOM_JDEST)/*/*.class \
|
---|
1425 | $(VBOX_JMSCOM_JDEST)/*/*/*.class \
|
---|
1426 | $(VBOX_JMSCOM_JDEST)/*/*/*/*.class \
|
---|
1427 | )
|
---|
1428 | VBoxJMscom-inst-jar_BLDDIRS += $(VBOX_JMSCOM_GEN)/java
|
---|
1429 | $(call KB_FN_DO_PASS0_ON_TARGET,VBoxJMscom-inst-jar) # Sets VBoxJMscom-inst-jar_0_OUTDIR
|
---|
1430 |
|
---|
1431 | $(call KB_FN_AUTO_CMD_DEPS,$(VBOX_JMSCOM_GEN)/jmscomglue.list)
|
---|
1432 | $(VBOX_JMSCOM_GEN)/jmscomglue.list: \
|
---|
1433 | $(VBOX_XIDL_FILE) \
|
---|
1434 | $(VBOX_GLUE_XSLT_DIR)/glue-java.xsl \
|
---|
1435 | $(VBOX_FILESPLIT) \
|
---|
1436 | | $(VBOX_JMSCOM_GEN)/java/
|
---|
1437 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
1438 | $(call MSG_L1,Generating Java MSCOM glue files from XIDL)
|
---|
1439 | $(QUIET)$(RM) -f $(wildcard $(VBOX_JMSCOM_GEN)/java/*.java)
|
---|
1440 | $(QUIET)$(VBOX_XSLTPROC) \
|
---|
1441 | --stringparam filelistonly "" \
|
---|
1442 | --stringparam G_vboxApiSuffix $(VBOX_API_SUFFIX) \
|
---|
1443 | --stringparam G_vboxGlueStyle mscom \
|
---|
1444 | --stringparam G_vboxDirPrefix "" \
|
---|
1445 | -o $(VBOX_JMSCOM_GEN)/java/merged.file $(VBOX_GLUE_XSLT_DIR)/glue-java.xsl $(VBOX_XIDL_FILE)
|
---|
1446 | $(QUIET)$(VBOX_FILESPLIT) $(VBOX_JMSCOM_GEN)/java/merged.file $(VBOX_JMSCOM_GEN)/java
|
---|
1447 | $(QUIET)echo $(VBOX_JMSCOM_GEN)/java/*.java > $@
|
---|
1448 |
|
---|
1449 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxJMscom-inst-jar_0_OUTDIR)/vboxjmscom.jar)
|
---|
1450 | $(VBoxJMscom-inst-jar_0_OUTDIR)/vboxjmscom.jar: $(VBOX_JMSCOM_GEN)/jmscomglue.list | $$(dir $$@)
|
---|
1451 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
1452 | $(call MSG_TOOL,javac,$(notdir $@),jmscomglue.list,)
|
---|
1453 | $(QUIET)$(RM) -Rf $(VBOX_JMSCOM_JDEST)
|
---|
1454 | $(QUIET)$(MKDIR) -p $(VBOX_JMSCOM_JDEST)
|
---|
1455 | $(call MSG_TOOL,javac,$(notdir $@),...,)
|
---|
1456 | $(QUIET)$(VBOX_JAVAC) $(VBOX_JAVAC_OPTS) @$(VBOX_JMSCOM_GEN)/jmscomglue.list \
|
---|
1457 | -d $(VBOX_JMSCOM_JDEST) -classpath "$(VBOX_JMSCOM_JDEST)$(VBOX_SEP)$(VBOX_JACOB_DIR)/jacob.jar"
|
---|
1458 | $(call MSG_LINK,$(notdir $@),$@)
|
---|
1459 | $(QUIET)$(VBOX_JAR) cf $@ -C $(VBOX_JMSCOM_JDEST) .
|
---|
1460 |
|
---|
1461 | ## @todo compile TestVBox.java (see below) to have sanity checking
|
---|
1462 | endif # VBOX_WITH_JMSCOM
|
---|
1463 |
|
---|
1464 | #
|
---|
1465 | # Install Java glue sample code.
|
---|
1466 | #
|
---|
1467 | INSTALLS += javagluesample
|
---|
1468 | javagluesample_INST = $(INST_SDK)bindings/glue/java/
|
---|
1469 | javagluesample_MODE = a+r,u+w
|
---|
1470 | javagluesample_SOURCES = \
|
---|
1471 | $(VBOX_PATH_MAIN_SRC)/glue/tests/TestVBox.java=>TestVBox.java \
|
---|
1472 | $(VBOX_PATH_MAIN_SRC)/glue/tests/Makefile=>Makefile
|
---|
1473 |
|
---|
1474 | #
|
---|
1475 | # Rules associated with VBoxAPIWrap (in typical invocation order).
|
---|
1476 | # We keep them down here to simplify the use of VBoxAPIWrap_0_OUTDIR.
|
---|
1477 | #
|
---|
1478 |
|
---|
1479 | # Generate a make include file which lists the wrapper header and source files.
|
---|
1480 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxAPIWrap_VBOX_KMK_FILE).ts)
|
---|
1481 | $(VBoxAPIWrap_VBOX_KMK_FILE).ts \
|
---|
1482 | +| $(VBoxAPIWrap_VBOX_KMK_FILE): \
|
---|
1483 | $(VBOX_XIDL_FILE) \
|
---|
1484 | $(VBOX_PATH_MAIN_SRC)/idl/apiwrap-server-filelist.xsl \
|
---|
1485 | $(VBOX_PATH_MAIN_SRC)/Makefile.kmk
|
---|
1486 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
1487 | $(QUIET)$(RM) -f $@
|
---|
1488 | $(QUIET)$(MKDIR) -p $(@D)
|
---|
1489 | $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
|
---|
1490 | $(if $(VBOX_WITH_SDS),-stringparam g_fVBoxWithSDS yes,) \
|
---|
1491 | -o $@ $(VBOX_PATH_MAIN_SRC)/idl/apiwrap-server-filelist.xsl $(VBOX_XIDL_FILE)
|
---|
1492 | $(QUIET)$(CP) --changed -fv $@ $(VBoxAPIWrap_VBOX_KMK_FILE)
|
---|
1493 |
|
---|
1494 | # Generate the header files for the wrappers.
|
---|
1495 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxAPIWrap_0_OUTDIR)/apiwrappers-headers)
|
---|
1496 | $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-headers \
|
---|
1497 | +| $(VBOX_MAIN_APIWRAPPER_GEN_HDRS): \
|
---|
1498 | $(VBOX_XIDL_FILE) \
|
---|
1499 | $(VBOX_PATH_MAIN_SRC)/idl/typemap-shared.inc.xsl \
|
---|
1500 | $(VBoxAPIWrap_VBOX_XSLT) \
|
---|
1501 | $(VBOX_FILESPLIT) \
|
---|
1502 | | $$(dir $$@)
|
---|
1503 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
1504 | $(call MSG_L1,Generating C++ Server API wrapper header files from XIDL)
|
---|
1505 | $(QUIET)$(RM) -f -- $(filter-out $(VBOX_MAIN_APIWRAPPER_GEN_HDRS), $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.h))
|
---|
1506 | $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
|
---|
1507 | --stringparam generating "headers" \
|
---|
1508 | -o $@ $(VBoxAPIWrap_VBOX_XSLT) $(VBOX_XIDL_FILE)
|
---|
1509 | $(QUIET)$(VBOX_FILESPLIT) $@ $(VBoxAPIWrap_0_OUTDIR)
|
---|
1510 |
|
---|
1511 | # Generate the DTrace probes for the wrappers and combine them with handcoded probes.
|
---|
1512 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d.ts)
|
---|
1513 | $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d.ts \
|
---|
1514 | +| $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d: \
|
---|
1515 | $(VBOX_XIDL_FILE) \
|
---|
1516 | $(VBOX_PATH_MAIN_SRC)/idl/typemap-shared.inc.xsl \
|
---|
1517 | $(VBoxAPIWrap_VBOX_XSLT) \
|
---|
1518 | $(VBOX_FILESPLIT) \
|
---|
1519 | | $$(dir $$@)
|
---|
1520 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
1521 | $(call MSG_L1,Generating DTrace Provider for the VBox API (from XIDL))
|
---|
1522 | $(QUIET)$(RM) -f -- "$@" "[email protected]"
|
---|
1523 | $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
|
---|
1524 | --stringparam generating "dtrace-probes" \
|
---|
1525 | -o "$@" $(VBoxAPIWrap_VBOX_XSLT) $(VBOX_XIDL_FILE)
|
---|
1526 | $(QUIET)$(SED) -e '' -o "[email protected]" \
|
---|
1527 | "$(VBOX_PATH_MAIN_SRC)/src-all/VBoxAPI-start.d" \
|
---|
1528 | "$@" \
|
---|
1529 | "$(VBOX_PATH_MAIN_SRC)/src-all/VBoxAPI-end.d"
|
---|
1530 | $(QUIET)$(MV) -- "[email protected]" "$@"
|
---|
1531 | $(QUIET)$(CP) --changed -fv -- "$@" "$(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d"
|
---|
1532 |
|
---|
1533 | # Generate the wrapper source files - split in two due to long processing time
|
---|
1534 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-even)
|
---|
1535 | $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-even \
|
---|
1536 | +| $(VBOX_MAIN_APIWRAPPER_GEN_SRCS_EVEN): \
|
---|
1537 | $(VBOX_XIDL_FILE) \
|
---|
1538 | $(VBOX_PATH_MAIN_SRC)/idl/typemap-shared.inc.xsl \
|
---|
1539 | $(VBoxAPIWrap_VBOX_XSLT) \
|
---|
1540 | $(VBOX_FILESPLIT) \
|
---|
1541 | | $$(dir $$@)
|
---|
1542 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
1543 | $(call MSG_L1,Generating C++ Server API wrapper files from XIDL - part 1)
|
---|
1544 | $(QUIET)$(RM) -f -- $(filter-out $(VBOX_MAIN_APIWRAPPER_GEN_SRCS), $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.cpp))
|
---|
1545 | $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
|
---|
1546 | --stringparam generating "sources" \
|
---|
1547 | --param reminder 0 \
|
---|
1548 | -o $@ $(VBoxAPIWrap_VBOX_XSLT) $(VBOX_XIDL_FILE)
|
---|
1549 | $(QUIET)$(VBOX_FILESPLIT) $@ $(VBoxAPIWrap_0_OUTDIR)
|
---|
1550 |
|
---|
1551 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-odd)
|
---|
1552 | $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-odd \
|
---|
1553 | +| $(VBOX_MAIN_APIWRAPPER_GEN_SRCS_ODD): \
|
---|
1554 | $(VBOX_XIDL_FILE) \
|
---|
1555 | $(VBOX_PATH_MAIN_SRC)/idl/typemap-shared.inc.xsl \
|
---|
1556 | $(VBoxAPIWrap_VBOX_XSLT) \
|
---|
1557 | $(VBOX_FILESPLIT) \
|
---|
1558 | | $$(dir $$@)
|
---|
1559 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
1560 | $(call MSG_L1,Generating C++ Server API wrapper files from XIDL - part 2)
|
---|
1561 | $(QUIET)$(RM) -f -- $(filter-out $(VBOX_MAIN_APIWRAPPER_GEN_SRCS), $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.cpp))
|
---|
1562 | $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
|
---|
1563 | --stringparam generating "sources" \
|
---|
1564 | --param reminder 1 \
|
---|
1565 | -o $@ $(VBoxAPIWrap_VBOX_XSLT) $(VBOX_XIDL_FILE)
|
---|
1566 | $(QUIET)$(VBOX_FILESPLIT) $@ $(VBoxAPIWrap_0_OUTDIR)
|
---|
1567 |
|
---|
1568 | testapiwrappers:: \
|
---|
1569 | $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-headers \
|
---|
1570 | $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d.ts \
|
---|
1571 | $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-odd \
|
---|
1572 | $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-even
|
---|
1573 |
|
---|
1574 |
|
---|
1575 | #
|
---|
1576 | # NLS stuff.
|
---|
1577 | #
|
---|
1578 | updatenls::
|
---|
1579 | $(VBOX_LUPDATE) $(VBoxSVC_SOURCES) $(VBoxSVC_VBOX_HEADERS) -ts $(VBoxSVC_VBOX_TRANSLATIONS)
|
---|
1580 | $(VBOX_LUPDATE) $(VBoxC_SOURCES) $(VBoxC_VBOX_HEADERS) -ts $(VBoxC_VBOX_TRANSLATIONS)
|
---|
1581 |
|
---|