1 | # $Id: Makefile.kmk 103300 2024-02-11 20:33:57Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the VBox Main module.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2004-2023 Oracle and/or its affiliates.
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox base platform packages, as
|
---|
10 | # available from https://www.virtualbox.org.
|
---|
11 | #
|
---|
12 | # This program is free software; you can redistribute it and/or
|
---|
13 | # modify it under the terms of the GNU General Public License
|
---|
14 | # as published by the Free Software Foundation, in version 3 of the
|
---|
15 | # License.
|
---|
16 | #
|
---|
17 | # This program is distributed in the hope that it will be useful, but
|
---|
18 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | # General Public License for more details.
|
---|
21 | #
|
---|
22 | # You should have received a copy of the GNU General Public License
|
---|
23 | # along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | #
|
---|
25 | # SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | #
|
---|
27 |
|
---|
28 | SUB_DEPTH = ../../..
|
---|
29 | include $(KBUILD_PATH)/subheader.kmk
|
---|
30 |
|
---|
31 | #
|
---|
32 | # Make sure our Config.kmk is included.
|
---|
33 | #
|
---|
34 | ifndef VBOX_MAIN_CONFIG_KMK_INCLUDED
|
---|
35 | include $(PATH_SUB_CURRENT)/Config.kmk
|
---|
36 | endif
|
---|
37 |
|
---|
38 | #
|
---|
39 | # Include sub-makefile(s).
|
---|
40 | #
|
---|
41 | ifndef VBOX_ONLY_EXTPACKS
|
---|
42 | ifdef VBOX_WITH_WEBSERVICES
|
---|
43 | include $(PATH_SUB_CURRENT)/webservice/Makefile.kmk
|
---|
44 | endif
|
---|
45 | include $(PATH_SUB_CURRENT)/testcase/Makefile.kmk
|
---|
46 | include $(PATH_SUB_CURRENT)/cbinding/Makefile.kmk
|
---|
47 | ifndef VBOX_ONLY_SDK
|
---|
48 | include $(PATH_SUB_CURRENT)/UnattendedTemplates/Makefile.kmk
|
---|
49 | if defined(VBOX_WITH_OPEN_WATCOM) && defined(VBOX_WITH_UNATTENDED)
|
---|
50 | include $(PATH_SUB_CURRENT)/src-helper-apps/os2/Makefile.kmk
|
---|
51 | endif
|
---|
52 | ifdef VBOX_WITH_DEVMAPPER
|
---|
53 | include $(PATH_SUB_CURRENT)/src-helper-apps/VBoxVolInfo/Makefile.kmk
|
---|
54 | endif
|
---|
55 | endif
|
---|
56 | ifdef VBOX_WITH_PYTHON
|
---|
57 | include $(PATH_SUB_CURRENT)/glue/python/Makefile.kmk
|
---|
58 | endif
|
---|
59 | endif
|
---|
60 |
|
---|
61 |
|
---|
62 | #
|
---|
63 | # Targets and globals (bit of a mess...)
|
---|
64 | #
|
---|
65 | VBOX_PATH_MAIN_SRC := $(PATH_SUB_CURRENT)
|
---|
66 |
|
---|
67 | if defined(VBOX_ONLY_SDK) && !defined(VBOX_ONLY_SDK_ON_HOST) && !defined(VBOX_ONLY_SDK_IN_VM) # Hacks for building SDK using wine.
|
---|
68 | ifndef TOOL_$(VBOX_VCC_TOOL)
|
---|
69 | include $(KBUILD_PATH)/tools/$(VBOX_VCC_TOOL).kmk # For the idl /cpp statement.
|
---|
70 | endif
|
---|
71 | ifndef SDK_$(VBOX_WINPSDK)
|
---|
72 | include $(KBUILD_PATH)/sdks/$(VBOX_WINPSDK).kmk
|
---|
73 | endif
|
---|
74 | endif # !VBOX_ONLY_SDK
|
---|
75 |
|
---|
76 |
|
---|
77 | ## VBOX_MAIN_DEFS is used by VBoxC, VBoxClient-x86, VBoxSVC and VBoxSVCM, making
|
---|
78 | # sure they all have the same set of features enabled.
|
---|
79 | VBOX_MAIN_DEFS :=
|
---|
80 | ifneq ($(KBUILD_TARGET),win)
|
---|
81 | ifndef VBOX_WITH_XPCOM
|
---|
82 | $(error "VBox: VBOX_WITH_XPCOM isn't defined")
|
---|
83 | endif
|
---|
84 | VBOX_MAIN_DEFS += VBOX_WITH_GENERIC_SESSION_WATCHER
|
---|
85 | endif
|
---|
86 | ifdef VBOX_WITH_AUDIO_ALSA
|
---|
87 | VBOX_MAIN_DEFS += VBOX_WITH_AUDIO_ALSA
|
---|
88 | endif
|
---|
89 | ifdef VBOX_WITH_AUDIO_DEBUG
|
---|
90 | VBOX_MAIN_DEFS += VBOX_WITH_AUDIO_DEBUG
|
---|
91 | endif
|
---|
92 | ifdef VBOX_WITH_AUDIO_OSS
|
---|
93 | VBOX_MAIN_DEFS += VBOX_WITH_AUDIO_OSS
|
---|
94 | endif
|
---|
95 | ifdef VBOX_WITH_AUDIO_PULSE
|
---|
96 | VBOX_MAIN_DEFS += VBOX_WITH_AUDIO_PULSE
|
---|
97 | endif
|
---|
98 | ifdef VBOX_WITH_AUDIO_RECORDING
|
---|
99 | VBOX_MAIN_DEFS += VBOX_WITH_AUDIO_RECORDING
|
---|
100 | endif
|
---|
101 | ifdef VBOX_WITH_AUDIO_VALIDATIONKIT
|
---|
102 | VBOX_MAIN_DEFS += VBOX_WITH_AUDIO_VALIDATIONKIT
|
---|
103 | endif
|
---|
104 | ifdef VBOX_WITH_AUDIO_VRDE
|
---|
105 | VBOX_MAIN_DEFS += VBOX_WITH_AUDIO_VRDE
|
---|
106 | endif
|
---|
107 | ifdef VBOX_WITH_COPYTOGUEST
|
---|
108 | VBOX_MAIN_DEFS += VBOX_WITH_COPYTOGUEST
|
---|
109 | endif
|
---|
110 | ifdef VBOX_WITH_E1000
|
---|
111 | VBOX_MAIN_DEFS += VBOX_WITH_E1000
|
---|
112 | endif
|
---|
113 | ifdef VBOX_WITH_EXTPACK
|
---|
114 | VBOX_MAIN_DEFS += VBOX_WITH_EXTPACK
|
---|
115 | endif
|
---|
116 | ifdef VBOX_WITH_GUEST_CONTROL
|
---|
117 | VBOX_MAIN_DEFS += VBOX_WITH_GUEST_CONTROL
|
---|
118 | endif
|
---|
119 | ifdef VBOX_WITH_GUEST_PROPS
|
---|
120 | VBOX_MAIN_DEFS += VBOX_WITH_GUEST_PROPS
|
---|
121 | ifdef VBOX_WITH_GUEST_PROPS_RDONLY_GUEST
|
---|
122 | VBOX_MAIN_DEFS += VBOX_WITH_GUEST_PROPS_RDONLY_GUEST
|
---|
123 | endif
|
---|
124 | endif
|
---|
125 | ifdef VBOX_WITH_HGCM
|
---|
126 | VBOX_MAIN_DEFS += VBOX_WITH_HGCM
|
---|
127 | endif
|
---|
128 | ifdef VBOX_WITH_HOSTNETIF_API
|
---|
129 | VBOX_MAIN_DEFS += VBOX_WITH_HOSTNETIF_API
|
---|
130 | endif
|
---|
131 | ifdef VBOX_WITH_DHCPD
|
---|
132 | VBOX_MAIN_DEFS += VBOX_WITH_DHCPD
|
---|
133 | endif
|
---|
134 | ifdef VBOX_WITH_LIVE_MIGRATION
|
---|
135 | VBOX_MAIN_DEFS += VBOX_WITH_LIVE_MIGRATION
|
---|
136 | endif
|
---|
137 | ifdef VBOX_WITH_MIDL_PROXY_STUB
|
---|
138 | VBOX_MAIN_DEFS += VBOX_WITH_MIDL_PROXY_STUB
|
---|
139 | endif
|
---|
140 | ifdef VBOX_WITH_NETFLT
|
---|
141 | VBOX_MAIN_DEFS += VBOX_WITH_NETFLT
|
---|
142 | endif
|
---|
143 | if defined(VBOX_WITH_VMNET) && "$(KBUILD_TARGET)" == "darwin"
|
---|
144 | VBOX_MAIN_DEFS += VBOX_WITH_VMNET
|
---|
145 | endif
|
---|
146 | ifdef VBOX_WITH_CLOUD_NET
|
---|
147 | VBOX_MAIN_DEFS += VBOX_WITH_CLOUD_NET
|
---|
148 | endif
|
---|
149 | ifdef VBOX_WITH_PCI_PASSTHROUGH
|
---|
150 | VBOX_MAIN_DEFS += VBOX_WITH_PCI_PASSTHROUGH
|
---|
151 | endif
|
---|
152 | ifdef VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
153 | VBOX_MAIN_DEFS += VBOX_WITH_PDM_ASYNC_COMPLETION
|
---|
154 | endif
|
---|
155 | ifdef VBOX_WITH_RECORDING
|
---|
156 | VBOX_MAIN_DEFS += VBOX_WITH_RECORDING
|
---|
157 | endif
|
---|
158 | ifdef VBOX_WITH_SDS
|
---|
159 | VBOX_MAIN_DEFS += VBOX_WITH_SDS
|
---|
160 | endif
|
---|
161 | ifdef VBOX_WITH_SHARED_CLIPBOARD
|
---|
162 | VBOX_MAIN_DEFS += VBOX_WITH_SHARED_CLIPBOARD
|
---|
163 | ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
|
---|
164 | VBOX_MAIN_DEFS += VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
|
---|
165 | endif
|
---|
166 | endif
|
---|
167 | if defined(VBOX_WITH_LIBCURL) && defined(VBOX_WITH_UPDATE_AGENT)
|
---|
168 | VBOX_MAIN_DEFS += VBOX_WITH_UPDATE_AGENT
|
---|
169 | endif
|
---|
170 | ifdef VBOX_WITH_USB_CARDREADER
|
---|
171 | VBOX_MAIN_DEFS += VBOX_WITH_USB_CARDREADER
|
---|
172 | endif
|
---|
173 | ifdef VBOX_WITH_USB_CARDREADER_TEST
|
---|
174 | VBOX_MAIN_DEFS += VBOX_WITH_USB_CARDREADER_TEST
|
---|
175 | endif
|
---|
176 | ifdef VBOX_WITH_VIRTIO
|
---|
177 | VBOX_MAIN_DEFS += VBOX_WITH_VIRTIO
|
---|
178 | endif
|
---|
179 | ifdef VBOX_WITH_VIRTIO_1_0
|
---|
180 | VBOX_MAIN_DEFS += VBOX_WITH_VIRTIO_1_0
|
---|
181 | endif
|
---|
182 | ifdef VBOX_WITH_VIRTIO_NET_1_0
|
---|
183 | VBOX_MAIN_DEFS += VBOX_WITH_VIRTIO_NET_1_0
|
---|
184 | endif
|
---|
185 | ifdef VBOX_WITH_VMSVGA
|
---|
186 | VBOX_MAIN_DEFS += VBOX_WITH_VMSVGA
|
---|
187 | endif
|
---|
188 | ifdef VBOX_WITH_VMSVGA3D
|
---|
189 | VBOX_MAIN_DEFS += VBOX_WITH_VMSVGA3D
|
---|
190 | endif
|
---|
191 | ifdef VBOX_WITH_VUSB
|
---|
192 | VBOX_MAIN_DEFS += VBOX_WITH_VUSB
|
---|
193 | endif
|
---|
194 | ifdef VBOX_WITH_EHCI
|
---|
195 | ifdef VBOX_WITH_USB
|
---|
196 | VBOX_MAIN_DEFS += VBOX_WITH_EHCI
|
---|
197 | endif
|
---|
198 | endif
|
---|
199 | ifdef VBOX_WITH_EFI_IN_DD2
|
---|
200 | VBOX_MAIN_DEFS += VBOX_WITH_EFI_IN_DD2
|
---|
201 | endif
|
---|
202 | ifdef VBOX_WITH_MAIN_NLS
|
---|
203 | VBOX_MAIN_DEFS += VBOX_WITH_MAIN_NLS
|
---|
204 | endif
|
---|
205 | ifdef VBOX_WITH_GSTCTL_TOOLBOX_SUPPORT
|
---|
206 | VBOX_MAIN_DEFS += VBOX_WITH_GSTCTL_TOOLBOX_SUPPORT
|
---|
207 | endif
|
---|
208 | ifdef VBOX_WITH_GSTCTL_TOOLBOX_AS_CMDS
|
---|
209 | VBOX_MAIN_DEFS += VBOX_WITH_GSTCTL_TOOLBOX_AS_CMDS
|
---|
210 | endif
|
---|
211 | # Unconditionally enable the new semaphore key generation code
|
---|
212 | VBOX_MAIN_DEFS += VBOX_WITH_NEW_SYS_V_KEYGEN
|
---|
213 |
|
---|
214 |
|
---|
215 | VBOX_IDL_FILE.MSCOM = $(VBOX_PATH_SDK)/bindings/mscom/idl/VirtualBox.idl
|
---|
216 | VBOX_IDL_FILE.XPCOM = $(VBOX_PATH_SDK)/bindings/xpcom/idl/VirtualBox_XPCOM.idl
|
---|
217 |
|
---|
218 | VBOX_IDL_TYPELIB.XPCOM = $(PATH_STAGE_BIN)/components/VirtualBox_XPCOM.xpt
|
---|
219 | VBOX_IDL_HEADER.XPCOM = $(VBOX_PATH_SDK)/bindings/xpcom/include/VirtualBox_XPCOM.h
|
---|
220 |
|
---|
221 | # The MS COM specific stuff.
|
---|
222 | if "$(KBUILD_TARGET)" == "win" || (defined(VBOX_ONLY_SDK) && !defined(VBOX_ONLY_SDK_ON_HOST) && !defined(VBOX_ONLY_SDK_IN_VM))
|
---|
223 | OTHERS += \
|
---|
224 | $(VBOX_IDL_FILE.MSCOM)
|
---|
225 | OTHER_CLEAN += \
|
---|
226 | $(VBOX_IDL_FILE.MSCOM)
|
---|
227 |
|
---|
228 | INSTALLS += VBox-mscom-bindings-include VBox-mscom-bindings-lib
|
---|
229 | VBox-mscom-bindings-include_INST = $(INST_SDK)bindings/mscom/include/
|
---|
230 | VBox-mscom-bindings-include_MODE = a+r,u+w
|
---|
231 | VBox-mscom-bindings-include_SOURCES = $(VBoxCOM_0_OUTDIR)/VirtualBox.h
|
---|
232 | VBox-mscom-bindings-include_CLEAN = $(VBoxCOM_0_OUTDIR)/VirtualBox.h
|
---|
233 | VBox-mscom-bindings-lib_INST = $(INST_SDK)bindings/mscom/lib/
|
---|
234 | VBox-mscom-bindings-lib_MODE = a+r,u+w
|
---|
235 | VBox-mscom-bindings-lib_SOURCES = $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c \
|
---|
236 | $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb
|
---|
237 | VBox-mscom-bindings-lib_CLEAN = $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c \
|
---|
238 | $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb
|
---|
239 |
|
---|
240 | BLDDIRS += $(VBOX_PATH_SDK)/bindings/mscom/idl
|
---|
241 | endif
|
---|
242 |
|
---|
243 | # The XPCOM specific stuff.
|
---|
244 | # if defined(VBOX_ONLY_SDK) || "$(KBUILD_TARGET)" != "win" -- does not build on Windows
|
---|
245 | if "$(KBUILD_TARGET)" != "win"
|
---|
246 | OTHERS += $(VBOX_IDL_FILE.XPCOM) $(VBOX_IDL_TYPELIB.XPCOM) $(VBOX_IDL_HEADER.XPCOM)
|
---|
247 | OTHER_CLEAN += \
|
---|
248 | $(VBOX_IDL_FILE.XPCOM) \
|
---|
249 | $(VBOX_IDL_HEADER.XPCOM) \
|
---|
250 | $(VBOX_IDL_TYPELIB.XPCOM)
|
---|
251 |
|
---|
252 | INSTALLS += VBox-xpcom-bindings-lib
|
---|
253 | VBox-xpcom-bindings-lib_INST = $(INST_SDK)bindings/xpcom/lib/
|
---|
254 | VBox-xpcom-bindings-lib_MODE = a+r,u+w
|
---|
255 | VBox-xpcom-bindings-lib_SOURCES = $(VBoxCOM_0_OUTDIR)/VirtualBox_XPCOM_i.c=>VirtualBox_i.c
|
---|
256 | VBox-xpcom-bindings-lib_CLEAN = $(VBoxCOM_0_OUTDIR)/VirtualBox_XPCOM_i.c
|
---|
257 |
|
---|
258 | VBOX_MAIN_PREREQS += $(VBOX_IDL_TYPELIB.XPCOM) $(VBOX_IDL_HEADER.XPCOM)
|
---|
259 | BLDDIRS += \
|
---|
260 | $(VBOX_PATH_SDK)/bindings/xpcom/idl \
|
---|
261 | $(VBOX_PATH_SDK)/bindings/xpcom/include
|
---|
262 | # disable VBoxSDS for XPCOM
|
---|
263 | override VBOX_WITH_SDS =
|
---|
264 | endif # xpcom
|
---|
265 |
|
---|
266 |
|
---|
267 | #
|
---|
268 | # Strip documentation from source XIDL so that we don't get a full
|
---|
269 | # recompile every time a comma in the documentation is changed.
|
---|
270 | #
|
---|
271 | $(call KB_FN_AUTO_CMD_DEPS,$(VBOX_XIDL_FILE).ts)
|
---|
272 | $(VBOX_XIDL_FILE).ts +| $(VBOX_XIDL_FILE): \
|
---|
273 | $(VBOX_XIDL_FILE_SRC) \
|
---|
274 | $(VBOX_PATH_MAIN_SRC)/idl/docstrip.xsl \
|
---|
275 | | $$(dir $$@)
|
---|
276 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
277 | $(QUIET)$(VBOX_XSLTPROC) -o $(VBOX_XIDL_FILE).ts-tmp $(VBOX_PATH_MAIN_SRC)/idl/docstrip.xsl $(VBOX_XIDL_FILE_SRC)
|
---|
278 | $(QUIET)$(SED) -e 's/ *$(DOLLAR)//g' -e '/^$(DOLLAR)/d' --output $(VBOX_XIDL_FILE).ts $(VBOX_XIDL_FILE).ts-tmp
|
---|
279 | $(QUIET)$(RM) -- $(VBOX_XIDL_FILE).ts-tmp
|
---|
280 | $(QUIET)$(CP) --changed -fv -- $(VBOX_XIDL_FILE).ts $(VBOX_XIDL_FILE)
|
---|
281 |
|
---|
282 | OTHER_CLEAN += $(VBOX_XIDL_FILE) $(VBOX_XIDL_FILE).ts
|
---|
283 |
|
---|
284 |
|
---|
285 | #
|
---|
286 | # The Main API documentation
|
---|
287 | #
|
---|
288 | VBOX_MAIN_DOC_DIR = $(VBOX_PATH_SDK)/docs
|
---|
289 | BLDDIRS += $(VBOX_MAIN_DOC_DIR)
|
---|
290 |
|
---|
291 | $(PATH_TARGET)/VirtualBox.idl: \
|
---|
292 | $(VBOX_XIDL_FILE_SRC) \
|
---|
293 | $(VBOX_PATH_MAIN_SRC)/idl/doxygen.xsl \
|
---|
294 | | $(PATH_TARGET)/
|
---|
295 | $(call MSG_TOOL,xsltproc,,$<,$@)
|
---|
296 | $(QUIET)$(VBOX_XSLTPROC) --path ".:$(PATH_ROOT)/doc/manual" \
|
---|
297 | -o "[email protected]" $(VBOX_PATH_MAIN_SRC)/idl/doxygen.xsl $(VBOX_XIDL_FILE_SRC)
|
---|
298 | $(QUIET)$(SED) \
|
---|
299 | -e 's,@SLASH-ASTERISK@,<b></b>*,g' \
|
---|
300 | -e 's,@ASTERISK-SLASH@,*<b></b>,g' \
|
---|
301 | --output "$@" "[email protected]"
|
---|
302 |
|
---|
303 | $(PATH_TARGET)/docs.Main: \
|
---|
304 | $(VBOX_PATH_MAIN_SRC)/Doxyfile.Main \
|
---|
305 | $(PATH_TARGET)/VirtualBox.idl \
|
---|
306 | $(VBOX_XIDL_FILE_SRC) \
|
---|
307 | | $(VBOX_MAIN_DOC_DIR)/
|
---|
308 | $(call MSG_TOOL,doxygen,,$<,$@)
|
---|
309 | $(QUIET)$(RM) -f -- $(wildcard $(VBOX_MAIN_DOC_DIR)/html/*) $(PATH_TARGET)/docs.Main
|
---|
310 | $(QUIET)$(REDIRECT) -E 'DOCDIR=$(VBOX_MAIN_DOC_DIR)' -E 'PATH_TARGET=$(PATH_TARGET)' \
|
---|
311 | -- $(VBOX_DOXYGEN) $(VBOX_PATH_MAIN_SRC)/Doxyfile.Main
|
---|
312 | $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) ">>>>>>>>>>>>>>>>>>>> Main.err: >>>>>>>>>>>>>>>>>>>>>>>>"
|
---|
313 | $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(CAT) "$(PATH_TARGET)/Main.err"
|
---|
314 | $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "<<<<<<<<<<<<<<<<<<<< Main.err <<<<<<<<<<<<<<<<<<<<<<<<<"
|
---|
315 | $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> **************************************************"
|
---|
316 | $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> Please fix above doxygen errors/warnings listed in"
|
---|
317 | $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> $(PATH_TARGET)/Main.err"
|
---|
318 | $(QUIET)$(TEST) -s "$(PATH_TARGET)/Main.err" -- $(ECHO_EXT) "===> **************************************************"
|
---|
319 | $(APPEND) $(PATH_TARGET)/docs.Main
|
---|
320 |
|
---|
321 | if (defined(VBOX_ONLY_SDK) || defined(VBOX_WITH_SDK)) && !defined(VBOX_ONLY_SDK_IN_VM)
|
---|
322 | OTHERS += $(PATH_TARGET)/docs.Main
|
---|
323 | endif
|
---|
324 |
|
---|
325 | # aliases
|
---|
326 | docs.main docs.Main: $(PATH_TARGET)/docs.Main
|
---|
327 | if !defined(VBOX_ONLY_DOCS) && defined(VBOX_WITH_ALL_DOXYGEN_TARGETS)
|
---|
328 | docs: $(PATH_TARGET)/docs.Main
|
---|
329 | else
|
---|
330 | docs:
|
---|
331 | endif
|
---|
332 |
|
---|
333 |
|
---|
334 | ifndef VBOX_ONLY_SDK
|
---|
335 | #
|
---|
336 | # Generate library with API class wrappers from the XIDL file.
|
---|
337 | #
|
---|
338 | LIBRARIES += VBoxAPIWrap
|
---|
339 | VBoxAPIWrap_TEMPLATE = VBoxMainLib
|
---|
340 | ifeq ($(KBUILD_TARGET),win)
|
---|
341 | ifndef VBOX_WITHOUT_PRECOMPILED_HEADERS
|
---|
342 | VBoxAPIWrap_USES = vccprecomp
|
---|
343 | VBoxAPIWrap_PCH_HDR := $(PATH_SUB_CURRENT)/src-all/win/VBoxAPIWrap-precomp_vcc.h
|
---|
344 | endif
|
---|
345 | else if $(KBUILD_KMK_REVISION) >= 3256 && "$(KBUILD_TARGET)" != "darwin" && !defined(VBOX_WITHOUT_PRECOMPILED_HEADERS)
|
---|
346 | if $(VBOX_GCC_VERSION_CXX) >= 50000 # GCC 4.x runs into trouble compiling the header.
|
---|
347 | VBoxAPIWrap_USES = gccprecomp
|
---|
348 | VBoxAPIWrap_PCH_HDR := $(PATH_SUB_CURRENT)/src-all/xpcom/VBoxAPIWrap-precomp_gcc.h
|
---|
349 | endif
|
---|
350 | endif
|
---|
351 | VBoxAPIWrap_SOURCES = \
|
---|
352 | $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d \
|
---|
353 | $(if-expr defined(VBOX_ONLY_EXTPACKS) \
|
---|
354 | , $(addprefix $(VBoxAPIWrap_0_OUTDIR)/,$(filter \
|
---|
355 | Cloud% \
|
---|
356 | DataStreamWrap.cpp \
|
---|
357 | %FormValueWrap.cpp \
|
---|
358 | %FormWrap.cpp \
|
---|
359 | StringArrayWrap.cpp \
|
---|
360 | , $(notdir $(VBOX_MAIN_APIWRAPPER_GEN_SRCS)))) \
|
---|
361 | , $(VBOX_MAIN_APIWRAPPER_GEN_SRCS))
|
---|
362 | VBoxAPIWrap_INTERMEDIATES = $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
|
---|
363 | VBoxAPIWrap_DEFS.win.x86 += _WIN32_WINNT=0x0500
|
---|
364 | VBoxAPIWrap_DEFS.win.amd64 += _WIN32_WINNT=0x0510
|
---|
365 | VBoxAPIWrap_INCS += \
|
---|
366 | include
|
---|
367 | if ("$(KBUILD_TARGET)" == "solaris" && $(VBOX_GCC_VERSION_CXX) >= 70000)
|
---|
368 | # Avoid too long symbol names with Solaris 11.4 "dtrace: failed to link script .../VBoxAPI.d: failed to allocate space for probe"
|
---|
369 | VBoxAPIWrap_CXXFLAGS.solaris += -freorder-blocks-algorithm=simple -fno-reorder-blocks-and-partition -fno-reorder-functions
|
---|
370 | endif
|
---|
371 | VBoxAPIWrap_CLEAN = \
|
---|
372 | $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.cpp) \
|
---|
373 | $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.h) \
|
---|
374 | $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d.ts \
|
---|
375 | $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d \
|
---|
376 | $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-headers \
|
---|
377 | $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-even \
|
---|
378 | $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-odd
|
---|
379 |
|
---|
380 | # Two VBox variables used here and/or in the rules generating wrappers.
|
---|
381 | VBoxAPIWrap_VBOX_XSLT = \
|
---|
382 | $(VBOX_PATH_MAIN_SRC)/idl/apiwrap-server.xsl
|
---|
383 |
|
---|
384 |
|
---|
385 | # This include file (generated at the bottom of this file), defines
|
---|
386 | # VBOX_MAIN_APIWRAPPER_GEN_SRCS and VBOX_MAIN_APIWRAPPER_GEN_HDRS.
|
---|
387 | VBoxAPIWrap_VBOX_KMK_FILE = $(PATH_OUT)/vboxapiwrap.kmk
|
---|
388 | include $(VBoxAPIWrap_VBOX_KMK_FILE)
|
---|
389 | OTHER_CLEAN += $(VBoxAPIWrap_VBOX_KMK_FILE) $(VBoxAPIWrap_VBOX_KMK_FILE).ts
|
---|
390 |
|
---|
391 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
392 | LIBRARIES += VBoxAPIWrap-x86
|
---|
393 | VBoxAPIWrap-x86_TEMPLATE = VBoxMainLib-x86
|
---|
394 | VBoxAPIWrap-x86_EXTENDS = VBoxAPIWrap
|
---|
395 | VBoxAPIWrap-x86_DTRACE_HDR_FLAGS = -32 # ugly, should be fixed in the tool in Config.kmk
|
---|
396 | ifeq ($(KBUILD_TARGET),win) ## @todo fix inheritance (fixed in r3253)
|
---|
397 | VBoxAPIWrap-x86_USES = vccprecomp
|
---|
398 | VBoxAPIWrap-x86_PCH_HDR := $(PATH_SUB_CURRENT)/src-all/win/VBoxAPIWrap-precomp_vcc.h
|
---|
399 | endif
|
---|
400 | endif
|
---|
401 |
|
---|
402 | endif # !VBOX_ONLY_SDK
|
---|
403 |
|
---|
404 | #
|
---|
405 | # Some SDK bits.
|
---|
406 | #
|
---|
407 | INSTALLS += VBox-main-xidl
|
---|
408 | VBox-main-xidl_INST = $(INST_SDK)bindings/
|
---|
409 | VBox-main-xidl_MODE = a+r,u+w
|
---|
410 | VBox-main-xidl_SOURCES = $(VBOX_XIDL_FILE_SRC)
|
---|
411 |
|
---|
412 | if !defined(VBOX_ONLY_SDK) && !defined(VBOX_ONLY_EXTPACKS) # Note this goes on for *very* long
|
---|
413 |
|
---|
414 | #
|
---|
415 | # Generate SchemaDefs.h and SchemaDefs.cpp from XML Schema
|
---|
416 | # These two files are used by both VBoxC and VBoxSVC.
|
---|
417 | #
|
---|
418 | BLDDIRS += $(PATH_TARGET)/Main
|
---|
419 |
|
---|
420 | testschemadefs: $(VBOX_XML_SCHEMADEFS_H) $(VBOX_XML_SCHEMADEFS_CPP)
|
---|
421 |
|
---|
422 |
|
---|
423 | #
|
---|
424 | # Trust anchors and certificates -> .cpp
|
---|
425 | #
|
---|
426 | VBOX_SVC_CERTS_FILE = $(VBoxSVC_0_OUTDIR)/TrustAnchorsAndCerts.cpp
|
---|
427 | VBOX_SVC_CERTS := \
|
---|
428 | UefiMicrosoftKek=MicCorKEKCA2011_2011-06-24.crt \
|
---|
429 | UefiMicrosoftCa=MicCorUEFCA2011_2011-06-27.crt \
|
---|
430 | UefiMicrosoftProPca=MicWinProPCA2011_2011-10-19.crt \
|
---|
431 | UefiOracleDefPk=OrclUefiDefPk2021_2021-09-29.crt
|
---|
432 |
|
---|
433 | VBOX_SVC_CERT_NAMES := $(foreach cert,$(VBOX_SVC_CERTS),$(firstword $(subst =,$(SPACE) ,$(cert))))
|
---|
434 | VBOX_SVC_PATH_CERTIFICATES := $(PATH_SUB_CURRENT)/Certificates
|
---|
435 |
|
---|
436 | $$(VBOX_SVC_CERTS_FILE): $(MAKEFILE_CURRENT) \
|
---|
437 | $(foreach cert,$(VBOX_SVC_CERTS),$(VBOX_SVC_PATH_CERTIFICATES)/$(lastword $(subst =,$(SPACE) ,$(cert)))) \
|
---|
438 | $(VBOX_BIN2C) \
|
---|
439 | | $$(dir $$@)
|
---|
440 | $(QUIET)$(RM) -f -- $@
|
---|
441 | $(QUIET)$(APPEND) -n "$@" \
|
---|
442 | '' \
|
---|
443 | '#include "TrustAnchorsAndCerts.h"' \
|
---|
444 | ''
|
---|
445 | $(foreach cert,$(VBOX_SVC_CERTS), $(NLTAB)$(VBOX_BIN2C) -ascii --append \
|
---|
446 | "$(firstword $(subst =,$(SP) ,$(cert)))" \
|
---|
447 | "$(VBOX_SVC_PATH_CERTIFICATES)/$(lastword $(subst =,$(SP) ,$(cert)))" \
|
---|
448 | "$@")
|
---|
449 |
|
---|
450 | OTHER_CLEAN += $(VBOX_SVC_CERTS_FILE)
|
---|
451 |
|
---|
452 | tst-main-certificates: $(VBOX_SVC_CERTS_FILE)
|
---|
453 |
|
---|
454 |
|
---|
455 | #
|
---|
456 | # VBoxSDS executable
|
---|
457 | #
|
---|
458 | if defined(VBOX_WITH_SDS) && "$(KBUILD_TARGET)" == "win"
|
---|
459 | PROGRAMS.win += VBoxSDS
|
---|
460 | VBoxSDS_TEMPLATE = VBoxMainExe
|
---|
461 | VBoxSDS_DEFS += VBOX_COM_OUTOFPROC_MODULE _WIN32_WINNT=0x0600
|
---|
462 | ifdef VBOX_WITH_VBOXSDL
|
---|
463 | VBoxSDS_DEFS += VBOX_WITH_VBOXSDL
|
---|
464 | endif
|
---|
465 | ifdef VBOX_WITH_HEADLESS
|
---|
466 | VBoxSDS_DEFS += VBOX_WITH_HEADLESS
|
---|
467 | endif
|
---|
468 | ifdef VBOX_WITH_QTGUI
|
---|
469 | VBoxSDS_DEFS += VBOX_WITH_QTGUI
|
---|
470 | endif
|
---|
471 | ifdef VBOX_WITH_VBOXSVC_SESSION_0
|
---|
472 | VBoxSDS_DEFS += VBOX_WITH_VBOXSVC_SESSION_0
|
---|
473 | endif
|
---|
474 | VBoxSDS_INCS = \
|
---|
475 | include \
|
---|
476 | $(VBoxSDS_0_OUTDIR) \
|
---|
477 | $(VBoxCOM_0_OUTDIR)
|
---|
478 | VBoxSDS_INTERMEDIATES = \
|
---|
479 | $(VBOX_MAIN_PREREQS)
|
---|
480 | VBoxSDS_SOURCES = \
|
---|
481 | src-global/win/VBoxSDS.cpp \
|
---|
482 | src-global/win/VirtualBoxSDSImpl.cpp \
|
---|
483 | src-global/win/VBoxSDS.rc \
|
---|
484 | src-all/MachineLaunchVMCommonWorker.cpp
|
---|
485 | $(call KB_FN_DO_PASS0_ON_TARGET,VBoxSDS) # Sets VBoxSDS_0_OUTDIR
|
---|
486 |
|
---|
487 | src-global/win/VBoxSDS.rc_INCS = $(VBoxSDS_0_OUTDIR)
|
---|
488 | src-global/win/VBoxSDS.rc_DEPS = $(VBoxSDS_0_OUTDIR)/VBoxSDS-icon.rc #$(VBoxSDS_0_OUTDIR)/VBoxSDS.rgs
|
---|
489 | VBoxSDS_CLEAN = $(VBoxSDS_0_OUTDIR)/VBoxSDS-icon.rc #$(VBoxSDS_0_OUTDIR)/VBoxSDS.rgs
|
---|
490 |
|
---|
491 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxSDS_0_OUTDIR)/VBoxSDS-icon.rc)
|
---|
492 | $(VBoxSDS_0_OUTDIR)/VBoxSDS-icon.rc: $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$@)
|
---|
493 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
494 | $(APPEND) -t $@ '1 ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
|
---|
495 |
|
---|
496 | # $(call KB_FN_AUTO_CMD_DEPS,$(VBoxSDS_0_OUTDIR)/VBoxSDS.rgs)
|
---|
497 | # $(VBoxSDS_0_OUTDIR)/VBoxSDS.rgs: $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
|
---|
498 | # $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
499 | # $(VBOX_XSLTPROC) \
|
---|
500 | # --stringparam Application "VirtualBox System" \
|
---|
501 | # --stringparam Module VBoxSDS \
|
---|
502 | # -o $@ \
|
---|
503 | # $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl \
|
---|
504 | # $(VBOX_XIDL_FILE)
|
---|
505 | #
|
---|
506 | endif #if defined(VBOX_WITH_SDS) && "$(KBUILD_TARGET)" == "win"
|
---|
507 |
|
---|
508 | #
|
---|
509 | # VBoxSVC executable
|
---|
510 | #
|
---|
511 | PROGRAMS += VBoxSVC
|
---|
512 | VBoxSVC_TEMPLATE = VBoxMainExe
|
---|
513 | if defined(VBOX_WITH_PRECOMPILED_HEADERS) && "$(KBUILD_TARGET)" == "win"
|
---|
514 | VBoxSVC_USES += vccprecomp
|
---|
515 | VBoxSVC_PCH_HDR := $(PATH_SUB_CURRENT)/src-server/win/precomp_vcc.h
|
---|
516 | else if $(KBUILD_KMK_REVISION) >= 3256 && "$(KBUILD_TARGET)" != "darwin" && !defined(VBOX_WITHOUT_PRECOMPILED_HEADERS)
|
---|
517 | if $(VBOX_GCC_VERSION_CXX) >= 50000 # GCC 4.x runs into trouble compiling the header.
|
---|
518 | VBoxSVC_USES += gccprecomp
|
---|
519 | VBoxSVC_PCH_HDR := $(PATH_SUB_CURRENT)/src-server/xpcom/precomp_gcc.h
|
---|
520 | endif
|
---|
521 | endif
|
---|
522 | VBoxSVC_DEFS = \
|
---|
523 | IN_VBOXSVC \
|
---|
524 | VBOX_MAIN_SETTINGS_ADDONS \
|
---|
525 | IN_VMM_STATIC \
|
---|
526 | $(VBOX_MAIN_DEFS) \
|
---|
527 | $(if $(VBOX_WITH_VBOXSDL),VBOX_WITH_VBOXSDL,) \
|
---|
528 | $(if $(VBOX_WITH_HEADLESS),VBOX_WITH_HEADLESS,) \
|
---|
529 | $(if $(VBOX_WITH_QTGUI),VBOX_WITH_QTGUI,) \
|
---|
530 | $(if $(VBOX_WITH_AHCI),VBOX_WITH_AHCI,) \
|
---|
531 | $(if $(VBOX_WITH_LSILOGIC),VBOX_WITH_LSILOGIC,) \
|
---|
532 | $(if $(VBOX_WITH_LINUX_COMPILER_H),VBOX_WITH_LINUX_COMPILER_H,) \
|
---|
533 | $(if $(VBOX_WITH_RESOURCE_USAGE_API),VBOX_WITH_RESOURCE_USAGE_API,) \
|
---|
534 | $(if $(VBOX_WITH_UNATTENDED),VBOX_WITH_UNATTENDED,) \
|
---|
535 | $(if $(VBOX_WITH_DBUS),VBOX_WITH_DBUS,) \
|
---|
536 | $(if $(VBOX_WITH_DBUS),$(if $(VBOX_USB_WITH_DBUS),VBOX_USB_WITH_DBUS,),) \
|
---|
537 | $(if $(VBOX_USB_WITH_SYSFS),VBOX_USB_WITH_SYSFS,) \
|
---|
538 | $(if $(VBOX_USB_WITH_INOTIFY),VBOX_USB_WITH_INOTIFY,) \
|
---|
539 | $(if $(VBOX_WITH_NAT_SERVICE),VBOX_WITH_NAT_SERVICE,) \
|
---|
540 | $(if $(VBOX_WITH_IOMMU_AMD),VBOX_WITH_IOMMU_AMD,) \
|
---|
541 | $(if $(VBOX_WITH_IOMMU_INTEL),VBOX_WITH_IOMMU_INTEL,) \
|
---|
542 | $(if $(VBOX_WITH_TPM),VBOX_WITH_TPM,) \
|
---|
543 | $(if $(VBOX_WITH_FULL_VM_ENCRYPTION),VBOX_WITH_FULL_VM_ENCRYPTION,) \
|
---|
544 | $(if-expr defined(VBOX_WITH_SDS),VBOX_WITH_SDS,) \
|
---|
545 | $(if $(VBOX_WITH_VIRT_ARMV8),VBOX_WITH_VIRT_ARMV8,) \
|
---|
546 | $(if $(VBOX_WITH_NATIVE_NEM),VBOX_WITH_NATIVE_NEM,) \
|
---|
547 | $(if $(VBOX_WITH_IEM_NATIVE_RECOMPILER),VBOX_WITH_IEM_NATIVE_RECOMPILER,) \
|
---|
548 | $(if $(VBOX_WITH_DRIVERLESS_FORCED),VBOX_WITH_DRIVERLESS_FORCED,) \
|
---|
549 | $(if $(VBOX_WITH_XPCOMIPCD_IN_VBOX_SVC),VBOX_WITH_XPCOMIPCD_IN_VBOX_SVC,)
|
---|
550 |
|
---|
551 | ifdef VBOX_WITH_USB
|
---|
552 | VBoxSVC_DEFS += \
|
---|
553 | VBOX_WITH_USB \
|
---|
554 | $(if $(VBOX_WITH_EHCI),VBOX_WITH_EHCI,) \
|
---|
555 | $(if $(VBOX_WITH_NEW_USB_CODE_ON_DARWIN),VBOX_WITH_NEW_USB_CODE_ON_DARWIN,)
|
---|
556 | endif
|
---|
557 | VBoxSVC_DEFS.win += VBOX_COM_OUTOFPROC_MODULE _WIN32_WINNT=0x0600
|
---|
558 | # Try to load and use libhal at runtime for probing removable media
|
---|
559 | # VBoxSVC_DEFS.linux += VBOX_USE_LIBHAL
|
---|
560 | VBoxSVC_DEFS.solaris += VBOX_USE_LIBHAL
|
---|
561 |
|
---|
562 | if $(KBUILD_TARGET) != "win" && $(VBOX_GCC_VERSION_CXX) >= 40900 # gcc 4.9.x (4.8.x is causing endless RT_ELEMENT trouble)
|
---|
563 | VBoxSVC_CXXFLAGS = -Wunused -Wconversion
|
---|
564 | endif
|
---|
565 |
|
---|
566 | VBoxSVC_INCS = \
|
---|
567 | include \
|
---|
568 | $(VBoxSVC_0_OUTDIR) \
|
---|
569 | $(dir $(VBOX_XML_SCHEMADEFS_H)) \
|
---|
570 | $(VBOX_MAIN_APIWRAPPER_INCS) \
|
---|
571 | . \
|
---|
572 | $(VBOX_GRAPHICS_INCS)
|
---|
573 | VBoxSVC_INCS.win = \
|
---|
574 | $(VBoxCOM_0_OUTDIR)
|
---|
575 | ifdef VBOX_WITH_USB
|
---|
576 | VBoxSVC_INCS.os2 = \
|
---|
577 | $(PATH_ROOT)/src/VBox/HostDrivers/VBoxUSB/os2
|
---|
578 | endif
|
---|
579 |
|
---|
580 | VBoxSVC_LIBS += \
|
---|
581 | $(PATH_STAGE_LIB)/VBoxAPIWrap$(VBOX_SUFF_LIB) \
|
---|
582 | $(PATH_STAGE_LIB)/SSMStandalone$(VBOX_SUFF_LIB) \
|
---|
583 | $(if $(VBOX_WITH_XPCOMIPCD_IN_VBOX_SVC),$(LIB_VBOXXPCOMIPCD),)\
|
---|
584 | $(LIB_DDU)
|
---|
585 |
|
---|
586 | VBoxSVC_SDKS = VBoxLibPng VBoxZlib
|
---|
587 | VBoxSVC_LIBS.solaris = \
|
---|
588 | adm \
|
---|
589 | nsl \
|
---|
590 | devinfo \
|
---|
591 | socket
|
---|
592 |
|
---|
593 | VBoxSVC_LIBS.win += \
|
---|
594 | $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/dnsapi.lib
|
---|
595 |
|
---|
596 | VBoxSVC_INTERMEDIATES = \
|
---|
597 | $(VBOX_MAIN_PREREQS) \
|
---|
598 | $(VBOX_XML_SCHEMADEFS_H) \
|
---|
599 | $(VBOX_AUTOGEN_EVENT_H) \
|
---|
600 | $(VBOX_AUTOGEN_STRINGIFY_ENUMS_H) \
|
---|
601 | $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
|
---|
602 |
|
---|
603 | VBoxSVC_SOURCES = \
|
---|
604 | $(VBOX_SVC_CERTS_FILE) \
|
---|
605 | $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d \
|
---|
606 | src-all/AuthLibrary.cpp \
|
---|
607 | src-all/CryptoUtils.cpp \
|
---|
608 | src-all/DisplayPNGUtil.cpp \
|
---|
609 | src-all/DisplayResampleImage.cpp \
|
---|
610 | src-all/DisplayUtils.cpp \
|
---|
611 | src-all/EventImpl.cpp \
|
---|
612 | src-all/Global.cpp \
|
---|
613 | src-all/GlobalStatusConversion.cpp \
|
---|
614 | src-all/HashedPw.cpp \
|
---|
615 | src-all/Logging.cpp \
|
---|
616 | src-all/NvramStoreImpl.cpp \
|
---|
617 | src-all/PCIDeviceAttachmentImpl.cpp \
|
---|
618 | src-all/PlatformPropertiesImpl.cpp \
|
---|
619 | src-all/ProgressImpl.cpp \
|
---|
620 | src-all/SecretKeyStore.cpp \
|
---|
621 | src-all/SharedFolderImpl.cpp \
|
---|
622 | src-all/AutoCaller.cpp \
|
---|
623 | src-all/ThreadTask.cpp \
|
---|
624 | src-all/VirtualBoxBase.cpp \
|
---|
625 | src-all/VirtualBoxErrorInfoImpl.cpp \
|
---|
626 | $(if $(VBOX_WITH_EXTPACK),src-all/ExtPackManagerImpl.cpp src-all/ExtPackUtil.cpp,) \
|
---|
627 | src-server/CertificateImpl.cpp \
|
---|
628 | src-server/ApplianceImpl.cpp \
|
---|
629 | src-server/ApplianceImplExport.cpp \
|
---|
630 | src-server/ApplianceImplImport.cpp \
|
---|
631 | src-server/AudioAdapterImpl.cpp \
|
---|
632 | src-server/AudioSettingsImpl.cpp \
|
---|
633 | src-server/BandwidthControlImpl.cpp \
|
---|
634 | src-server/BandwidthGroupImpl.cpp \
|
---|
635 | src-server/FirmwareSettingsImpl.cpp \
|
---|
636 | src-server/RecordingSettingsImpl.cpp \
|
---|
637 | src-server/RecordingScreenSettingsImpl.cpp \
|
---|
638 | src-server/GraphicsAdapterImpl.cpp \
|
---|
639 | src-server/ClientWatcher.cpp \
|
---|
640 | src-server/ClientToken.cpp \
|
---|
641 | src-server/CloudProviderManagerImpl.cpp \
|
---|
642 | src-server/CPUProfileImpl.cpp \
|
---|
643 | src-server/DataStreamImpl.cpp \
|
---|
644 | src-server/DHCPServerImpl.cpp \
|
---|
645 | src-server/DHCPConfigImpl.cpp \
|
---|
646 | ../NetworkServices/Dhcpd/DhcpOptions.cpp \
|
---|
647 | src-server/NetworkServiceRunner.cpp \
|
---|
648 | src-server/NATNetworkImpl.cpp \
|
---|
649 | $(if $(VBOX_WITH_CLOUD_NET), \
|
---|
650 | src-server/CloudNetworkImpl.cpp \
|
---|
651 | ,) \
|
---|
652 | src-server/GuestDebugControlImpl.cpp \
|
---|
653 | src-server/GuestOSTypeImpl.cpp \
|
---|
654 | src-server/HostDnsService.cpp \
|
---|
655 | src-server/HostImpl.cpp \
|
---|
656 | src-server/HostX86Impl.cpp \
|
---|
657 | src-server/HostAudioDeviceImpl.cpp \
|
---|
658 | src-server/HostNetworkInterfaceImpl.cpp \
|
---|
659 | src-server/HostPower.cpp \
|
---|
660 | $(if $(VBOX_WITH_LIBCURL), \
|
---|
661 | $(if $(VBOX_WITH_UPDATE_AGENT), \
|
---|
662 | src-server/UpdateAgentImpl.cpp,), \
|
---|
663 | ) \
|
---|
664 | src-server/HostVideoInputDeviceImpl.cpp \
|
---|
665 | src-server/HostDrivePartitionImpl.cpp \
|
---|
666 | src-server/HostDriveImpl.cpp \
|
---|
667 | src-server/MachineImpl.cpp \
|
---|
668 | src-all/MachineLaunchVMCommonWorker.cpp \
|
---|
669 | src-server/MachineImplCloneVM.cpp \
|
---|
670 | src-server/MachineImplMoveVM.cpp \
|
---|
671 | src-server/Matching.cpp \
|
---|
672 | src-server/MediumAttachmentImpl.cpp \
|
---|
673 | src-server/MediumFormatImpl.cpp \
|
---|
674 | src-server/MediumImpl.cpp \
|
---|
675 | src-server/MediumLock.cpp \
|
---|
676 | src-server/MediumIOImpl.cpp \
|
---|
677 | src-server/NATEngineImpl.cpp \
|
---|
678 | src-server/NetworkAdapterImpl.cpp \
|
---|
679 | src-server/ParallelPortImpl.cpp \
|
---|
680 | src-server/PlatformBase.cpp \
|
---|
681 | src-server/PlatformImpl.cpp \
|
---|
682 | $(if $(VBOX_WITH_VIRT_ARMV8), src-server/PlatformARMImpl.cpp,) \
|
---|
683 | src-server/PlatformX86Impl.cpp \
|
---|
684 | src-server/ProgressProxyImpl.cpp \
|
---|
685 | src-server/SerialPortImpl.cpp \
|
---|
686 | src-server/SnapshotImpl.cpp \
|
---|
687 | src-server/StorageControllerImpl.cpp \
|
---|
688 | src-server/SystemPropertiesImpl.cpp \
|
---|
689 | src-server/TokenImpl.cpp \
|
---|
690 | src-server/TrustedPlatformModuleImpl.cpp \
|
---|
691 | src-server/UefiVariableStoreImpl.cpp \
|
---|
692 | $(if $(VBOX_WITH_UNATTENDED), \
|
---|
693 | src-server/UnattendedImpl.cpp \
|
---|
694 | src-server/UnattendedInstaller.cpp \
|
---|
695 | src-server/UnattendedOs2Installer.cpp \
|
---|
696 | src-server/UnattendedScript.cpp \
|
---|
697 | src-all/TextScript.cpp \
|
---|
698 | ,) \
|
---|
699 | src-server/USBControllerImpl.cpp \
|
---|
700 | src-server/USBDeviceFiltersImpl.cpp \
|
---|
701 | src-server/VFSExplorerImpl.cpp \
|
---|
702 | src-server/VirtualBoxImpl.cpp \
|
---|
703 | src-server/VRDEServerImpl.cpp \
|
---|
704 | src-server/generic/AutostartDb-generic.cpp \
|
---|
705 | xml/ovfreader.cpp \
|
---|
706 | xml/Settings.cpp \
|
---|
707 | $(VBOX_XML_SCHEMADEFS_CPP) \
|
---|
708 | $(VBOX_AUTOGEN_EVENT_CPP) \
|
---|
709 | $(VBOX_AUTOGEN_STRINGIFY_ENUMS_CPP) \
|
---|
710 | $(if $(VBOX_WITH_XPCOM),src-server/xpcom/server.cpp,)
|
---|
711 |
|
---|
712 | ifdef VBOX_WITH_MAIN_NLS
|
---|
713 | VBoxSVC_SOURCES += \
|
---|
714 | src-all/VirtualBoxTranslator.cpp \
|
---|
715 | src-all/QMTranslatorImpl.cpp
|
---|
716 | endif
|
---|
717 |
|
---|
718 | ifn1of ($(KBUILD_TARGET), win darwin)
|
---|
719 | VBoxSVC_SOURCES += $(PATH_ROOT)/src/VBox/Devices/Network/slirp/resolv_conf_parser.c
|
---|
720 | #$(PATH_ROOT)/src/VBox/Devices/Network/slirp/resolv_conf_parser.c_DEFS += LOG_GROUP=LOG_GROUP_MAIN
|
---|
721 | endif
|
---|
722 |
|
---|
723 | VBoxSVC_SOURCES.darwin = \
|
---|
724 | src-server/darwin/iokit.cpp \
|
---|
725 | src-server/darwin/HostPowerDarwin.cpp \
|
---|
726 | src-server/darwin/HostDnsServiceDarwin.cpp
|
---|
727 | ifdef VBOX_WITH_VMNET
|
---|
728 | VBoxSVC_SOURCES.darwin += \
|
---|
729 | src-server/HostOnlyNetworkImpl.cpp
|
---|
730 | endif
|
---|
731 |
|
---|
732 | VBoxSVC_SOURCES.win = \
|
---|
733 | src-server/win/svcmain.cpp \
|
---|
734 | src-server/win/svchlp.cpp \
|
---|
735 | src-server/win/HostPowerWin.cpp \
|
---|
736 | src-server/win/VBoxSVC.rc \
|
---|
737 | src-server/win/HostDnsServiceWin.cpp
|
---|
738 |
|
---|
739 | VBoxSVC_SOURCES.linux = \
|
---|
740 | src-server/linux/HostHardwareLinux.cpp \
|
---|
741 | src-server/linux/HostDnsServiceLinux.cpp \
|
---|
742 | $(if $(VBOX_WITH_DBUS),src-server/linux/HostPowerLinux.cpp) \
|
---|
743 | src-server/HostDnsServiceResolvConf.cpp
|
---|
744 |
|
---|
745 | VBoxSVC_SOURCES.solaris = \
|
---|
746 | src-server/linux/vbox-libhal.cpp \
|
---|
747 | src-server/solaris/DynLoadLibSolaris.cpp \
|
---|
748 | src-server/HostDnsServiceResolvConf.cpp
|
---|
749 |
|
---|
750 | VBoxSVC_SOURCES.os2 = \
|
---|
751 | src-server/HostDnsServiceResolvConf.cpp
|
---|
752 |
|
---|
753 | VBoxSVC_SOURCES.freebsd = \
|
---|
754 | src-server/freebsd/HostHardwareFreeBSD.cpp \
|
---|
755 | src-server/HostDnsServiceResolvConf.cpp
|
---|
756 |
|
---|
757 | VBoxSVC_LDFLAGS.freebsd += -lcam
|
---|
758 |
|
---|
759 |
|
---|
760 | ifdef VBOX_WITH_USB
|
---|
761 | ifdef VBOX_WITH_SYSFS_BY_DEFAULT
|
---|
762 | src-server/linux/USBProxyBackendLinux.cpp_DEFS += VBOX_WITH_SYSFS_BY_DEFAULT
|
---|
763 | endif
|
---|
764 | VBoxSVC_SOURCES += \
|
---|
765 | src-server/USBDeviceFilterImpl.cpp \
|
---|
766 | src-server/USBProxyService.cpp \
|
---|
767 | src-server/USBProxyBackend.cpp \
|
---|
768 | src-server/generic/USBProxyBackendUsbIp.cpp \
|
---|
769 | src-server/HostUSBDeviceImpl.cpp
|
---|
770 | VBoxSVC_SOURCES.darwin += src-server/darwin/USBProxyBackendDarwin.cpp
|
---|
771 | VBoxSVC_SOURCES.linux += src-server/linux/USBProxyBackendLinux.cpp
|
---|
772 | VBoxSVC_SOURCES.linux += src-server/linux/USBGetDevices.cpp
|
---|
773 | VBoxSVC_SOURCES.os2 += src-server/os2/USBProxyBackendOs2.cpp
|
---|
774 | VBoxSVC_SOURCES.solaris += src-server/solaris/USBProxyBackendSolaris.cpp
|
---|
775 | VBoxSVC_SOURCES.win += src-server/win/USBProxyBackendWindows.cpp
|
---|
776 | VBoxSVC_SOURCES.freebsd += src-server/freebsd/USBProxyBackendFreeBSD.cpp
|
---|
777 | endif
|
---|
778 |
|
---|
779 | ifdef VBOX_WITH_NETFLT
|
---|
780 | VBoxSVC_SDKS.win += VBoxWinNewDevLib
|
---|
781 | VBoxSVC_LIBS.win += \
|
---|
782 | $(PATH_STAGE_LIB)/WinNetConfigDll$(VBOX_SUFF_LIB) \
|
---|
783 | $(PATH_STAGE_LIB)/VBoxDrvCfgDll$(VBOX_SUFF_LIB) \
|
---|
784 | $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/comsupp.lib \
|
---|
785 | $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/WbemUuid.Lib
|
---|
786 | endif
|
---|
787 | VBoxSVC_LDFLAGS.darwin = -framework IOKit -framework SystemConfiguration
|
---|
788 |
|
---|
789 | ifdef VBOX_WITH_3D_ACCELERATION
|
---|
790 | VBoxSVC_DEFS += VBOX_WITH_3D_ACCELERATION
|
---|
791 | endif
|
---|
792 |
|
---|
793 | ifeq ($(KBUILD_TYPE),debug)
|
---|
794 | VBoxSVC_LDFLAGS.linux += -rdynamic # for backtrace_symbols()
|
---|
795 | endif
|
---|
796 |
|
---|
797 | ifdef VBOX_WITH_RESOURCE_USAGE_API
|
---|
798 | VBoxSVC_SOURCES += \
|
---|
799 | src-server/PerformanceImpl.cpp \
|
---|
800 | src-server/Performance.cpp
|
---|
801 | VBoxSVC_SOURCES.darwin += src-server/darwin/PerformanceDarwin.cpp
|
---|
802 | VBoxSVC_SOURCES.freebsd += src-server/freebsd/PerformanceFreeBSD.cpp
|
---|
803 | VBoxSVC_SOURCES.linux += src-server/linux/PerformanceLinux.cpp
|
---|
804 | VBoxSVC_SOURCES.os2 += src-server/os2/PerformanceOs2.cpp
|
---|
805 | VBoxSVC_SOURCES.solaris += src-server/solaris/PerformanceSolaris.cpp
|
---|
806 | VBoxSVC_SOURCES.win += src-server/win/PerformanceWin.cpp
|
---|
807 | VBoxSVC_LDFLAGS.darwin += -lproc
|
---|
808 | VBoxSVC_LDFLAGS.solaris += -lkstat -lnvpair
|
---|
809 | VBoxSVC_LDFLAGS.win += psapi.lib powrprof.lib
|
---|
810 | endif
|
---|
811 |
|
---|
812 | ifdef VBOX_WITH_HOSTNETIF_API
|
---|
813 | VBoxSVC_SOURCES.win += src-server/win/NetIf-win.cpp
|
---|
814 | VBoxSVC_SOURCES.linux += src-server/linux/NetIf-linux.cpp
|
---|
815 | VBoxSVC_SOURCES.os2 += src-server/os2/NetIf-os2.cpp
|
---|
816 | VBoxSVC_SOURCES.darwin += src-server/darwin/NetIf-darwin.cpp
|
---|
817 | VBoxSVC_SOURCES.solaris += src-server/solaris/NetIf-solaris.cpp
|
---|
818 | VBoxSVC_SOURCES.freebsd += src-server/freebsd/NetIf-freebsd.cpp
|
---|
819 | VBoxSVC_DEFS += VBOX_WITH_HOSTNETIF_API
|
---|
820 | if1of ($(KBUILD_TARGET), linux darwin solaris freebsd)
|
---|
821 | VBoxSVC_SOURCES += src-server/generic/NetIf-generic.cpp
|
---|
822 | endif
|
---|
823 | endif
|
---|
824 |
|
---|
825 | $(call KB_FN_DO_PASS0_ON_TARGET,VBoxSVC) # Sets VBoxSVC_0_OUTDIR
|
---|
826 |
|
---|
827 | ifdef VBOX_WITH_MAIN_USB_ID_DATABASE # Generate a database of USB vendor IDs and device IDs.
|
---|
828 | VBoxSVC_DEFS += VBOX_WITH_MAIN_USB_ID_DATABASE
|
---|
829 | VBoxSVC_SOURCES += $(VBoxSVC_0_OUTDIR)/USBIdDatabase.cpp
|
---|
830 | VBoxSVC_CLEAN += $(VBoxSVC_0_OUTDIR)/USBIdDatabase.cpp
|
---|
831 |
|
---|
832 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxSVC_0_OUTDIR)/USBIdDatabase.cpp)
|
---|
833 | $(VBoxSVC_0_OUTDIR)/USBIdDatabase.cpp: $$(USBIdDatabaseGenerator_1_TARGET) \
|
---|
834 | $(PATH_SUB_CURRENT)/src-server/usb.ids $(PATH_SUB_CURRENT)/src-server/custom.ids | $$(dir $$@)
|
---|
835 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
836 | $(call MSG_GENERATE,USBIdDatabase,$@,$(USBIdDatabaseGenerator_1_TARGET))
|
---|
837 | $(QUIET)$(USBIdDatabaseGenerator_1_TARGET) -o "$@" $(filter %.ids,$^)
|
---|
838 |
|
---|
839 | BLDPROGS += USBIdDatabaseGenerator
|
---|
840 | USBIdDatabaseGenerator_TEMPLATE = VBoxAdvBldProg
|
---|
841 | USBIdDatabaseGenerator_SOURCES = src-server/USBIdDatabaseGenerator.cpp
|
---|
842 | else
|
---|
843 | VBoxSVC_SOURCES += src-server/USBIdDatabaseStub.cpp
|
---|
844 | endif
|
---|
845 |
|
---|
846 | src-server/win/VBoxSVC.rc_INCS = $(VBoxSVC_0_OUTDIR)
|
---|
847 | src-server/win/VBoxSVC.rc_DEPS = $(VBoxSVC_0_OUTDIR)/VBoxSVC-icon.rc
|
---|
848 | VBoxSVC_CLEAN += $(VBoxSVC_0_OUTDIR)/VBoxSVC-icon.rc
|
---|
849 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxSVC_0_OUTDIR)/VBoxSVC-icon.rc)
|
---|
850 | $(VBoxSVC_0_OUTDIR)/VBoxSVC-icon.rc: $(VBOX_WINDOWS_ICON_FILE) | $$(dir $$@)
|
---|
851 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
852 | $(APPEND) -t $@ '1 ICON DISCARDABLE "$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))"'
|
---|
853 |
|
---|
854 | ifndef VBOX_WITH_MIDL_PROXY_STUB
|
---|
855 | src-server/win/VBoxSVC.rc_DEPS += $(VBoxSVC_0_OUTDIR)/VBoxSVC.rgs
|
---|
856 | VBoxSVC_CLEAN += $(VBoxSVC_0_OUTDIR)/VBoxSVC.rgs
|
---|
857 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxSVC_0_OUTDIR)/VBoxSVC.rgs)
|
---|
858 | $(VBoxSVC_0_OUTDIR)/VBoxSVC.rgs: $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
|
---|
859 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
860 | $(VBOX_XSLTPROC) \
|
---|
861 | --stringparam Application VirtualBox \
|
---|
862 | --stringparam Module VBoxSVC \
|
---|
863 | -o $@ \
|
---|
864 | $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl \
|
---|
865 | $(VBOX_XIDL_FILE)
|
---|
866 | endif
|
---|
867 |
|
---|
868 | ## @todo r=klaus unfortunately we don't have xmllint everywhere, would be
|
---|
869 | # good to check the validity for every VirtualBox.xidl change.
|
---|
870 | #$(VBOX_XIDL_FILE).validated.ts: $(VBOX_XIDL_FILE_SRC)
|
---|
871 | # xmllint --dtdvalid $(VBOX_PATH_MAIN_SRC)/idl/VirtualBox.dtd --noout $<
|
---|
872 | # $(QUIET)$(CP) --changed -fv $< $(VBOX_XIDL_FILE).validated.ts
|
---|
873 | #
|
---|
874 | #OTHERS += $(VBOX_XIDL_FILE).validated.ts
|
---|
875 | #OTHER_CLEAN += $(VBOX_XIDL_FILE).validated.ts
|
---|
876 |
|
---|
877 | testvalidxidl: $(VBOX_XIDL_FILE_SRC)
|
---|
878 | xmllint --dtdvalid $(VBOX_PATH_MAIN_SRC)/idl/VirtualBox.dtd --noout $<
|
---|
879 |
|
---|
880 |
|
---|
881 | #
|
---|
882 | # Embed some constraints from XML Schema file into VBoxSVC
|
---|
883 | #
|
---|
884 | VBOX_XML_SCHEMA = $(VBOX_PATH_MAIN_SRC)/xml/VirtualBox-settings.xsd
|
---|
885 |
|
---|
886 | $(VBOX_XML_SCHEMADEFS_H): $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA) | $$(dir $$@)
|
---|
887 | $(call MSG_GENERATE,SchemaDefs,$@,$<)
|
---|
888 | $(QUIET)$(VBOX_XSLTPROC) --stringparam mode declare -o $@ $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA)
|
---|
889 |
|
---|
890 | $(VBOX_XML_SCHEMADEFS_CPP): $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA) | $$(dir $$@)
|
---|
891 | $(call MSG_GENERATE,SchemaDefs,$@,$<)
|
---|
892 | $(QUIET)$(VBOX_XSLTPROC) --stringparam mode define -o $@ $(VBOX_XML_SCHEMADEFS_XSL) $(VBOX_XML_SCHEMA)
|
---|
893 |
|
---|
894 | testvalidsettings: $(VBOX_XML_SCHEMA)
|
---|
895 | xmllint --schema $< --noout $(HOME)/.VirtualBox/VirtualBox.xml
|
---|
896 | xmllint --schema $< --noout $(HOME)/.VirtualBox/Machines/*/*.xml
|
---|
897 | xmllint --schema $< --noout $(HOME)/.VirtualBox/Machines/*/*.vbox
|
---|
898 | xmllint --schema $< --noout $(HOME)/VirtualBox\ VMs/*/*.vbox
|
---|
899 |
|
---|
900 | OTHER_CLEAN += $(VBOX_XML_SCHEMADEFS_H) $(VBOX_XML_SCHEMADEFS_CPP)
|
---|
901 |
|
---|
902 |
|
---|
903 | #
|
---|
904 | # Generate some event stuff for VBoxSVC and VBoxC.
|
---|
905 | #
|
---|
906 |
|
---|
907 | # Events
|
---|
908 | $(call KB_FN_AUTO_CMD_DEPS,$(VBOX_AUTOGEN_EVENT_H).ts)
|
---|
909 | $(VBOX_AUTOGEN_EVENT_H).ts +| $(VBOX_AUTOGEN_EVENT_H): $(VBOX_PATH_MAIN_SRC)/idl/comimpl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
|
---|
910 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
911 | $(call MSG_TOOL,xsltproc,autogen events,$<,$@)
|
---|
912 | $(QUIET)$(VBOX_XSLTPROC) --stringparam G_kind VBoxEventHeader -o "$@" "$(VBOX_PATH_MAIN_SRC)/idl/comimpl.xsl" "$(VBOX_XIDL_FILE)"
|
---|
913 | $(QUIET)$(CP) --changed -fv -- "$@" "$(VBOX_AUTOGEN_EVENT_H)"
|
---|
914 |
|
---|
915 | $(call KB_FN_AUTO_CMD_DEPS,$(VBOX_AUTOGEN_EVENT_CPP).ts)
|
---|
916 | $(VBOX_AUTOGEN_EVENT_CPP).ts +| $(VBOX_AUTOGEN_EVENT_CPP): $(VBOX_PATH_MAIN_SRC)/idl/comimpl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
|
---|
917 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
918 | $(call MSG_TOOL,xsltproc,autogen events,$<,$@)
|
---|
919 | $(QUIET)$(VBOX_XSLTPROC) --stringparam G_kind VBoxEvent -o "$@" "$(VBOX_PATH_MAIN_SRC)/idl/comimpl.xsl" "$(VBOX_XIDL_FILE)"
|
---|
920 | $(QUIET)$(CP) --changed -fv -- "$@" "$(VBOX_AUTOGEN_EVENT_CPP)"
|
---|
921 |
|
---|
922 | OTHER_CLEAN += $(VBOX_AUTOGEN_EVENT_H).ts $(VBOX_AUTOGEN_EVENT_H) $(VBOX_AUTOGEN_EVENT_CPP).ts $(VBOX_AUTOGEN_EVENT_CPP)
|
---|
923 |
|
---|
924 | # Enum stringifiers
|
---|
925 | $(call KB_FN_AUTO_CMD_DEPS,$(VBOX_AUTOGEN_STRINGIFY_ENUMS_H).ts)
|
---|
926 | $(VBOX_AUTOGEN_STRINGIFY_ENUMS_H).ts +| $(VBOX_AUTOGEN_STRINGIFY_ENUMS_H): $(VBOX_PATH_MAIN_SRC)/idl/stringify-enums.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
|
---|
927 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
928 | $(call MSG_TOOL,xsltproc,autogen enum stringifiers,$<,$@)
|
---|
929 | $(QUIET)$(VBOX_XSLTPROC) --stringparam G_kind header -o "$@" "$(VBOX_PATH_MAIN_SRC)/idl/stringify-enums.xsl" "$(VBOX_XIDL_FILE)"
|
---|
930 | $(QUIET)$(CP) --changed -fv -- "$@" "$(VBOX_AUTOGEN_STRINGIFY_ENUMS_H)"
|
---|
931 |
|
---|
932 | $(call KB_FN_AUTO_CMD_DEPS,$(VBOX_AUTOGEN_STRINGIFY_ENUMS_CPP).ts)
|
---|
933 | $(VBOX_AUTOGEN_STRINGIFY_ENUMS_CPP).ts +| $(VBOX_AUTOGEN_STRINGIFY_ENUMS_CPP): $(VBOX_PATH_MAIN_SRC)/idl/stringify-enums.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
|
---|
934 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
935 | $(call MSG_TOOL,xsltproc,autogen enum stringifiers,$<,$@)
|
---|
936 | $(QUIET)$(VBOX_XSLTPROC) --stringparam G_kind source -o "$@" "$(VBOX_PATH_MAIN_SRC)/idl/stringify-enums.xsl" "$(VBOX_XIDL_FILE)"
|
---|
937 | $(QUIET)$(CP) --changed -fv -- "$@" "$(VBOX_AUTOGEN_STRINGIFY_ENUMS_CPP)"
|
---|
938 |
|
---|
939 | OTHER_CLEAN += $(VBOX_AUTOGEN_STRINGIFY_ENUMS_H).ts $(VBOX_AUTOGEN_STRINGIFY_ENUMS_H) $(VBOX_AUTOGEN_STRINGIFY_ENUMS_CPP).ts $(VBOX_AUTOGEN_STRINGIFY_ENUMS_CPP)
|
---|
940 |
|
---|
941 | ifdef VBOX_WITH_XPCOM
|
---|
942 | #
|
---|
943 | # VBoxSVCM - VBoxSVC wrapper module
|
---|
944 | #
|
---|
945 | DLLS += VBoxSVCM
|
---|
946 | VBoxSVCM_TEMPLATE = VBoxMainComp
|
---|
947 | VBoxSVCM_DEFS = IN_RING3 $(VBOX_MAIN_DEFS)
|
---|
948 | ifdef VBOX_WITH_HARDENING
|
---|
949 | VBoxSVCM_DEFS += VBOX_WITH_HARDENING
|
---|
950 | endif
|
---|
951 | VBoxSVCM_INCS = \
|
---|
952 | include \
|
---|
953 | $(VBoxC_0_OUTDIR) \
|
---|
954 | .
|
---|
955 | VBoxSVCM_INTERMEDIATES = $(VBOX_MAIN_PREREQS)
|
---|
956 | VBoxSVCM_SOURCES = \
|
---|
957 | src-server/xpcom/server_module.cpp
|
---|
958 | VBoxSVCM_LDFLAGS.darwin = \
|
---|
959 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/components/VBoxSVCM.dylib \
|
---|
960 | -exported_symbols_list $(VBoxSVCM_0_OUTDIR)/VBoxSVCM.def
|
---|
961 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
962 | VBoxSVCM_ORDERDEPS += $(VBoxSVCM_0_OUTDIR)/VBoxSVCM.def
|
---|
963 | VBoxSVCM_CLEAN += $(VBoxSVCM_0_OUTDIR)/VBoxSVCM.def
|
---|
964 | $$(VBoxSVCM_0_OUTDIR)/VBoxSVCM.def:
|
---|
965 | $(RM) -f $@
|
---|
966 | $(APPEND) $@ _NSGetModule
|
---|
967 | endif
|
---|
968 | VBoxSVCM_INTERMEDIATES += $(VBOX_IDL_HEADER.XPCOM)
|
---|
969 |
|
---|
970 | # 32-bit version of the module.
|
---|
971 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
972 | DLLS += VBoxSVCM-x86
|
---|
973 | VBoxSVCM-x86_TEMPLATE = VBoxMainComp-x86
|
---|
974 | VBoxSVCM-x86_EXTENDS = VBoxSVCM
|
---|
975 | endif
|
---|
976 |
|
---|
977 | endif # VBOX_WITH_XPCOM
|
---|
978 |
|
---|
979 |
|
---|
980 | #
|
---|
981 | # VBoxC module
|
---|
982 | #
|
---|
983 | DLLS += VBoxC
|
---|
984 | VBoxC_TEMPLATE = VBoxMainComp
|
---|
985 | if defined(VBOX_WITH_PRECOMPILED_HEADERS) && "$(KBUILD_TARGET)" == "win"
|
---|
986 | VBoxC_USES = vccprecomp
|
---|
987 | VBoxC_PCH_HDR := $(PATH_SUB_CURRENT)/src-client/win/precomp_vcc.h
|
---|
988 | else if $(KBUILD_KMK_REVISION) >= 3256 && "$(KBUILD_TARGET)" != "darwin" && !defined(VBOX_WITHOUT_PRECOMPILED_HEADERS)
|
---|
989 | if $(VBOX_GCC_VERSION_CXX) >= 50000 # GCC 4.x runs into trouble compiling the header.
|
---|
990 | VBoxC_USES += gccprecomp
|
---|
991 | VBoxC_PCH_HDR := $(PATH_SUB_CURRENT)/src-client/xpcom/precomp_gcc.h
|
---|
992 | endif
|
---|
993 | endif
|
---|
994 | VBoxC_DEFS = \
|
---|
995 | IN_RING3 \
|
---|
996 | $(VBOX_MAIN_DEFS) \
|
---|
997 | VBOX_COM_INPROC \
|
---|
998 | $(if $(VBOX_WITH_EFI),VBOX_WITH_EFI,) \
|
---|
999 | $(if $(VBOX_WITH_HGSMI),VBOX_WITH_HGSMI,) \
|
---|
1000 | $(if $(VBOX_WITH_VIDEOHWACCEL),VBOX_WITH_VIDEOHWACCEL,) \
|
---|
1001 | $(if $(VBOX_WITH_DRAG_AND_DROP),VBOX_WITH_DRAG_AND_DROP,) \
|
---|
1002 | $(if $(VBOX_WITH_DRAG_AND_DROP_GH),VBOX_WITH_DRAG_AND_DROP_GH,) \
|
---|
1003 | $(if $(VBOX_WITH_USB),VBOX_WITH_USB,) \
|
---|
1004 | $(if $(VBOX_WITH_VRDEAUTH_IN_VBOXSVC),VBOX_WITH_VRDEAUTH_IN_VBOXSVC,) \
|
---|
1005 | $(if $(VBOX_WITH_IOMMU_AMD),VBOX_WITH_IOMMU_AMD,) \
|
---|
1006 | $(if $(VBOX_WITH_IOMMU_INTEL),VBOX_WITH_IOMMU_INTEL,) \
|
---|
1007 | $(if $(VBOX_WITH_TPM),VBOX_WITH_TPM,) \
|
---|
1008 | $(if $(VBOX_WITH_FULL_VM_ENCRYPTION),VBOX_WITH_FULL_VM_ENCRYPTION,) \
|
---|
1009 | $(if $(VBOX_WITH_VIRT_ARMV8),VBOX_WITH_VIRT_ARMV8,)
|
---|
1010 | ifdef VBOX_WITH_NETSHAPER
|
---|
1011 | VBoxC_DEFS += VBOX_WITH_NETSHAPER
|
---|
1012 | endif
|
---|
1013 | VBoxC_DEFS.darwin.x86 = VBOX_WITH_2X_4GB_ADDR_SPACE
|
---|
1014 | VBoxC_DEFS.win.x86 += _WIN32_WINNT=0x0500
|
---|
1015 | VBoxC_DEFS.win.amd64 += _WIN32_WINNT=0x0510
|
---|
1016 |
|
---|
1017 | if $(KBUILD_TARGET) != "win" && $(VBOX_GCC_VERSION_CXX) >= 40900 # gcc 4.9.x (4.8.x is causing endless RT_ELEMENT trouble)
|
---|
1018 | # VBoxC_CXXFLAGS = -Wunused -Wconversion
|
---|
1019 | endif
|
---|
1020 |
|
---|
1021 | VBoxC_SDKS = VBoxLibPng VBoxZlib
|
---|
1022 |
|
---|
1023 | ifdef VBOX_WITH_RECORDING
|
---|
1024 | ifdef VBOX_WITH_LIBVPX
|
---|
1025 | VBoxC_SDKS += VBoxLibVpx
|
---|
1026 | VBoxC_DEFS += VBOX_WITH_LIBVPX
|
---|
1027 | endif
|
---|
1028 | VBoxC_SOURCES += \
|
---|
1029 | src-client/EBMLWriter.cpp \
|
---|
1030 | src-client/WebMWriter.cpp \
|
---|
1031 | src-client/Recording.cpp \
|
---|
1032 | src-client/RecordingInternals.cpp \
|
---|
1033 | src-client/RecordingCodec.cpp \
|
---|
1034 | src-client/RecordingStream.cpp \
|
---|
1035 | src-client/RecordingUtils.cpp
|
---|
1036 |
|
---|
1037 | ifdef VBOX_WITH_AUDIO_RECORDING
|
---|
1038 | VBoxC_DEFS += VBOX_WITH_AUDIO_RECORDING
|
---|
1039 | # Needed in VBoxSVC for ISystemProperties.
|
---|
1040 | src-server/SystemPropertiesImpl.cpp_DEFS += VBOX_WITH_AUDIO_RECORDING
|
---|
1041 | ifdef VBOX_WITH_LIBOGG
|
---|
1042 | VBOX_MAIN_DEFS += VBOX_WITH_LIBOGG
|
---|
1043 | VBoxC_SDKS += VBoxLibOgg
|
---|
1044 | VBoxC_DEFS += VBOX_WITH_LIBOGG
|
---|
1045 | ## @todo We need this for libvorbis down below. Remove once the libvorbis @todo is resolved.
|
---|
1046 | VBoxSVC_SDKS += VBoxLibOgg
|
---|
1047 | endif
|
---|
1048 | ifdef VBOX_WITH_LIBVORBIS
|
---|
1049 | VBOX_MAIN_DEFS += VBOX_WITH_LIBVORBIS
|
---|
1050 | VBoxC_SDKS += VBoxLibVorbis
|
---|
1051 | ## @todo We also need to specify this for VBoxSVC, as we need to have VBOX_WITH_LIBVORBIS defined
|
---|
1052 | ## for SystemProperties::getSupportedRecordingAudioCodecs().
|
---|
1053 | # SystemPropertiesImpl_DEFS += VBOX_WITH_LIBVORBIS didn't work for precompiled headers on Windows --
|
---|
1054 | # needs to be solved properly so that we can remove the following _SDKS from VBoxSVC again.
|
---|
1055 | VBoxSVC_SDKS += VBoxLibVorbis
|
---|
1056 | endif
|
---|
1057 | VBoxC_SOURCES += src-client/DrvAudioRec.cpp
|
---|
1058 | endif # VBOX_WITH_AUDIO_RECORDING
|
---|
1059 | endif # VBOX_WITH_RECORDING
|
---|
1060 |
|
---|
1061 | ifdef VBOX_WITH_OPENSSL_FIPS
|
---|
1062 | VBoxC_SDKS += VBoxOpenSsl
|
---|
1063 | endif
|
---|
1064 |
|
---|
1065 | VBoxC_INCS = \
|
---|
1066 | include \
|
---|
1067 | $(VBoxC_0_OUTDIR) \
|
---|
1068 | $(VBOX_MAIN_APIWRAPPER_INCS) \
|
---|
1069 | $(dir $(VBOX_XML_SCHEMADEFS_H)) \
|
---|
1070 | $(VBOX_MAIN_APIWRAPPER_DIR)/dtrace \
|
---|
1071 | $(VBOX_GRAPHICS_INCS)
|
---|
1072 | VBoxC_INCS.win = \
|
---|
1073 | $(VBoxCOM_0_OUTDIR) \
|
---|
1074 | .
|
---|
1075 |
|
---|
1076 | VBoxC_LDFLAGS.darwin = \
|
---|
1077 | -install_name $(VBOX_DYLD_EXECUTABLE_PATH)/components/VBoxC.dylib \
|
---|
1078 | -exported_symbols_list $(VBoxC_0_OUTDIR)/VBoxC.def \
|
---|
1079 | -framework IOKit
|
---|
1080 | VBoxC_LDFLAGS.win += /MANIFEST \
|
---|
1081 | /DELAYLOAD:user32.dll
|
---|
1082 |
|
---|
1083 |
|
---|
1084 | VBoxC_LIBS += \
|
---|
1085 | $(PATH_STAGE_LIB)/VBoxAPIWrap$(VBOX_SUFF_LIB)
|
---|
1086 | VBoxC_LIBS.win += \
|
---|
1087 | $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/psapi.lib \
|
---|
1088 | $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/delayimp.lib
|
---|
1089 | ifdef VBOX_WITH_NETFLT
|
---|
1090 | VBoxC_SDKS.win += VBoxWinNewDevLib
|
---|
1091 | VBoxC_LIBS.win += \
|
---|
1092 | $(PATH_STAGE_LIB)/WinNetConfigDll$(VBOX_SUFF_LIB) \
|
---|
1093 | $(PATH_STAGE_LIB)/VBoxDrvCfgDll$(VBOX_SUFF_LIB) \
|
---|
1094 | $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/comsupp.lib \
|
---|
1095 | $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/WbemUuid.Lib
|
---|
1096 | VBoxC_LDFLAGS.win += \
|
---|
1097 | /DELAYLOAD:newdev.dll \
|
---|
1098 | /DELAYLOAD:setupapi.dll \
|
---|
1099 | /DELAYLOAD:iphlpapi.dll
|
---|
1100 | endif
|
---|
1101 |
|
---|
1102 | ifdef VBOX_WITH_DRAG_AND_DROP
|
---|
1103 | VBoxC_LIBS += $(PATH_STAGE_LIB)/VBoxDnDHostR3Lib$(VBOX_SUFF_LIB)
|
---|
1104 | endif
|
---|
1105 |
|
---|
1106 | VBoxC_INTERMEDIATES = \
|
---|
1107 | $(VBOX_MAIN_PREREQS) \
|
---|
1108 | $(VBOX_XML_SCHEMADEFS_H) \
|
---|
1109 | $(VBOX_AUTOGEN_EVENT_H) \
|
---|
1110 | $(VBOX_AUTOGEN_STRINGIFY_ENUMS_H) \
|
---|
1111 | $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
|
---|
1112 |
|
---|
1113 | VBoxC_SOURCES += \
|
---|
1114 | $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d \
|
---|
1115 | src-all/CryptoUtils.cpp \
|
---|
1116 | src-all/ConsoleSharedFolderImpl.cpp \
|
---|
1117 | src-all/DisplayPNGUtil.cpp \
|
---|
1118 | src-all/DisplayResampleImage.cpp \
|
---|
1119 | src-all/EventImpl.cpp \
|
---|
1120 | src-all/Global.cpp \
|
---|
1121 | src-all/GlobalStatusConversion.cpp \
|
---|
1122 | src-all/HashedPw.cpp \
|
---|
1123 | src-all/Logging.cpp \
|
---|
1124 | src-all/NvramStoreImpl.cpp \
|
---|
1125 | src-all/PCIDeviceAttachmentImpl.cpp \
|
---|
1126 | src-all/PlatformPropertiesImpl.cpp \
|
---|
1127 | src-all/ProgressImpl.cpp \
|
---|
1128 | src-all/SecretKeyStore.cpp \
|
---|
1129 | src-all/AutoCaller.cpp \
|
---|
1130 | src-all/ThreadTask.cpp \
|
---|
1131 | src-all/VirtualBoxBase.cpp \
|
---|
1132 | src-all/VirtualBoxErrorInfoImpl.cpp \
|
---|
1133 | $(if $(VBOX_WITH_EXTPACK),src-all/ExtPackManagerImpl.cpp src-all/ExtPackUtil.cpp,) \
|
---|
1134 | src-client/UsbWebcamInterface.cpp \
|
---|
1135 | $(if $(VBOX_WITH_USB_CARDREADER),src-client/UsbCardReader.cpp,) \
|
---|
1136 | src-client/AdditionsFacilityImpl.cpp \
|
---|
1137 | src-client/BusAssignmentManager.cpp \
|
---|
1138 | $(if $(VBOX_WITH_PCI_PASSTHROUGH),src-client/PCIRawDevImpl.cpp,) \
|
---|
1139 | src-client/ClientTokenHolder.cpp \
|
---|
1140 | src-client/ConsoleImpl.cpp \
|
---|
1141 | src-client/ConsoleImplConfigCommon.cpp \
|
---|
1142 | src-client/ConsoleImplConfigX86.cpp \
|
---|
1143 | $(if $(VBOX_WITH_VIRT_ARMV8),src-client/ConsoleImplConfigArmV8.cpp,) \
|
---|
1144 | src-client/ConsoleImplTeleporter.cpp \
|
---|
1145 | src-client/ConsoleVRDPServer.cpp \
|
---|
1146 | src-client/DisplayImpl.cpp \
|
---|
1147 | src-client/DisplayImplLegacy.cpp \
|
---|
1148 | src-client/DisplaySourceBitmapImpl.cpp \
|
---|
1149 | src-client/EmulatedUSBImpl.cpp \
|
---|
1150 | src-client/GuestImpl.cpp \
|
---|
1151 | src-client/GuestCtrlImpl.cpp \
|
---|
1152 | src-client/KeyboardImpl.cpp \
|
---|
1153 | src-client/MachineDebuggerImpl.cpp \
|
---|
1154 | src-client/MouseImpl.cpp \
|
---|
1155 | src-client/RemoteUSBDeviceImpl.cpp \
|
---|
1156 | $(if $(VBOX_WITH_VIRT_ARMV8),src-client/ResourceAssignmentManager.cpp,) \
|
---|
1157 | $(if $(VBOX_WITH_VIRT_ARMV8),src-client/ResourceStoreImpl.cpp,) \
|
---|
1158 | src-client/SessionImpl.cpp \
|
---|
1159 | src-client/USBDeviceImpl.cpp \
|
---|
1160 | src-client/VBoxDriversRegister.cpp \
|
---|
1161 | src-client/VirtualBoxClientImpl.cpp \
|
---|
1162 | src-client/VMMDevInterface.cpp \
|
---|
1163 | xml/Settings.cpp \
|
---|
1164 | $(VBOX_AUTOGEN_EVENT_CPP) \
|
---|
1165 | $(VBOX_AUTOGEN_STRINGIFY_ENUMS_CPP) \
|
---|
1166 | $(VBOX_XML_SCHEMADEFS_CPP)
|
---|
1167 |
|
---|
1168 | ifdef VBOX_WITH_MAIN_NLS
|
---|
1169 | VBoxC_SOURCES += \
|
---|
1170 | src-all/VirtualBoxTranslator.cpp \
|
---|
1171 | src-all/QMTranslatorImpl.cpp
|
---|
1172 | endif
|
---|
1173 |
|
---|
1174 | # Experimental cloud support
|
---|
1175 | if defined(VBOX_WITH_CLOUD_NET)
|
---|
1176 | if defined(VBOX_WITH_LIBSSH)
|
---|
1177 | VBoxC_SDKS += VBoxLibSsh VBoxOpenSsl
|
---|
1178 | VBoxC_DEFS += VBOX_WITH_LIBSSH
|
---|
1179 | endif
|
---|
1180 | VBoxC_SOURCES += src-client/CloudGateway.cpp
|
---|
1181 |
|
---|
1182 | VBoxC_SOURCES += \
|
---|
1183 | $(VBoxC_0_OUTDIR)/VBoxLibSshLazyLoad.asm
|
---|
1184 | VBoxC_CLEAN += $(VBoxC_0_OUTDIR)/VBoxLibSshLazyLoad.asm
|
---|
1185 | $$(VBoxC_0_OUTDIR)/VBoxLibSshLazyLoad.asm: $(PATH_SUB_CURRENT)/src-all/VBoxLibSsh.def $(VBOX_DEF_2_LAZY_LOAD) | $$(dir $$@)
|
---|
1186 | $(call MSG_TOOL,VBoxDef2LazyLoad,VBoxC,$(filter %.def, $^),$@)
|
---|
1187 | $(QUIET)$(RM) -f -- "$@"
|
---|
1188 | $(VBOX_DEF_2_LAZY_LOAD) --explicit-load-function --library VBoxLibSsh --output "$@" $(filter %.def, $^)
|
---|
1189 |
|
---|
1190 | endif
|
---|
1191 |
|
---|
1192 | # Audio bits.
|
---|
1193 | VBoxC_SOURCES += \
|
---|
1194 | src-client/AudioDriver.cpp \
|
---|
1195 | $(if $(VBOX_WITH_AUDIO_VRDE),src-client/DrvAudioVRDE.cpp,)
|
---|
1196 |
|
---|
1197 | VBoxC_SOURCES.win = \
|
---|
1198 | src-client/win/dllmain.cpp \
|
---|
1199 | src-client/win/VBoxC.def \
|
---|
1200 | src-client/win/VBoxC.rc
|
---|
1201 | ifdef VBOX_WITH_GUEST_CONTROL
|
---|
1202 | VBoxC_SOURCES += \
|
---|
1203 | src-client/GuestSessionImplTasks.cpp \
|
---|
1204 | src-client/GuestCtrlPrivate.cpp \
|
---|
1205 | src-client/GuestDirectoryImpl.cpp \
|
---|
1206 | src-client/GuestFileImpl.cpp \
|
---|
1207 | src-client/GuestFsInfoImpl.cpp \
|
---|
1208 | src-client/GuestFsObjInfoImpl.cpp \
|
---|
1209 | src-client/GuestProcessImpl.cpp \
|
---|
1210 | src-client/GuestSessionImpl.cpp
|
---|
1211 | endif
|
---|
1212 | ifdef VBOX_WITH_SHARED_CLIPBOARD
|
---|
1213 | VBoxC_SOURCES += \
|
---|
1214 | src-client/GuestShClPrivate.cpp
|
---|
1215 | endif
|
---|
1216 | ifdef VBOX_WITH_DRAG_AND_DROP
|
---|
1217 | VBoxC_SOURCES += \
|
---|
1218 | src-client/GuestDnDPrivate.cpp \
|
---|
1219 | src-client/GuestDnDSourceImpl.cpp \
|
---|
1220 | src-client/GuestDnDTargetImpl.cpp \
|
---|
1221 | $(PATH_ROOT)/src/VBox/GuestHost/DragAndDrop/DnDUtils.cpp
|
---|
1222 | endif
|
---|
1223 | ifdef VBOX_WITH_XPCOM
|
---|
1224 | VBoxC_SOURCES += \
|
---|
1225 | src-client/xpcom/module.cpp
|
---|
1226 | endif
|
---|
1227 | ifdef VBOX_WITH_HGCM
|
---|
1228 | VBoxC_SOURCES += \
|
---|
1229 | src-client/HGCMObjects.cpp \
|
---|
1230 | src-client/HGCMThread.cpp \
|
---|
1231 | src-client/HGCM.cpp
|
---|
1232 | endif
|
---|
1233 | ifdef VBOX_WITH_USB
|
---|
1234 | VBoxC_SOURCES += \
|
---|
1235 | src-client/RemoteUSBBackend.cpp
|
---|
1236 | endif
|
---|
1237 | ifndef VBOX_WITH_VRDEAUTH_IN_VBOXSVC
|
---|
1238 | VBoxC_SOURCES += \
|
---|
1239 | src-all/AuthLibrary.cpp
|
---|
1240 | endif
|
---|
1241 |
|
---|
1242 | $(call KB_FN_DO_PASS0_ON_TARGET,VBoxC) # Sets VBoxC_0_OUTDIR
|
---|
1243 |
|
---|
1244 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
1245 | VBoxC_ORDERDEPS += $(VBoxC_0_OUTDIR)/VBoxC.def
|
---|
1246 | VBoxC_CLEAN += $(VBoxC_0_OUTDIR)/VBoxC.def
|
---|
1247 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxC_0_OUTDIR)/VBoxC.def)
|
---|
1248 | $(VBoxC_0_OUTDIR)/VBoxC.def:
|
---|
1249 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
1250 | $(RM) -f $@
|
---|
1251 | $(APPEND) $@ _NSGetModule
|
---|
1252 | $(APPEND) $@ _VBoxDriversRegister
|
---|
1253 | endif
|
---|
1254 |
|
---|
1255 | src-client/ConsoleImpl.cpp_DEFS = \
|
---|
1256 | $(if $(VBOX_WITH_OPENSSL_FIPS), VBOX_OPENSSL_FIPS,)
|
---|
1257 |
|
---|
1258 |
|
---|
1259 | src-client/win/VBoxC.rc_DEPS = $(VBoxC_0_OUTDIR)/VBoxC.rgs $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb
|
---|
1260 | VBoxC_CLEAN.win += $(VBoxC_0_OUTDIR)/VBoxC.rgs
|
---|
1261 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxC_0_OUTDIR)/VBoxC.rgs)
|
---|
1262 | $(VBoxC_0_OUTDIR)/VBoxC.rgs: $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
|
---|
1263 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
1264 | $(VBOX_XSLTPROC) \
|
---|
1265 | --stringparam Application VirtualBox \
|
---|
1266 | --stringparam Module VBoxC \
|
---|
1267 | -o $@ \
|
---|
1268 | $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl \
|
---|
1269 | $(VBOX_XIDL_FILE)
|
---|
1270 |
|
---|
1271 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
1272 | #
|
---|
1273 | # 32-bit VBox API Client In-Process module.
|
---|
1274 | #
|
---|
1275 | # This is currently just a 32-bit version of VBoxC. It might be desirable to
|
---|
1276 | # split up VBoxC into a simple client and a VM client part later, in which
|
---|
1277 | # case this module will be a simple client.
|
---|
1278 | #
|
---|
1279 | # Note! One important thing is that the typelib for this DLL must be build
|
---|
1280 | # with the /env win32 switch and the VBoxC typelib with /env amd64, if
|
---|
1281 | # not they will overwrite each others typelib module entry.
|
---|
1282 | #
|
---|
1283 | DLLS += VBoxClient-x86
|
---|
1284 | VBoxClient-x86_TEMPLATE = VBoxMainComp-x86
|
---|
1285 | VBoxClient-x86_EXTENDS = VBoxC
|
---|
1286 | if defined(VBOX_WITH_PRECOMPILED_HEADERS) && "$(KBUILD_TARGET)" == "win" ## @todo fix inheritance (fixed in r3253)
|
---|
1287 | VBoxClient-x86_USES = vccprecomp
|
---|
1288 | VBoxClient-x86_PCH_HDR := $(PATH_SUB_CURRENT)/src-client/win/precomp_vcc.h
|
---|
1289 | endif
|
---|
1290 | VBoxClient-x86_SDKS = $(filter-out VBoxLibVpx,$(VBoxC_SDKS))
|
---|
1291 | VBoxClient-x86_DEFS = VBOX_COM_INPROC_API_CLIENT \
|
---|
1292 | $(filter-out VBOX_WITH_RECORDING VBOX_WITH_AUDIO_RECORDING \
|
---|
1293 | VBOX_WITH_LIBVPX,$(VBoxC_DEFS))
|
---|
1294 | VBoxClient-x86_INCS.win = \
|
---|
1295 | $(VBoxClient-x86_0_OUTDIR) \
|
---|
1296 | $(VBoxCOM-x86_0_OUTDIR) \
|
---|
1297 | $(VBoxC_INCS.win)
|
---|
1298 | VBoxClient-x86_SOURCES = \
|
---|
1299 | src-all/EventImpl.cpp \
|
---|
1300 | src-all/Global.cpp \
|
---|
1301 | src-all/GlobalStatusConversion.cpp \
|
---|
1302 | src-all/AutoCaller.cpp \
|
---|
1303 | src-all/ThreadTask.cpp \
|
---|
1304 | src-all/VirtualBoxBase.cpp \
|
---|
1305 | src-all/VirtualBoxErrorInfoImpl.cpp \
|
---|
1306 | src-client/ClientTokenHolder.cpp \
|
---|
1307 | src-client/SessionImpl.cpp \
|
---|
1308 | src-client/VirtualBoxClientImpl.cpp \
|
---|
1309 | $(VBOX_AUTOGEN_EVENT_CPP) \
|
---|
1310 | $(VBOX_AUTOGEN_STRINGIFY_ENUMS_CPP) \
|
---|
1311 | $(VBOX_XML_SCHEMADEFS_CPP)
|
---|
1312 | ifdef VBOX_WITH_MAIN_NLS
|
---|
1313 | VBoxClient-x86_SOURCES += \
|
---|
1314 | src-all/VirtualBoxTranslator.cpp \
|
---|
1315 | src-all/QMTranslatorImpl.cpp
|
---|
1316 | endif
|
---|
1317 | VBoxClient-x86_SOURCES.win = \
|
---|
1318 | src-client/win/dllmain.cpp \
|
---|
1319 | src-client/win/VBoxClient-x86.def \
|
---|
1320 | src-client/win/VBoxClient-x86.rc
|
---|
1321 | ifdef VBOX_WITH_XPCOM
|
---|
1322 | VBoxClient-x86_SOURCES += \
|
---|
1323 | src-client/xpcom/module.cpp
|
---|
1324 | endif
|
---|
1325 | VBoxClient-x86_LIBS = \
|
---|
1326 | $(PATH_STAGE_LIB)/VBoxAPIWrap-x86$(VBOX_SUFF_LIB)
|
---|
1327 | VBoxClient-x86_LIBS.win = $(NO_SUCH_VARIABLE)
|
---|
1328 | VBoxClient-x86_LIBS.win.x86 += \
|
---|
1329 | $(PATH_TOOL_$(VBOX_VCC_TOOL_STEM)X86_LIB)/delayimp.lib \
|
---|
1330 | $(PATH_SDK_$(VBOX_WINPSDK)_LIB.x86)/WbemUuid.Lib
|
---|
1331 | VBoxClient-x86_CLEAN.win += $(VBoxClient-x86_0_OUTDIR)/VBoxClient-x86.rgs
|
---|
1332 | $(call KB_FN_DO_PASS0_ON_TARGET,VBoxClient-x86) # Sets VBoxClient-x86_0_OUTDIR
|
---|
1333 |
|
---|
1334 | src-client/win/VBoxClient-x86.rc_DEPS = \
|
---|
1335 | $(VBoxClient-x86_0_OUTDIR)/VBoxClient-x86.rgs \
|
---|
1336 | $(VBoxCOM-x86_0_OUTDIR)/VirtualBox-x86.tlb
|
---|
1337 |
|
---|
1338 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxClient-x86_0_OUTDIR)/VBoxClient-x86.rgs)
|
---|
1339 | $(VBoxClient-x86_0_OUTDIR)/VBoxClient-x86.rgs: \
|
---|
1340 | $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl \
|
---|
1341 | $(VBOX_XIDL_FILE) | $$(dir $$@)
|
---|
1342 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
1343 | $(VBOX_XSLTPROC) \
|
---|
1344 | --stringparam Application VirtualBox \
|
---|
1345 | --stringparam Module VBoxC \
|
---|
1346 | -o $@ \
|
---|
1347 | $(VBOX_PATH_MAIN_SRC)/src-all/win/VirtualBox_rgs.xsl \
|
---|
1348 | $(VBOX_XIDL_FILE)
|
---|
1349 | endif
|
---|
1350 |
|
---|
1351 | #
|
---|
1352 | # The VBoxExtPackHelperApp.
|
---|
1353 | #
|
---|
1354 | ifdef VBOX_WITH_EXTPACK
|
---|
1355 | PROGRAMS += VBoxExtPackHelperApp
|
---|
1356 | VBoxExtPackHelperApp_TEMPLATE = VBoxR3SetUidToRoot
|
---|
1357 | VBoxExtPackHelperApp_LDFLAGS.darwin = -framework Security
|
---|
1358 | VBoxExtPackHelperApp_LDFLAGS.win = /SUBSYSTEM:windows
|
---|
1359 | VBoxExtPackHelperApp_SOURCES = \
|
---|
1360 | src-helper-apps/VBoxExtPackHelperApp.cpp \
|
---|
1361 | src-all/ExtPackUtil.cpp
|
---|
1362 | VBoxExtPackHelperApp_SOURCES.win = \
|
---|
1363 | src-helper-apps/VBoxExtPackHelperApp.rc
|
---|
1364 | VBoxExtPackHelperApp_LIBS = \
|
---|
1365 | $(LIB_RUNTIME)
|
---|
1366 | endif # VBOX_WITH_EXTPACK
|
---|
1367 |
|
---|
1368 |
|
---|
1369 | endif # !defined(VBOX_ONLY_SDK) && !defined(VBOX_ONLY_EXTPACKS) (the ifndef is far above)
|
---|
1370 |
|
---|
1371 |
|
---|
1372 | #
|
---|
1373 | # VBoxCOM - COM Abstraction Layer library
|
---|
1374 | #
|
---|
1375 | ifndef VBOX_ONLY_SDK
|
---|
1376 | LIBRARIES += VBoxCOM
|
---|
1377 | endif
|
---|
1378 | VBoxCOM_TEMPLATE = VBoxMainLib
|
---|
1379 | VBoxCOM_INTERMEDIATES = $(VBOX_MAIN_PREREQS) \
|
---|
1380 | $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
|
---|
1381 | VBoxCOM_SOURCES = \
|
---|
1382 | glue/com.cpp \
|
---|
1383 | glue/VBoxLogRelCreate.cpp \
|
---|
1384 | glue/GetVBoxUserHomeDirectory.cpp \
|
---|
1385 | glue/initterm.cpp \
|
---|
1386 | glue/string.cpp \
|
---|
1387 | glue/string-base64.cpp \
|
---|
1388 | glue/AutoLock.cpp \
|
---|
1389 | glue/EventQueue.cpp \
|
---|
1390 | glue/NativeEventQueue.cpp \
|
---|
1391 | glue/ErrorInfo.cpp \
|
---|
1392 | glue/errorprint.cpp
|
---|
1393 | VBoxCOM_INCS += $(VBOX_MAIN_APIWRAPPER_INCS) \
|
---|
1394 | include
|
---|
1395 | ifeq ($(KBUILD_TARGET),win)
|
---|
1396 | ifdef VBOX_WITH_MIDL_PROXY_STUB
|
---|
1397 | VBoxCOM_DEFS.win = VBOX_WITH_AUTO_COM_REG_UPDATE
|
---|
1398 | endif
|
---|
1399 | ifdef VBOX_WITH_SDS
|
---|
1400 | VBoxCOM_DEFS.win += VBOX_WITH_SDS
|
---|
1401 | endif
|
---|
1402 | VBoxCOM_DEFS.x86 = _WIN32_WINNT=0x0500
|
---|
1403 | VBoxCOM_DEFS.amd64 = _WIN32_WINNT=0x0510
|
---|
1404 | VBoxCOM_SOURCES += \
|
---|
1405 | $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c
|
---|
1406 | VBoxCOM_CLEAN = \
|
---|
1407 | $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c \
|
---|
1408 | $(VBoxCOM_0_OUTDIR)/VirtualBox_p.c \
|
---|
1409 | $(VBoxCOM_0_OUTDIR)/dlldata.c \
|
---|
1410 | $(VBoxCOM_0_OUTDIR)/VirtualBox.h \
|
---|
1411 | $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb
|
---|
1412 | VBoxCOM_CLEAN += \
|
---|
1413 | $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_i.c \
|
---|
1414 | $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_p.c \
|
---|
1415 | $(VBoxCOM_0_OUTDIR)/legacy/dlldata.c \
|
---|
1416 | $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.h \
|
---|
1417 | $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.tlb
|
---|
1418 | VBoxCOM_BLDDIRS = $(VBoxCOM_0_OUTDIR)/legacy/
|
---|
1419 | else # !win
|
---|
1420 | VBoxCOM_SOURCES += \
|
---|
1421 | $(VBoxCOM_0_OUTDIR)/VirtualBox_XPCOM_i.c \
|
---|
1422 | glue/xpcom/helpers.cpp
|
---|
1423 | endif # !win
|
---|
1424 |
|
---|
1425 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
1426 | glue/VBoxLogRelCreate.cpp_DEFS = KBUILD_TYPE="$(KBUILD_TYPE)"
|
---|
1427 | else
|
---|
1428 | glue/VBoxLogRelCreate.cpp_DEFS = KBUILD_TYPE=\"$(KBUILD_TYPE)\"
|
---|
1429 | endif
|
---|
1430 |
|
---|
1431 | # A couple of tricks to define VBoxCOM_0_OUTDIR for SDK builds and mkdir rule.
|
---|
1432 | $(call KB_FN_DO_PASS0_ON_TARGET,VBoxCOM)
|
---|
1433 | BLDDIRS += $(VBoxCOM_0_OUTDIR)
|
---|
1434 |
|
---|
1435 |
|
---|
1436 | ifndef VBOX_ONLY_SDK
|
---|
1437 |
|
---|
1438 | # 32-bit version of VBoxCOM.
|
---|
1439 | if defined(VBOX_WITH_32_ON_64_MAIN_API) && !defined(VBOX_ONLY_EXTPACKS)
|
---|
1440 | LIBRARIES += VBoxCOM-x86
|
---|
1441 | VBoxCOM-x86_TEMPLATE = VBoxMainLib-x86
|
---|
1442 | VBoxCOM-x86_EXTENDS = VBoxCOM
|
---|
1443 | ifeq ($(KBUILD_TARGET),win)
|
---|
1444 | VBoxCOM-x86_CLEAN = \
|
---|
1445 | $(VBoxCOM-x86_0_OUTDIR)/VirtualBox_i.c \
|
---|
1446 | $(VBoxCOM-x86_0_OUTDIR)/VirtualBox_p.c \
|
---|
1447 | $(VBoxCOM-x86_0_OUTDIR)/dlldata.c \
|
---|
1448 | $(VBoxCOM-x86_0_OUTDIR)/VirtualBox.h \
|
---|
1449 | $(VBoxCOM-x86_0_OUTDIR)/VirtualBox-x86.tlb
|
---|
1450 | endif
|
---|
1451 | endif
|
---|
1452 |
|
---|
1453 | # -MD version for the GUI in -MDd builds.
|
---|
1454 | ifeq ($(KBUILD_TARGET).$(VBOX_VCC_CRT_TYPE),win.d)
|
---|
1455 | ifndef VBOX_ONLY_EXTPACKS
|
---|
1456 | LIBRARIES += VBoxCOM-GUI
|
---|
1457 | USES += qt6
|
---|
1458 | VBoxCOM-GUI_TEMPLATE = $(if-expr defined(VBOX_WITH_HARDENING),VBoxQtGuiDll,VBoxQtGuiExe)
|
---|
1459 | VBoxCOM-GUI_EXTENDS = VBoxCOM
|
---|
1460 | endif
|
---|
1461 | endif
|
---|
1462 |
|
---|
1463 | # define qt6 tools for translation even if VBOX_ONLY_EXTPACKS is enabled
|
---|
1464 | ifdef VBOX_WITH_NLS
|
---|
1465 | USES += qt6
|
---|
1466 | endif
|
---|
1467 |
|
---|
1468 | endif # !VBOX_ONLY_SDK
|
---|
1469 |
|
---|
1470 |
|
---|
1471 | #
|
---|
1472 | # Installs com related thing(s) to bin.
|
---|
1473 | #
|
---|
1474 | INSTALLS.win += VBoxMain-com-inst
|
---|
1475 | VBoxMain-com-inst_INST = $(INST_BIN)
|
---|
1476 | VBoxMain-com-inst_MODE = a+r,u+w
|
---|
1477 | VBoxMain-com-inst_SOURCES = src-all/win/comregister.cmd
|
---|
1478 |
|
---|
1479 |
|
---|
1480 | if defined(VBOX_WITH_HARDENING) && "$(KBUILD_TARGET)" == "linux" && !defined(VBOX_ONLY_EXTPACKS)
|
---|
1481 | #
|
---|
1482 | # Installs linux/hardening related things to components.
|
---|
1483 | #
|
---|
1484 | INSTALLS.linux += VBoxMain-hardening-inst
|
---|
1485 | VBoxMain-hardening-inst_INST = $(INST_BIN)components/
|
---|
1486 | VBoxMain-hardening-inst_SYMLINKS = \
|
---|
1487 | VBoxDDU.so=>../VBoxDDU.so \
|
---|
1488 | VBoxRT.so=>../VBoxRT.so \
|
---|
1489 | VBoxVMM.so=>../VBoxVMM.so \
|
---|
1490 | VBoxXPCOM.so=>../VBoxXPCOM.so
|
---|
1491 | endif
|
---|
1492 |
|
---|
1493 |
|
---|
1494 | if defined(VBOX_WITH_MIDL_PROXY_STUB) && "$(KBUILD_TARGET)" == "win" && !defined(VBOX_ONLY_EXTPACKS) && !defined(VBOX_ONLY_SDK)
|
---|
1495 | #
|
---|
1496 | # Experimental COM proxy + stub DLL w/ automatic registration updating.
|
---|
1497 | #
|
---|
1498 | # The Legacy stub is for older 64-bit windows versions (pre Windows 7) as we
|
---|
1499 | # were having various problems on windows server 2003 and 2008 with the code
|
---|
1500 | # MIDL generated. Also, in windows 7 there are some potentially interesting
|
---|
1501 | # changes in the generated code where it uses new helpers from OLE32.
|
---|
1502 | #
|
---|
1503 | DLLS += VBoxProxyStub
|
---|
1504 | VBoxProxyStub_TEMPLATE = VBoxMainComp
|
---|
1505 | ifdef VBOX_WITH_AUTOMATIC_DEFS_QUOTING
|
---|
1506 | VBoxProxyStub_DEFS := REGISTER_PROXY_DLL PROXY_CLSID_IS=$(quote $(VBOX_MIDL_PROXY_CLSID_IS))
|
---|
1507 | else
|
---|
1508 | VBoxProxyStub_DEFS := REGISTER_PROXY_DLL PROXY_CLSID_IS="$(VBOX_MIDL_PROXY_CLSID_IS)"
|
---|
1509 | endif
|
---|
1510 | ifdef VBOX_WITH_SDS
|
---|
1511 | VBoxProxyStub_DEFS += VBOX_WITH_SDS
|
---|
1512 | endif
|
---|
1513 | ifdef VBOX_WITH_SDS_CLIENT_WATCHER
|
---|
1514 | VBoxProxyStub_DEFS += VBOX_WITH_SDS_CLIENT_WATCHER,)
|
---|
1515 | endif
|
---|
1516 | VBoxProxyStub_DEFS.win.x86 = WIN32
|
---|
1517 | VBoxProxyStub_SDKS = VBoxNtDll
|
---|
1518 | VBoxProxyStub_DEFPATH = $(VBoxCOM_0_OUTDIR)/# Hack to workaround drive letter in $(VBoxCOM_0_OUTDIR)/ for CFLAGS hack below.
|
---|
1519 | VBoxProxyStub_INCS = $(VBoxCOM_0_OUTDIR)/
|
---|
1520 | VBoxProxyStub_SOURCES := \
|
---|
1521 | VirtualBox_p.c \
|
---|
1522 | VirtualBox_i.c \
|
---|
1523 | $(PATH_SUB_CURRENT)/src-all/win/VBoxProxyStub.def \
|
---|
1524 | $(PATH_SUB_CURRENT)/src-all/win/VBoxProxyStub.rc \
|
---|
1525 | $(PATH_SUB_CURRENT)/src-all/win/VBoxProxyStub.c
|
---|
1526 | src-all/win/VBoxProxyStub.rc_DEPS = $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb
|
---|
1527 | VBoxProxyStub_VirtualBox_p.c_CFLAGS.x86 = /Gz # Workaround for incorrect ObjectStublessClient* prototypes in SDK v7.1.
|
---|
1528 |
|
---|
1529 | DLLS += VBoxProxyStubLegacy
|
---|
1530 | VBoxProxyStubLegacy_TEMPLATE = VBoxMainComp
|
---|
1531 | VBoxProxyStubLegacy_EXTENDS = VBoxProxyStub
|
---|
1532 | VBoxProxyStubLegacy_DEFS = $(VBoxProxyStub_DEFS) VBOX_IN_PROXY_STUB_LEGACY
|
---|
1533 | VBoxProxyStubLegacy_INCS = $(VBoxCOM_0_OUTDIR)/legacy/
|
---|
1534 | VBoxProxyStubLegacy_SOURCES = \
|
---|
1535 | $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_p.c \
|
---|
1536 | $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_i.c \
|
---|
1537 | src-all/win/VBoxProxyStub.def \
|
---|
1538 | src-all/win/VBoxProxyStubLegacy.rc \
|
---|
1539 | src-all/win/VBoxProxyStub.c
|
---|
1540 | src-all/win/VBoxProxyStubLegacy.rc_DEPS = $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.tlb
|
---|
1541 |
|
---|
1542 | ifdef VBOX_WITH_32_ON_64_MAIN_API
|
---|
1543 | DLLS += VBoxProxyStub-x86
|
---|
1544 | VBoxProxyStub-x86_TEMPLATE = VBoxMainComp-x86
|
---|
1545 | VBoxProxyStub-x86_SDKS = VBoxNtDll
|
---|
1546 | VBoxProxyStub-x86_DEFS = $(VBoxProxyStub_DEFS) VBOX_PROXY_STUB_32_ON_64 WIN32
|
---|
1547 | VBoxProxyStub-x86_INCS = $(VBoxCOM-x86_0_OUTDIR)/
|
---|
1548 | VBoxProxyStub-x86_SOURCES = \
|
---|
1549 | $(VBoxCOM-x86_0_OUTDIR)/VirtualBox_p.c \
|
---|
1550 | $(VBoxCOM-x86_0_OUTDIR)/VirtualBox_i.c \
|
---|
1551 | src-all/win/VBoxProxyStub.c \
|
---|
1552 | src-all/win/VBoxProxyStub-x86.rc \
|
---|
1553 | src-all/win/VBoxProxyStub.def
|
---|
1554 | src-all/win/VBoxProxyStub-x86.rc_DEPS = $(VBoxCOM-x86_0_OUTDIR)/VirtualBox-x86.tlb
|
---|
1555 | endif
|
---|
1556 | endif
|
---|
1557 |
|
---|
1558 |
|
---|
1559 | ifdef VBOX_WITH_MAIN_NLS
|
---|
1560 | #
|
---|
1561 | # NLS stuff.
|
---|
1562 | #
|
---|
1563 | include $(PATH_SUB_CURRENT)/nls/ApprovedLanguages.kmk
|
---|
1564 |
|
---|
1565 | PROGRAMS += VirtualBoxAPI
|
---|
1566 | VirtualBoxAPI_TEMPLATE = VBoxNLS
|
---|
1567 | VirtualBoxAPI_QT_TRANSLATIONS = $(addsuffix .ts,$(addprefix $(VBOX_PATH_MAIN_SRC)/nls/VirtualBoxAPI_,$(VBOX_APPROVED_MAIN_LANGUAGES)))
|
---|
1568 | VirtualBoxAPI_VBOX_ALL_NLS_SOURCES = $(wildcard \
|
---|
1569 | $(VBOX_PATH_MAIN_SRC)/include/*.h \
|
---|
1570 | $(VBOX_PATH_MAIN_SRC)/src-all/*.cpp \
|
---|
1571 | $(VBOX_PATH_MAIN_SRC)/src-all/*.h \
|
---|
1572 | $(VBOX_PATH_MAIN_SRC)/src-server/*.cpp \
|
---|
1573 | $(VBOX_PATH_MAIN_SRC)/src-server/*.h \
|
---|
1574 | $(VBOX_PATH_MAIN_SRC)/src-client/*.cpp \
|
---|
1575 | $(VBOX_PATH_MAIN_SRC)/src-client/*.h )
|
---|
1576 |
|
---|
1577 | updatenls:: makeallnls $(VBOX_PATH_MAIN_SRC)/nls/VirtualBoxAPI_en.ts
|
---|
1578 |
|
---|
1579 | makeallnls:: $(VirtualBoxAPI_VBOX_ALL_NLS_SOURCES)
|
---|
1580 | $(call MSG_L1,lupdate all languages (nls/*.ts))
|
---|
1581 | $(QUIET)$(TOOL_QT5_LUPDATE) \
|
---|
1582 | $^ \
|
---|
1583 | -ts \
|
---|
1584 | $(filter-out nls/VirtualBoxAPI_en.ts, $(VirtualBoxAPI_QT_TRANSLATIONS)) \
|
---|
1585 | $(VBOX_PATH_MAIN_SRC)/nls/VirtualBoxAPI_xx_YY.ts
|
---|
1586 |
|
---|
1587 | #fake-main-nls:
|
---|
1588 | # $(foreach file, $(VirtualBoxAPI_QT_TRANSLATIONS) \
|
---|
1589 | # ,$(NLTAB)$(SED) -i \
|
---|
1590 | # -e '/<source>.*<\/source>/h' \
|
---|
1591 | # -e '/<source>.*<\/source>/p' \
|
---|
1592 | # -e '/<translation type="unfinished"><\/translation>/{' \
|
---|
1593 | # -e 'x' \
|
---|
1594 | # -e 's/<source>\(.*\)<\/source>/<translation type="unfinished">$(notdir $(file)): \1<\/translation>/' \
|
---|
1595 | # -e '}' \
|
---|
1596 | # $(file) )
|
---|
1597 |
|
---|
1598 |
|
---|
1599 | # Create the English translation file. This is something special cause it will
|
---|
1600 | # contain the plural forms only.
|
---|
1601 | $(VBOX_PATH_MAIN_SRC)/nls/VirtualBoxAPI_en.ts: $(VirtualBoxAPI_VBOX_ALL_NLS_SOURCES)
|
---|
1602 | $(call MSG_L1,lupdate $@)
|
---|
1603 | $(QUIET)$(TOOL_QT5_LUPDATE) \
|
---|
1604 | $^ \
|
---|
1605 | -ts \
|
---|
1606 | "$@"
|
---|
1607 | $(QUIET)$(SED) -n -i \
|
---|
1608 | -e '/<context>/,/<\/context>/!p' \
|
---|
1609 | -e '/<context>/h' \
|
---|
1610 | -e '/<name>/H' \
|
---|
1611 | -e '/<message numerus="yes">/,/<\/message>/H' \
|
---|
1612 | -e '/<\/context>/{H;x;/<message/p}' \
|
---|
1613 | "$@"
|
---|
1614 |
|
---|
1615 | endif # VBOX_WITH_MAIN_NLS
|
---|
1616 |
|
---|
1617 |
|
---|
1618 | # generate rules
|
---|
1619 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|
1620 |
|
---|
1621 |
|
---|
1622 |
|
---|
1623 | #
|
---|
1624 | # Additions rules.
|
---|
1625 | #
|
---|
1626 |
|
---|
1627 | ## @todo this hack ain't cutting it any longer. (the file name is abspath'ed since ages now.)
|
---|
1628 | glue/xpcom/helpers.cpp: $(VBOX_IDL_TYPELIB.XPCOM)
|
---|
1629 |
|
---|
1630 | $(call KB_FN_AUTO_CMD_DEPS_EX,$(VBOX_IDL_FILE.XPCOM),$(PATH_OUT)/VBOX_IDL_FILE.XPCOM.vbox-dep)
|
---|
1631 | $(VBOX_IDL_FILE.XPCOM): $(VBOX_PATH_MAIN_SRC)/idl/xpidl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
|
---|
1632 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS_EX,$(PATH_OUT)/VBOX_IDL_FILE.XPCOM.vbox-dep)
|
---|
1633 | $(call MSG_TOOL,xsltproc,VBoxSVC,$(VBOX_PATH_MAIN_SRC)/idl/xpidl.xsl,$@)
|
---|
1634 | $(QUIET)$(VBOX_XSLTPROC) -o $@ $(VBOX_PATH_MAIN_SRC)/idl/xpidl.xsl $(VBOX_XIDL_FILE)
|
---|
1635 |
|
---|
1636 | $(call KB_FN_AUTO_CMD_DEPS_EX,$(VBOX_IDL_TYPELIB.XPCOM),$(PATH_OUT)/VBOX_IDL_TYPELIB.XPCOM.vbox-dep)
|
---|
1637 | $(VBOX_IDL_TYPELIB.XPCOM): $(VBOX_IDL_FILE.XPCOM) | $$(dir $$@) $(VBOX_XPIDL)
|
---|
1638 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS_EX,$(PATH_OUT)/VBOX_IDL_TYPELIB.XPCOM.vbox-dep)
|
---|
1639 | $(call MSG_TOOL,xpidl,VBoxSVC,$(VBOX_IDL_FILE.XPCOM),$@)
|
---|
1640 | $(QUIET)$(VBOX_XPIDL_ENV)$(VBOX_XPIDL) -m typelib -I $(VBOX_PATH_XPCOM_IDL) -e $@ $(VBOX_IDL_FILE.XPCOM)
|
---|
1641 | $(CHMOD) 0644 $@
|
---|
1642 | ## @todo ^^^^^^^^^^^^ fix horrible hack
|
---|
1643 |
|
---|
1644 | $(call KB_FN_AUTO_CMD_DEPS_EX,$(VBOX_IDL_HEADER.XPCOM),$(PATH_OUT)/VBOX_IDL_HEADER.XPCOM.vbox-dep)
|
---|
1645 | $(VBOX_IDL_HEADER.XPCOM): $(VBOX_IDL_FILE.XPCOM) | $$(dir $$@) $(VBOX_XPIDL)
|
---|
1646 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS_EX,$(PATH_OUT)/VBOX_IDL_HEADER.XPCOM.vbox-dep)
|
---|
1647 | $(call MSG_TOOL,xpidl,VBoxSVC,$(VBOX_IDL_FILE.XPCOM),$@)
|
---|
1648 | $(QUIET)$(VBOX_XPIDL_ENV)$(VBOX_XPIDL) -m header -I $(VBOX_PATH_XPCOM_IDL) -e $@ $(VBOX_IDL_FILE.XPCOM)
|
---|
1649 |
|
---|
1650 | $(call KB_FN_AUTO_CMD_DEPS_EX,$(VBOX_IDL_FILE.MSCOM),$(PATH_OUT)/VBOX_IDL_FILE.MSCOM.vbox-dep)
|
---|
1651 | $(VBOX_IDL_FILE.MSCOM): $(VBOX_PATH_MAIN_SRC)/idl/midl.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
|
---|
1652 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS_EX,$(PATH_OUT)/VBOX_IDL_FILE.MSCOM.vbox-dep)
|
---|
1653 | $(call MSG_TOOL,xsltproc,VBoxSVC,$<,$@)
|
---|
1654 | $(QUIET)$(VBOX_XSLTPROC) -o $@ \
|
---|
1655 | $(if $(VBOX_WITH_MIDL_PROXY_STUB),-stringparam g_fGenProxy yes,) \
|
---|
1656 | $(if $(VBOX_WITH_SDS),-stringparam g_fVBoxWithSDS yes,) \
|
---|
1657 | $(VBOX_PATH_MAIN_SRC)/idl/midl.xsl $(VBOX_XIDL_FILE)
|
---|
1658 |
|
---|
1659 |
|
---|
1660 | # Aliases for testing purposes.
|
---|
1661 | ifdef VBOX_WITH_XPCOM
|
---|
1662 | testidl: $(VBOX_IDL_FILE.XPCOM) $(VBOX_IDL_TYPELIB.XPCOM) $(VBoxCOM_0_OUTDIR)/VirtualBox_XPCOM_i.c
|
---|
1663 | testidlhdr: $(VBOX_IDL_HEADER.XPCOM)
|
---|
1664 | else
|
---|
1665 | testidl: $(VBOX_IDL_FILE.MSCOM) $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c \
|
---|
1666 | $(if $(VBOX_WITH_32_ON_64_MAIN_API),$(VBoxCOM-x86_0_OUTDIR)/VirtualBox_i.c,)
|
---|
1667 | endif
|
---|
1668 |
|
---|
1669 |
|
---|
1670 | $(VBoxCOM_0_OUTDIR)/VirtualBox_XPCOM_i.c: $(VBOX_PATH_MAIN_SRC)/idl/xpidl_iid.xsl $(VBOX_XIDL_FILE) | $$(dir $$@)
|
---|
1671 | $(call MSG_TOOL,xsltproc,VBoxSVC,$<,$@)
|
---|
1672 | $(QUIET)$(VBOX_XSLTPROC) -o $@ $< $(VBOX_XIDL_FILE)
|
---|
1673 |
|
---|
1674 | if "$(KBUILD_TARGET)" == "win" || (defined(VBOX_ONLY_SDK) && !defined(VBOX_ONLY_SDK_ON_HOST) && !defined(VBOX_ONLY_SDK_IN_VM))
|
---|
1675 |
|
---|
1676 | # Note! Because we've got a different proxy stub DLL for pre windows 7 64-bit hosts, we target windows 7 for AMD64.
|
---|
1677 | # The output is different and hopefully more efficient, at least memory wise (using more helpers in OLE32).
|
---|
1678 | # Note! We're checking for win.amd64 below when setting the target because of the SDK build which happens on linux.amd64
|
---|
1679 | # but with a 32-bit Wine.
|
---|
1680 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxCOM_0_OUTDIR)/VirtualBox_i.c)
|
---|
1681 | $(VBoxCOM_0_OUTDIR)/VirtualBox_i.c \
|
---|
1682 | $(if $(VBOX_WITH_MIDL_PROXY_STUB), + $(VBoxCOM_0_OUTDIR)/VirtualBox_p.c + $(VBoxCOM_0_OUTDIR)/dlldata.c,) \
|
---|
1683 | + $(VBoxCOM_0_OUTDIR)/VirtualBox.h \
|
---|
1684 | + $(VBoxCOM_0_OUTDIR)/VirtualBox.tlb: $(VBOX_IDL_FILE.MSCOM) | $$(dir $$@)
|
---|
1685 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
1686 | $(VBOX_MIDL_REDIRECT) $(VBOX_WIN_MIDL) /nologo /W4 \
|
---|
1687 | /env $(if-expr "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.amd64" ,amd64,win32) \
|
---|
1688 | /robust /protocol all /target $(if-expr defined(VBOX_WITH_MIDL_PROXY_STUB),NT61,NT51) \
|
---|
1689 | /out $(call VBOX_FN_MAKE_WIN_PATH,$(VBoxCOM_0_OUTDIR)) \
|
---|
1690 | /cpp_cmd $(VBOX_MIDL_CPP_CMD) \
|
---|
1691 | $(foreachfile dir,$(SDK_$(VBOX_WINPSDK)_INCS),/I $(call VBOX_FN_MAKE_WIN_PATH,$(dir))) \
|
---|
1692 | /I idl \
|
---|
1693 | $(call VBOX_FN_MAKE_WIN_PATH,$(VBOX_IDL_FILE.MSCOM))
|
---|
1694 | $(call def_VBoxMidlOutputDisableMscWarnings,$(VBoxCOM_0_OUTDIR)/VirtualBox.h)
|
---|
1695 | $(call def_VBoxMidlOutputDisableMscWarnings,$(VBoxCOM_0_OUTDIR)/VirtualBox_i.c)
|
---|
1696 | $(call def_VBoxMidlOutputDisableMscWarnings,$(VBoxCOM_0_OUTDIR)/VirtualBox_p.c)
|
---|
1697 |
|
---|
1698 | if defined(VBOX_WITH_MIDL_PROXY_STUB)
|
---|
1699 | # -Windows Server 2003 AMD64 SP1 does not like the result when using '/protocol all' and '/target NT51'.
|
---|
1700 | # -Vista AMD64 SP1 and Windows Server 2008 AMD64 seems to have some objections as well, but it seemed
|
---|
1701 | # that using an older MIDL compiler (v7.00.0499 instead of v7.00.0555) helps. But the W2K3 fix also works.
|
---|
1702 | # To avoid 32-bit vs. 64-bit differences, we do the same for 32-bit windows versions.
|
---|
1703 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_i.c)
|
---|
1704 | $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_i.c \
|
---|
1705 | + $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_p.c \
|
---|
1706 | + $(VBoxCOM_0_OUTDIR)/legacy/dlldata.c \
|
---|
1707 | + $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.h \
|
---|
1708 | + $(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.tlb: $(VBOX_IDL_FILE.MSCOM) | $$(dir $$@)
|
---|
1709 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
1710 | $(VBOX_MIDL_REDIRECT) $(VBOX_WIN_MIDL) /nologo /W4 \
|
---|
1711 | $(if-expr "$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)" == "win.amd64" \
|
---|
1712 | ,/env amd64 /x64 /target NT50 /robust \
|
---|
1713 | ,/env win32 /target NT51 /robust /protocol all ) \
|
---|
1714 | /out $(call VBOX_FN_MAKE_WIN_PATH,$(dir $@)) \
|
---|
1715 | /cpp_cmd $(VBOX_MIDL_CPP_CMD) \
|
---|
1716 | $(foreachfile dir,$(SDK_$(VBOX_WINPSDK)_INCS),/I $(call VBOX_FN_MAKE_WIN_PATH,$(dir))) \
|
---|
1717 | /I idl \
|
---|
1718 | $(call VBOX_FN_MAKE_WIN_PATH,$(VBOX_IDL_FILE.MSCOM))
|
---|
1719 | $(call def_VBoxMidlOutputDisableMscWarnings,$(VBoxCOM_0_OUTDIR)/legacy/VirtualBox.h)
|
---|
1720 | $(call def_VBoxMidlOutputDisableMscWarnings,$(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_i.c)
|
---|
1721 | $(call def_VBoxMidlOutputDisableMscWarnings,$(VBoxCOM_0_OUTDIR)/legacy/VirtualBox_p.c)
|
---|
1722 | endif
|
---|
1723 |
|
---|
1724 | if defined(VBOX_WITH_32_ON_64_MAIN_API) && !defined(VBOX_ONLY_EXTPACKS)
|
---|
1725 | # The XP targetted 32-bit proxy stub works with all versions of windows (the
|
---|
1726 | # issues leading to the VBoxProxyStubLegacy.dll are only on 64-bit windows).
|
---|
1727 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxCOM-x86_0_OUTDIR)/VirtualBox_i.c)
|
---|
1728 | $(VBoxCOM-x86_0_OUTDIR)/VirtualBox_i.c \
|
---|
1729 | $(if $(VBOX_WITH_MIDL_PROXY_STUB), + $(VBoxCOM-x86_0_OUTDIR)/VirtualBox_p.c + $(VBoxCOM-x86_0_OUTDIR)/dlldata.c,) \
|
---|
1730 | + $(VBoxCOM-x86_0_OUTDIR)/VirtualBox.h \
|
---|
1731 | + $(VBoxCOM-x86_0_OUTDIR)/VirtualBox-x86.tlb: $(VBOX_IDL_FILE.MSCOM) | $$(dir $$@)
|
---|
1732 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
1733 | $(VBOX_MIDL_REDIRECT_X86) $(VBOX_WIN_MIDL) /nologo /W4 \
|
---|
1734 | /env win32 /target NT51 /robust /protocol all \
|
---|
1735 | /out $(call VBOX_FN_MAKE_WIN_PATH,$(VBoxCOM-x86_0_OUTDIR)) \
|
---|
1736 | /tlb $(call VBOX_FN_MAKE_WIN_PATH,$(VBoxCOM-x86_0_OUTDIR)/VirtualBox-x86.tlb) \
|
---|
1737 | /cpp_cmd $(VBOX_MIDL_CPP_CMD_X86) \
|
---|
1738 | $(foreachfile dir,$(SDK_$(VBOX_WINPSDK)_INCS),/I $(call VBOX_FN_MAKE_WIN_PATH,$(dir))) \
|
---|
1739 | /I idl \
|
---|
1740 | $(call VBOX_FN_MAKE_WIN_PATH,$(VBOX_IDL_FILE.MSCOM))
|
---|
1741 | $(call def_VBoxMidlOutputDisableMscWarnings,$(VBoxCOM-x86_0_OUTDIR)/VirtualBox.h)
|
---|
1742 | $(call def_VBoxMidlOutputDisableMscWarnings,$(VBoxCOM-x86_0_OUTDIR)/VirtualBox_i.c)
|
---|
1743 | $(call def_VBoxMidlOutputDisableMscWarnings,$(VBoxCOM-x86_0_OUTDIR)/VirtualBox_p.c)
|
---|
1744 | endif
|
---|
1745 |
|
---|
1746 | endif # "$(KBUILD_TARGET)" == "win" || (defined(VBOX_ONLY_SDK) && !defined(VBOX_ONLY_SDK_ON_HOST) && !defined(VBOX_ONLY_SDK_IN_VM))
|
---|
1747 |
|
---|
1748 | #
|
---|
1749 | # Translation stuff
|
---|
1750 | #
|
---|
1751 | VBoxSVC_VBOX_HEADERS = \
|
---|
1752 | include/collection.h \
|
---|
1753 | include/MachineImpl.h
|
---|
1754 | VBoxSVC_VBOX_TRANSLATIONS = \
|
---|
1755 | nls/VBoxSVC_de.ts
|
---|
1756 |
|
---|
1757 | VBoxC_VBOX_HEADERS = \
|
---|
1758 | include/ConsoleImpl.h
|
---|
1759 |
|
---|
1760 | VBoxC_VBOX_INTERMEDIATES = $(VBOX_MAIN_APIWRAPPER_GEN_HDRS)
|
---|
1761 | VBoxC_VBOX_HEADERS += $(VBOX_MAIN_APIWRAPPER_INCS)
|
---|
1762 |
|
---|
1763 | VBoxC_VBOX_TRANSLATIONS = \
|
---|
1764 | nls/VBoxC_de.ts
|
---|
1765 |
|
---|
1766 | ifdef VBOX_WITH_JMSCOM
|
---|
1767 |
|
---|
1768 | #
|
---|
1769 | # Java glue JAR files
|
---|
1770 | #
|
---|
1771 | VBOX_JMSCOM_JAR = $(VBoxJMscom-inst-jar_0_OUTDIR)/vboxjmscom.jar
|
---|
1772 | VBOX_JMSCOM_TARGET := $(PATH_TARGET)/vboxjmscom-gen
|
---|
1773 | VBOX_JMSCOM_GEN = $(VBOX_JMSCOM_TARGET)/jmscomgen
|
---|
1774 | VBOX_JMSCOM_JDEST := $(VBOX_JMSCOM_TARGET)/jdest
|
---|
1775 | VBOX_GLUE_XSLT_DIR := $(PATH_ROOT)/src/VBox/Main/glue
|
---|
1776 | VBOX_JACOB_DIR := $(PATH_ROOT)/src/libs/jacob-1.17
|
---|
1777 |
|
---|
1778 | INSTALLS += VBoxJMscom-inst-jar
|
---|
1779 | VBoxJMscom-inst-jar_INST = $(INST_SDK)bindings/mscom/java/
|
---|
1780 | VBoxJMscom-inst-jar_MODE = a+r,u+w
|
---|
1781 | VBoxJMscom-inst-jar_SOURCES = \
|
---|
1782 | $(VBoxJMscom-inst-jar_0_OUTDIR)/vboxjmscom.jar
|
---|
1783 | VBoxJMscom-inst-jar_CLEAN = \
|
---|
1784 | $(VBoxJMscom-inst-jar_0_OUTDIR)/vboxjmscom.jar \
|
---|
1785 | $(VBOX_JMSCOM_GEN)/jmscomglue.list \
|
---|
1786 | $(wildcard \
|
---|
1787 | $(VBOX_JMSCOM_GEN)/java/*.java \
|
---|
1788 | $(VBOX_JMSCOM_JDEST)/*.class \
|
---|
1789 | $(VBOX_JMSCOM_JDEST)/*/*.class \
|
---|
1790 | $(VBOX_JMSCOM_JDEST)/*/*/*.class \
|
---|
1791 | $(VBOX_JMSCOM_JDEST)/*/*/*/*.class \
|
---|
1792 | )
|
---|
1793 | VBoxJMscom-inst-jar_BLDDIRS += $(VBOX_JMSCOM_GEN)/java
|
---|
1794 | $(call KB_FN_DO_PASS0_ON_TARGET,VBoxJMscom-inst-jar) # Sets VBoxJMscom-inst-jar_0_OUTDIR
|
---|
1795 |
|
---|
1796 | $(call KB_FN_AUTO_CMD_DEPS,$(VBOX_JMSCOM_GEN)/jmscomglue.list)
|
---|
1797 | $(VBOX_JMSCOM_GEN)/jmscomglue.list: \
|
---|
1798 | $(VBOX_XIDL_FILE) \
|
---|
1799 | $(VBOX_GLUE_XSLT_DIR)/glue-java.xsl \
|
---|
1800 | $(VBOX_FILESPLIT) \
|
---|
1801 | | $(VBOX_JMSCOM_GEN)/java/
|
---|
1802 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
1803 | $(call MSG_L1,Generating Java MSCOM glue files from XIDL)
|
---|
1804 | $(QUIET)$(RM) -f $(wildcard $(VBOX_JMSCOM_GEN)/java/*.java)
|
---|
1805 | $(QUIET)$(VBOX_XSLTPROC) \
|
---|
1806 | --stringparam filelistonly "" \
|
---|
1807 | --stringparam G_vboxApiSuffix $(VBOX_API_SUFFIX) \
|
---|
1808 | --stringparam G_vboxGlueStyle mscom \
|
---|
1809 | --stringparam G_vboxDirPrefix "" \
|
---|
1810 | -o $(VBOX_JMSCOM_GEN)/java/merged.file $(VBOX_GLUE_XSLT_DIR)/glue-java.xsl $(VBOX_XIDL_FILE)
|
---|
1811 | $(QUIET)$(VBOX_FILESPLIT) $(VBOX_JMSCOM_GEN)/java/merged.file $(VBOX_JMSCOM_GEN)/java
|
---|
1812 | $(QUIET)echo $(VBOX_JMSCOM_GEN)/java/*.java > $@
|
---|
1813 |
|
---|
1814 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxJMscom-inst-jar_0_OUTDIR)/vboxjmscom.jar)
|
---|
1815 | $(VBoxJMscom-inst-jar_0_OUTDIR)/vboxjmscom.jar: $(VBOX_JMSCOM_GEN)/jmscomglue.list | $$(dir $$@)
|
---|
1816 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
1817 | $(call MSG_TOOL,javac,$(notdir $@),jmscomglue.list,)
|
---|
1818 | $(QUIET)$(RM) -Rf $(VBOX_JMSCOM_JDEST)
|
---|
1819 | $(QUIET)$(MKDIR) -p $(VBOX_JMSCOM_JDEST)
|
---|
1820 | $(call MSG_TOOL,javac,$(notdir $@),...,)
|
---|
1821 | $(QUIET)$(VBOX_JAVAC) $(VBOX_JAVAC_OPTS) @$(VBOX_JMSCOM_GEN)/jmscomglue.list \
|
---|
1822 | -d $(VBOX_JMSCOM_JDEST) -classpath "$(VBOX_JMSCOM_JDEST)$(VBOX_SEP)$(VBOX_JACOB_DIR)/jacob.jar"
|
---|
1823 | $(call MSG_LINK,$(notdir $@),$@)
|
---|
1824 | $(QUIET)$(VBOX_JAR) cf $@ -C $(VBOX_JMSCOM_JDEST) .
|
---|
1825 |
|
---|
1826 | ## @todo compile TestVBox.java (see below) to have sanity checking
|
---|
1827 | endif # VBOX_WITH_JMSCOM
|
---|
1828 |
|
---|
1829 | #
|
---|
1830 | # Install Java glue sample code.
|
---|
1831 | #
|
---|
1832 | INSTALLS += javagluesample
|
---|
1833 | javagluesample_INST = $(INST_SDK)bindings/glue/java/
|
---|
1834 | javagluesample_MODE = a+r,u+w
|
---|
1835 | javagluesample_SOURCES = \
|
---|
1836 | $(VBOX_PATH_MAIN_SRC)/glue/tests/TestVBox.java=>TestVBox.java \
|
---|
1837 | $(VBOX_PATH_MAIN_SRC)/glue/tests/Makefile=>Makefile
|
---|
1838 |
|
---|
1839 | #
|
---|
1840 | # Rules associated with VBoxAPIWrap (in typical invocation order).
|
---|
1841 | # We keep them down here to simplify the use of VBoxAPIWrap_0_OUTDIR.
|
---|
1842 | #
|
---|
1843 |
|
---|
1844 | # Generate a make include file which lists the wrapper header and source files.
|
---|
1845 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxAPIWrap_VBOX_KMK_FILE).ts)
|
---|
1846 | $(VBoxAPIWrap_VBOX_KMK_FILE).ts \
|
---|
1847 | +| $(VBoxAPIWrap_VBOX_KMK_FILE): \
|
---|
1848 | $(VBOX_XIDL_FILE) \
|
---|
1849 | $(VBOX_PATH_MAIN_SRC)/idl/apiwrap-server-filelist.xsl \
|
---|
1850 | $(VBOX_PATH_MAIN_SRC)/Makefile.kmk
|
---|
1851 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
1852 | $(call MSG_GENERATE,,$(VBoxAPIWrap_VBOX_KMK_FILE))
|
---|
1853 | $(QUIET)$(RM) -f $@
|
---|
1854 | $(QUIET)$(MKDIR) -p $(@D)
|
---|
1855 | $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
|
---|
1856 | $(if $(VBOX_WITH_SDS),-stringparam g_fVBoxWithSDS yes,) \
|
---|
1857 | -o $@ $(VBOX_PATH_MAIN_SRC)/idl/apiwrap-server-filelist.xsl $(VBOX_XIDL_FILE)
|
---|
1858 | $(QUIET)$(CP) --changed -fv $@ $(VBoxAPIWrap_VBOX_KMK_FILE)
|
---|
1859 |
|
---|
1860 | # Generate the header files for the wrappers.
|
---|
1861 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxAPIWrap_0_OUTDIR)/apiwrappers-headers)
|
---|
1862 | $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-headers \
|
---|
1863 | +| $(VBOX_MAIN_APIWRAPPER_GEN_HDRS): \
|
---|
1864 | $(VBOX_XIDL_FILE) \
|
---|
1865 | $(VBOX_PATH_MAIN_SRC)/idl/typemap-shared.inc.xsl \
|
---|
1866 | $(VBoxAPIWrap_VBOX_XSLT) \
|
---|
1867 | $(VBOX_FILESPLIT) \
|
---|
1868 | | $$(dir $$@)
|
---|
1869 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
1870 | $(call MSG_L1,Generating C++ Server API wrapper header files from XIDL)
|
---|
1871 | $(QUIET)$(RM) -f -- $(filter-out $(VBOX_MAIN_APIWRAPPER_GEN_HDRS), $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.h))
|
---|
1872 | $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
|
---|
1873 | --stringparam generating "headers" \
|
---|
1874 | -o $@ $(VBoxAPIWrap_VBOX_XSLT) $(VBOX_XIDL_FILE)
|
---|
1875 | $(QUIET)$(VBOX_FILESPLIT) $@ $(VBoxAPIWrap_0_OUTDIR)
|
---|
1876 |
|
---|
1877 | # Generate the DTrace probes for the wrappers and combine them with handcoded probes.
|
---|
1878 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d.ts)
|
---|
1879 | $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d.ts \
|
---|
1880 | +| $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d: \
|
---|
1881 | $(VBOX_XIDL_FILE) \
|
---|
1882 | $(VBOX_PATH_MAIN_SRC)/idl/typemap-shared.inc.xsl \
|
---|
1883 | $(VBoxAPIWrap_VBOX_XSLT) \
|
---|
1884 | $(VBOX_FILESPLIT) \
|
---|
1885 | | $$(dir $$@)
|
---|
1886 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
1887 | $(call MSG_L1,Generating DTrace Provider for the VBox API (from XIDL))
|
---|
1888 | $(QUIET)$(RM) -f -- "$@" "[email protected]"
|
---|
1889 | $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
|
---|
1890 | --stringparam generating "dtrace-probes" \
|
---|
1891 | -o "$@" $(VBoxAPIWrap_VBOX_XSLT) $(VBOX_XIDL_FILE)
|
---|
1892 | $(QUIET)$(SED) -e '' -o "[email protected]" \
|
---|
1893 | "$(VBOX_PATH_MAIN_SRC)/src-all/VBoxAPI-start$(if-expr "$(VBOX_HOST_DTRACE_VERSION)" == "dtrace: Sun D 1.6.2",-alternative,).d" \
|
---|
1894 | "$@" \
|
---|
1895 | "$(VBOX_PATH_MAIN_SRC)/src-all/VBoxAPI-end$(if-expr "$(VBOX_HOST_DTRACE_VERSION)" == "dtrace: Sun D 1.6.2",-alternative,).d"
|
---|
1896 | $(QUIET)$(MV) -- "[email protected]" "$@"
|
---|
1897 | $(QUIET)$(CP) --changed -fv -- "$@" "$(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d"
|
---|
1898 |
|
---|
1899 | # Generate the wrapper source files - split in two due to long processing time
|
---|
1900 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-even)
|
---|
1901 | $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-even \
|
---|
1902 | +| $(VBOX_MAIN_APIWRAPPER_GEN_SRCS_EVEN): \
|
---|
1903 | $(VBOX_XIDL_FILE) \
|
---|
1904 | $(VBOX_PATH_MAIN_SRC)/idl/typemap-shared.inc.xsl \
|
---|
1905 | $(VBoxAPIWrap_VBOX_XSLT) \
|
---|
1906 | $(VBOX_FILESPLIT) \
|
---|
1907 | | $$(dir $$@)
|
---|
1908 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
1909 | $(call MSG_L1,Generating C++ Server API wrapper files from XIDL - part 1)
|
---|
1910 | $(QUIET)$(RM) -f -- $(filter-out $(VBOX_MAIN_APIWRAPPER_GEN_SRCS), $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.cpp))
|
---|
1911 | $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
|
---|
1912 | --stringparam generating "sources" \
|
---|
1913 | --param reminder 0 \
|
---|
1914 | -o $@ $(VBoxAPIWrap_VBOX_XSLT) $(VBOX_XIDL_FILE)
|
---|
1915 | $(QUIET)$(VBOX_FILESPLIT) $@ $(VBoxAPIWrap_0_OUTDIR)
|
---|
1916 |
|
---|
1917 | $(call KB_FN_AUTO_CMD_DEPS,$(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-odd)
|
---|
1918 | $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-odd \
|
---|
1919 | +| $(VBOX_MAIN_APIWRAPPER_GEN_SRCS_ODD): \
|
---|
1920 | $(VBOX_XIDL_FILE) \
|
---|
1921 | $(VBOX_PATH_MAIN_SRC)/idl/typemap-shared.inc.xsl \
|
---|
1922 | $(VBoxAPIWrap_VBOX_XSLT) \
|
---|
1923 | $(VBOX_FILESPLIT) \
|
---|
1924 | | $$(dir $$@)
|
---|
1925 | $(call KB_FN_AUTO_CMD_DEPS_COMMANDS)
|
---|
1926 | $(call MSG_L1,Generating C++ Server API wrapper files from XIDL - part 2)
|
---|
1927 | $(QUIET)$(RM) -f -- $(filter-out $(VBOX_MAIN_APIWRAPPER_GEN_SRCS), $(wildcard $(VBoxAPIWrap_0_OUTDIR)/*.cpp))
|
---|
1928 | $(QUIET)$(VBOX_XSLTPROC) --stringparam KBUILD_HOST $(KBUILD_HOST) \
|
---|
1929 | --stringparam generating "sources" \
|
---|
1930 | --param reminder 1 \
|
---|
1931 | -o $@ $(VBoxAPIWrap_VBOX_XSLT) $(VBOX_XIDL_FILE)
|
---|
1932 | $(QUIET)$(VBOX_FILESPLIT) $@ $(VBoxAPIWrap_0_OUTDIR)
|
---|
1933 |
|
---|
1934 | testapiwrappers:: \
|
---|
1935 | $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-headers \
|
---|
1936 | $(VBoxAPIWrap_0_OUTDIR)/VBoxAPI.d.ts \
|
---|
1937 | $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-odd \
|
---|
1938 | $(VBoxAPIWrap_0_OUTDIR)/apiwrappers-sources-even
|
---|