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