1 | # $Id: Makefile.kmk 69406 2017-10-27 00:22:02Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the Windows installer.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2017 Oracle Corporation
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.virtualbox.org. This file is free software;
|
---|
11 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | # General Public License (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 |
|
---|
18 | SUB_DEPTH = ../../../..
|
---|
19 | include $(KBUILD_PATH)/subheader.kmk
|
---|
20 |
|
---|
21 | ifneq ($(KBUILD_HOST),win)
|
---|
22 | $(error "The Windows installer can only be built on Windows!")
|
---|
23 | endif
|
---|
24 |
|
---|
25 |
|
---|
26 | #
|
---|
27 | # Include Sub-Makefiles.
|
---|
28 | #
|
---|
29 | include $(PATH_SUB_CURRENT)/InstallHelper/Makefile.kmk
|
---|
30 |
|
---|
31 | ifeq ($(KBUILD_TARGET_ARCH),x86)
|
---|
32 | include $(PATH_SUB_CURRENT)/Stub/Makefile.kmk
|
---|
33 | include $(PATH_SUB_CURRENT)/StubBld/Makefile.kmk
|
---|
34 | endif
|
---|
35 |
|
---|
36 | include $(PATH_SUB_CURRENT)/Resources/Makefile.kmk
|
---|
37 | ifdef VBOX_WITH_MSI_HACK
|
---|
38 | include $(PATH_SUB_CURRENT)/MsiHack/Makefile.kmk
|
---|
39 | endif
|
---|
40 |
|
---|
41 |
|
---|
42 |
|
---|
43 | #
|
---|
44 | # Globals.
|
---|
45 | #
|
---|
46 | # Tip: Use VBOX_CAB_COMPRESSION_LEVEL=none on the kmk command line when working
|
---|
47 | # on the installer.
|
---|
48 | #
|
---|
49 | VBOX_WIN_INST_MAKEFILE_DEP := $(MAKEFILE_CURRENT)
|
---|
50 | VBOX_CAB_COMPRESSION_LEVEL := high
|
---|
51 |
|
---|
52 | VBOX_PATH_WIN_INST_SRC := $(PATH_SUB_CURRENT)
|
---|
53 | VBOX_WIN_INST_OUT_DIR := $(PATH_TARGET)/Installer/win
|
---|
54 |
|
---|
55 | # Note: en_US *must* come first for the dependency file generation.
|
---|
56 | ifndef VBOX_INSTALLER_LANGUAGES
|
---|
57 | VBOX_INSTALLER_LANGUAGES = en_US de_DE fr_FR it_IT zh_TW
|
---|
58 | VBOX_INSTALLER_LANGUAGES += $(VBOX_INSTALLER_ADD_LANGUAGES)
|
---|
59 | endif
|
---|
60 |
|
---|
61 |
|
---|
62 | #
|
---|
63 | # List of merge modules to use.
|
---|
64 | #
|
---|
65 | VBOX_INSTALLER_MERGE_MODULES = App USB NetAdp NetFlt NetAdp6 NetLwf Python
|
---|
66 | ifeq ($(KBUILD_TARGET_ARCH),amd64)
|
---|
67 | VBOX_INSTALLER_MERGE_MODULES += COM32On64
|
---|
68 | endif
|
---|
69 |
|
---|
70 | # We only ship the merge modules in locale en_US for the moment.
|
---|
71 | ifdef VBOX_WITH_MSM_INSTALL
|
---|
72 | VBOX_INSTALLER_LANGUAGES := en_US
|
---|
73 | VBOX_INSTALLER_MERGE_LANGUAGES = $(VBOX_INSTALLER_LANGUAGES)
|
---|
74 | endif
|
---|
75 |
|
---|
76 | #
|
---|
77 | # Language IDs.
|
---|
78 | #
|
---|
79 | VBOX_BRAND_en_US_LANG_ID ?= 1033
|
---|
80 | VBOX_BRAND_de_DE_LANG_ID ?= 1031
|
---|
81 | VBOX_BRAND_fr_FR_LANG_ID ?= 1036
|
---|
82 | VBOX_BRAND_it_IT_LANG_ID ?= 1040
|
---|
83 | VBOX_BRAND_zh_TW_LANG_ID ?= 1028
|
---|
84 |
|
---|
85 | # Standard language names (in the native language), to be extended as we go.
|
---|
86 | # VBOX_BRAND_$(lang)_LANG_NAME must be defined for each language which occurs
|
---|
87 | # in either VBOX_LICENSE_ADD_LANGUAGES or VBOX_MANUAL_ADD_LANGUAGES.
|
---|
88 | VBOX_BRAND_fr_FR_LANG_NAME := Français
|
---|
89 |
|
---|
90 |
|
---|
91 | #
|
---|
92 | # We don't have the license text in another language than English yet,
|
---|
93 | # so just define the branding targets to use the English one for now.
|
---|
94 | # The installer generation assumes that there is a translation for each
|
---|
95 | # of VBOX_INSTALLER_LANGUAGES.
|
---|
96 | #
|
---|
97 | $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
|
---|
98 | $(eval VBOX_BRAND_$(lang)_LICENSE_RTF := $(VBOX_BRAND_LICENSE_RTF)))
|
---|
99 |
|
---|
100 | #
|
---|
101 | # Set the codepage for all languages to 1252, covers most cases.
|
---|
102 | #
|
---|
103 | $(foreach lang,$(sort $(VBOX_INSTALLER_LANGUAGES) $(VBOX_LICENSE_ADD_LANGUAGES) $(VBOX_MANUAL_ADD_LANGUAGES)), \
|
---|
104 | $(eval VBOX_BRAND_$(lang)_LANGUAGE_CODEPAGE := 1252))
|
---|
105 | # Exceptions:
|
---|
106 | VBOX_BRAND_zh_TW_LANGUAGE_CODEPAGE := 950
|
---|
107 |
|
---|
108 |
|
---|
109 |
|
---|
110 | #
|
---|
111 | # If we want to build a combined package, we separate all common stuff
|
---|
112 | # (that is all 100% identical content between 32-/64-bit builds)
|
---|
113 | # into an own .cab file to save space. This .cab file then gets included
|
---|
114 | # and used by the 32-/64-bit installers.
|
---|
115 | #
|
---|
116 | ifdef VBOX_WITH_COMBINED_PACKAGE
|
---|
117 | VBOX_INSTALLER_COMMON_DISKID := 2
|
---|
118 | else
|
---|
119 | VBOX_INSTALLER_COMMON_DISKID := 1
|
---|
120 | endif
|
---|
121 |
|
---|
122 | ## @todo VBOX_ prefixes!
|
---|
123 | PACKAGE_BASE := VirtualBox-$(VBOX_VERSION_STRING)
|
---|
124 | PACKAGE_NAME_LANG := $(PACKAGE_BASE)-r$(VBOX_SVN_REV)
|
---|
125 | PACKAGE_NAME_FINAL := $(PATH_STAGE_BIN)/$(PACKAGE_NAME_LANG).msi
|
---|
126 |
|
---|
127 | ifdef VBOX_WITH_COMBINED_PACKAGE
|
---|
128 | PATH_MULTIARCH_TEMP := $(PATH_OUT_BASE)/win.x86/$(KBUILD_TYPE)/obj/Installer
|
---|
129 | PATH_MULTIARCH_GUEST_ADDITIONS_ISO := $(PATH_OUT_BASE)/win.amd64/$(KBUILD_TYPE)/bin/additions
|
---|
130 | PACKAGE_NAME_MULTIARCH := $(PACKAGE_NAME_LANG)-MultiArch
|
---|
131 | PACKAGE_NAME_MULTIARCH.x86 := $(PACKAGE_NAME_MULTIARCH)_x86.msi
|
---|
132 | PACKAGE_NAME_MULTIARCH.amd64 := $(PACKAGE_NAME_MULTIARCH)_amd64.msi
|
---|
133 | PACKAGE_NAME_FINAL := $(PATH_MULTIARCH_TEMP)/$(PACKAGE_NAME_MULTIARCH.$(KBUILD_TARGET_ARCH))
|
---|
134 | PACKAGE_NAME_MULTIARCH_FINAL := $(PACKAGE_NAME_MULTIARCH).exe
|
---|
135 | # Always take the common.cab from the amd64 build, as it
|
---|
136 | # might contain certain files for x86 compatibility such
|
---|
137 | # as our 32-on-64-bit COM stuff.
|
---|
138 | PACKAGE_NAME_MULTIARCH_COMMONCAB := $(PATH_OUT_BASE)/win.amd64/$(KBUILD_TYPE)/obj/Installer/win/common.cab
|
---|
139 |
|
---|
140 | BLDDIRS += $(PATH_MULTIARCH_TEMP)
|
---|
141 | PACKING += $(PACKAGE_NAME_FINAL)
|
---|
142 | ifeq ($(KBUILD_TARGET_ARCH),x86)
|
---|
143 | PACKING += $(PATH_STAGE_BIN)/$(PACKAGE_NAME_MULTIARCH_FINAL)
|
---|
144 | endif
|
---|
145 | else
|
---|
146 | PACKING += $(PACKAGE_NAME_FINAL)
|
---|
147 | endif
|
---|
148 | BLDDIRS += \
|
---|
149 | $(VBOX_WIN_INST_OUT_DIR) \
|
---|
150 | $(foreach lang,$(VBOX_INSTALLER_LANGUAGES),$(VBOX_WIN_INST_OUT_DIR)/$(lang)/) \
|
---|
151 | $(VBOX_WIN_INST_OUT_DIR)/NLS/
|
---|
152 |
|
---|
153 | OTHER_CLEAN += \
|
---|
154 | $(VBOX_WIN_INST_OUT_DIR)/VirtualBox.wixobj \
|
---|
155 | $(VBOX_WIN_INST_OUT_DIR)/VirtualBox.wixobj.dep \
|
---|
156 | $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib.wxi \
|
---|
157 | $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib_x86.wxi \
|
---|
158 | $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_ProxyStub.wxi \
|
---|
159 | $(if $(VBOX_WITH_QTGUI),$(VBOX_WIN_INST_OUT_DIR)/VBoxGuiNLS.wxi) \
|
---|
160 | $(VBOX_WIN_INST_OUT_DIR)/VBoxKey.wxi \
|
---|
161 | $(VBOX_WIN_INST_OUT_DIR)/VBoxUnattendedTemplateComponent.wxi \
|
---|
162 | $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
|
---|
163 | $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl \
|
---|
164 | $(VBOX_WIN_INST_OUT_DIR)/NLS/License_$(lang).wxl \
|
---|
165 | $(VBOX_WIN_INST_OUT_DIR)/$(lang)/$(lang).mst \
|
---|
166 | $(VBOX_WIN_INST_OUT_DIR)/$(lang)/$(PACKAGE_NAME_LANG)_$(lang).wixpdb \
|
---|
167 | $(VBOX_WIN_INST_OUT_DIR)/$(lang)/$(PACKAGE_NAME_LANG)_$(lang).msi \
|
---|
168 | $(VBOX_WIN_INST_OUT_DIR)/$(lang)/VirtualBox_$(lang).wixobj \
|
---|
169 | $(VBOX_WIN_INST_OUT_DIR)/$(lang)/VirtualBox_$(lang).wixobj.dep )\
|
---|
170 | $(VBOX_WIN_INST_OUT_DIR)/DirComponentsAndFiles_DTrace.wxi \
|
---|
171 | $(VBOX_WIN_INST_OUT_DIR)/Files_Main.wxi \
|
---|
172 | $(VBOX_WIN_INST_OUT_DIR)/Files_Doc.wxi \
|
---|
173 | $(VBOX_WIN_INST_OUT_DIR)/Files_License.wxi \
|
---|
174 | $(VBOX_WIN_INST_OUT_DIR)/Shortcuts_StartMenu.wxi \
|
---|
175 | $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG).msi \
|
---|
176 |
|
---|
177 | ifdef VBOX_WITH_COMBINED_PACKAGE
|
---|
178 | ifeq ($(KBUILD_TARGET_ARCH),x86)
|
---|
179 | OTHER_CLEAN += \
|
---|
180 | $(PATH_STAGE_BIN)/$(PACKAGE_NAME_MULTIARCH_FINAL) \
|
---|
181 | $(PATH_MULTIARCH_TEMP)/$(PACKAGE_NAME_MULTIARCH.x86)
|
---|
182 | else
|
---|
183 | OTHER_CLEAN += \
|
---|
184 | $(PACKAGE_NAME_MULTIARCH_COMMONCAB)
|
---|
185 | endif
|
---|
186 | else
|
---|
187 | OTHER_CLEAN += \
|
---|
188 | $(PACKAGE_NAME_FINAL)
|
---|
189 | endif
|
---|
190 |
|
---|
191 | ifdef VBOX_WITH_MSM_INSTALL
|
---|
192 | OTHER_CLEAN += \
|
---|
193 | $(foreach module,$(VBOX_INSTALLER_MERGE_MODULES), \
|
---|
194 | $(foreach lang,$(VBOX_INSTALLER_MERGE_LANGUAGES), \
|
---|
195 | $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module).msm.dep \
|
---|
196 | $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).msm \
|
---|
197 | $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).wixobj \
|
---|
198 | $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).wixpdb))
|
---|
199 | endif
|
---|
200 |
|
---|
201 | #
|
---|
202 | # Suppress/skip the following ICE (Internal Consistency Evaluators):
|
---|
203 | # - ICE64: Checks that new directories in the user profile are removed correctly in roaming scenarios.
|
---|
204 | # -> We don't want to remove system folders (like "Microsoft/Internet Explorer/Quick Launch").
|
---|
205 | # - ICE69: Checks if file references are within the same component.
|
---|
206 | # -> We reference to files within different components, but these components are installed using
|
---|
207 | # the same feature, so that's fine.
|
---|
208 | #
|
---|
209 | VBOX_MSI_ICE_IGNORE := \
|
---|
210 | -ice:64 \
|
---|
211 | -ice:69
|
---|
212 |
|
---|
213 | #
|
---|
214 | # Create intermediate XML file for languages (needed for .MSI linking).
|
---|
215 | #
|
---|
216 | # Note: The double escaping of $(dir $@) in the prereq/dep list is because we first have
|
---|
217 | # to escape the expansion of the $(eval ) argument and then the definition of the
|
---|
218 | # rule. The statement is finally expanded during second dependency expansion, which
|
---|
219 | # takes place after all makefiles has been loaded and with the @ variable defined.
|
---|
220 | #
|
---|
221 | define def_vbox_lang_xml
|
---|
222 | $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl: $(VBOX_PATH_WIN_INST_SRC)/NLS/$(lang).wxl | $$$$(dir $$$$@)
|
---|
223 | $$(call MSG_GENERATE,,$$@,$$<)
|
---|
224 | $(QUIET)$(INSTALL) -m 0644 $$< $$@
|
---|
225 | endef
|
---|
226 |
|
---|
227 | $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
|
---|
228 | $(eval $(def_vbox_lang_xml)))
|
---|
229 |
|
---|
230 | #
|
---|
231 | # Create intermediate XML file for licenses (needed for .MSI linking).
|
---|
232 | # These files are created from the original .RTF files in the /docs directory.
|
---|
233 | #
|
---|
234 | # Note: The redirect command below will open $$@ as stdout in append+text mode
|
---|
235 | # and then exec cat, thus appending the license file to the result file.
|
---|
236 | #
|
---|
237 | # Note: The license_file variable has to be created before def_vbox_license_xml
|
---|
238 | # is expanded by the 2nd eval because we rely on the that expansion
|
---|
239 | # replacing all $(license_file) (and $(lang)) references before evaluation.
|
---|
240 | #
|
---|
241 | # Note: The REDIRECT + ECHO_EXT is because WiX gets upset if there a newline
|
---|
242 | # between the tag and the RTF license text.
|
---|
243 | #
|
---|
244 | define def_vbox_license_xml
|
---|
245 | $(VBOX_WIN_INST_OUT_DIR)/NLS/License_$(lang).wxl: $(license_file) $(VBOX_WIN_INST_MAKEFILE_DEP) | $$$$(dir $$$$@)
|
---|
246 | $$(call MSG_GENERATE,,$$@,$$<)
|
---|
247 | $(APPEND) -t $$@ '<?xml version="1.0" encoding="utf-8"?>'
|
---|
248 | $(APPEND) $$@ '<WixLocalization xmlns="http://schemas.microsoft.com/wix/2006/localization" Codepage="$(VBOX_BRAND_$(lang)_LANGUAGE_CODEPAGE)" Culture="$(lang)">'
|
---|
249 |
|
---|
250 | $(REDIRECT) -a+to $$@ -- $(ECHO_EXT) -n '<String Id="LicenseText">'
|
---|
251 | $(REDIRECT) -a+to $$@ -- $(SED) -e "s|<|\<|g" -e "s|>|\>|g" $(license_file)
|
---|
252 | $(APPEND) $$@ '</String>'
|
---|
253 |
|
---|
254 | $(APPEND) $$@ '<String Id="LicenseFile">$(license_file)</String>'
|
---|
255 | $(APPEND) $$@ '<String Id="LicenseInstallFileLong">License_$(lang).rtf</String>'
|
---|
256 | $(APPEND) $$@ '<String Id="LicenseInstallFileShort">L_$(lang).rtf</String>'
|
---|
257 |
|
---|
258 | $(APPEND) $$@ '</WixLocalization>'
|
---|
259 | endef
|
---|
260 |
|
---|
261 | $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
|
---|
262 | $(eval local license_file := $(VBOX_BRAND_$(subst en_US_,,$(lang)_)LICENSE_RTF)) \
|
---|
263 | $(eval $(def_vbox_license_xml)))
|
---|
264 |
|
---|
265 | #
|
---|
266 | # Create one intermediate WXI (Windows Installer Include) file for all installers (needed for .MSI compiling).
|
---|
267 | # This file includes all language-specific files (PDFs, CHMs, ...) to install.
|
---|
268 | #
|
---|
269 | # Note: When using the -n switch, append will append a new line after each
|
---|
270 | # argument. The -t switch makes it truncate the file.
|
---|
271 | #
|
---|
272 | $(VBOX_WIN_INST_OUT_DIR)/Files_Main.wxi: $(VBOX_WIN_INST_MAKEFILE_DEP) | $$(dir $$@)
|
---|
273 | $(call MSG_GENERATE,,$@,$<)
|
---|
274 | $(APPEND) -t $@ '<?xml version="1.0" ?>'
|
---|
275 | $(APPEND) $@ '<Include xmlns="http://schemas.microsoft.com/wix/2006/wi">'
|
---|
276 | ifdef VBOX_WITH_DOCS_PACKING
|
---|
277 | $(APPEND) $@ ' <File Id="file_VirtualBox.chm" Name="VirtualBox.chm" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$(PATH_STAGE_BIN)/VirtualBox.chm"></File>'
|
---|
278 | $(APPEND) -n $@ $(foreach lang,$(VBOX_MANUAL_ADD_LANGUAGES), \
|
---|
279 | ' <File Id="file_VirtualBox_$(lang).chm" Name="VirtualBox_$(lang).chm" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$(PATH_STAGE_BIN)/VirtualBox_$(lang).chm"></File>')
|
---|
280 | endif
|
---|
281 | $(APPEND) $@ '</Include>'
|
---|
282 |
|
---|
283 | $(VBOX_WIN_INST_OUT_DIR)/Files_Doc.wxi: $(VBOX_WIN_INST_MAKEFILE_DEP) | $$(dir $$@)
|
---|
284 | $(call MSG_GENERATE,,$@,$<)
|
---|
285 | $(APPEND) -t $@ '<?xml version="1.0" ?>'
|
---|
286 | $(APPEND) $@ '<Include xmlns="http://schemas.microsoft.com/wix/2006/wi">'
|
---|
287 | ifdef VBOX_WITH_DOCS_PACKING
|
---|
288 | $(APPEND) $@ ' <File Id="file_UserManual.pdf" Name="UserManual.pdf" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$(PATH_STAGE_BIN)/UserManual.pdf">'
|
---|
289 | $(APPEND) $@ ' </File>'
|
---|
290 | $(APPEND) -n $@ $(foreach lang,$(VBOX_MANUAL_ADD_LANGUAGES), \
|
---|
291 | ' <File Id="file_UserManual_$(lang).pdf" Name="UserManual_$(lang).pdf" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$(PATH_STAGE_BIN)/UserManual_$(lang).pdf">' \
|
---|
292 | ' </File>')
|
---|
293 | endif
|
---|
294 | $(APPEND) $@ '</Include>'
|
---|
295 |
|
---|
296 | $(VBOX_WIN_INST_OUT_DIR)/Files_License.wxi: $(VBOX_WIN_INST_MAKEFILE_DEP) | $$(dir $$@)
|
---|
297 | $(call MSG_GENERATE,,$@,$<)
|
---|
298 | $(APPEND) -t $@ '<?xml version="1.0" ?>'
|
---|
299 | $(APPEND) $@ '<Include xmlns="http://schemas.microsoft.com/wix/2006/wi">'
|
---|
300 | $(APPEND) $@ ' <File Id="file_License_en_US.rtf" Name="License_en_US.rtf" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$(VBOX_BRAND_LICENSE_RTF)">' \
|
---|
301 | ' </File>'
|
---|
302 | $(APPEND) -n $@ $(foreach lang,$(VBOX_LICENSE_ADD_LANGUAGES), \
|
---|
303 | ' <File Id="file_License_$(lang).rtf" Name="License_$(lang).rtf" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$(VBOX_BRAND_$(lang)_LICENSE_RTF)">' \
|
---|
304 | ' </File>')
|
---|
305 | $(APPEND) $@ '</Include>'
|
---|
306 |
|
---|
307 | $(VBOX_WIN_INST_OUT_DIR)/DirComponentsAndFiles_DTrace.wxi: $(VBOX_WIN_INST_MAKEFILE_DEP) $(PATH_SUB_CURRENT)/../Config.kmk | $$(dir $$@)
|
---|
308 | $(call MSG_GENERATE,,$@,$<)
|
---|
309 | $(QUIET)$(APPEND) -nt "$@" \
|
---|
310 | '<?xml version="1.0" ?>' \
|
---|
311 | '<Include xmlns="http://schemas.microsoft.com/wix/2006/wi">'
|
---|
312 | ifdef VBOX_WITH_DTRACE
|
---|
313 | $(QUIET)$(APPEND) -n "$@" \
|
---|
314 | '<Directory Id="dir_DTrace" Name="dtrace">' \
|
---|
315 | ' <Directory Id="dir_DTrace_lib" Name="lib">' \
|
---|
316 | ' <Directory Id="dir_DTrace_lib_arch" Name="$(KBUILD_TARGET_ARCH)">' \
|
---|
317 | ' <Component Id="cp_dir_DTrace_lib_arch" Guid="7476CDF6-4157-2E17-5CCC-FF92528D2854" Win64="$$(var.Property_Win64)">' \
|
---|
318 | $(foreach file, $(VBOXINST_DTRACE_LIB_ARCH_FILES) \
|
---|
319 | , ' <File Id="file_dtrace_lib_arch_$(subst -,_,$(file))" Name="$(file)" Vital="yes" ' \
|
---|
320 | ' Source="$(PATH_STAGE_BIN)/dtrace/lib/$(KBUILD_TARGET_ARCH)/$(file)" />' ) \
|
---|
321 | ' </Component>' \
|
---|
322 | ' </Directory>' \
|
---|
323 | ' </Directory>' \
|
---|
324 | $(if $(VBOXINST_DTRACE_TESTCASE_ARCH_FILES), \
|
---|
325 | ' <Directory Id="dir_DTrace_testcase" Name="testcase">' \
|
---|
326 | ' <Directory Id="dir_DTrace_testcase_arch" Name="$(KBUILD_TARGET_ARCH)">' \
|
---|
327 | ' <Component Id="cp_dir_DTrace_testcase_arch" Guid="45DF7014-4431-6C40-6DB0-35AF7C690EE1" Win64="$$(var.Property_Win64)">' \
|
---|
328 | $(foreach file, $(VBOXINST_DTRACE_TESTCASE_ARCH_FILES) \
|
---|
329 | , ' <File Id="file_dtrace_testcase_arch_$(subst -,_,$(file))" Name="$(file)" Vital="yes" ' \
|
---|
330 | ' Source="$(PATH_STAGE_BIN)/dtrace/testcase/$(KBUILD_TARGET_ARCH)/$(file)" />' ) \
|
---|
331 | ' </Component>' \
|
---|
332 | ' </Directory>' \
|
---|
333 | ' </Directory>') \
|
---|
334 | $(if $(VBOXINST_DTRACE_SCRIPTS_FILES), \
|
---|
335 | ' <Directory Id="dir_DTrace_scripts" Name="scripts">' \
|
---|
336 | ' <Component Id="cp_dir_DTrace_scripts" Guid="AE07F9D5-4FD9-ACC7-C760-E9923CE01E16" Win64="$$(var.Property_Win64)">' \
|
---|
337 | $(foreach file, $(VBOXINST_DTRACE_SCRIPTS_FILES) \
|
---|
338 | , ' <File Id="file_dtrace_scripts_$(subst -,_,$(file))" Name="$(file)" Vital="yes" ' \
|
---|
339 | ' Source="$(PATH_STAGE_BIN)/dtrace/scripts/$(file)" />' ) \
|
---|
340 | ' </Component>' \
|
---|
341 | ' </Directory>') \
|
---|
342 | '</Directory>'
|
---|
343 | endif
|
---|
344 | $(QUIET)$(APPEND) "$@" '</Include>'
|
---|
345 |
|
---|
346 |
|
---|
347 | $(VBOX_WIN_INST_OUT_DIR)/Shortcuts_StartMenu.wxi: $(VBOX_WIN_INST_MAKEFILE_DEP) | $$(dir $$@)
|
---|
348 | $(call MSG_GENERATE,,$@,$<)
|
---|
349 | $(APPEND) -t $@ '<?xml version="1.0" ?>'
|
---|
350 | $(APPEND) $@ '<Include xmlns="http://schemas.microsoft.com/wix/2006/wi">'
|
---|
351 | #
|
---|
352 | # Documentation (PDF/CHM)
|
---|
353 | #
|
---|
354 | ifdef VBOX_WITH_DOCS_PACKING
|
---|
355 | $(APPEND) $@ ' <Shortcut Id="sc_StartMenu_ManualCHM_en_US" Directory="dir_StartMenuVBox" Name="!(loc.StartMenu_UserManual) (CHM, English)" Description="!(loc.StartMenu_UserManual)"' \
|
---|
356 | ' Target="[INSTALLDIR]\VirtualBox.chm" WorkingDirectory="dir_Documents" Advertise="no"/>'
|
---|
357 | $(APPEND) -n $@ $(foreach lang,$(VBOX_MANUAL_ADD_LANGUAGES), \
|
---|
358 | ' <Shortcut Id="sc_StartMenu_ManualCHM_$(lang)" Directory="dir_StartMenuVBox" Name="!(loc.StartMenu_UserManual) (CHM, $(VBOX_BRAND_$(lang)_LANG_NAME))"' \
|
---|
359 | ' Description="!(loc.StartMenu_UserManual) ($(VBOX_BRAND_$(lang)_LANG_NAME))" Target="[INSTALLDIR]\VirtualBox_$(lang).chm" WorkingDirectory="dir_Documents"/>')
|
---|
360 | endif
|
---|
361 | $(APPEND) $@ ' <Shortcut Id="sc_StartMenu_ManualPDF_en_US" Directory="dir_StartMenuVBox" Name="!(loc.StartMenu_UserManual) (PDF, English)" Description="!(loc.StartMenu_UserManual)"' \
|
---|
362 | ' Target="[INSTALLDIR]\doc\UserManual.pdf" WorkingDirectory="dir_Documents" Advertise="no"/>'
|
---|
363 | $(APPEND) -n $@ $(foreach lang,$(VBOX_MANUAL_ADD_LANGUAGES), \
|
---|
364 | ' <Shortcut Id="sc_StartMenu_ManualPDF_$(lang)" Directory="dir_StartMenuVBox" Name="!(loc.StartMenu_UserManual) (PDF, $(VBOX_BRAND_$(lang)_LANG_NAME))"' \
|
---|
365 | ' Description="!(loc.StartMenu_UserManual) ($(VBOX_BRAND_$(lang)_LANG_NAME))" Target="[INSTALLDIR]\doc\UserManual_$(lang).pdf" WorkingDirectory="dir_Documents"/>')
|
---|
366 | #
|
---|
367 | # License(s) (RTF)
|
---|
368 | #
|
---|
369 | $(APPEND) $@ ' <Shortcut Id="sc_StartMenu_License_en_US" Directory="dir_StartMenuVBox" Name="!(loc.StartMenu_License) (English)" Description="!(loc.StartMenu_License)"' \
|
---|
370 | ' Target="[INSTALLDIR]License_en_US.rtf" WorkingDirectory="INSTALLDIR" Advertise="no"/>'
|
---|
371 | $(APPEND) -n $@ $(foreach lang,$(VBOX_LICENSE_ADD_LANGUAGES), \
|
---|
372 | ' <Shortcut Id="sc_StartMenu_License_$(lang)" Directory="dir_StartMenuVBox" Name="!(loc.StartMenu_License) ($(VBOX_BRAND_$(lang)_LANG_NAME))"' \
|
---|
373 | ' Description="!(loc.StartMenu_License) ($(VBOX_BRAND_$(lang)_LANG_NAME))" Target="License_$(lang).rtf" WorkingDirectory="INSTALLDIR"/>')
|
---|
374 | $(APPEND) $@ '</Include>'
|
---|
375 |
|
---|
376 | #
|
---|
377 | # .MSI linking of the main installer (en_US).
|
---|
378 | #
|
---|
379 | # Note: This will clean up any previous .msi and .wixpdb files to prevent dep
|
---|
380 | # build boxes from filling up with old files.
|
---|
381 | #
|
---|
382 | define def_vbox_link_msi
|
---|
383 | $(VBOX_WIN_INST_OUT_DIR)/$(lang)/$(PACKAGE_NAME_LANG)_$(lang).msi \
|
---|
384 | $(if-expr defined(VBOX_WITH_COMBINED_PACKAGE), + $(VBOX_WIN_INST_OUT_DIR)/common.cab,): \
|
---|
385 | $(VBOX_WIN_INST_OUT_DIR)/$(lang)/VirtualBox_$(lang).wixobj \
|
---|
386 | $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl \
|
---|
387 | $(VBOX_WIN_INST_OUT_DIR)/NLS/License_$(lang).wxl \
|
---|
388 | $(PATH_STAGE_BIN)/VBoxInstallHelper.dll \
|
---|
389 | $(VBOX_SVN_REV_KMK) \
|
---|
390 | $(VBOX_WIN_INST_MAKEFILE_DEP) \
|
---|
391 | $(if-expr defined(VBOX_WITH_MSI_HACK),$(MsiHack_0_OUTDIR)/MsiHack.dll,) \
|
---|
392 | $(if-expr defined(VBOX_WITH_MSI_HACK),$(MsiHack_0_OUTDIR)/MsiHackExtension.dll,) \
|
---|
393 | | $$$$(dir $$$$@)
|
---|
394 | $$(call MSG_L1,Linking installer $$@)
|
---|
395 | $(QUIET)$(RM) -f $$(wildcard $$(@D)/$(PACKAGE_BASE)-r*_$(lang).msi $$(@D)/$(PACKAGE_BASE)-r*_$(lang).wixpdb)
|
---|
396 | kmk_time $(VBOX_PATH_WIX)/light.exe -v -nologo \
|
---|
397 | -loc $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl \
|
---|
398 | -loc $(VBOX_WIN_INST_OUT_DIR)/NLS/License_$(lang).wxl \
|
---|
399 | -ext $(VBOX_PATH_WIX)/WixUIExtension.dll \
|
---|
400 | -ext $(VBOX_PATH_WIX)/WixDifxAppExtension.dll \
|
---|
401 | $(if-expr defined(VBOX_WITH_MSI_HACK),-ext $(MsiHack_0_OUTDIR)/MsiHackExtension.dll,) \
|
---|
402 | $(VBOX_MSI_ICE_IGNORE) \
|
---|
403 | -out $$@ \
|
---|
404 | $$< \
|
---|
405 | $(VBOX_PATH_WIX)/difxapp_$(if-expr "$(KBUILD_TARGET_ARCH)" == "x86",x86,x64).wixlib
|
---|
406 | ifdef VBOX_WITH_COMBINED_PACKAGE
|
---|
407 | $(MV) -f -- $$(@D)/common.cab $$(@D)/../common.cab
|
---|
408 | endif
|
---|
409 | endef
|
---|
410 |
|
---|
411 | $(foreach lang, en_US, $(eval $(def_vbox_link_msi)))
|
---|
412 |
|
---|
413 |
|
---|
414 | #
|
---|
415 | # Merge module linking (all languages).
|
---|
416 | #
|
---|
417 | # Note: This will clean up any previous .msm to prevent dep build boxes from
|
---|
418 | # filling up with old files.
|
---|
419 | #
|
---|
420 | define def_vbox_link_msm
|
---|
421 | $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).msm: \
|
---|
422 | $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).wixobj \
|
---|
423 | $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl \
|
---|
424 | $(VBOX_WIN_INST_OUT_DIR)/NLS/License_$(lang).wxl \
|
---|
425 | $(PATH_STAGE_BIN)/VBoxInstallHelper.dll \
|
---|
426 | $(VBOX_SVN_REV_KMK) \
|
---|
427 | $(VBOX_WIN_INST_MAKEFILE_DEP) \
|
---|
428 | | $$$$(dir $$$$@)
|
---|
429 | $$(call MSG_L1,Linking installer $$@)
|
---|
430 | $(QUIET)$(RM) -f $$(wildcard $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_BASE)-r*_$(lang).msi)
|
---|
431 | $(VBOX_PATH_WIX)/light.exe -v -nologo \
|
---|
432 | -loc $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl \
|
---|
433 | -loc $(VBOX_WIN_INST_OUT_DIR)/NLS/License_$(lang).wxl \
|
---|
434 | -ext $(VBOX_PATH_WIX)/WixDifxAppExtension.dll \
|
---|
435 | $(VBOX_MSI_ICE_IGNORE) \
|
---|
436 | -out $$@ \
|
---|
437 | $$< \
|
---|
438 | $(VBOX_PATH_WIX)/difxapp_$(if-expr "$(KBUILD_TARGET_ARCH)" == "x86",x86,x64).wixlib
|
---|
439 | $(RM) -f $(VBOX_WIN_INST_OUT_DIR)/NLS/$(lang).mst
|
---|
440 | $(call VBOX_SIGN_FILE_FN,$$@,$(VBOX_PRODUCT) $(VBOX_VERSION_STRING)r$(VBOX_SVN_REV) ($(KBUILD_TARGET_ARCH)),,,disable-dual-signing)
|
---|
441 | endef
|
---|
442 |
|
---|
443 | $(if $(VBOX_WITH_MSM_INSTALL), \
|
---|
444 | $(foreach module,$(VBOX_INSTALLER_MERGE_MODULES), \
|
---|
445 | $(foreach lang,$(VBOX_INSTALLER_MERGE_LANGUAGES), \
|
---|
446 | $(eval $(def_vbox_link_msm)))),)
|
---|
447 |
|
---|
448 |
|
---|
449 | #
|
---|
450 | # Add dependencies that makes sure necessary bits gets built.
|
---|
451 | # For combined packages we always use the .ISO from the amd64 build.
|
---|
452 | #
|
---|
453 | ifdef VBOX_WITH_COMBINED_PACKAGE
|
---|
454 | VBOX_MSI_DEPENDENCIES := \
|
---|
455 | $(if $(VBOX_WITH_ADDITIONS_PACKING),$(PATH_MULTIARCH_GUEST_ADDITIONS_ISO)/VBoxGuestAdditions.iso)
|
---|
456 | else
|
---|
457 | VBOX_MSI_DEPENDENCIES := \
|
---|
458 | $(if $(VBOX_WITH_ADDITIONS_PACKING),$(VBOX_PATH_ADDITIONS_ISO)/VBoxGuestAdditions.iso)
|
---|
459 | endif
|
---|
460 |
|
---|
461 | #
|
---|
462 | # A few manual dependencies to make sure everything is rebuilt when they should.
|
---|
463 | #
|
---|
464 | $(PATH_SUB_CURRENT)/VirtualBox.wxs: \
|
---|
465 | $(PATH_SUB_CURRENT)/Properties.wxi \
|
---|
466 | $(PATH_SUB_CURRENT)/VBoxMergeApp.wxi
|
---|
467 |
|
---|
468 | $(PATH_SUB_CURRENT)/VBoxMergeApp.wxi $(PATH_SUB_CURRENT)/VirtualBox.wxs: \
|
---|
469 | $(VBOX_WIN_INST_OUT_DIR)/Files_Doc.wxi \
|
---|
470 | $(VBOX_WIN_INST_OUT_DIR)/DirComponentsAndFiles_DTrace.wxi \
|
---|
471 | $(VBOX_WIN_INST_OUT_DIR)/Files_License.wxi \
|
---|
472 | $(VBOX_WIN_INST_OUT_DIR)/Files_Main.wxi \
|
---|
473 | $(VBOX_WIN_INST_OUT_DIR)/VBoxKey.wxi \
|
---|
474 | $(VBOX_WIN_INST_OUT_DIR)/VBoxGuiNLS.wxi \
|
---|
475 | $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib.wxi \
|
---|
476 | $(VBOX_WIN_INST_OUT_DIR)/VBoxUnattendedTemplateComponent.wxi
|
---|
477 |
|
---|
478 | #
|
---|
479 | # MSI compile.
|
---|
480 | #
|
---|
481 | define def_vbox_compile_wixobj
|
---|
482 | includedep $(VBOX_WIN_INST_OUT_DIR)/$(lang)/VirtualBox_$(lang).wixobj.dep
|
---|
483 | $(VBOX_WIN_INST_OUT_DIR)/$(lang)/VirtualBox_$(lang).wixobj: \
|
---|
484 | $(PATH_SUB_CURRENT)/VirtualBox.wxs \
|
---|
485 | $(PATH_SUB_CURRENT)/UserInterface.wxi \
|
---|
486 | $(if $(VBOX_WITH_MSM_INSTALL), \
|
---|
487 | $(foreach module,$(VBOX_INSTALLER_MERGE_MODULES), \
|
---|
488 | $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).msm), \
|
---|
489 | $(VBOX_WIN_INST_OUT_DIR)/Shortcuts_StartMenu.wxi \
|
---|
490 | $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib.wxi \
|
---|
491 | $(if $(VBOX_WITH_32_ON_64_MAIN_API),$(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib_x86.wxi,) \
|
---|
492 | $(VBOX_WIN_INST_OUT_DIR)/VBoxKey.wxi \
|
---|
493 | $(VBOX_WIN_INST_OUT_DIR)/VBoxUnattendedTemplateComponent.wxi \
|
---|
494 | $(if $(VBOX_WITH_QTGUI),$(VBOX_WIN_INST_OUT_DIR)/VBoxGuiNLS.wxi) \
|
---|
495 | $(VBOX_MSI_DEPENDENCIES)) \
|
---|
496 | $(VBOX_VERSION_STAMP) \
|
---|
497 | | $$$$(dir $$$$@)
|
---|
498 | $(QUIET)$(RM) -f $@
|
---|
499 | $(REDIRECT) \
|
---|
500 | -E 'PATH_OUT=$(subst /,\,$(PATH_OUT))' \
|
---|
501 | -E 'PATH_TARGET=$(subst /,\,$(VBOX_WIN_INST_OUT_DIR))' \
|
---|
502 | -E 'PATH_ROOT=$(subst /,\,$(PATH_ROOT))' \
|
---|
503 | -E 'PATH_MULTIARCH_GUEST_ADDITIONS_ISO=$(subst /,\,$(PATH_MULTIARCH_GUEST_ADDITIONS_ISO))' \
|
---|
504 | -E 'VBOX_PATH_WIN_INST_SRC=$(subst /,\,$(VBOX_PATH_WIN_INST_SRC))' \
|
---|
505 | -E 'VBOX_BRAND_WIN_INST_DLGJPG=$(subst /,\,$(VBOX_BRAND_WIN_INST_DLGJPG))' \
|
---|
506 | -E 'VBOX_ADD_LANGUAGES=$(VBOX_INSTALLER_ADD_LANGUAGES)' \
|
---|
507 | -E 'VBOX_BRAND_LICENSE_RTF=$(subst /,\,$(VBOX_BRAND_LICENSE_RTF))' \
|
---|
508 | $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
|
---|
509 | -E 'VBOX_BRAND_$(lang)_LICENSE_RTF=$(subst /,\,$(VBOX_BRAND_$(subst en_US_,,$(lang)_)LICENSE_RTF))') \
|
---|
510 | -E 'VBOX_BUILD_NR_FOR_INST=$(VBOX_VERSION_BUILD)' \
|
---|
511 | -E 'VBOX_VENDOR=$(VBOX_VENDOR)' \
|
---|
512 | -E 'VBOX_VENDOR_SHORT=$(VBOX_VENDOR_SHORT)' \
|
---|
513 | -E 'VBOX_PRODUCT=$(VBOX_PRODUCT)' \
|
---|
514 | -E 'VBOX_C_YEAR=$(VBOX_C_YEAR)' \
|
---|
515 | -E 'VBOX_VERSION_STRING=$(VBOX_VERSION_STRING)' \
|
---|
516 | -E 'VBOX_VERSION_STRING_RAW=$(VBOX_VERSION_STRING_RAW)' \
|
---|
517 | -E 'VBOX_VERSION_MAJOR_INST=$(VBOX_VERSION_MAJOR)' \
|
---|
518 | -E 'VBOX_VERSION_MINOR_INST=$(VBOX_VERSION_MINOR)' \
|
---|
519 | -E 'VBOX_SIGNING_MODE=$(strip $(if $(VBOX_SIGNING_MODE),$(VBOX_SIGNING_MODE),none))' \
|
---|
520 | -E 'VBOX_CAB_COMPRESSION_LEVEL=$(if-expr $(lang) == "en_US",$(VBOX_CAB_COMPRESSION_LEVEL),none)' \
|
---|
521 | -E 'VBOX_CAB_COMPRESSION_LEVEL_COMMON=$(if-expr $(lang) == "en_US" && $(KBUILD_TARGET_ARCH) == "amd64",$(VBOX_CAB_COMPRESSION_LEVEL),none)' \
|
---|
522 | -E 'VBOX_GUI_USE_QGL=$(if $(VBOX_GUI_USE_QGL),yes,no)' \
|
---|
523 | -E 'VBOX_MIDL_PROXY_CLSID=$(VBOX_MIDL_PROXY_CLSID)' \
|
---|
524 | $(if $(VBOX_WITH_MSM_INSTALL), \
|
---|
525 | $(foreach module,$(VBOX_INSTALLER_MERGE_MODULES), \
|
---|
526 | -E 'VBOX_WIN_INST_MERGE_$(toupper $(module))=$(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).msm'),) \
|
---|
527 | -E 'VBOX_WINDOWS_ICON_FILE=$(subst /,\,$(VBOX_WINDOWS_ICON_FILE))' \
|
---|
528 | -E 'VBOX_QT_INFIX=$(VBOX_QT_INFIX)' \
|
---|
529 | -E 'VBOX_WITH_32_ON_64_MAIN_API=$(if $(VBOX_WITH_32_ON_64_MAIN_API),yes,no)' \
|
---|
530 | -E 'VBOX_WITH_ADDITIONS_PACKING=$(if $(VBOX_WITH_ADDITIONS_PACKING),yes,no)' \
|
---|
531 | -E 'VBOX_WITH_COMBINED_PACKAGE=$(if $(VBOX_WITH_COMBINED_PACKAGE),yes,no)' \
|
---|
532 | -E 'VBOX_WITH_CROGL=$(if $(VBOX_WITH_CROGL),yes,no)' \
|
---|
533 | -E 'VBOX_WITH_DEBUGGER_GUI=$(if-expr defined(VBOX_WITH_DEBUGGER_GUI) && defined(VBOX_WITH_QTGUI),yes,no)' \
|
---|
534 | -E 'VBOX_WITH_DOCS_PACKING=$(if $(VBOX_WITH_DOCS_PACKING),yes,no)' \
|
---|
535 | -E 'VBOX_WITH_DRAG_AND_DROP=$(if $(VBOX_WITH_DRAG_AND_DROP),yes,no)' \
|
---|
536 | -E 'VBOX_WITH_DTRACE=$(if $(VBOX_WITH_DTRACE),yes,no)' \
|
---|
537 | -E 'VBOX_WITH_EFIFW_PACKING=$(if $(VBOX_WITH_EFIFW_PACKING),yes,no)' \
|
---|
538 | -E 'VBOX_WITH_EXTPACK=$(if $(VBOX_WITH_EXTPACK),yes,no)' \
|
---|
539 | -E 'VBOX_WITH_GUEST_CONTROL=$(if $(VBOX_WITH_GUEST_CONTROL),yes,no)' \
|
---|
540 | -E 'VBOX_WITH_GUEST_PROPS=$(if $(VBOX_WITH_GUEST_PROPS),yes,no)' \
|
---|
541 | -E 'VBOX_WITH_HARDENING=$(if $(VBOX_WITH_HARDENING),yes,no)' \
|
---|
542 | -E 'VBOX_WITH_LICENSE_DISPLAY=$(if $(VBOX_WITH_LICENSE_DISPLAY),yes,no)' \
|
---|
543 | -E 'VBOX_WITH_MIDL_PROXY_STUB=$(if $(VBOX_WITH_MIDL_PROXY_STUB),yes,no)' \
|
---|
544 | -E 'VBOX_WITH_MSM_INSTALL=$(if $(VBOX_WITH_MSM_INSTALL),yes,no)' \
|
---|
545 | -E 'VBOX_WITH_NETFLT=$(if $(VBOX_WITH_NETFLT),yes,no)' \
|
---|
546 | -E 'VBOX_WITH_PYTHON=$(if $(VBOX_WITH_PYTHON),yes,no)' \
|
---|
547 | -E 'VBOX_WITH_QTGUI=$(if $(VBOX_WITH_QTGUI),yes,no)' \
|
---|
548 | -E 'VBOX_WITH_SECURELABEL=$(if $(VBOX_WITH_SECURELABEL),yes,no)' \
|
---|
549 | -E 'VBOX_WITH_SERIALNUMBER_INSTALL=$(if $(VBOX_WITH_SERIALNUMBER_INSTALL),yes,no)' \
|
---|
550 | -E 'VBOX_WITH_VIDEOHWACCEL=$(if $(VBOX_WITH_VIDEOHWACCEL),yes,no)' \
|
---|
551 | -E 'VBOX_WITH_VRDP=$(if-expr defined(VBOX_WITH_VRDP) && !defined(VBOX_WITH_EXTPACK_PUEL),yes,no)' \
|
---|
552 | -E 'VBOX_WITH_WEBSERVICES=$(if $(VBOX_WITH_WEBSERVICES),yes,no)' \
|
---|
553 | -E 'VBOX_WITH_SDS=$(if $(VBOX_WITH_SDS),yes,no)' \
|
---|
554 | -E 'VBOX_WITH_UNATTENDED=$(if $(VBOX_WITH_UNATTENDED),yes,no)' \
|
---|
555 | -E 'BUILD_TYPE=$(KBUILD_TYPE)' \
|
---|
556 | -E 'BUILD_TARGET_ARCH=$(KBUILD_TARGET_ARCH)' \
|
---|
557 | -E 'VBOX_VCC_TOOL_STEM=$(VBOX_VCC_TOOL_STEM)' \
|
---|
558 | -- \
|
---|
559 | $(VBOX_PATH_WIX)/candle.exe $(filter-out $(VBOX_VERSION_STAMP),$$<) \
|
---|
560 | -ext $(VBOX_PATH_WIX)/WixUIExtension.dll \
|
---|
561 | -ext $(VBOX_PATH_WIX)/WixDifxAppExtension.dll \
|
---|
562 | -out $$@
|
---|
563 | # Generate wxi dependencies based on the sourceLineNumber references in the output.
|
---|
564 | $(QUIET)$(APPEND) -t '$$@.dep' '$$@: \'
|
---|
565 | $(QUIET)$(VBOX_XSLTPROC) $(VBOX_PATH_WIN_INST_SRC)/dep.xsl "$$@" >> "$$@.dep"
|
---|
566 | $(QUIET)$(VBOX_XSLTPROC) $(VBOX_PATH_WIN_INST_SRC)/dep2.xsl "$$@" | sort | $(SED) '$!N; /^\(.*\)\n\1$$$$/!P; D' >> "$$@.dep"
|
---|
567 | $(QUIET)$(APPEND) -n '$$@.dep' '' ''
|
---|
568 | endef
|
---|
569 |
|
---|
570 | $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
|
---|
571 | $(eval $(def_vbox_compile_wixobj)))
|
---|
572 |
|
---|
573 | #
|
---|
574 | # MSM (merge module) compile.
|
---|
575 | #
|
---|
576 | define def_vbox_compile_msm
|
---|
577 | includedep $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).wixobj
|
---|
578 | $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).wixobj: \
|
---|
579 | $(PATH_SUB_CURRENT)/VBoxMerge$(module).wxs \
|
---|
580 | $(PATH_SUB_CURRENT)/VBoxMerge$(module).wxi \
|
---|
581 | $(PATH_SUB_CURRENT)/VBoxMerge$(module)CA.wxi \
|
---|
582 | $(PATH_SUB_CURRENT)/VBoxMerge$(module)Seq.wxi \
|
---|
583 | $(PATH_SUB_CURRENT)/UserInterface.wxi \
|
---|
584 | $(VBOX_WIN_INST_OUT_DIR)/Shortcuts_StartMenu.wxi \
|
---|
585 | $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib.wxi \
|
---|
586 | $(if $(VBOX_WITH_32_ON_64_MAIN_API),$(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib_x86.wxi,) \
|
---|
587 | $(VBOX_WIN_INST_OUT_DIR)/VBoxKey.wxi \
|
---|
588 | $(VBOX_WIN_INST_OUT_DIR)/VBoxUnattendedTemplateComponent.wxi \
|
---|
589 | $(if $(VBOX_WITH_QTGUI),$(VBOX_WIN_INST_OUT_DIR)/VBoxGuiNLS.wxi) \
|
---|
590 | $(VBOX_MSI_DEPENDENCIES) \
|
---|
591 | $(VBOX_VERSION_STAMP) \
|
---|
592 | | $$$$(dir $$$$@)
|
---|
593 | $(QUIET)$(RM) -f $@
|
---|
594 | $(REDIRECT) \
|
---|
595 | -E 'PATH_OUT=$(subst /,\,$(PATH_OUT))' \
|
---|
596 | -E 'PATH_TARGET=$(subst /,\,$(VBOX_WIN_INST_OUT_DIR))' \
|
---|
597 | -E 'PATH_ROOT=$(subst /,\,$(PATH_ROOT))' \
|
---|
598 | -E 'PATH_MULTIARCH_GUEST_ADDITIONS_ISO=$(subst /,\,$(PATH_MULTIARCH_GUEST_ADDITIONS_ISO))' \
|
---|
599 | -E 'VBOX_PATH_WIN_INST_SRC=$(subst /,\,$(VBOX_PATH_WIN_INST_SRC))' \
|
---|
600 | -E 'VBOX_BRAND_WIN_INST_DLGJPG=$(subst /,\,$(VBOX_BRAND_WIN_INST_DLGJPG))' \
|
---|
601 | -E 'VBOX_ADD_LANGUAGES=$(VBOX_INSTALLER_ADD_LANGUAGES)' \
|
---|
602 | -E 'VBOX_BRAND_LICENSE_RTF=$(subst /,\,$(VBOX_BRAND_LICENSE_RTF))' \
|
---|
603 | $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
|
---|
604 | -E 'VBOX_BRAND_$(lang)_LICENSE_RTF=$(subst /,\,$(VBOX_BRAND_$(subst en_US_,,$(lang)_)LICENSE_RTF))') \
|
---|
605 | -E 'VBOX_BUILD_NR_FOR_INST=$(VBOX_VERSION_BUILD)' \
|
---|
606 | -E 'VBOX_VENDOR=$(VBOX_VENDOR)' \
|
---|
607 | -E 'VBOX_VENDOR_SHORT=$(VBOX_VENDOR_SHORT)' \
|
---|
608 | -E 'VBOX_PRODUCT=$(VBOX_PRODUCT)' \
|
---|
609 | -E 'VBOX_C_YEAR=$(VBOX_C_YEAR)' \
|
---|
610 | -E 'VBOX_VERSION_STRING=$(VBOX_VERSION_STRING)' \
|
---|
611 | -E 'VBOX_VERSION_STRING_RAW=$(VBOX_VERSION_STRING_RAW)' \
|
---|
612 | -E 'VBOX_VERSION_MAJOR_INST=$(VBOX_VERSION_MAJOR)' \
|
---|
613 | -E 'VBOX_VERSION_MINOR_INST=$(VBOX_VERSION_MINOR)' \
|
---|
614 | -E 'VBOX_SIGNING_MODE=$(strip $(if $(VBOX_SIGNING_MODE),$(VBOX_SIGNING_MODE),none))' \
|
---|
615 | -E 'VBOX_CAB_COMPRESSION_LEVEL=$(VBOX_CAB_COMPRESSION_LEVEL)' \
|
---|
616 | -E 'VBOX_CAB_COMPRESSION_LEVEL_COMMON=$(VBOX_CAB_COMPRESSION_LEVEL)' \
|
---|
617 | -E 'VBOX_GUI_USE_QGL=$(if $(VBOX_GUI_USE_QGL),yes,no)' \
|
---|
618 | -E 'VBOX_MIDL_PROXY_CLSID=$(VBOX_MIDL_PROXY_CLSID)' \
|
---|
619 | -E 'VBOX_WINDOWS_ICON_FILE=$(subst /,\,$(VBOX_WINDOWS_ICON_FILE))' \
|
---|
620 | -E 'VBOX_QT_INFIX=$(VBOX_QT_INFIX)' \
|
---|
621 | -E 'VBOX_WITH_32_ON_64_MAIN_API=$(if $(VBOX_WITH_32_ON_64_MAIN_API),yes,no)' \
|
---|
622 | -E 'VBOX_WITH_ADDITIONS_PACKING=$(if $(VBOX_WITH_ADDITIONS_PACKING),yes,no)' \
|
---|
623 | -E 'VBOX_WITH_COMBINED_PACKAGE=$(if $(VBOX_WITH_COMBINED_PACKAGE),yes,no)' \
|
---|
624 | -E 'VBOX_WITH_CROGL=$(if $(VBOX_WITH_CROGL),yes,no)' \
|
---|
625 | -E 'VBOX_WITH_DEBUGGER_GUI=$(if-expr defined(VBOX_WITH_DEBUGGER_GUI) && defined(VBOX_WITH_QTGUI),yes,no)' \
|
---|
626 | -E 'VBOX_WITH_DOCS_PACKING=$(if $(VBOX_WITH_DOCS_PACKING),yes,no)' \
|
---|
627 | -E 'VBOX_WITH_DRAG_AND_DROP=$(if $(VBOX_WITH_DRAG_AND_DROP),yes,no)' \
|
---|
628 | -E 'VBOX_WITH_DTRACE=$(if $(VBOX_WITH_DTRACE),yes,no)' \
|
---|
629 | -E 'VBOX_WITH_EFIFW_PACKING=$(if $(VBOX_WITH_EFIFW_PACKING),yes,no)' \
|
---|
630 | -E 'VBOX_WITH_EXTPACK=$(if $(VBOX_WITH_EXTPACK),yes,no)' \
|
---|
631 | -E 'VBOX_WITH_GUEST_CONTROL=$(if $(VBOX_WITH_GUEST_CONTROL),yes,no)' \
|
---|
632 | -E 'VBOX_WITH_GUEST_PROPS=$(if $(VBOX_WITH_GUEST_PROPS),yes,no)' \
|
---|
633 | -E 'VBOX_WITH_HARDENING=$(if $(VBOX_WITH_HARDENING),yes,no)' \
|
---|
634 | -E 'VBOX_WITH_LICENSE_DISPLAY=$(if $(VBOX_WITH_LICENSE_DISPLAY),yes,no)' \
|
---|
635 | -E 'VBOX_WITH_MIDL_PROXY_STUB=$(if $(VBOX_WITH_MIDL_PROXY_STUB),yes,no)' \
|
---|
636 | -E 'VBOX_WITH_MSM_INSTALL=$(if $(VBOX_WITH_MSM_INSTALL),yes,no)' \
|
---|
637 | -E 'VBOX_WITH_NETFLT=$(if $(VBOX_WITH_NETFLT),yes,no)' \
|
---|
638 | -E 'VBOX_WITH_PYTHON=$(if $(VBOX_WITH_PYTHON),yes,no)' \
|
---|
639 | -E 'VBOX_WITH_QTGUI=$(if $(VBOX_WITH_QTGUI),yes,no)' \
|
---|
640 | -E 'VBOX_WITH_SECURELABEL=$(if $(VBOX_WITH_SECURELABEL),yes,no)' \
|
---|
641 | -E 'VBOX_WITH_SERIALNUMBER_INSTALL=$(if $(VBOX_WITH_SERIALNUMBER_INSTALL),yes,no)' \
|
---|
642 | -E 'VBOX_WITH_VIDEOHWACCEL=$(if $(VBOX_WITH_VIDEOHWACCEL),yes,no)' \
|
---|
643 | -E 'VBOX_WITH_VRDP=$(if-expr defined(VBOX_WITH_VRDP) && !defined(VBOX_WITH_EXTPACK_PUEL),yes,no)' \
|
---|
644 | -E 'VBOX_WITH_WEBSERVICES=$(if $(VBOX_WITH_WEBSERVICES),yes,no)' \
|
---|
645 | -E 'VBOX_WITH_SDS=$(if $(VBOX_WITH_SDS),yes,no)' \
|
---|
646 | -E 'VBOX_WITH_UNATTENDED=$(if $(VBOX_WITH_UNATTENDED),yes,no)' \
|
---|
647 | -E 'BUILD_TYPE=$(KBUILD_TYPE)' \
|
---|
648 | -E 'BUILD_TARGET_ARCH=$(KBUILD_TARGET_ARCH)' \
|
---|
649 | -E 'VBOX_VCC_TOOL_STEM=$(VBOX_VCC_TOOL_STEM)' \
|
---|
650 | -- \
|
---|
651 | $(VBOX_PATH_WIX)/candle.exe $(filter-out $(VBOX_VERSION_STAMP),$$<) \
|
---|
652 | -ext $(VBOX_PATH_WIX)/WixUIExtension.dll \
|
---|
653 | -ext $(VBOX_PATH_WIX)/WixDifxAppExtension.dll \
|
---|
654 | -out $$@
|
---|
655 | # Generate wxi dependencies based on the sourceLineNumber references in the output.
|
---|
656 | $(QUIET)$(APPEND) -t '$$@.dep' '$$@: \'
|
---|
657 | $(QUIET)$(VBOX_XSLTPROC) $(VBOX_PATH_WIN_INST_SRC)/dep.xsl "$$@" >> "$$@.dep"
|
---|
658 | $(QUIET)$(VBOX_XSLTPROC) $(VBOX_PATH_WIN_INST_SRC)/dep2.xsl "$$@" | sort | $(SED) '$!N; /^\(.*\)\n\1$$$$/!P; D' >> "$$@.dep"
|
---|
659 | $(QUIET)$(APPEND) -n '$$@.dep' '' ''
|
---|
660 | endef
|
---|
661 |
|
---|
662 | $(foreach module,$(VBOX_INSTALLER_MERGE_MODULES), \
|
---|
663 | $(foreach lang,$(VBOX_INSTALLER_MERGE_LANGUAGES), \
|
---|
664 | $(eval $(def_vbox_compile_msm))))
|
---|
665 |
|
---|
666 | #
|
---|
667 | # VirtualBox Type Library definition.
|
---|
668 | #
|
---|
669 | $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib.wxi: \
|
---|
670 | $(PATH_SUB_CURRENT)/$(if-expr defined(VBOX_WITH_MIDL_PROXY_STUB),VirtualBox_TypeLibWithInterfaces.xsl,VirtualBox_TypeLib.xsl) \
|
---|
671 | $(VBOX_XIDL_FILE) \
|
---|
672 | $(MAKEFILE) \
|
---|
673 | | $$(dir $$@)
|
---|
674 | $(VBOX_XSLTPROC) \
|
---|
675 | $(if-expr defined(VBOX_WITH_MIDL_PROXY_STUB),--stringparam "a_sProxyStubClsid" "$(VBOX_MIDL_PROXY_CLSID)",) \
|
---|
676 | $(if-expr defined(VBOX_WITH_SDS),--stringparam "a_sWithSDS" "yes",) \
|
---|
677 | -o $@ $< $(VBOX_XIDL_FILE)
|
---|
678 |
|
---|
679 | $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib_x86.wxi: \
|
---|
680 | $(PATH_SUB_CURRENT)/$(if-expr defined(VBOX_WITH_MIDL_PROXY_STUB),VirtualBox_TypeLibWithInterfaces.xsl,VirtualBox_TypeLib.xsl) \
|
---|
681 | $(VBOX_XIDL_FILE) \
|
---|
682 | | $$(dir $$@)
|
---|
683 | $(VBOX_XSLTPROC) --stringparam "a_sTarget" "VBoxClient-x86" \
|
---|
684 | $(if-expr defined(VBOX_WITH_MIDL_PROXY_STUB),--stringparam "a_sProxyStubClsid" "$(VBOX_MIDL_PROXY_CLSID)",) \
|
---|
685 | $(if-expr defined(VBOX_WITH_SDS),--stringparam "a_sWithSDS" "yes",) \
|
---|
686 | -o $@ $< $(VBOX_XIDL_FILE)
|
---|
687 |
|
---|
688 | #
|
---|
689 | # Construct the list of GUI translations.
|
---|
690 | # ('-t' -- truncate file; '-n' -- new line between arguments)
|
---|
691 | #
|
---|
692 | include $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.kmk
|
---|
693 | $(call KB_FN_AUTO_CMD_DEPS,$(VBOX_WIN_INST_OUT_DIR)/VBoxGuiNLS.wxi)
|
---|
694 | $(VBOX_WIN_INST_OUT_DIR)/VBoxGuiNLS.wxi: $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.kmk | $$(dir $$@)
|
---|
695 | $(APPEND) -t $@ '<?xml version="1.0" ?>'
|
---|
696 | $(APPEND) $@ '<Include>'
|
---|
697 | $(APPEND) -n $@ $(foreach lang,$(VBOX_APPROVED_GUI_LANGUAGES), \
|
---|
698 | ' <File Id="nlsqt${lang}" Name="qt_${lang}.qm" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$$(env.PATH_OUT)\bin\nls\qt_${lang}.qm" />' \
|
---|
699 | ' <File Id="nlsgui${lang}" Name="VirtualBox_${lang}.qm" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$$(env.PATH_OUT)\bin\nls\VirtualBox_${lang}.qm" />')
|
---|
700 | $(APPEND) $@ '</Include>'
|
---|
701 |
|
---|
702 | #
|
---|
703 | # Edit the version stored in the registry.
|
---|
704 | #
|
---|
705 | $(call KB_FN_AUTO_CMD_DEPS,$(VBOX_WIN_INST_OUT_DIR)/VBoxKey.wxi)
|
---|
706 | $(VBOX_WIN_INST_OUT_DIR)/VBoxKey.wxi: $(PATH_SUB_CURRENT)/VBoxKey.wxi $(VBOX_VERSION_STAMP) | $$(dir $$@)
|
---|
707 | $(SED) -e 's/%VER%/$(VBOX_VERSION_STRING_RAW)/' \
|
---|
708 | -e 's/%VER_EXT%/$(VBOX_VERSION_STRING)/' \
|
---|
709 | --output $@ $<
|
---|
710 |
|
---|
711 | #
|
---|
712 | # Generate the list of unattended template script files.
|
---|
713 | #
|
---|
714 | $(call KB_FN_AUTO_CMD_DEPS,$(VBOX_WIN_INST_OUT_DIR)/VBoxUnattendedTemplateComponent.wxi)
|
---|
715 | $(VBOX_WIN_INST_OUT_DIR)/VBoxUnattendedTemplateComponent.wxi: | $$(dir $$@)
|
---|
716 | $(APPEND) -t -n $@ \
|
---|
717 | '<?xml version="1.0" ?>' \
|
---|
718 | '<Include>'
|
---|
719 | ifdef VBOX_UNATTENDED_TEMPLATES
|
---|
720 | $(APPEND) -n $@ \
|
---|
721 | ' <Directory Id="dir_VBoxUnattendedTemplates" Name="UnattendedTemplates">' \
|
---|
722 | ' <Component Id="cp_UnattendedTemplates" Guid="0571550d-aaa5-4723-c17b-5ddcc29f5686" Win64="$$(var.Property_Win64)">' \
|
---|
723 | $(foreach file,$(VBOX_UNATTENDED_TEMPLATES), \
|
---|
724 | ' <File Id="$(file)" Name="$(file)" Source="$$(env.PATH_OUT)\bin\UnattendedTemplates\$(file)" />') \
|
---|
725 | ' </Component>' \
|
---|
726 | ' </Directory>'
|
---|
727 | endif
|
---|
728 | $(APPEND) $@ '</Include>'
|
---|
729 |
|
---|
730 |
|
---|
731 | #
|
---|
732 | # Build the multi-language version of the .MSI installer (final installer).
|
---|
733 | #
|
---|
734 | # This is done by creating binary .MST diffs of all the language-specific installers
|
---|
735 | # against the en_US one, and then merging the diffs into the en_US one using tools
|
---|
736 | # from the MS Installer SDK.
|
---|
737 | #
|
---|
738 | define def_vbox_create_mst
|
---|
739 | $(VBOX_WIN_INST_OUT_DIR)/$(lang)/$(lang).mst: \
|
---|
740 | $(VBOX_WIN_INST_OUT_DIR)/en_US/$(PACKAGE_NAME_LANG)_en_US.msi \
|
---|
741 | $(VBOX_WIN_INST_OUT_DIR)/$(lang)/VirtualBox_$(lang).wixobj \
|
---|
742 | $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl \
|
---|
743 | $(VBOX_WIN_INST_OUT_DIR)/NLS/License_$(lang).wxl \
|
---|
744 | $(PATH_STAGE_BIN)/VBoxInstallHelper.dll \
|
---|
745 | $(VBOX_SVN_REV_KMK) \
|
---|
746 | $(VBOX_WIN_INST_MAKEFILE_DEP) \
|
---|
747 | $(if-expr defined(VBOX_WITH_MSI_HACK),$(MsiHack_0_OUTDIR)/MsiHack.dll,) \
|
---|
748 | $(if-expr defined(VBOX_WITH_MSI_HACK),$(MsiHack_0_OUTDIR)/MsiHackExtension.dll,) \
|
---|
749 | | $$$$(dir $$$$@)
|
---|
750 | $(call MSG_L1,Creating language diff for $(lang))
|
---|
751 | kmk_time $(VBOX_PATH_WIX)/light.exe -v -nologo \
|
---|
752 | -loc $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl \
|
---|
753 | -loc $(VBOX_WIN_INST_OUT_DIR)/NLS/License_$(lang).wxl \
|
---|
754 | -ext $(VBOX_PATH_WIX)/WixUIExtension.dll \
|
---|
755 | -ext $(VBOX_PATH_WIX)/WixDifxAppExtension.dll \
|
---|
756 | $(if-expr defined(VBOX_WITH_MSI_HACK),-ext $(MsiHack_0_OUTDIR)/MsiHackExtension.dll,) \
|
---|
757 | $(VBOX_MSI_ICE_IGNORE) \
|
---|
758 | -out $$(@D)/$(PACKAGE_NAME_LANG)_$(lang).msi \
|
---|
759 | $$(@D)/VirtualBox_$(lang).wixobj \
|
---|
760 | $(VBOX_PATH_WIX)/difxapp_$(if-expr "$(KBUILD_TARGET_ARCH)" == "x86",x86,x64).wixlib
|
---|
761 | $(REDIRECT) -C $$(@D) -- $(VBOX_PATH_MSITRAN) -g $$< $(PACKAGE_NAME_LANG)_$(lang).msi $(lang).mst
|
---|
762 | $(RM) -f -- $$(@D)/$(PACKAGE_NAME_LANG)_$(lang).msi \
|
---|
763 | $$(@D)/$(PACKAGE_NAME_LANG)_$(lang).wixpdb \
|
---|
764 | $$(@D)/common.cab
|
---|
765 |
|
---|
766 | endef
|
---|
767 |
|
---|
768 | $(foreach lang,$(filter-out en_US, $(VBOX_INSTALLER_LANGUAGES)), \
|
---|
769 | $(eval local lang_id := $(VBOX_BRAND_$(lang)_LANG_ID)) \
|
---|
770 | $(eval $(def_vbox_create_mst)))
|
---|
771 |
|
---|
772 |
|
---|
773 | # Create WISUMINFO argument.
|
---|
774 | VBOX_INS_PROD_ARCH.amd64 = x64
|
---|
775 | VBOX_INS_PROD_ARCH.x86 = Intel
|
---|
776 | VBOX_INS_PROD_ARCH := $(VBOX_INS_PROD_ARCH.$(KBUILD_TARGET_ARCH))
|
---|
777 | $(if $(VBOX_INS_PROD_ARCH),,$(error VBOX_INS_PROD_ARCH is empty!))
|
---|
778 | VBOX_INS_PROD_LANG := 7="$(VBOX_INS_PROD_ARCH);1033
|
---|
779 | $(foreach lang, $(filter-out en_US,$(VBOX_INSTALLER_LANGUAGES))\
|
---|
780 | , $(eval VBOX_INS_PROD_LANG := $(VBOX_INS_PROD_LANG)$(COMMA)$(VBOX_BRAND_$(lang)_LANG_ID)))
|
---|
781 | VBOX_INS_PROD_LANG := $(VBOX_INS_PROD_LANG)"
|
---|
782 |
|
---|
783 | # The multilingual installer rule.
|
---|
784 | $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG).msi: \
|
---|
785 | $(VBOX_WIN_INST_OUT_DIR)/en_US/$(PACKAGE_NAME_LANG)_en_US.msi \
|
---|
786 | $(foreach lang,$(filter-out en_US,$(VBOX_INSTALLER_LANGUAGES)),$(VBOX_WIN_INST_OUT_DIR)/$(lang)/$(lang).mst)
|
---|
787 | $(call MSG_L1,Creating final multilingual MSI)
|
---|
788 | $(QUIET)$(RM) -f $(wildcard $(@D)/$(PACKAGE_BASE)-r*.msi)
|
---|
789 | $(CP) -f -- "$<" "$@"
|
---|
790 |
|
---|
791 | $(foreach lang,$(filter-out en_US,$(VBOX_INSTALLER_LANGUAGES)), \
|
---|
792 | $(NLTAB)$(REDIRECT) -C $(@D)/$(lang) -- $(VBOX_PATH_MSIDB) -d $@ -r $(lang).mst \
|
---|
793 | $(NLTAB)$(REDIRECT) -C $(@D)/$(lang) -- cscript.exe /nologo $(VBOX_PATH_WISUBSTG) $@ $(lang).mst $(VBOX_BRAND_$(lang)_LANG_ID) )
|
---|
794 |
|
---|
795 | $(REDIRECT) -C $(@D) -- cscript.exe /nologo $(VBOX_PATH_WISUBSTG) $(@F)
|
---|
796 | $(REDIRECT) -C $(@D) -- cscript.exe /nologo $(VBOX_PATH_WISUMINFO) $@ $(VBOX_INS_PROD_LANG)
|
---|
797 | $(call VBOX_SIGN_FILE_FN,$@,$(VBOX_PRODUCT) $(VBOX_VERSION_STRING)r$(VBOX_SVN_REV) ($(KBUILD_TARGET_ARCH)),,,disable-dual-signing)
|
---|
798 |
|
---|
799 | # Copy multilingual installer to bin.
|
---|
800 | $(PACKAGE_NAME_FINAL): $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG).msi | $$(dir $$@)
|
---|
801 | $(QUIET)$(RM) -f $(wildcard $(@D)/$(PACKAGE_BASE)-r*$(if-expr defined(VBOX_WITH_COMBINED_PACKAGE),_$(KBUILD_TARGET_ARCH),).msi)
|
---|
802 | $(INSTALL_STAGING) -- $< $@
|
---|
803 |
|
---|
804 |
|
---|
805 | if defined(VBOX_WITH_COMBINED_PACKAGE) && "$(KBUILD_TARGET_ARCH)" == "x86"
|
---|
806 | #
|
---|
807 | # Make the multi-architecture installer by calling our stub builder
|
---|
808 | # with both platform installers (x86 and amd64) + common cab. The common
|
---|
809 | # cab only is needed when we don't use merge modules. We only
|
---|
810 | # need to do this once; so do it on x86 only.
|
---|
811 | #
|
---|
812 | $(PATH_STAGE_BIN)/$(PACKAGE_NAME_MULTIARCH_FINAL): \
|
---|
813 | $(PATH_MULTIARCH_TEMP)/$(PACKAGE_NAME_MULTIARCH.x86) \
|
---|
814 | $(PATH_MULTIARCH_TEMP)/$(PACKAGE_NAME_MULTIARCH.amd64) \
|
---|
815 | $(PATH_STAGE_BIN)/VBoxStub.exe \
|
---|
816 | $$(VBoxStubBld_1_TARGET)
|
---|
817 | $(call MSG_L1,Building Windows combined package)
|
---|
818 | $(if $(VBOX_WITH_MSM_INSTALL),,$(call VBOX_SIGN_FILE_FN,$(PACKAGE_NAME_MULTIARCH_COMMONCAB)))
|
---|
819 | $(REDIRECT) -C $(@D) -- \
|
---|
820 | $(VBoxStubBld_1_TARGET) -out $@ \
|
---|
821 | -target-x86 $(PATH_MULTIARCH_TEMP)/$(PACKAGE_NAME_MULTIARCH.x86) \
|
---|
822 | -target-amd64 $(PATH_MULTIARCH_TEMP)/$(PACKAGE_NAME_MULTIARCH.amd64) \
|
---|
823 | $(if $(VBOX_WITH_MSM_INSTALL),,-target-all $(PACKAGE_NAME_MULTIARCH_COMMONCAB)) \
|
---|
824 | -stub $(PATH_STAGE_BIN)/VBoxStub.exe
|
---|
825 | $(VBOX_VCC_EDITBIN) /IntegrityCheck:NO $@
|
---|
826 | $(call VBOX_SIGN_FILE_FN,$@)
|
---|
827 | endif
|
---|
828 |
|
---|
829 |
|
---|
830 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|