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