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