1 | # $Id: Makefile.kmk 51027 2014-04-10 09:07:18Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the Windows installer.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2014 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 |
|
---|
47 |
|
---|
48 | #
|
---|
49 | # Globals and targets.
|
---|
50 | # Note: en_US *must* come first for the dependency file generation.
|
---|
51 | #
|
---|
52 | VBOX_INSTALLER_LANGUAGES = en_US de_DE fr_FR it_IT zh_TW
|
---|
53 | VBOX_INSTALLER_LANGUAGES += $(VBOX_INSTALLER_ADD_LANGUAGES)
|
---|
54 |
|
---|
55 | #
|
---|
56 | # List of merge modules to use.
|
---|
57 | #
|
---|
58 | VBOX_INSTALLER_MERGE_MODULES = App USB NetAdp NetFlt Python
|
---|
59 |
|
---|
60 | #
|
---|
61 | # We don't have the license text in another language than English yet,
|
---|
62 | # so just define the branding targets to use the English one for now.
|
---|
63 | #
|
---|
64 | $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
|
---|
65 | $(eval VBOX_BRAND_$(lang)_LICENSE_RTF := $(VBOX_BRAND_LICENSE_RTF)) \
|
---|
66 | $(eval VBOX_BRAND_$(lang)_LANGUAGE_CODEPAGE := 1252))
|
---|
67 |
|
---|
68 | # Some languages need another codepage than 1252. Override them here.
|
---|
69 | VBOX_BRAND_zh_TW_LANGUAGE_CODEPAGE := 950
|
---|
70 |
|
---|
71 | VBOX_PATH_WIN_INST_SRC := $(PATH_SUB_CURRENT)
|
---|
72 | VBOX_WIN_INST_OUT_DIR := $(PATH_TARGET)/Installer/win
|
---|
73 |
|
---|
74 | #
|
---|
75 | # If we want to build a combined package, we separate all common stuff
|
---|
76 | # (that is all 100% identical content between 32-/64-bit builds)
|
---|
77 | # into an own .cab file to save space. This .cab file then gets included
|
---|
78 | # and used by the 32-/64-bit installers.
|
---|
79 | #
|
---|
80 | ifdef VBOX_WITH_COMBINED_PACKAGE
|
---|
81 | VBOX_INSTALLER_COMMON_DISKID := 2
|
---|
82 | else
|
---|
83 | VBOX_INSTALLER_COMMON_DISKID := 1
|
---|
84 | endif
|
---|
85 |
|
---|
86 | ## @todo VBOX_ prefixes!
|
---|
87 | PACKAGE_BASE := VirtualBox-$(VBOX_VERSION_STRING)
|
---|
88 | PACKAGE_NAME_LANG := $(PACKAGE_BASE)-r$(VBOX_SVN_REV)
|
---|
89 | PACKAGE_NAME_FINAL := $(PATH_STAGE_BIN)/$(PACKAGE_NAME_LANG).msi
|
---|
90 |
|
---|
91 | ifdef VBOX_WITH_COMBINED_PACKAGE
|
---|
92 | PATH_MULTIARCH_TEMP := $(PATH_OUT_BASE)/win.x86/$(KBUILD_TYPE)/obj/Installer
|
---|
93 | PATH_MULTIARCH_GUEST_ADDITIONS_ISO := $(PATH_OUT_BASE)/win.amd64/$(KBUILD_TYPE)/bin/additions
|
---|
94 | PACKAGE_NAME_MULTIARCH := $(PACKAGE_NAME_LANG)-MultiArch
|
---|
95 | PACKAGE_NAME_MULTIARCH.x86 := $(PACKAGE_NAME_MULTIARCH)_x86.msi
|
---|
96 | PACKAGE_NAME_MULTIARCH.amd64 := $(PACKAGE_NAME_MULTIARCH)_amd64.msi
|
---|
97 | PACKAGE_NAME_FINAL := $(PATH_MULTIARCH_TEMP)/$(PACKAGE_NAME_MULTIARCH.$(KBUILD_TARGET_ARCH))
|
---|
98 | PACKAGE_NAME_MULTIARCH_FINAL := $(PACKAGE_NAME_MULTIARCH).exe
|
---|
99 | PACKAGE_NAME_MULTIARCH_COMMONCAB := common.cab
|
---|
100 |
|
---|
101 | BLDDIRS += $(PATH_MULTIARCH_TEMP)
|
---|
102 | PACKING += $(PACKAGE_NAME_FINAL)
|
---|
103 | ifeq ($(KBUILD_TARGET_ARCH),x86)
|
---|
104 | PACKING += $(PATH_STAGE_BIN)/$(PACKAGE_NAME_MULTIARCH_FINAL)
|
---|
105 | endif
|
---|
106 | else
|
---|
107 | PACKING += $(PACKAGE_NAME_FINAL)
|
---|
108 | endif
|
---|
109 | BLDDIRS += \
|
---|
110 | $(VBOX_WIN_INST_OUT_DIR) \
|
---|
111 | $(VBOX_WIN_INST_OUT_DIR)/NLS/
|
---|
112 |
|
---|
113 | OTHER_CLEAN += \
|
---|
114 | $(VBOX_WIN_INST_OUT_DIR)/VirtualBox.wixobj \
|
---|
115 | $(VBOX_WIN_INST_OUT_DIR)/VirtualBox.wixobj.dep \
|
---|
116 | $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib.wxi \
|
---|
117 | $(VBOX_WIN_INST_OUT_DIR)/VBoxGuiNLS.wxi \
|
---|
118 | $(VBOX_WIN_INST_OUT_DIR)/VBoxKey.wxi \
|
---|
119 | $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
|
---|
120 | $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl \
|
---|
121 | $(VBOX_WIN_INST_OUT_DIR)/NLS/License_$(lang).wxl \
|
---|
122 | $(VBOX_WIN_INST_OUT_DIR)/NLS/$(lang).mst \
|
---|
123 | $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_$(lang).wixobj \
|
---|
124 | $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG)_$(lang).msi) \
|
---|
125 | $(VBOX_WIN_INST_OUT_DIR)/Files_Doc.wxi \
|
---|
126 | $(VBOX_WIN_INST_OUT_DIR)/Files_License.wxi \
|
---|
127 | $(VBOX_WIN_INST_OUT_DIR)/Files_Main.wxi \
|
---|
128 | $(VBOX_WIN_INST_OUT_DIR)/Shortcuts_StartMenu.wxi
|
---|
129 |
|
---|
130 | ifdef VBOX_WITH_COMBINED_PACKAGE
|
---|
131 | ifeq ($(KBUILD_TARGET_ARCH),x86)
|
---|
132 | OTHER_CLEAN += \
|
---|
133 | $(PATH_STAGE_BIN)/$(PACKAGE_NAME_MULTIARCH_FINAL) \
|
---|
134 | $(PATH_MULTIARCH_TEMP)/$(PACKAGE_NAME_MULTIARCH.x86) \
|
---|
135 | $(PATH_MULTIARCH_TEMP)/$(PACKAGE_NAME_MULTIARCH.am64) \
|
---|
136 | $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_MULTIARCH_COMMONCAB)
|
---|
137 | else
|
---|
138 | # Nothing to do here yet.
|
---|
139 | endif
|
---|
140 | else
|
---|
141 | OTHER_CLEAN += \
|
---|
142 | $(PACKAGE_NAME_FINAL)
|
---|
143 | endif
|
---|
144 |
|
---|
145 | ifdef VBOX_WITH_MSM_INSTALL
|
---|
146 | $(foreach module,$(VBOX_INSTALLER_MERGE_MODULES), \
|
---|
147 | $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
|
---|
148 | OTHER_CLEAN += \
|
---|
149 | $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module).msm.dep \
|
---|
150 | $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).msm \
|
---|
151 | $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).wixobj \
|
---|
152 | $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).wixpdb))
|
---|
153 | endif
|
---|
154 |
|
---|
155 | ifdef VBOX_WITH_BUNDLED_INSTALLER
|
---|
156 | ifeq ($(KBUILD_TARGET),darwin)
|
---|
157 | VBOX_TMP_DIR ?= /VBox
|
---|
158 | ZIP = /usr/bin/zip
|
---|
159 | else
|
---|
160 | VBOX_TMP_DIR ?= c:\Temp
|
---|
161 | ZIP = zip
|
---|
162 | endif
|
---|
163 |
|
---|
164 | ifndef VBOX_PATH_PACK_TMP
|
---|
165 | VBOX_PATH_PACK_TMP := $(VBOX_WIN_INST_OUT_DIR)
|
---|
166 | endif
|
---|
167 |
|
---|
168 | VBOX_PATH_PACK_BUNDLE_TMP = $(PATH_STAGE_BIN)/VBoxWinBundleInstaller
|
---|
169 | VBOX_PATH_PACK_BUNDLE_ZIP = $(PATH_STAGE_BIN)/VBoxWinBundleInstaller-$(KBUILD_TARGET_ARCH).zip
|
---|
170 |
|
---|
171 | VBOX_BRAND_WIN_INST_NAME.x86 = $(PACKAGE_BASE)-Win_x86$(VBOX_BRAND_WIN_INST_EXT).msi
|
---|
172 | VBOX_BRAND_WIN_INST_NAME.amd64 = $(PACKAGE_BASE)-Win_amd64$(VBOX_BRAND_WIN_INST_EXT).msi
|
---|
173 |
|
---|
174 | PACKING.win += $(VBOX_PATH_PACK_BUNDLE_ZIP)
|
---|
175 | endif
|
---|
176 |
|
---|
177 | #
|
---|
178 | # Surpress/skip the following ICE (internal consistency evaluators):
|
---|
179 | # - ICE64: Checks that new directories in the user profile are removed correctly in roaming scenarios.
|
---|
180 | # -> We don't want to remove system folders (like "Microsoft/Internet Explorer/Quick Launch").
|
---|
181 | #
|
---|
182 | VBOX_MSI_ICE_IGNORE := \
|
---|
183 | -ice:64
|
---|
184 |
|
---|
185 | #
|
---|
186 | # Create intermediate XML file for languages (needed for .MSI linking).
|
---|
187 | #
|
---|
188 | # Note: The double escaping of $(dir $@) in the prereq/dep list is because we first have
|
---|
189 | # to escape the expansion of the $(eval ) argument and then the definition of the
|
---|
190 | # rule. The statement is finally expanded during second dependency expansion, which
|
---|
191 | # takes place after all makefiles has been loaded and with the @ variable defined.
|
---|
192 | #
|
---|
193 | define def_vbox_lang_xml
|
---|
194 | $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl: $(VBOX_PATH_WIN_INST_SRC)/NLS/$(lang).wxl | $$$$(dir $$$$@)
|
---|
195 | $$(call MSG_GENERATE,,$$@,$$<)
|
---|
196 | $(QUIET)$(INSTALL) -m 0644 $$< $$@
|
---|
197 | endef
|
---|
198 |
|
---|
199 | $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
|
---|
200 | $(eval $(def_vbox_lang_xml)))
|
---|
201 |
|
---|
202 | #
|
---|
203 | # Create intermediate XML file for licenses (needed for .MSI linking).
|
---|
204 | # These files are created from the original .RTF files in the /docs directory.
|
---|
205 | #
|
---|
206 | # Note: The redirect command below will open $$@ as stdout in append+text mode
|
---|
207 | # and then exec cat, thus appending the license file to the result file.
|
---|
208 | #
|
---|
209 | # Note: The license_file variable has to be created before def_vbox_license_xml
|
---|
210 | # is expanded by the 2nd eval because we rely on the that expansion
|
---|
211 | # replacing all $(license_file) (and $(lang)) references before evaluation.
|
---|
212 | #
|
---|
213 | # Note: The REDIRECT + ECHO_EXT is because WiX gets upset if there a newline
|
---|
214 | # between the tag and the RTF license text.
|
---|
215 | #
|
---|
216 | define def_vbox_license_xml
|
---|
217 | $(VBOX_WIN_INST_OUT_DIR)/NLS/License_$(lang).wxl: $(license_file) $(MAKEFILE_CURRENT) | $$$$(dir $$$$@)
|
---|
218 | $$(call MSG_GENERATE,,$$@,$$<)
|
---|
219 | $(APPEND) -t $$@ '<?xml version="1.0" encoding="utf-8"?>'
|
---|
220 | $(APPEND) $$@ '<WixLocalization xmlns="http://schemas.microsoft.com/wix/2006/localization" Codepage="$(VBOX_BRAND_$(lang)_LANGUAGE_CODEPAGE)" Culture="$(lang)">'
|
---|
221 |
|
---|
222 | $(REDIRECT) -a+to $$@ -- $(ECHO_EXT) -n '<String Id="LicenseText">'
|
---|
223 | $(REDIRECT) -a+to $$@ -- $(SED) -e "s|<|\<|g" -e "s|>|\>|g" $(license_file)
|
---|
224 | $(APPEND) $$@ '</String>'
|
---|
225 |
|
---|
226 | $(APPEND) $$@ '<String Id="LicenseFile">$(license_file)</String>'
|
---|
227 | $(APPEND) $$@ '<String Id="LicenseInstallFileLong">License_$(lang).rtf</String>'
|
---|
228 | $(APPEND) $$@ '<String Id="LicenseInstallFileShort">L_$(lang).rtf</String>'
|
---|
229 |
|
---|
230 | $(APPEND) $$@ '</WixLocalization>'
|
---|
231 | endef
|
---|
232 |
|
---|
233 | $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
|
---|
234 | $(eval local license_file := $(VBOX_BRAND_$(subst en_US_,,$(lang)_)LICENSE_RTF)) \
|
---|
235 | $(eval $(def_vbox_license_xml)))
|
---|
236 |
|
---|
237 | #
|
---|
238 | # Create one intermediate WXI (Windows Installer Include) file for all installers (needed for .MSI compiling).
|
---|
239 | # This file includes all language-specific files (PDFs, CHMs, ...) to install.
|
---|
240 | #
|
---|
241 | # Note: When using the -n switch, append will append a new line after each
|
---|
242 | # argument. The -t switch makes it truncate the file.
|
---|
243 | #
|
---|
244 | $(VBOX_WIN_INST_OUT_DIR)/Files_Main.wxi: $(MAKEFILE_CURRENT) | $$(dir $$@)
|
---|
245 | $(call MSG_GENERATE,,$@,$<)
|
---|
246 | $(APPEND) -t $@ '<?xml version="1.0" ?>'
|
---|
247 | $(APPEND) $@ '<Include xmlns="http://schemas.microsoft.com/wix/2006/wi">'
|
---|
248 | ifdef VBOX_WITH_DOCS_PACKING
|
---|
249 | $(APPEND) $@ ' <File Id="file_VirtualBox.chm" Name="VirtualBox.chm" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$(PATH_STAGE_BIN)/VirtualBox.chm"></File>'
|
---|
250 | $(APPEND) -n $@ $(foreach lang,$(VBOX_MANUAL_ADD_LANGUAGES), \
|
---|
251 | ' <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>')
|
---|
252 | endif
|
---|
253 | $(APPEND) $@ '</Include>'
|
---|
254 |
|
---|
255 | $(VBOX_WIN_INST_OUT_DIR)/Files_Doc.wxi: $(MAKEFILE_CURRENT) | $$(dir $$@)
|
---|
256 | $(call MSG_GENERATE,,$@,$<)
|
---|
257 | $(APPEND) -t $@ '<?xml version="1.0" ?>'
|
---|
258 | $(APPEND) $@ '<Include xmlns="http://schemas.microsoft.com/wix/2006/wi">'
|
---|
259 | ifdef VBOX_WITH_DOCS_PACKING
|
---|
260 | $(APPEND) $@ ' <File Id="file_UserManual.pdf" Name="UserManual.pdf" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$(PATH_STAGE_BIN)/UserManual.pdf">'
|
---|
261 | $(APPEND) $@ ' </File>'
|
---|
262 | $(APPEND) -n $@ $(foreach lang,$(VBOX_MANUAL_ADD_LANGUAGES), \
|
---|
263 | ' <File Id="file_UserManual_$(lang).pdf" Name="UserManual_$(lang).pdf" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$(PATH_STAGE_BIN)/UserManual_$(lang).pdf">' \
|
---|
264 | ' </File>')
|
---|
265 | endif
|
---|
266 | $(APPEND) $@ '</Include>'
|
---|
267 |
|
---|
268 | $(VBOX_WIN_INST_OUT_DIR)/Files_License.wxi: $(MAKEFILE_CURRENT) | $$(dir $$@)
|
---|
269 | $(call MSG_GENERATE,,$@,$<)
|
---|
270 | $(APPEND) -t $@ '<?xml version="1.0" ?>'
|
---|
271 | $(APPEND) $@ '<Include xmlns="http://schemas.microsoft.com/wix/2006/wi">'
|
---|
272 | $(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)">' \
|
---|
273 | ' </File>'
|
---|
274 | $(APPEND) -n $@ $(foreach lang,$(VBOX_MANUAL_ADD_LANGUAGES), \
|
---|
275 | ' <File Id="file_License_$(lang).rtf" Name="License_$(lang).rtf" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$(VBOX_BRAND_$(lang)_LICENSE_RTF)"/>' \
|
---|
276 | ' </File>')
|
---|
277 | $(APPEND) $@ '</Include>'
|
---|
278 |
|
---|
279 | $(VBOX_WIN_INST_OUT_DIR)/Shortcuts_StartMenu.wxi: $(MAKEFILE_CURRENT) | $$(dir $$@)
|
---|
280 | $(call MSG_GENERATE,,$@,$<)
|
---|
281 | $(APPEND) -t $@ '<?xml version="1.0" ?>'
|
---|
282 | $(APPEND) $@ '<Include xmlns="http://schemas.microsoft.com/wix/2006/wi">'
|
---|
283 | #
|
---|
284 | # Documentation (PDF/CHM)
|
---|
285 | #
|
---|
286 | ifdef VBOX_WITH_DOCS_PACKING
|
---|
287 | $(APPEND) $@ ' <Shortcut Id="sc_StartMenu_ManualCHM_en_US" Directory="dir_StartMenuVBox" Name="!(loc.StartMenu_UserManual) (CHM, English)" Description="!(loc.StartMenu_UserManual)"' \
|
---|
288 | ' Target="[INSTALLDIR]\VirtualBox.chm" WorkingDirectory="dir_Documents" Advertise="no"/>'
|
---|
289 | $(APPEND) -n $@ $(foreach lang,$(VBOX_MANUAL_ADD_LANGUAGES), \
|
---|
290 | ' <Shortcut Id="sc_StartMenu_ManualCHM_$(lang)" Directory="dir_StartMenuVBox" Name="$!(loc.StartMenu_UserManual) (CHM, $(VBOX_BRAND_$(lang)_LANG_NAME))"' \
|
---|
291 | ' Description="$!(loc.StartMenu_UserManual) ($(VBOX_BRAND_$(lang)_LANG_NAME))" Target="[INSTALLDIR]\VirtualBox_$(lang).chm" WorkingDirectory="dir_Documents"/>')
|
---|
292 | endif
|
---|
293 | $(APPEND) $@ ' <Shortcut Id="sc_StartMenu_ManualPDF_en_US" Directory="dir_StartMenuVBox" Name="!(loc.StartMenu_UserManual) (PDF, English)" Description="!(loc.StartMenu_UserManual)"' \
|
---|
294 | ' Target="[INSTALLDIR]\doc\UserManual.pdf" WorkingDirectory="dir_Documents" Advertise="no"/>'
|
---|
295 | $(APPEND) -n $@ $(foreach lang,$(VBOX_MANUAL_ADD_LANGUAGES), \
|
---|
296 | ' <Shortcut Id="sc_StartMenu_ManualPDF_$(lang)" Directory="dir_StartMenuVBox" Name="$!(loc.StartMenu_UserManual) (PDF, $(VBOX_BRAND_$(lang)_LANG_NAME))"' \
|
---|
297 | ' Description="$!(loc.StartMenu_UserManual) ($(VBOX_BRAND_$(lang)_LANG_NAME))" Target="[INSTALLDIR]\doc\UserManual_$(lang).pdf" WorkingDirectory="dir_Documents"/>')
|
---|
298 | #
|
---|
299 | # License(s) (RTF)
|
---|
300 | #
|
---|
301 | $(APPEND) $@ ' <Shortcut Id="sc_StartMenu_License_en_US" Directory="dir_StartMenuVBox" Name="!(loc.StartMenu_License) (English)" Description="!(loc.StartMenu_License)"' \
|
---|
302 | ' Target="[INSTALLDIR]License_en_US.rtf" WorkingDirectory="INSTALLDIR" Advertise="no"/>'
|
---|
303 | $(APPEND) -n $@ $(foreach lang,$(VBOX_MANUAL_ADD_LANGUAGES), \
|
---|
304 | ' <Shortcut Id="sc_StartMenu_License_$(lang)" Directory="dir_StartMenuVBox" Name="$!(loc.StartMenu_License) ($(VBOX_BRAND_$(lang)_LANG_NAME))"' \
|
---|
305 | ' Description="$!(loc.StartMenu_License) ($(VBOX_BRAND_$(lang)_LANG_NAME))" Target="License_$(lang).rtf" WorkingDirectory="INSTALLDIR"/>')
|
---|
306 | $(APPEND) $@ '</Include>'
|
---|
307 |
|
---|
308 | #
|
---|
309 | # .MSI link (all languages).
|
---|
310 | #
|
---|
311 | # Note: This will clean up any previous .msi to prevent dep build boxes from
|
---|
312 | # filling up with old files.
|
---|
313 | #
|
---|
314 | # Note: Disable parallel jobs here because of shared common.cab access issues.
|
---|
315 | #
|
---|
316 | define def_vbox_link_msi
|
---|
317 | .NOTPARALLEL: $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG)_$(lang).msi
|
---|
318 | $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG)_$(lang).msi: \
|
---|
319 | $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_$(lang).wixobj \
|
---|
320 | $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl \
|
---|
321 | $(VBOX_WIN_INST_OUT_DIR)/NLS/License_$(lang).wxl \
|
---|
322 | $(PATH_STAGE_BIN)/VBoxInstallHelper.dll \
|
---|
323 | $(VBOX_SVN_REV_KMK) \
|
---|
324 | $(MAKEFILE_CURRENT) \
|
---|
325 | | $$$$(dir $$$$@)
|
---|
326 | $$(call MSG_L1,Linking installer $$@)
|
---|
327 | $(QUIET)$(RM) -f $$(wildcard $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_BASE)-r*_$(lang).msi)
|
---|
328 | $(VBOX_PATH_WIX)/light.exe -v -nologo \
|
---|
329 | -loc $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl \
|
---|
330 | -loc $(VBOX_WIN_INST_OUT_DIR)/NLS/License_$(lang).wxl \
|
---|
331 | -ext $(VBOX_PATH_WIX)/WixUIExtension.dll \
|
---|
332 | -ext $(VBOX_PATH_WIX)/WixDifxAppExtension.dll \
|
---|
333 | $(VBOX_MSI_ICE_IGNORE) \
|
---|
334 | -out $$@ \
|
---|
335 | $$< \
|
---|
336 | $(if-expr "$(KBUILD_TARGET_ARCH)" == "x86", \
|
---|
337 | $(VBOX_PATH_WIX)/difxapp_x86.wixlib, \
|
---|
338 | $(VBOX_PATH_WIX)/difxapp_x64.wixlib)
|
---|
339 | $(RM) -f $(VBOX_WIN_INST_OUT_DIR)/NLS/$(lang).mst
|
---|
340 | $(call VBOX_SIGN_FILE_FN,$$@,$(VBOX_PRODUCT) $(VBOX_VERSION_STRING)r$(VBOX_SVN_REV) ($(KBUILD_TARGET_ARCH)))
|
---|
341 | endef
|
---|
342 |
|
---|
343 | $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
|
---|
344 | $(eval $(def_vbox_link_msi)))
|
---|
345 |
|
---|
346 | #
|
---|
347 | # Merge module linking (all languages).
|
---|
348 | #
|
---|
349 | # Note: This will clean up any previous .msm to prevent dep build boxes from
|
---|
350 | # filling up with old files.
|
---|
351 | #
|
---|
352 | # Note: Disable parallel jobs here because of shared common.cab access issues.
|
---|
353 | #
|
---|
354 | define def_vbox_link_msm
|
---|
355 | .NOTPARALLEL: $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).msm
|
---|
356 | $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).msm: \
|
---|
357 | $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).wixobj \
|
---|
358 | $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl \
|
---|
359 | $(VBOX_WIN_INST_OUT_DIR)/NLS/License_$(lang).wxl \
|
---|
360 | $(PATH_STAGE_BIN)/VBoxInstallHelper.dll \
|
---|
361 | $(VBOX_SVN_REV_KMK) \
|
---|
362 | $(MAKEFILE_CURRENT) \
|
---|
363 | | $$$$(dir $$$$@)
|
---|
364 | $$(call MSG_L1,Linking installer $$@)
|
---|
365 | $(QUIET)$(RM) -f $$(wildcard $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_BASE)-r*_$(lang).msi)
|
---|
366 | $(VBOX_PATH_WIX)/light.exe -v -nologo \
|
---|
367 | -loc $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl \
|
---|
368 | -loc $(VBOX_WIN_INST_OUT_DIR)/NLS/License_$(lang).wxl \
|
---|
369 | -ext $(VBOX_PATH_WIX)/WixDifxAppExtension.dll \
|
---|
370 | $(VBOX_MSI_ICE_IGNORE) \
|
---|
371 | -out $$@ \
|
---|
372 | $$< \
|
---|
373 | $(if-expr "$(KBUILD_TARGET_ARCH)" == "x86", \
|
---|
374 | $(VBOX_PATH_WIX)/difxapp_x86.wixlib, \
|
---|
375 | $(VBOX_PATH_WIX)/difxapp_x64.wixlib)
|
---|
376 | $(RM) -f $(VBOX_WIN_INST_OUT_DIR)/NLS/$(lang).mst
|
---|
377 | $(call VBOX_SIGN_FILE_FN,$$@,$(VBOX_PRODUCT) $(VBOX_VERSION_STRING)r$(VBOX_SVN_REV) ($(KBUILD_TARGET_ARCH)))
|
---|
378 | endef
|
---|
379 |
|
---|
380 | $(if $(VBOX_WITH_MSM_INSTALL), \
|
---|
381 | $(foreach module,$(VBOX_INSTALLER_MERGE_MODULES), \
|
---|
382 | $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
|
---|
383 | $(eval $(def_vbox_link_msm)))),)
|
---|
384 |
|
---|
385 | #
|
---|
386 | # Load and adjust the MSI compile step dependencies.
|
---|
387 | #
|
---|
388 | -include $(VBOX_WIN_INST_OUT_DIR)/VirtualBox.wixobj.dep
|
---|
389 |
|
---|
390 | # Filter out some files depending on build type and compiler.
|
---|
391 | ifeq ($(KBUILD_TYPE),release)
|
---|
392 | VBOX_MSI_DEPENDENCIES := $(filer-out $(PATH_OUT)/bin/VBoxDbg3.dll, $(VBOX_MSI_DEPENDENCIES))
|
---|
393 | endif
|
---|
394 | ifndef VBOX_SIGNING_MODE
|
---|
395 | VBOX_MSI_DEPENDENCIES := $(filer-out %.cat, $(VBOX_MSI_DEPENDENCIES))
|
---|
396 | endif
|
---|
397 | ifdef VBOX_USE_VCC110
|
---|
398 | VBOX_MSI_DEPENDENCIES := $(filter-out \
|
---|
399 | $(PATH_OUT)/bin/msvcr100.dll \
|
---|
400 | $(PATH_OUT)/bin/msvcp100.dll \
|
---|
401 | , $(VBOX_MSI_DEPENDENCIES))
|
---|
402 | else # VCC100
|
---|
403 | VBOX_MSI_DEPENDENCIES := $(filter-out \
|
---|
404 | $(PATH_OUT)/bin/msvcr110.dll \
|
---|
405 | $(PATH_OUT)/bin/msvcp110.dll \
|
---|
406 | , $(VBOX_MSI_DEPENDENCIES))
|
---|
407 | endif
|
---|
408 | # TODO: Add filtering out more dependencies here!
|
---|
409 | ifndef VBOX_WITH_QTGUI
|
---|
410 | $(PATH_OUT)/bin/VirtualBox.exe \
|
---|
411 | $(PATH_OUT)/bin/VBoxTestOGL.exe \
|
---|
412 | $(PATH_OUT)/bin/QtCoreVBox4.dll \
|
---|
413 | $(PATH_OUT)/bin/QtGuiVBox4.dll \
|
---|
414 | $(PATH_OUT)/bin/QtNetworkVBox4.dll \
|
---|
415 | $(PATH_OUT)/bin/QtOpenGLVBox4.dll \
|
---|
416 | $(PATH_OUT)/bin/accessible/qtaccessiblewidgets4.dll \
|
---|
417 | , $(VBOX_MSI_DEPENDENCIES))
|
---|
418 | endif
|
---|
419 | ifndef VBOX_WITH_PYTHON
|
---|
420 | VBOX_MSI_DEPENDENCIES := $(filer-out $ \
|
---|
421 | $(PATH_OUT)/bin/sdk/installer/vboxapisetup.py \
|
---|
422 | $(PATH_OUT)/bin/sdk/installer/vboxapi/__init__.py \
|
---|
423 | $(PATH_OUT)/bin/sdk/installer/vboxapi/VirtualBox_constants.py \
|
---|
424 | , $(VBOX_MSI_DEPENDENCIES))
|
---|
425 | endif
|
---|
426 | ifndef VBOX_WITH_CROGL
|
---|
427 | VBOX_MSI_DEPENDENCIES := $(filer-out $ \
|
---|
428 | $(PATH_OUT)/bin/VBoxOGLhostcrutil.dll \
|
---|
429 | $(PATH_OUT)/bin/VBoxOGLhosterrorspu.dll \
|
---|
430 | $(PATH_OUT)/bin/VBoxOGLrenderspu.dll \
|
---|
431 | $(PATH_OUT)/bin/VBoxSharedCrOpenGL.dll \
|
---|
432 | , $(VBOX_MSI_DEPENDENCIES))
|
---|
433 | endif
|
---|
434 | ifndef VBOX_WITH_SECURELABEL
|
---|
435 | VBOX_MSI_DEPENDENCIES := $(filer-out $(PATH_OUT)/bin/SDL_ttf.dll, $(VBOX_MSI_DEPENDENCIES))
|
---|
436 | endif
|
---|
437 | ifndef VBOX_WITH_WEBSERVICES
|
---|
438 | VBOX_MSI_DEPENDENCIES := $(filer-out $(PATH_OUT)/bin/vboxwebsrv.exe, $(VBOX_MSI_DEPENDENCIES))
|
---|
439 | endif
|
---|
440 |
|
---|
441 | ifneq ($(KBUILD_TARGET_ARCH),amd64)
|
---|
442 | VBOX_MSI_DEPENDENCIES := $(filter-out \
|
---|
443 | $(PATH_OUT)/bin/VBoxREM2.rel \
|
---|
444 | , $(VBOX_MSI_DEPENDENCIES))
|
---|
445 | else
|
---|
446 | VBOX_MSI_DEPENDENCIES := $(filter-out \
|
---|
447 | $(PATH_OUT)/bin/VBoxREM32.dll \
|
---|
448 | $(PATH_OUT)/bin/VBoxREM64.dll \
|
---|
449 | , $(VBOX_MSI_DEPENDENCIES))
|
---|
450 | endif
|
---|
451 | ifdef VBOX_WITH_EXTPACK_PUEL
|
---|
452 | VBOX_MSI_DEPENDENCIES := $(filter-out $(PATH_OUT)/bin/VBoxVRDP$(VBOX_SUFF_DLL), $(VBOX_MSI_DEPENDENCIES))
|
---|
453 | endif
|
---|
454 |
|
---|
455 | # Add dependencies that makes sure necessary bits gets built since
|
---|
456 | # VBOX_MSI_DEPENDENCIES will be zero the first time around.
|
---|
457 | # For combined packages we always use the .ISO from the amd64 build.
|
---|
458 | VBOX_MSI_DEPENDENCIES := $(filter-out %/VBoxGuestAdditions.iso, $(VBOX_MSI_DEPENDENCIES))
|
---|
459 | ifdef VBOX_WITH_COMBINED_PACKAGE
|
---|
460 | VBOX_MSI_DEPENDENCIES += \
|
---|
461 | $(if $(VBOX_WITH_ADDITIONS_PACKING),$(PATH_MULTIARCH_GUEST_ADDITIONS_ISO)/VBoxGuestAdditions.iso)
|
---|
462 | else
|
---|
463 | VBOX_MSI_DEPENDENCIES += \
|
---|
464 | $(if $(VBOX_WITH_ADDITIONS_PACKING),$(VBOX_PATH_ADDITIONS_ISO)/VBoxGuestAdditions.iso)
|
---|
465 | endif
|
---|
466 |
|
---|
467 | #
|
---|
468 | # MSI compile.
|
---|
469 | #
|
---|
470 | define def_vbox_compile_wixobj
|
---|
471 | $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_$(lang).wixobj: \
|
---|
472 | $(PATH_SUB_CURRENT)/VirtualBox.wxs \
|
---|
473 | $(PATH_SUB_CURRENT)/UserInterface.wxi \
|
---|
474 | $(if $(VBOX_WITH_MSM_INSTALL), \
|
---|
475 | $(foreach module,$(VBOX_INSTALLER_MERGE_MODULES), \
|
---|
476 | $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).msm), \
|
---|
477 | $(VBOX_WIN_INST_OUT_DIR)/Shortcuts_StartMenu.wxi \
|
---|
478 | $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib.wxi \
|
---|
479 | $(if $(VBOX_WITH_32_ON_64_MAIN_API),$(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib_x86.wxi,) \
|
---|
480 | $(VBOX_WIN_INST_OUT_DIR)/VBoxKey.wxi \
|
---|
481 | $(VBOX_WIN_INST_OUT_DIR)/VBoxGuiNLS.wxi \
|
---|
482 | $(VBOX_MSI_DEPENDENCIES)) \
|
---|
483 | $(VBOX_VERSION_STAMP) \
|
---|
484 | | $$$$(dir $$$$@)
|
---|
485 | $(QUIET)$(RM) -f $@
|
---|
486 | $(REDIRECT) \
|
---|
487 | -E 'PATH_OUT=$(subst /,\\,$(PATH_OUT))' \
|
---|
488 | -E 'PATH_TARGET=$(subst /,\\,$(VBOX_WIN_INST_OUT_DIR))' \
|
---|
489 | -E 'PATH_ROOT=$(subst /,\\,$(PATH_ROOT))' \
|
---|
490 | -E 'PATH_MULTIARCH_GUEST_ADDITIONS_ISO=$(subst /,\\,$(PATH_MULTIARCH_GUEST_ADDITIONS_ISO))' \
|
---|
491 | -E 'VBOX_PATH_WIN_INST_SRC=$(subst /,\\,$(VBOX_PATH_WIN_INST_SRC))' \
|
---|
492 | -E 'VBOX_BRAND_WIN_INST_DLGJPG=$(subst /,\\,$(VBOX_BRAND_WIN_INST_DLGJPG))' \
|
---|
493 | -E 'VBOX_ADD_LANGUAGES=$(VBOX_INSTALLER_ADD_LANGUAGES)' \
|
---|
494 | -E 'VBOX_BRAND_LICENSE_RTF=$(subst /,\\,$(VBOX_BRAND_LICENSE_RTF))' \
|
---|
495 | $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
|
---|
496 | -E 'VBOX_BRAND_$(lang)_LICENSE_RTF=$(subst /,\\,$(VBOX_BRAND_$(subst en_US_,,$(lang)_)LICENSE_RTF))') \
|
---|
497 | -E 'VBOX_BUILD_NR_FOR_INST=$(VBOX_VERSION_BUILD)' \
|
---|
498 | -E 'VBOX_VENDOR=$(VBOX_VENDOR)' \
|
---|
499 | -E 'VBOX_VENDOR_SHORT=$(VBOX_VENDOR_SHORT)' \
|
---|
500 | -E 'VBOX_PRODUCT=$(VBOX_PRODUCT)' \
|
---|
501 | -E 'VBOX_C_YEAR=$(VBOX_C_YEAR)' \
|
---|
502 | -E 'VBOX_VERSION_STRING=$(VBOX_VERSION_STRING)' \
|
---|
503 | -E 'VBOX_VERSION_STRING_RAW=$(VBOX_VERSION_STRING_RAW)' \
|
---|
504 | -E 'VBOX_VERSION_MAJOR_INST=$(VBOX_VERSION_MAJOR)' \
|
---|
505 | -E 'VBOX_VERSION_MINOR_INST=$(VBOX_VERSION_MINOR)' \
|
---|
506 | -E 'VBOX_SIGNING_MODE=$(strip $(if $(VBOX_SIGNING_MODE),$(VBOX_SIGNING_MODE),none))' \
|
---|
507 | -E 'VBOX_GUI_USE_QGL=$(if $(VBOX_GUI_USE_QGL),yes,no)' \
|
---|
508 | $(if $(VBOX_WITH_MSM_INSTALL), \
|
---|
509 | $(foreach module,$(VBOX_INSTALLER_MERGE_MODULES), \
|
---|
510 | -E 'VBOX_WIN_INST_MERGE_$(toupper $(module))=$(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).msm'),) \
|
---|
511 | -E 'VBOX_WITH_32_ON_64_MAIN_API=$(if $(VBOX_WITH_32_ON_64_MAIN_API),yes,no)' \
|
---|
512 | -E 'VBOX_WITH_ADDITIONS_PACKING=$(if $(VBOX_WITH_ADDITIONS_PACKING),yes,no)' \
|
---|
513 | -E 'VBOX_WITH_COMBINED_PACKAGE=$(if $(VBOX_WITH_COMBINED_PACKAGE),yes,no)' \
|
---|
514 | -E 'VBOX_WITH_CROGL=$(if $(VBOX_WITH_CROGL),yes,no)' \
|
---|
515 | -E 'VBOX_WITH_DEBUGGER_GUI=$(if-expr defined(VBOX_WITH_DEBUGGER_GUI) && defined(VBOX_WITH_QTGUI),yes,no)' \
|
---|
516 | -E 'VBOX_WITH_DOCS_PACKING=$(if $(VBOX_WITH_DOCS_PACKING),yes,no)' \
|
---|
517 | -E 'VBOX_WITH_EFIFW_PACKING=$(if $(VBOX_WITH_EFIFW_PACKING),yes,no)' \
|
---|
518 | -E 'VBOX_WITH_EXTPACK=$(if $(VBOX_WITH_EXTPACK),yes,no)' \
|
---|
519 | -E 'VBOX_WITH_GUEST_CONTROL=$(if $(VBOX_WITH_GUEST_CONTROL),yes,no)' \
|
---|
520 | -E 'VBOX_WITH_GUEST_PROPS=$(if $(VBOX_WITH_GUEST_PROPS),yes,no)' \
|
---|
521 | -E 'VBOX_WITH_DRAG_AND_DROP=$(if $(VBOX_WITH_DRAG_AND_DROP),yes,no)' \
|
---|
522 | -E 'VBOX_WITH_NETFLT=$(if $(VBOX_WITH_NETFLT),yes,no)' \
|
---|
523 | -E 'VBOX_WITH_PYTHON=$(if $(VBOX_WITH_PYTHON),yes,no)' \
|
---|
524 | -E 'VBOX_WITH_QTGUI=$(if $(VBOX_WITH_QTGUI),yes,no)' \
|
---|
525 | -E 'VBOX_WITH_VIDEOHWACCEL=$(if $(VBOX_WITH_VIDEOHWACCEL),yes,no)' \
|
---|
526 | -E 'VBOX_WITH_VRDP=$(if-expr defined(VBOX_WITH_VRDP) && !defined(VBOX_WITH_EXTPACK_PUEL),yes,no)' \
|
---|
527 | -E 'VBOX_WITH_WEBSERVICES=$(if $(VBOX_WITH_WEBSERVICES),yes,no)' \
|
---|
528 | -E 'VBOX_WITH_SECURELABEL=$(if $(VBOX_WITH_SECURELABEL),yes,no)' \
|
---|
529 | -E 'VBOX_WITH_MSM_INSTALL=$(if $(VBOX_WITH_MSM_INSTALL),yes,no)' \
|
---|
530 | -E 'VBOX_WITH_SERIALNUMBER_INSTALL=$(if $(VBOX_WITH_SERIALNUMBER_INSTALL),yes,no)' \
|
---|
531 | -E 'VBOX_WITH_LICENSE_DISPLAY=$(if $(VBOX_WITH_LICENSE_DISPLAY),yes,no)' \
|
---|
532 | -E 'VBOX_WINDOWS_ICON_FILE=$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))' \
|
---|
533 | -E 'BUILD_TYPE=$(KBUILD_TYPE)' \
|
---|
534 | -E 'BUILD_TARGET_ARCH=$(KBUILD_TARGET_ARCH)' \
|
---|
535 | -E 'VBOX_VCC_TOOL_STEM=$(VBOX_VCC_TOOL_STEM)' \
|
---|
536 | -- \
|
---|
537 | $(VBOX_PATH_WIX)/candle.exe $(filter-out $(VBOX_VERSION_STAMP),$$<) \
|
---|
538 | -ext $(VBOX_PATH_WIX)/WixUIExtension.dll \
|
---|
539 | -ext $(VBOX_PATH_WIX)/WixDifxAppExtension.dll \
|
---|
540 | -out $$@
|
---|
541 | ifeq ($(lang),en_US)
|
---|
542 | #
|
---|
543 | # Generate dependency file, we share this between all the languages.
|
---|
544 | #
|
---|
545 | $(APPEND) -t $(VBOX_WIN_INST_OUT_DIR)/VirtualBox.wixobj.dep 'VBOX_MSI_DEPENDENCIES = \'
|
---|
546 | $(SED) -f $(VBOX_PATH_WIN_INST_SRC)/dep.sed \
|
---|
547 | --append $(VBOX_WIN_INST_OUT_DIR)/VirtualBox.wixobj.dep \
|
---|
548 | $(foreach module,$(VBOX_INSTALLER_MERGE_MODULES), \
|
---|
549 | $(VBOX_PATH_WIN_INST_SRC)/VBoxMerge$(module).wxi) \
|
---|
550 | $(VBOX_PATH_WIN_INST_SRC)/VirtualBox.wxs \
|
---|
551 | $(VBOX_PATH_WIN_INST_SRC)/UserInterface.wxi \
|
---|
552 | $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib.wxi \
|
---|
553 | $(if $(VBOX_WITH_32_ON_64_MAIN_API),$(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib_x86.wxi,)
|
---|
554 | $(APPEND) $(VBOX_WIN_INST_OUT_DIR)/VirtualBox.wixobj.dep ''
|
---|
555 | endif
|
---|
556 | endef
|
---|
557 |
|
---|
558 | $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
|
---|
559 | $(eval $(def_vbox_compile_wixobj)))
|
---|
560 |
|
---|
561 | #
|
---|
562 | # MSM (merge module) compile.
|
---|
563 | #
|
---|
564 | define def_vbox_compile_msm
|
---|
565 | $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).wixobj: \
|
---|
566 | $(PATH_SUB_CURRENT)/VBoxMerge$(module).wxs \
|
---|
567 | $(PATH_SUB_CURRENT)/UserInterface.wxi \
|
---|
568 | $(VBOX_WIN_INST_OUT_DIR)/Shortcuts_StartMenu.wxi \
|
---|
569 | $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib.wxi \
|
---|
570 | $(if $(VBOX_WITH_32_ON_64_MAIN_API),$(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib_x86.wxi,) \
|
---|
571 | $(VBOX_WIN_INST_OUT_DIR)/VBoxKey.wxi \
|
---|
572 | $(VBOX_WIN_INST_OUT_DIR)/VBoxGuiNLS.wxi \
|
---|
573 | $(VBOX_MSI_DEPENDENCIES) \
|
---|
574 | $(VBOX_VERSION_STAMP) \
|
---|
575 | | $$$$(dir $$$$@)
|
---|
576 | $(QUIET)$(RM) -f $@
|
---|
577 | $(REDIRECT) \
|
---|
578 | -E 'PATH_OUT=$(subst /,\\,$(PATH_OUT))' \
|
---|
579 | -E 'PATH_TARGET=$(subst /,\\,$(VBOX_WIN_INST_OUT_DIR))' \
|
---|
580 | -E 'PATH_ROOT=$(subst /,\\,$(PATH_ROOT))' \
|
---|
581 | -E 'PATH_MULTIARCH_GUEST_ADDITIONS_ISO=$(subst /,\\,$(PATH_MULTIARCH_GUEST_ADDITIONS_ISO))' \
|
---|
582 | -E 'VBOX_PATH_WIN_INST_SRC=$(subst /,\\,$(VBOX_PATH_WIN_INST_SRC))' \
|
---|
583 | -E 'VBOX_BRAND_WIN_INST_DLGJPG=$(subst /,\\,$(VBOX_BRAND_WIN_INST_DLGJPG))' \
|
---|
584 | -E 'VBOX_ADD_LANGUAGES=$(VBOX_INSTALLER_ADD_LANGUAGES)' \
|
---|
585 | -E 'VBOX_BRAND_LICENSE_RTF=$(subst /,\\,$(VBOX_BRAND_LICENSE_RTF))' \
|
---|
586 | $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
|
---|
587 | -E 'VBOX_BRAND_$(lang)_LICENSE_RTF=$(subst /,\\,$(VBOX_BRAND_$(subst en_US_,,$(lang)_)LICENSE_RTF))') \
|
---|
588 | -E 'VBOX_BUILD_NR_FOR_INST=$(VBOX_VERSION_BUILD)' \
|
---|
589 | -E 'VBOX_VENDOR=$(VBOX_VENDOR)' \
|
---|
590 | -E 'VBOX_VENDOR_SHORT=$(VBOX_VENDOR_SHORT)' \
|
---|
591 | -E 'VBOX_PRODUCT=$(VBOX_PRODUCT)' \
|
---|
592 | -E 'VBOX_C_YEAR=$(VBOX_C_YEAR)' \
|
---|
593 | -E 'VBOX_VERSION_STRING=$(VBOX_VERSION_STRING)' \
|
---|
594 | -E 'VBOX_VERSION_STRING_RAW=$(VBOX_VERSION_STRING_RAW)' \
|
---|
595 | -E 'VBOX_VERSION_MAJOR_INST=$(VBOX_VERSION_MAJOR)' \
|
---|
596 | -E 'VBOX_VERSION_MINOR_INST=$(VBOX_VERSION_MINOR)' \
|
---|
597 | -E 'VBOX_SIGNING_MODE=$(strip $(if $(VBOX_SIGNING_MODE),$(VBOX_SIGNING_MODE),none))' \
|
---|
598 | -E 'VBOX_GUI_USE_QGL=$(if $(VBOX_GUI_USE_QGL),yes,no)' \
|
---|
599 | -E 'VBOX_WITH_32_ON_64_MAIN_API=$(if $(VBOX_WITH_32_ON_64_MAIN_API),yes,no)' \
|
---|
600 | -E 'VBOX_WITH_ADDITIONS_PACKING=$(if $(VBOX_WITH_ADDITIONS_PACKING),yes,no)' \
|
---|
601 | -E 'VBOX_WITH_COMBINED_PACKAGE=$(if $(VBOX_WITH_COMBINED_PACKAGE),yes,no)' \
|
---|
602 | -E 'VBOX_WITH_CROGL=$(if $(VBOX_WITH_CROGL),yes,no)' \
|
---|
603 | -E 'VBOX_WITH_DEBUGGER_GUI=$(if-expr defined(VBOX_WITH_DEBUGGER_GUI) && defined(VBOX_WITH_QTGUI),yes,no)' \
|
---|
604 | -E 'VBOX_WITH_DOCS_PACKING=$(if $(VBOX_WITH_DOCS_PACKING),yes,no)' \
|
---|
605 | -E 'VBOX_WITH_EFIFW_PACKING=$(if $(VBOX_WITH_EFIFW_PACKING),yes,no)' \
|
---|
606 | -E 'VBOX_WITH_EXTPACK=$(if $(VBOX_WITH_EXTPACK),yes,no)' \
|
---|
607 | -E 'VBOX_WITH_GUEST_CONTROL=$(if $(VBOX_WITH_GUEST_CONTROL),yes,no)' \
|
---|
608 | -E 'VBOX_WITH_GUEST_PROPS=$(if $(VBOX_WITH_GUEST_PROPS),yes,no)' \
|
---|
609 | -E 'VBOX_WITH_DRAG_AND_DROP=$(if $(VBOX_WITH_DRAG_AND_DROP),yes,no)' \
|
---|
610 | -E 'VBOX_WITH_NETFLT=$(if $(VBOX_WITH_NETFLT),yes,no)' \
|
---|
611 | -E 'VBOX_WITH_PYTHON=$(if $(VBOX_WITH_PYTHON),yes,no)' \
|
---|
612 | -E 'VBOX_WITH_QTGUI=$(if $(VBOX_WITH_QTGUI),yes,no)' \
|
---|
613 | -E 'VBOX_WITH_VIDEOHWACCEL=$(if $(VBOX_WITH_VIDEOHWACCEL),yes,no)' \
|
---|
614 | -E 'VBOX_WITH_VRDP=$(if-expr defined(VBOX_WITH_VRDP) && !defined(VBOX_WITH_EXTPACK_PUEL),yes,no)' \
|
---|
615 | -E 'VBOX_WITH_WEBSERVICES=$(if $(VBOX_WITH_WEBSERVICES),yes,no)' \
|
---|
616 | -E 'VBOX_WITH_SECURELABEL=$(if $(VBOX_WITH_SECURELABEL),yes,no)' \
|
---|
617 | -E 'VBOX_WITH_SERIALNUMBER_INSTALL=$(if $(VBOX_WITH_SERIALNUMBER_INSTALL),yes,no)' \
|
---|
618 | -E 'VBOX_WITH_LICENSE_DISPLAY=$(if $(VBOX_WITH_LICENSE_DISPLAY),yes,no)' \
|
---|
619 | -E 'VBOX_WINDOWS_ICON_FILE=$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))' \
|
---|
620 | -E 'BUILD_TYPE=$(KBUILD_TYPE)' \
|
---|
621 | -E 'BUILD_TARGET_ARCH=$(KBUILD_TARGET_ARCH)' \
|
---|
622 | -E 'VBOX_VCC_TOOL_STEM=$(VBOX_VCC_TOOL_STEM)' \
|
---|
623 | -- \
|
---|
624 | $(VBOX_PATH_WIX)/candle.exe $(filter-out $(VBOX_VERSION_STAMP),$$<) \
|
---|
625 | -ext $(VBOX_PATH_WIX)/WixUIExtension.dll \
|
---|
626 | -ext $(VBOX_PATH_WIX)/WixDifxAppExtension.dll \
|
---|
627 | -out $$@
|
---|
628 | ifeq ($(lang),en_US)
|
---|
629 | #
|
---|
630 | # Generate dependency file, we share this between all the languages.
|
---|
631 | #
|
---|
632 | $(APPEND) -t $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module).msm.dep 'VBOX_MSI_DEPENDENCIES = \'
|
---|
633 | $(SED) -f $(VBOX_PATH_WIN_INST_SRC)/dep.sed \
|
---|
634 | --append $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module).msm.dep \
|
---|
635 | $(VBOX_PATH_WIN_INST_SRC)/VBoxMerge$(module).wxs \
|
---|
636 | $(VBOX_PATH_WIN_INST_SRC)/UserInterface.wxi \
|
---|
637 | $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib.wxi \
|
---|
638 | $(if $(VBOX_WITH_32_ON_64_MAIN_API),$(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib_x86.wxi,)
|
---|
639 | $(APPEND) $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module).msm.dep ''
|
---|
640 | endif
|
---|
641 | endef
|
---|
642 |
|
---|
643 | $(foreach module,$(VBOX_INSTALLER_MERGE_MODULES), \
|
---|
644 | $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
|
---|
645 | $(eval $(def_vbox_compile_msm))))
|
---|
646 |
|
---|
647 | #
|
---|
648 | # VirtualBox Type Library definition.
|
---|
649 | #
|
---|
650 | $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib.wxi: \
|
---|
651 | $(PATH_SUB_CURRENT)/VirtualBox_TypeLib.xsl \
|
---|
652 | $(VBOX_XIDL_FILE) \
|
---|
653 | | $$(dir $$@)
|
---|
654 | $(VBOX_XSLTPROC) -o $@ $< $(VBOX_XIDL_FILE)
|
---|
655 |
|
---|
656 | $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib_x86.wxi: \
|
---|
657 | $(PATH_SUB_CURRENT)/VirtualBox_TypeLib.xsl \
|
---|
658 | $(VBOX_XIDL_FILE) \
|
---|
659 | | $$(dir $$@)
|
---|
660 | $(VBOX_XSLTPROC) --stringparam "a_sTarget" "VBoxClient-x86" -o [email protected] $< $(VBOX_XIDL_FILE)
|
---|
661 | $(SED) -e 's/VBoxC/VBoxClient_x86/g' --output $@ [email protected]
|
---|
662 | $(RM) -f [email protected]
|
---|
663 |
|
---|
664 | #
|
---|
665 | # Construct the list of GUI translations.
|
---|
666 | # ('-t' -- truncate file; '-n' -- new line between arguments)
|
---|
667 | #
|
---|
668 | include $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.kmk
|
---|
669 | $(VBOX_WIN_INST_OUT_DIR)/VBoxGuiNLS.wxi: $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.kmk $(MAKEFILE_CURRENT) | $$(dir $$@)
|
---|
670 | $(APPEND) -t $@ '<?xml version="1.0" ?>'
|
---|
671 | $(APPEND) $@ '<Include>'
|
---|
672 | $(APPEND) -n $@ $(foreach lang,$(VBOX_APPROVED_GUI_LANGUAGES), \
|
---|
673 | ' <File Id="nlsqt${lang}" Name="qt_${lang}.qm" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$$(env.PATH_OUT)\bin\nls\qt_${lang}.qm" />' \
|
---|
674 | ' <File Id="nlsgui${lang}" Name="VirtualBox_${lang}.qm" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$$(env.PATH_OUT)\bin\nls\VirtualBox_${lang}.qm" />')
|
---|
675 | $(APPEND) $@ '</Include>'
|
---|
676 |
|
---|
677 | #
|
---|
678 | # Edit the version stored in the registry.
|
---|
679 | #
|
---|
680 | $(VBOX_WIN_INST_OUT_DIR)/VBoxKey.wxi: $(PATH_SUB_CURRENT)/VBoxKey.wxi $(VBOX_VERSION_STAMP) | $$(dir $$@)
|
---|
681 | $(SED) -e 's/%VER%/$(VBOX_VERSION_STRING_RAW)/' --output $@ $<
|
---|
682 | $(SED) -e 's/%VER_EXT%/$(VBOX_VERSION_STRING)/' --output $@ $<
|
---|
683 |
|
---|
684 | #
|
---|
685 | # Build the multi-language version of the .MSI installer (final installer).
|
---|
686 | # This is done by creating binary .MST diffs of all the language-specific installers
|
---|
687 | # and then merging the diffs into the existing .MSI using tools from the MS Installer SDK.
|
---|
688 | #
|
---|
689 | # .MSI link (all languages).
|
---|
690 | #
|
---|
691 | # Note: Prereqs of the special .NOTPARALLEL target will be executed with parallel
|
---|
692 | # make jobs temporarily disabled. This is a hack to work around what seems
|
---|
693 | # to be a problem with the sharing mode set by one or more of the three
|
---|
694 | # programs / scripts involved in this step.
|
---|
695 | #
|
---|
696 | define def_vbox_create_mst
|
---|
697 | .NOTPARALLEL: $(VBOX_WIN_INST_OUT_DIR)/NLS/$(lang).mst
|
---|
698 | $(VBOX_WIN_INST_OUT_DIR)/NLS/$(lang).mst: \
|
---|
699 | $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG)_en_US.msi \
|
---|
700 | $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG)_$(lang).msi \
|
---|
701 | | $$$$(dir $$$$@)
|
---|
702 | $(call MSG_L1,Integrating language ($(lang)))
|
---|
703 | $(REDIRECT) -C $$(@D) -- $(VBOX_PATH_MSITRAN) -g $$< $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG)_$(lang).msi $(lang).mst
|
---|
704 | $(REDIRECT) -C $$(@D) -- $(VBOX_PATH_MSIDB) -d $$< -r $(lang).mst
|
---|
705 | $(REDIRECT) -C $$(@D) -- wscript.exe $(VBOX_PATH_WISUBSTG) $$< $(lang).mst $(lang_id)
|
---|
706 | endef
|
---|
707 |
|
---|
708 | $(foreach lang,$(VBOX_INSTALLER_ADD_LANGUAGES), \
|
---|
709 | $(eval local lang_id := $(VBOX_BRAND_$(lang)_LANG_ID)) \
|
---|
710 | $(eval $(def_vbox_create_mst)))
|
---|
711 |
|
---|
712 | #
|
---|
713 | # Create all xxx_<Lang>.msi installers and prepare the final xxx_MultiLang.msi installer.
|
---|
714 | #
|
---|
715 | ## @todo this rule must not modify $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG)_en_US.msi but a copy of it. def_vbox_compile_wixobj is
|
---|
716 | # where en_US.msi is created, it shouldn't be changed after that (if possible). Also, document the path length issue.
|
---|
717 | VBOX_INS_PROD_ARCH.amd64 = x64
|
---|
718 | VBOX_INS_PROD_ARCH.x86 = Intel
|
---|
719 | VBOX_INS_PROD_ARCH := $(VBOX_INS_PROD_ARCH.$(KBUILD_TARGET_ARCH))
|
---|
720 | $(if $(VBOX_INS_PROD_ARCH),,$(error VBOX_INS_PROD_ARCH is empty!))
|
---|
721 | VBOX_INS_PROD_LANG := 7="$(VBOX_INS_PROD_ARCH);1033
|
---|
722 | $(foreach lang, $(VBOX_INSTALLER_ADD_LANGUAGES), $(eval VBOX_INS_PROD_LANG := $(VBOX_INS_PROD_LANG)$(COMMA)$(VBOX_BRAND_$(lang)_LANG_ID)))
|
---|
723 | VBOX_INS_PROD_LANG := $(VBOX_INS_PROD_LANG)"
|
---|
724 |
|
---|
725 | $(PACKAGE_NAME_FINAL): \
|
---|
726 | $(VBOX_WIN_INST_OUT_DIR)/Files_Main.wxi \
|
---|
727 | $(VBOX_WIN_INST_OUT_DIR)/Files_Doc.wxi \
|
---|
728 | $(VBOX_WIN_INST_OUT_DIR)/Files_License.wxi \
|
---|
729 | $(VBOX_WIN_INST_OUT_DIR)/Shortcuts_StartMenu.wxi \
|
---|
730 | $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG)_$(lang).msi) \
|
---|
731 | $(foreach lang,$(VBOX_INSTALLER_ADD_LANGUAGES), $(VBOX_WIN_INST_OUT_DIR)/NLS/$(lang).mst) \
|
---|
732 | $(VBOX_SVN_REV_KMK) \
|
---|
733 | | $$(dir $$@)
|
---|
734 | $(QUIET)$(RM) -f $(wildcard $(PATH_STAGE_BIN)/$(PACKAGE_BASE)-r*.msi)
|
---|
735 | $(REDIRECT) -C $(@D) -- \
|
---|
736 | wscript.exe $(VBOX_PATH_WISUMINFO) $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG)_en_US.msi $(VBOX_INS_PROD_LANG)
|
---|
737 | $(CP) -f $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG)_en_US.msi $@
|
---|
738 | $(call VBOX_SIGN_FILE_FN,$@,$(VBOX_PRODUCT) $(VBOX_VERSION_STRING)r$(VBOX_SVN_REV))
|
---|
739 |
|
---|
740 |
|
---|
741 | if defined(VBOX_WITH_COMBINED_PACKAGE) && "$(KBUILD_TARGET_ARCH)" == "x86"
|
---|
742 | #
|
---|
743 | # Make the multi-architecture installer by calling our stub builder
|
---|
744 | # with both platform installers (x86 and amd64) + common cab. We only
|
---|
745 | # need to do this once; so do it on x86 only.
|
---|
746 | #
|
---|
747 | $(PATH_STAGE_BIN)/$(PACKAGE_NAME_MULTIARCH_FINAL): \
|
---|
748 | $(PATH_MULTIARCH_TEMP)/$(PACKAGE_NAME_MULTIARCH.x86) \
|
---|
749 | $(PATH_MULTIARCH_TEMP)/$(PACKAGE_NAME_MULTIARCH.amd64) \
|
---|
750 | $(PATH_STAGE_BIN)/VBoxStub.exe \
|
---|
751 | $$(VBoxStubBld_1_TARGET)
|
---|
752 | $(call MSG_L1,Building Windows combined package)
|
---|
753 | $(call VBOX_SIGN_FILE_FN,$(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_MULTIARCH_COMMONCAB))
|
---|
754 | $(REDIRECT) -C $(@D) -- \
|
---|
755 | $(VBoxStubBld_1_TARGET) -out $@ \
|
---|
756 | -target-x86 $(PATH_MULTIARCH_TEMP)/$(PACKAGE_NAME_MULTIARCH.x86) \
|
---|
757 | -target-amd64 $(PATH_MULTIARCH_TEMP)/$(PACKAGE_NAME_MULTIARCH.amd64) \
|
---|
758 | -target-all $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_MULTIARCH_COMMONCAB) \
|
---|
759 | -stub $(PATH_STAGE_BIN)/VBoxStub.exe
|
---|
760 | $(call VBOX_SIGN_FILE_FN,$@)
|
---|
761 | endif
|
---|
762 |
|
---|
763 |
|
---|
764 | #
|
---|
765 | # Make the bundle installer (for retail ISOs) (zip-file).
|
---|
766 | #
|
---|
767 | $(VBOX_PATH_PACK_BUNDLE_ZIP): \
|
---|
768 | $(PACKAGE_NAME_FINAL) \
|
---|
769 | $(if-expr "$(KBUILD_TARGET_ARCH)" == "x86", \
|
---|
770 | $(PATH_STAGE_BIN)/VBoxBundleMachine.exe \
|
---|
771 | $(if $(VBOX_BRAND_WIN_AS_MENU), $(PATH_STAGE_BIN)/AutoStartMenu.exe) \
|
---|
772 | $(if $(VBOX_WITH_COMBINED_PACKAGE), $(PATH_STAGE_BIN)/$(PACKAGE_NAME_MULTIARCH_FINAL)),)
|
---|
773 | $(RM) -Rf -- $(VBOX_PATH_PACK_BUNDLE_TMP)/
|
---|
774 | $(MKDIR) -p $(VBOX_PATH_PACK_BUNDLE_TMP)/
|
---|
775 | ifndef VBOX_WITH_COMBINED_PACKAGE
|
---|
776 | $(CP) $(PACKAGE_NAME_FINAL) $(VBOX_PATH_PACK_BUNDLE_TMP)/$(VBOX_BRAND_WIN_INST_NAME.$(KBUILD_TARGET_ARCH))
|
---|
777 | endif
|
---|
778 | ifeq ($(KBUILD_TARGET_ARCH),x86)
|
---|
779 | ifdef VBOX_WITH_COMBINED_PACKAGE
|
---|
780 | $(CP) $(PATH_STAGE_BIN)/$(PACKAGE_NAME_MULTIARCH_FINAL) $(VBOX_PATH_PACK_BUNDLE_TMP)/$(PACKAGE_NAME_MULTIARCH_FINAL)
|
---|
781 | endif
|
---|
782 | $(CP) $(PATH_STAGE_BIN)/VBoxBundleMachine.exe $(VBOX_PATH_PACK_BUNDLE_TMP)/
|
---|
783 | $(CP) $(PATH_STAGE_BIN)/AutoStartMenu.exe $(VBOX_PATH_PACK_BUNDLE_TMP)/
|
---|
784 | ifdef VBOX_BRAND_WIN_AS_MENU
|
---|
785 | $(MKDIR) -p $(VBOX_PATH_PACK_BUNDLE_TMP)/Menu/Graphics/
|
---|
786 | $(CP) $(VBOX_BRAND_WIN_AS_CONTENT) $(VBOX_PATH_PACK_BUNDLE_TMP)/
|
---|
787 | $(CP) $(VBOX_BRAND_WIN_AS_MENU_CONTENT) $(VBOX_PATH_PACK_BUNDLE_TMP)/Menu/
|
---|
788 | $(CP) $(VBOX_BRAND_WIN_AS_MENU_CONTENT_GFX) $(VBOX_PATH_PACK_BUNDLE_TMP)/Menu/Graphics/
|
---|
789 | ifdef VBOX_WITH_COMBINED_PACKAGE
|
---|
790 | $(SED) -e 's/VBOXEXE/$(PACKAGE_NAME_MULTIARCH_FINAL)/g' \
|
---|
791 | --output $(VBOX_PATH_PACK_BUNDLE_TMP)/Menu/index.html \
|
---|
792 | $(VBOX_BRAND_WIN_AS_MENU)/index_combined.html
|
---|
793 | else
|
---|
794 | $(SED) -e 's/VBOX32EXE/$(VBOX_BRAND_WIN_INST_NAME.x86)/g' \
|
---|
795 | -e 's/VBOX64EXE/$(VBOX_BRAND_WIN_INST_NAME.amd64)/g' \
|
---|
796 | --output $(VBOX_PATH_PACK_BUNDLE_TMP)/Menu/index.html \
|
---|
797 | $(VBOX_BRAND_WIN_AS_MENU)/index.html
|
---|
798 | endif
|
---|
799 | endif
|
---|
800 | endif
|
---|
801 | ifeq ($(KBUILD_TARGET_ARCH),amd64)
|
---|
802 | ifndef VBOX_WITH_COMBINED_PACKAGE
|
---|
803 | # Only needed if *not* combined package -- otherwise the 64-bit build
|
---|
804 | # has nothing to do here since the one and only amd64 .MSI file is already
|
---|
805 | # included in the x86 combined package.
|
---|
806 | $(REDIRECT) -C $(VBOX_PATH_PACK_BUNDLE_TMP) -- $(ZIP) -9r $@ .
|
---|
807 | endif
|
---|
808 | else
|
---|
809 | # Do a bundle .zip in every case on x86. On a combined package this also
|
---|
810 | # will include the amd64 installer we left out in the block above (see comment).
|
---|
811 | $(REDIRECT) -C $(VBOX_PATH_PACK_BUNDLE_TMP) -- $(ZIP) -9r $@ .
|
---|
812 | endif
|
---|
813 |
|
---|
814 | include $(FILE_KBUILD_SUB_FOOTER)
|
---|