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