VirtualBox

source: vbox/trunk/src/VBox/Installer/win/Makefile.kmk@ 80819

Last change on this file since 80819 was 80819, checked in by vboxsync, 5 years ago

Installer/win: Hopefully last fixes (the copying was still done, and step 4 used the full path of the MSI file instead of just the filename), plus a bit of grammar.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 57.6 KB
Line 
1# $Id: Makefile.kmk 80819 2019-09-16 11:22:29Z vboxsync $
2## @file
3# Makefile for the Windows installer.
4#
5
6#
7# Copyright (C) 2006-2019 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
18SUB_DEPTH = ../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21ifneq ($(KBUILD_HOST),win)
22 $(error "The Windows installer can only be built on Windows!")
23endif
24
25
26#
27# Include Sub-Makefiles.
28#
29include $(PATH_SUB_CURRENT)/InstallHelper/Makefile.kmk
30
31include $(PATH_SUB_CURRENT)/Stub/Makefile.kmk
32include $(PATH_SUB_CURRENT)/StubBld/Makefile.kmk
33include $(PATH_SUB_CURRENT)/Resources/Makefile.kmk
34ifdef VBOX_WITH_MSI_HACK
35 include $(PATH_SUB_CURRENT)/MsiHack/Makefile.kmk
36endif
37
38
39
40#
41# Globals.
42#
43# Tip: Use VBOX_CAB_COMPRESSION_LEVEL=none on the kmk command line when working
44# on the installer.
45#
46VBOX_WIN_INST_MAKEFILE_DEP := $(MAKEFILE_CURRENT)
47VBOX_CAB_COMPRESSION_LEVEL := high
48
49VBOX_PATH_WIN_INST_SRC := $(PATH_SUB_CURRENT)
50VBOX_WIN_INST_OUT_DIR := $(PATH_TARGET)/Installer/win
51VBOX_WIN_INST_REPACK_DIR := $(PATH_OUT)/repack
52
53# Note: en_US *must* come first for the dependency file generation.
54ifndef VBOX_INSTALLER_LANGUAGES
55 VBOX_INSTALLER_LANGUAGES = en_US de_DE el_GR fr_FR it_IT tr_TR zh_TW zh_CN
56 VBOX_INSTALLER_LANGUAGES += $(VBOX_INSTALLER_ADD_LANGUAGES)
57endif
58
59
60#
61# List of merge modules to use.
62#
63VBOX_INSTALLER_MERGE_MODULES = App USB NetAdp NetFlt NetAdp6 NetLwf Python
64ifeq ($(KBUILD_TARGET_ARCH),amd64)
65 VBOX_INSTALLER_MERGE_MODULES += COM32On64
66endif
67
68# We only ship the merge modules in locale en_US for the moment.
69ifdef VBOX_WITH_MSM_INSTALL
70 VBOX_INSTALLER_LANGUAGES := en_US
71 VBOX_INSTALLER_MERGE_LANGUAGES = $(VBOX_INSTALLER_LANGUAGES)
72endif
73
74#
75# Language IDs (LCID, decimal)
76#
77VBOX_BRAND_en_US_LANG_ID ?= 1033
78VBOX_BRAND_de_DE_LANG_ID ?= 1031
79VBOX_BRAND_el_GR_LANG_ID ?= 1032
80VBOX_BRAND_fa_IR_LANG_ID ?= 1065
81VBOX_BRAND_fr_FR_LANG_ID ?= 1036
82VBOX_BRAND_it_IT_LANG_ID ?= 1040
83VBOX_BRAND_tr_TR_LANG_ID ?= 1055
84VBOX_BRAND_zh_TW_LANG_ID ?= 1028
85VBOX_BRAND_zh_CN_LANG_ID ?= 2052
86
87# Standard language names (in the native language), to be extended as we go.
88# VBOX_BRAND_$(lang)_LANG_NAME must be defined for each language which occurs
89# in either VBOX_LICENSE_ADD_LANGUAGES or VBOX_MANUAL_ADD_LANGUAGES.
90VBOX_BRAND_en_US_LANG_NAME := English
91VBOX_BRAND_de_DE_LANG_NAME := Deutsch
92VBOX_BRAND_el_GR_LANG_NAME := Ελληνικά
93VBOX_BRAND_fr_FR_LANG_NAME := Français
94VBOX_BRAND_it_IT_LANG_NAME := Italiano
95VBOX_BRAND_tr_TR_LANG_NAME := Türkçe
96VBOX_BRAND_zh_TW_LANG_NAME := 正體中文
97VBOX_BRAND_zh_CN_LANG_NAME := 简体中文
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:
115VBOX_BRAND_zh_TW_LANGUAGE_CODEPAGE := 950
116VBOX_BRAND_zh_CN_LANGUAGE_CODEPAGE := 936
117VBOX_BRAND_fa_IR_LANGUAGE_CODEPAGE := 1256
118VBOX_BRAND_tr_TR_LANGUAGE_CODEPAGE := 1254
119
120#
121# If we want to build a combined package, we separate all common stuff
122# (that is all 100% identical content between 32-/64-bit builds)
123# into an own .cab file to save space. This .cab file then gets included
124# and used by the 32-/64-bit installers.
125#
126ifdef VBOX_WITH_COMBINED_PACKAGE
127 VBOX_INSTALLER_COMMON_DISKID := 2
128else
129 VBOX_INSTALLER_COMMON_DISKID := 1
130endif
131
132## @todo VBOX_ prefixes!
133PACKAGE_BASE := VirtualBox-$(VBOX_VERSION_STRING)
134PACKAGE_NAME_LANG := $(PACKAGE_BASE)-r$(VBOX_SVN_REV)
135PACKAGE_NAME_FINAL := $(PATH_STAGE_BIN)/$(PACKAGE_NAME_LANG).msi
136
137ifdef VBOX_WITH_COMBINED_PACKAGE
138 PATH_MULTIARCH_TEMP := $(PATH_OUT_BASE)/win.x86/$(KBUILD_TYPE)/obj/Installer
139 PATH_MULTIARCH_GUEST_ADDITIONS_ISO := $(PATH_OUT_BASE)/win.amd64/$(KBUILD_TYPE)/bin/additions
140 PACKAGE_NAME_MULTIARCH := $(PACKAGE_NAME_LANG)-MultiArch
141 PACKAGE_NAME_MULTIARCH.x86 := $(PACKAGE_NAME_MULTIARCH)_x86.msi
142 PACKAGE_NAME_MULTIARCH.amd64 := $(PACKAGE_NAME_MULTIARCH)_amd64.msi
143 PACKAGE_NAME_FINAL := $(PATH_MULTIARCH_TEMP)/$(PACKAGE_NAME_MULTIARCH.$(KBUILD_TARGET_ARCH))
144 PACKAGE_NAME_MULTIARCH_FINAL := $(PACKAGE_NAME_MULTIARCH).exe
145 # Always take the common.cab from the amd64 build, as it
146 # might contain certain files for x86 compatibility such
147 # as our 32-on-64-bit COM stuff.
148 PACKAGE_NAME_MULTIARCH_COMMONCAB := $(PATH_OUT_BASE)/win.amd64/$(KBUILD_TYPE)/obj/Installer/win/common.cab
149
150 BLDDIRS += $(PATH_MULTIARCH_TEMP)
151 PACKING += $(PACKAGE_NAME_FINAL)
152 ifeq ($(KBUILD_TARGET_ARCH),x86)
153 PACKING += $(PATH_STAGE_BIN)/$(PACKAGE_NAME_MULTIARCH_FINAL)
154 endif
155else
156 PACKAGE_NAME_MULTIARCH := $(PACKAGE_NAME_LANG)-MultiArch
157 PACKAGE_NAME_MULTIARCH_FINAL := $(PACKAGE_NAME_MULTIARCH).exe
158 PACKING += $(PACKAGE_NAME_FINAL) $(PATH_STAGE_BIN)/$(PACKAGE_NAME_MULTIARCH_FINAL)
159endif
160BLDDIRS += \
161 $(VBOX_WIN_INST_OUT_DIR) \
162 $(VBOX_WIN_INST_REPACK_DIR)/ \
163 $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
164 $(VBOX_WIN_INST_OUT_DIR)/$(lang)/ \
165 $(VBOX_WIN_INST_REPACK_DIR)/files-VirtualBox_$(lang)/ )\
166 $(VBOX_WIN_INST_OUT_DIR)/NLS/
167
168OTHER_CLEAN += \
169 $(VBOX_WIN_INST_OUT_DIR)/VirtualBox.wixobj \
170 $(VBOX_WIN_INST_OUT_DIR)/VirtualBox.wix \
171 $(VBOX_WIN_INST_REPACK_DIR)/VirtualBox.wix \
172 $(VBOX_WIN_INST_OUT_DIR)/VirtualBox.wixobj.dep \
173 $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib.wxi \
174 $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib_x86.wxi \
175 $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_ProxyStub.wxi \
176 $(if $(VBOX_WITH_QTGUI),$(VBOX_WIN_INST_OUT_DIR)/VBoxGuiNLS.wxi) \
177 $(VBOX_WIN_INST_OUT_DIR)/VBoxKey.wxi \
178 $(VBOX_WIN_INST_OUT_DIR)/VBoxUnattendedTemplateComponent.wxi \
179 $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
180 $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl \
181 $(VBOX_WIN_INST_OUT_DIR)/NLS/License_$(lang).wxl \
182 $(VBOX_WIN_INST_OUT_DIR)/$(lang)/$(lang).mst \
183 $(VBOX_WIN_INST_OUT_DIR)/$(lang)/$(PACKAGE_NAME_LANG)_$(lang).wixpdb \
184 $(VBOX_WIN_INST_OUT_DIR)/$(lang)/$(PACKAGE_NAME_LANG)_$(lang).msi \
185 $(VBOX_WIN_INST_OUT_DIR)/$(lang)/VirtualBox_$(lang).wix \
186 $(VBOX_WIN_INST_OUT_DIR)/$(lang)/VirtualBox_$(lang).wixobj \
187 $(VBOX_WIN_INST_OUT_DIR)/$(lang)/VirtualBox_$(lang).wixobj.dep \
188 $(VBOX_WIN_INST_REPACK_DIR)/VirtualBox_$(lang).wix \
189 $(VBOX_WIN_INST_REPACK_DIR)/VirtualBox_$(lang).files \
190 $(VBOX_WIN_INST_REPACK_DIR)/2-link-$(PACKAGE_NAME_LANG).cmd \
191 $(VBOX_WIN_INST_REPACK_DIR)/files-VirtualBox_$(lang)/Language_$(lang).wxl \
192 $(VBOX_WIN_INST_REPACK_DIR)/files-VirtualBox_$(lang)/License_$(lang).wxl )\
193 $(VBOX_WIN_INST_OUT_DIR)/DirComponentsAndFiles_DTrace.wxi \
194 $(VBOX_WIN_INST_OUT_DIR)/Files_Main.wxi \
195 $(VBOX_WIN_INST_OUT_DIR)/Files_Doc.wxi \
196 $(VBOX_WIN_INST_OUT_DIR)/Files_License.wxi \
197 $(VBOX_WIN_INST_OUT_DIR)/Shortcuts_StartMenu.wxi \
198 $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG).msi \
199 $(VBOX_WIN_INST_REPACK_DIR)/3-multilingual-$(PACKAGE_NAME_LANG).cmd \
200 $(PATH_STAGE_BIN)/$(PACKAGE_NAME_MULTIARCH_FINAL)
201
202ifdef VBOX_WITH_COMBINED_PACKAGE
203 ifeq ($(KBUILD_TARGET_ARCH),x86)
204 OTHER_CLEAN += \
205 $(VBOX_WIN_INST_REPACK_DIR)/4-multiarch-$(PACKAGE_NAME_MULTIARCH_FINAL).cmd \
206 $(PATH_MULTIARCH_TEMP)/$(PACKAGE_NAME_MULTIARCH.x86)
207 endif
208 ifndef VBOX_WITH_MSM_INSTALL
209 OTHER_CLEAN += \
210 $(VBOX_WIN_INST_OUT_DIR)/common.cab
211 endif
212else
213 OTHER_CLEAN += \
214 $(VBOX_WIN_INST_REPACK_DIR)/4-multiarch-$(PACKAGE_NAME_MULTIARCH_FINAL).cmd \
215 $(PACKAGE_NAME_FINAL)
216endif
217
218ifdef VBOX_WITH_MSM_INSTALL
219 OTHER_CLEAN += \
220 $(foreach module,$(VBOX_INSTALLER_MERGE_MODULES), \
221 $(foreach lang,$(VBOX_INSTALLER_MERGE_LANGUAGES), \
222 $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang)_$(KBUILD_TARGET_ARCH).msm \
223 $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).wixobj \
224 $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).wixobj.dep \
225 $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).wixpdb \
226 $(VBOX_WIN_INST_REPACK_DIR)/VBoxMerge$(module)_$(lang).wix \
227 $(VBOX_WIN_INST_REPACK_DIR)/VBoxMerge$(module)_$(lang).files)
228 BLDDIRS += $foreach lang,$(VBOX_INSTALLER_MERGE_LANGUAGES), \
229 $(VBOX_WIN_INST_REPACK_DIR)/files-VBoxMerge$(module)_$(lang)/)
230endif
231
232#
233# Suppress/skip the following ICE (Internal Consistency Evaluators):
234# - ICE64: Checks that new directories in the user profile are removed correctly in roaming scenarios.
235# -> We don't want to remove system folders (like "Microsoft/Internet Explorer/Quick Launch").
236# - ICE69: Checks if file references are within the same component.
237# -> We reference to files within different components, but these components are installed using
238# the same feature, so that's fine.
239#
240VBOX_MSI_ICE_IGNORE := \
241 -ice:64 \
242 -ice:69
243
244#
245# Create intermediate XML file for languages (needed for .MSI linking).
246#
247# Note: The double escaping of $(dir $@) in the prereq/dep list is because we first have
248# to escape the expansion of the $(eval ) argument and then the definition of the
249# rule. The statement is finally expanded during second dependency expansion, which
250# takes place after all makefiles has been loaded and with the @ variable defined.
251#
252define def_vbox_lang_xml
253$(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl: $(VBOX_PATH_WIN_INST_SRC)/NLS/$(lang).wxl | $$$$(dir $$$$@)
254 $$(call MSG_GENERATE,,$$@,$$<)
255 $(QUIET)$(INSTALL) -m 0644 $$< $$@
256endef
257
258$(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
259 $(eval $(def_vbox_lang_xml)))
260
261#
262# Create intermediate XML file for licenses (needed for .MSI linking).
263# These files are created from the original .RTF files in the /docs directory.
264#
265# Note: The redirect command below will open $$@ as stdout in append+text mode
266# and then exec cat, thus appending the license file to the result file.
267#
268# Note: The license_file variable has to be created before def_vbox_license_xml
269# is expanded by the 2nd eval because we rely on the that expansion
270# replacing all $(license_file) (and $(lang)) references before evaluation.
271#
272# Note: The REDIRECT + ECHO_EXT is because WiX gets upset if there a newline
273# between the tag and the RTF license text.
274#
275define def_vbox_license_xml
276$(VBOX_WIN_INST_OUT_DIR)/NLS/License_$(lang).wxl: $(license_file) $(VBOX_WIN_INST_MAKEFILE_DEP) | $$$$(dir $$$$@)
277 $$(call MSG_GENERATE,,$$@,$$<)
278 $(APPEND) -t $$@ '<?xml version="1.0" encoding="utf-8"?>'
279 $(APPEND) $$@ '<WixLocalization xmlns="http://schemas.microsoft.com/wix/2006/localization" Codepage="$(VBOX_BRAND_$(lang)_LANGUAGE_CODEPAGE)" Culture="$(lang)">'
280
281 $(REDIRECT) -a+to $$@ -- $(ECHO_EXT) -n '<String Id="LicenseText">'
282 $(REDIRECT) -a+to $$@ -- $(SED) -e "s|<|\&lt;|g" -e "s|>|\&gt;|g" $(license_file)
283 $(APPEND) $$@ '</String>'
284
285 $(APPEND) $$@ '<String Id="LicenseFile">$(license_file)</String>'
286 $(APPEND) $$@ '<String Id="LicenseInstallFileLong">License_$(lang).rtf</String>'
287 $(APPEND) $$@ '<String Id="LicenseInstallFileShort">L_$(lang).rtf</String>'
288
289 $(APPEND) $$@ '</WixLocalization>'
290endef
291
292$(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
293 $(eval local license_file := $(VBOX_BRAND_$(subst en_US_,,$(lang)_)LICENSE_RTF)) \
294 $(eval $(def_vbox_license_xml)))
295
296#
297# Create one intermediate WXI (Windows Installer Include) file for all installers (needed for .MSI compiling).
298# This file includes all language-specific files (PDFs, CHMs, ...) to install.
299#
300# Note: When using the -n switch, append will append a new line after each
301# argument. The -t switch makes it truncate the file.
302#
303$(VBOX_WIN_INST_OUT_DIR)/Files_Main.wxi: $(VBOX_WIN_INST_MAKEFILE_DEP) | $$(dir $$@)
304 $(call MSG_GENERATE,,$@,$<)
305 $(APPEND) -t $@ '<?xml version="1.0" ?>'
306 $(APPEND) $@ '<Include xmlns="http://schemas.microsoft.com/wix/2006/wi">'
307ifdef VBOX_WITH_DOCS_PACKING
308 $(APPEND) $@ ' <File Id="file_VirtualBox.chm" Name="VirtualBox.chm" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$(subst /,\,$(PATH_STAGE_BIN)/VirtualBox.chm)"></File>'
309 $(APPEND) -n $@ $(foreach lang,$(VBOX_MANUAL_ADD_LANGUAGES), \
310 ' <File Id="file_VirtualBox_$(lang).chm" Name="VirtualBox_$(lang).chm" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$(subst /,\,$(PATH_STAGE_BIN)/VirtualBox_$(lang).chm)"></File>')
311endif
312 $(APPEND) $@ '</Include>'
313
314$(VBOX_WIN_INST_OUT_DIR)/Files_Doc.wxi: $(VBOX_WIN_INST_MAKEFILE_DEP) | $$(dir $$@)
315 $(call MSG_GENERATE,,$@,$<)
316 $(APPEND) -t $@ '<?xml version="1.0" ?>'
317 $(APPEND) $@ '<Include xmlns="http://schemas.microsoft.com/wix/2006/wi">'
318ifdef VBOX_WITH_DOCS_PACKING
319 $(APPEND) $@ ' <File Id="file_UserManual.pdf" Name="UserManual.pdf" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$(subst /,\,$(PATH_STAGE_BIN)/UserManual.pdf)">'
320 $(APPEND) $@ ' </File>'
321 $(APPEND) -n $@ $(foreach lang,$(VBOX_MANUAL_ADD_LANGUAGES), \
322 ' <File Id="file_UserManual_$(lang).pdf" Name="UserManual_$(lang).pdf" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$(subst /,\,$(PATH_STAGE_BIN)/UserManual_$(lang).pdf)">' \
323 ' </File>')
324endif
325 $(APPEND) $@ '</Include>'
326
327$(VBOX_WIN_INST_OUT_DIR)/Files_License.wxi: $(VBOX_WIN_INST_MAKEFILE_DEP) | $$(dir $$@)
328 $(call MSG_GENERATE,,$@,$<)
329 $(APPEND) -t $@ '<?xml version="1.0" ?>'
330 $(APPEND) $@ '<Include xmlns="http://schemas.microsoft.com/wix/2006/wi">'
331 $(APPEND) $@ ' <File Id="file_License_en_US.rtf" Name="License_en_US.rtf" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$(subst /,\,$(VBOX_BRAND_LICENSE_RTF))">' \
332 ' </File>'
333 $(APPEND) -n $@ $(foreach lang,$(VBOX_LICENSE_ADD_LANGUAGES), \
334 ' <File Id="file_License_$(lang).rtf" Name="License_$(lang).rtf" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$(subst /,\,$(VBOX_BRAND_$(lang)_LICENSE_RTF))">' \
335 ' </File>')
336 $(APPEND) $@ '</Include>'
337
338$(VBOX_WIN_INST_OUT_DIR)/DirComponentsAndFiles_DTrace.wxi: $(VBOX_WIN_INST_MAKEFILE_DEP) $(PATH_SUB_CURRENT)/../Config.kmk | $$(dir $$@)
339 $(call MSG_GENERATE,,$@,$<)
340 $(QUIET)$(APPEND) -nt "$@" \
341 '<?xml version="1.0" ?>' \
342 '<Include xmlns="http://schemas.microsoft.com/wix/2006/wi">'
343ifdef VBOX_WITH_DTRACE
344 $(QUIET)$(APPEND) -n "$@" \
345 '<Directory Id="dir_DTrace" Name="dtrace">' \
346 ' <Directory Id="dir_DTrace_lib" Name="lib">' \
347 ' <Directory Id="dir_DTrace_lib_arch" Name="$(KBUILD_TARGET_ARCH)">' \
348 ' <Component Id="cp_dir_DTrace_lib_arch" Guid="7476CDF6-4157-2E17-5CCC-FF92528D2854" Win64="$$(var.Property_Win64)">' \
349 $(foreach file, $(VBOXINST_DTRACE_LIB_ARCH_FILES) \
350 , ' <File Id="file_dtrace_lib_arch_$(subst -,_,$(file))" Name="$(file)" Vital="yes" ' \
351 ' Source="$(subst /,\,$(PATH_STAGE_BIN)/dtrace/lib/$(KBUILD_TARGET_ARCH)/$(file))" />' ) \
352 ' </Component>' \
353 ' </Directory>' \
354 ' </Directory>' \
355 $(if $(VBOXINST_DTRACE_TESTCASE_ARCH_FILES), \
356 ' <Directory Id="dir_DTrace_testcase" Name="testcase">' \
357 ' <Directory Id="dir_DTrace_testcase_arch" Name="$(KBUILD_TARGET_ARCH)">' \
358 ' <Component Id="cp_dir_DTrace_testcase_arch" Guid="45DF7014-4431-6C40-6DB0-35AF7C690EE1" Win64="$$(var.Property_Win64)">' \
359 $(foreach file, $(VBOXINST_DTRACE_TESTCASE_ARCH_FILES) \
360 , ' <File Id="file_dtrace_testcase_arch_$(subst -,_,$(file))" Name="$(file)" Vital="yes" ' \
361 ' Source="$(subst /,\,$(PATH_STAGE_BIN)/dtrace/testcase/$(KBUILD_TARGET_ARCH)/$(file))" />' ) \
362 ' </Component>' \
363 ' </Directory>' \
364 ' </Directory>') \
365 $(if $(VBOXINST_DTRACE_SCRIPTS_FILES), \
366 ' <Directory Id="dir_DTrace_scripts" Name="scripts">' \
367 ' <Component Id="cp_dir_DTrace_scripts" Guid="AE07F9D5-4FD9-ACC7-C760-E9923CE01E16" Win64="$$(var.Property_Win64)">' \
368 $(foreach file, $(VBOXINST_DTRACE_SCRIPTS_FILES) \
369 , ' <File Id="file_dtrace_scripts_$(subst -,_,$(file))" Name="$(file)" Vital="yes" ' \
370 ' Source="$(subst /,\,$(PATH_STAGE_BIN)/dtrace/scripts/$(file))" />' ) \
371 ' </Component>' \
372 ' </Directory>') \
373 '</Directory>'
374endif
375 $(QUIET)$(APPEND) "$@" '</Include>'
376
377
378$(VBOX_WIN_INST_OUT_DIR)/Shortcuts_StartMenu.wxi: $(VBOX_WIN_INST_MAKEFILE_DEP) | $$(dir $$@)
379 $(call MSG_GENERATE,,$@,$<)
380 $(APPEND) -t $@ '<?xml version="1.0" ?>'
381 $(APPEND) $@ '<Include xmlns="http://schemas.microsoft.com/wix/2006/wi">'
382 #
383 # Documentation (PDF/CHM)
384 #
385ifdef VBOX_WITH_DOCS_PACKING
386 $(APPEND) $@ ' <Shortcut Id="sc_StartMenu_ManualCHM_en_US" Directory="dir_StartMenuVBox" Name="!(loc.StartMenu_UserManual) (CHM, English)" Description="!(loc.StartMenu_UserManual)"' \
387 ' Target="[INSTALLDIR]\VirtualBox.chm" WorkingDirectory="dir_Documents" Advertise="no"/>'
388 $(APPEND) -n $@ $(foreach lang,$(VBOX_MANUAL_ADD_LANGUAGES), \
389 ' <Shortcut Id="sc_StartMenu_ManualCHM_$(lang)" Directory="dir_StartMenuVBox" Name="!(loc.StartMenu_UserManual) (CHM, $(VBOX_BRAND_$(lang)_LANG_NAME))"' \
390 ' Description="!(loc.StartMenu_UserManual) ($(VBOX_BRAND_$(lang)_LANG_NAME))" Target="[INSTALLDIR]\VirtualBox_$(lang).chm" WorkingDirectory="dir_Documents"/>')
391endif
392 $(APPEND) $@ ' <Shortcut Id="sc_StartMenu_ManualPDF_en_US" Directory="dir_StartMenuVBox" Name="!(loc.StartMenu_UserManual) (PDF, English)" Description="!(loc.StartMenu_UserManual)"' \
393 ' Target="[INSTALLDIR]\doc\UserManual.pdf" WorkingDirectory="dir_Documents" Advertise="no"/>'
394 $(APPEND) -n $@ $(foreach lang,$(VBOX_MANUAL_ADD_LANGUAGES), \
395 ' <Shortcut Id="sc_StartMenu_ManualPDF_$(lang)" Directory="dir_StartMenuVBox" Name="!(loc.StartMenu_UserManual) (PDF, $(VBOX_BRAND_$(lang)_LANG_NAME))"' \
396 ' Description="!(loc.StartMenu_UserManual) ($(VBOX_BRAND_$(lang)_LANG_NAME))" Target="[INSTALLDIR]\doc\UserManual_$(lang).pdf" WorkingDirectory="dir_Documents"/>')
397 #
398 # License(s) (RTF)
399 #
400 $(APPEND) $@ ' <Shortcut Id="sc_StartMenu_License_en_US" Directory="dir_StartMenuVBox" Name="!(loc.StartMenu_License) (English)" Description="!(loc.StartMenu_License)"' \
401 ' Target="[INSTALLDIR]License_en_US.rtf" WorkingDirectory="INSTALLDIR" Advertise="no"/>'
402 $(APPEND) -n $@ $(foreach lang,$(VBOX_LICENSE_ADD_LANGUAGES), \
403 ' <Shortcut Id="sc_StartMenu_License_$(lang)" Directory="dir_StartMenuVBox" Name="!(loc.StartMenu_License) ($(VBOX_BRAND_$(lang)_LANG_NAME))"' \
404 ' Description="!(loc.StartMenu_License) ($(VBOX_BRAND_$(lang)_LANG_NAME))" Target="License_$(lang).rtf" WorkingDirectory="INSTALLDIR"/>')
405 $(APPEND) $@ '</Include>'
406
407#
408# .MSI linking of the main installer (en_US).
409#
410# Note: This will clean up any previous .msi and .wixpdb files to prevent dep
411# build boxes from filling up with old files.
412#
413define def_vbox_link_msi
414$(VBOX_WIN_INST_OUT_DIR)/$(lang)/$(PACKAGE_NAME_LANG)_$(lang).msi \
415$(if-expr defined(VBOX_WITH_COMBINED_PACKAGE) && !defined(VBOX_WITH_MSM_INSTALL), + $(VBOX_WIN_INST_OUT_DIR)/common.cab,): \
416 $(VBOX_WIN_INST_OUT_DIR)/$(lang)/VirtualBox_$(lang).wixobj \
417 $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl \
418 $(VBOX_WIN_INST_OUT_DIR)/NLS/License_$(lang).wxl \
419 $(PATH_STAGE_BIN)/VBoxInstallHelper.dll \
420 $(VBOX_SVN_REV_KMK) \
421 $(VBOX_WIN_INST_MAKEFILE_DEP) \
422 $(if-expr defined(VBOX_WITH_MSI_HACK),$(MsiHack_0_OUTDIR)/MsiHack.dll,) \
423 $(if-expr defined(VBOX_WITH_MSI_HACK),$(MsiHack_0_OUTDIR)/MsiHackExtension.dll,) \
424 | $$$$(dir $$$$@)
425 $$(call MSG_L1,Linking installer $$@)
426 $(QUIET)$(RM) -f $$(wildcard $$(subst r$$(VBOX_SVN_REV),r*,\
427 $$@ \
428 $$(basename $$@).wixpdb \
429 $$(VBOX_WIN_INST_REPACK_DIR)/2-link-$$(PACKAGE_NAME_LANG).cmd ))
430 kmk_time $(VBOX_PATH_WIX)/light.exe -v -nologo \
431 -loc $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl \
432 -loc $(VBOX_WIN_INST_OUT_DIR)/NLS/License_$(lang).wxl \
433 -ext $(VBOX_PATH_WIX)/WixUIExtension.dll \
434 -ext $(VBOX_PATH_WIX)/WixDifxAppExtension.dll \
435 $(if-expr defined(VBOX_WITH_MSI_HACK),-ext $(MsiHack_0_OUTDIR)/MsiHackExtension.dll,) \
436 $(VBOX_MSI_ICE_IGNORE) \
437 -out $$@ \
438 $$< \
439 $(VBOX_PATH_WIX)/difxapp_$(if-expr "$(KBUILD_TARGET_ARCH)" == "x86",x86,x64).wixlib
440if defined(VBOX_WITH_COMBINED_PACKAGE) && !defined(VBOX_WITH_MSM_INSTALL)
441 $(MV) -f -- $$(@D)/common.cab $$(@D)/../common.cab
442endif
443ifeq ($(lang),en_US)
444 $(CP) -f -- "$(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl" "$(VBOX_WIN_INST_OUT_DIR)/NLS/License_$(lang).wxl" \
445 "$(VBOX_WIN_INST_REPACK_DIR)/files-VirtualBox_$(lang)/"
446# Create repack script for this step.
447 $(APPEND) -tn "$$(VBOX_WIN_INST_REPACK_DIR)/2-link-$$(PACKAGE_NAME_LANG).cmd" \
448 'if ".%KBUILD_DEVTOOLS%" == "." (echo KBUILD_DEVTOOLS is not set & exit /b1)' \
449 $(subst $(KBUILD_DEVTOOLS),%KBUILD_DEVTOOLS%,\
450 '$(VBOX_PATH_WIX)/light.exe -v -nologo ^' \
451 ' -loc files-VirtualBox_$(lang)/Language_$(lang).wxl ^' \
452 ' -loc files-VirtualBox_$(lang)/License_$(lang).wxl ^' \
453 ' -ext $(VBOX_PATH_WIX)/WixUIExtension.dll ^' \
454 ' -ext $(VBOX_PATH_WIX)/WixDifxAppExtension.dll ^' \
455 $(if-expr defined(VBOX_WITH_MSI_HACK),'-ext $(MsiHack_0_OUTDIR)/MsiHackExtension.dll ^',) \
456 ' $(VBOX_MSI_ICE_IGNORE) ^' \
457 ' -out $$(@F) ^' \
458 ' $$(<F) ^' \
459 ' $(VBOX_PATH_WIX)/difxapp_$(if-expr "$(KBUILD_TARGET_ARCH)" == "x86",x86,x64).wixlib ^' \
460 ' || exit /b1' \
461 ) \
462 '@echo Created MSI installer: $$(@F)' \
463 $(if-expr defined(VBOX_WITH_COMBINED_PACKAGE) && !defined(VBOX_WITH_MSM_INSTALL),'@echo Created: common.cab',)
464
465endif
466endef
467
468$(foreach lang, en_US, $(eval $(def_vbox_link_msi)))
469
470
471#
472# Merge module linking (all languages).
473#
474# Note: This will clean up any previous .msm to prevent dep build boxes from
475# filling up with old files.
476#
477define def_vbox_link_msm
478$(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang)_$(KBUILD_TARGET_ARCH).msm: \
479 $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).wixobj \
480 $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl \
481 $(VBOX_WIN_INST_OUT_DIR)/NLS/License_$(lang).wxl \
482 $(PATH_STAGE_BIN)/VBoxInstallHelper.dll \
483 $(VBOX_SVN_REV_KMK) \
484 $(VBOX_WIN_INST_MAKEFILE_DEP) \
485 | $$$$(dir $$$$@)
486 $$(call MSG_L1,Linking installer $$@)
487 $(QUIET)$(RM) -f $$(wildcard $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_BASE)-r*_$(lang).msi)
488 $(VBOX_PATH_WIX)/light.exe -v -nologo \
489 -loc $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl \
490 -loc $(VBOX_WIN_INST_OUT_DIR)/NLS/License_$(lang).wxl \
491 -ext $(VBOX_PATH_WIX)/WixDifxAppExtension.dll \
492 $(VBOX_MSI_ICE_IGNORE) \
493 -out $$@ \
494 $$< \
495 $(VBOX_PATH_WIX)/difxapp_$(if-expr "$(KBUILD_TARGET_ARCH)" == "x86",x86,x64).wixlib
496 $(RM) -f $(VBOX_WIN_INST_OUT_DIR)/NLS/$(lang).mst
497 $(call VBOX_SIGN_FILE_FN,$$@,$(VBOX_PRODUCT) $(VBOX_VERSION_STRING)r$(VBOX_SVN_REV) ($(KBUILD_TARGET_ARCH)),,,disable-dual-signing)
498# Create repack script for this step.
499 $(APPEND) -tn "$$(VBOX_WIN_INST_REPACK_DIR)/2-link-VBoxMerge$(module)_$(lang).cmd" \
500 'if ".%KBUILD_DEVTOOLS%" == "." (echo KBUILD_DEVTOOLS is not set & exit /b1)' \
501 $(subst $(KBUILD_DEVTOOLS),%KBUILD_DEVTOOLS%,\
502 '$(VBOX_PATH_WIX)/light.exe -v -nologo ^' \
503 ' -loc files-VirtualBox_$(lang)/Language_$(lang).wxl ^' \
504 ' -loc files-VirtualBox_$(lang)/License_$(lang).wxl ^' \
505 ' -ext $(VBOX_PATH_WIX)/WixDifxAppExtension.dll ^' \
506 ' $(VBOX_MSI_ICE_IGNORE) ^' \
507 ' -out $$(@F) ^' \
508 ' $$(<F) ^' \
509 ' $(VBOX_PATH_WIX)/difxapp_$(if-expr "$(KBUILD_TARGET_ARCH)" == "x86",x86,x64).wixlib ^' \
510 ' || exit /b1' \
511 'call sign-sha1.cmd $$(@F) || exit /b1' \
512 ) \
513 '@echo Created MSM module: $$(@F)'
514endef
515
516$(if-expr defined(VBOX_WITH_MSM_INSTALL), \
517 $(foreach module,$(VBOX_INSTALLER_MERGE_MODULES), \
518 $(foreach lang,$(VBOX_INSTALLER_MERGE_LANGUAGES), \
519 $(eval $(def_vbox_link_msm)))),)
520
521
522#
523# Add dependencies that makes sure necessary bits gets built.
524# For combined packages we always use the .ISO from the amd64 build.
525#
526ifdef VBOX_WITH_COMBINED_PACKAGE
527 VBOX_MSI_DEPENDENCIES := \
528 $(if $(VBOX_WITH_ADDITIONS_PACKING),$(PATH_MULTIARCH_GUEST_ADDITIONS_ISO)/VBoxGuestAdditions.iso)
529else
530 VBOX_MSI_DEPENDENCIES := \
531 $(if $(VBOX_WITH_ADDITIONS_PACKING),$(VBOX_PATH_ADDITIONS_ISO)/VBoxGuestAdditions.iso)
532endif
533
534#
535# A few manual dependencies to make sure everything is rebuilt when they should.
536#
537$(PATH_SUB_CURRENT)/VirtualBox.wxs: \
538 $(PATH_SUB_CURRENT)/CommonProperties.wxi \
539 $(PATH_SUB_CURRENT)/Defines.wxi \
540 $(PATH_SUB_CURRENT)/VBoxMergeApp.wxi
541
542$(PATH_SUB_CURRENT)/VBoxMergeApp.wxi $(PATH_SUB_CURRENT)/VirtualBox.wxs: \
543 $(VBOX_WIN_INST_OUT_DIR)/Files_Doc.wxi \
544 $(VBOX_WIN_INST_OUT_DIR)/DirComponentsAndFiles_DTrace.wxi \
545 $(VBOX_WIN_INST_OUT_DIR)/Files_License.wxi \
546 $(VBOX_WIN_INST_OUT_DIR)/Files_Main.wxi \
547 $(VBOX_WIN_INST_OUT_DIR)/VBoxKey.wxi \
548 $(VBOX_WIN_INST_OUT_DIR)/VBoxGuiNLS.wxi \
549 $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib.wxi \
550 $(VBOX_WIN_INST_OUT_DIR)/VBoxUnattendedTemplateComponent.wxi
551
552#
553# MSI compile.
554# We've separated the processing from the compilation for repacking reasons.
555#
556define def_vbox_compile_wixobj
557includedep $(VBOX_WIN_INST_OUT_DIR)/$(lang)/VirtualBox_$(lang).wixobj.dep
558$(VBOX_WIN_INST_OUT_DIR)/$(lang)/VirtualBox_$(lang).wixobj \
559+ $(VBOX_WIN_INST_OUT_DIR)/$(lang)/VirtualBox_$(lang).wix \
560$(if-expr "$(lang)" != "en_US",, \
561+ $(VBOX_WIN_INST_REPACK_DIR)/VirtualBox_$(lang).wix $(VBOX_WIN_INST_REPACK_DIR)/VirtualBox_$(lang).files ): \
562 $(PATH_SUB_CURRENT)/VirtualBox.wxs \
563 $(PATH_SUB_CURRENT)/UserInterface.wxi \
564 $(if-expr defined(VBOX_WITH_MSM_INSTALL), \
565 $(foreach module,$(VBOX_INSTALLER_MERGE_MODULES), \
566 $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang)_$(KBUILD_TARGET_ARCH).msm), \
567 $(VBOX_WIN_INST_OUT_DIR)/Shortcuts_StartMenu.wxi \
568 $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib.wxi \
569 $(if $(VBOX_WITH_32_ON_64_MAIN_API),$(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib_x86.wxi,) \
570 $(VBOX_WIN_INST_OUT_DIR)/VBoxKey.wxi \
571 $(VBOX_WIN_INST_OUT_DIR)/VBoxUnattendedTemplateComponent.wxi \
572 $(if $(VBOX_WITH_QTGUI),$(VBOX_WIN_INST_OUT_DIR)/VBoxGuiNLS.wxi) \
573 $(VBOX_MSI_DEPENDENCIES)) \
574 $(VBOX_VERSION_STAMP) \
575 | $$$$(dir $$$$@) $(if-expr "$(lang)" != "en_US",, \
576 $(VBOX_WIN_INST_REPACK_DIR)/ $(VBOX_WIN_INST_REPACK_DIR)/files-VirtualBox_$(lang)/ )
577 $(QUIET)$(RM) -f -- "$$@" "$(VBOX_WIN_INST_OUT_DIR)/$(lang)/VirtualBox_$(lang).wix" "$(VBOX_WIN_INST_REPACK_DIR)/VirtualBox_$(lang).wix"
578 $(REDIRECT) \
579 -E 'PATH_OUT=$(subst /,\,$(PATH_OUT))' \
580 -E 'PATH_TARGET=$(subst /,\,$(VBOX_WIN_INST_OUT_DIR))' \
581 -E 'PATH_ROOT=$(subst /,\,$(PATH_ROOT))' \
582 -E 'PATH_MULTIARCH_GUEST_ADDITIONS_ISO=$(subst /,\,$(PATH_MULTIARCH_GUEST_ADDITIONS_ISO))' \
583 -E 'VBOX_PATH_WIN_INST_SRC=$(subst /,\,$(VBOX_PATH_WIN_INST_SRC))' \
584 -E 'VBOX_BRAND_WIN_INST_DLGJPG=$(subst /,\,$(VBOX_BRAND_WIN_INST_DLGJPG))' \
585 -E 'VBOX_ADD_LANGUAGES=$(VBOX_INSTALLER_ADD_LANGUAGES)' \
586 -E 'VBOX_BRAND_LICENSE_RTF=$(subst /,\,$(VBOX_BRAND_LICENSE_RTF))' \
587 $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
588 -E 'VBOX_BRAND_$(lang)_LICENSE_RTF=$(subst /,\,$(VBOX_BRAND_$(subst en_US_,,$(lang)_)LICENSE_RTF))') \
589 -E 'VBOX_BUILD_NR_FOR_INST=$(VBOX_VERSION_BUILD)' \
590 -E 'VBOX_VENDOR=$(VBOX_VENDOR)' \
591 -E 'VBOX_VENDOR_SHORT=$(VBOX_VENDOR_SHORT)' \
592 -E 'VBOX_PRODUCT=$(VBOX_PRODUCT)' \
593 -E 'VBOX_C_YEAR=$(VBOX_C_YEAR)' \
594 -E 'VBOX_VERSION_STRING=$(VBOX_VERSION_STRING)' \
595 -E 'VBOX_VERSION_STRING_RAW=$(VBOX_VERSION_STRING_RAW)' \
596 -E 'VBOX_VERSION_MAJOR_INST=$(VBOX_VERSION_MAJOR)' \
597 -E 'VBOX_VERSION_MINOR_INST=$(VBOX_VERSION_MINOR)' \
598 -E 'VBOX_SIGNING_MODE=$(strip $(if $(VBOX_SIGNING_MODE),$(VBOX_SIGNING_MODE),none))' \
599 -E 'VBOX_CAB_COMPRESSION_LEVEL=$(if-expr $(lang) == "en_US",$(VBOX_CAB_COMPRESSION_LEVEL),none)' \
600 -E 'VBOX_CAB_COMPRESSION_LEVEL_COMMON=$(if-expr $(lang) == "en_US" && $(KBUILD_TARGET_ARCH) == "amd64",$(VBOX_CAB_COMPRESSION_LEVEL),none)' \
601 -E 'VBOX_GUI_USE_QGL=$(if $(VBOX_GUI_USE_QGL),yes,no)' \
602 -E 'VBOX_MIDL_PROXY_CLSID=$(VBOX_MIDL_PROXY_CLSID)' \
603 $(if-expr defined(VBOX_WITH_MSM_INSTALL), \
604 $(foreach module,$(VBOX_INSTALLER_MERGE_MODULES), \
605 -E 'VBOX_WIN_INST_MERGE_$(toupper $(module))=$(subst /,\,$(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang)_$(KBUILD_TARGET_ARCH).msm')),) \
606 -E 'VBOX_WINDOWS_ICON_FILE=$(subst /,\,$(VBOX_WINDOWS_ICON_FILE))' \
607 -E 'VBOX_QT_INFIX=$(VBOX_QT_INFIX)' \
608 -E 'VBOX_WITH_32_ON_64_MAIN_API=$(if $(VBOX_WITH_32_ON_64_MAIN_API),yes,no)' \
609 -E 'VBOX_WITH_ADDITIONS_PACKING=$(if $(VBOX_WITH_ADDITIONS_PACKING),yes,no)' \
610 -E 'VBOX_WITH_COMBINED_PACKAGE=$(if-expr defined(VBOX_WITH_COMBINED_PACKAGE),yes,no)' \
611 -E 'VBOX_WITH_DEBUGGER_GUI=$(if-expr defined(VBOX_WITH_DEBUGGER_GUI) && defined(VBOX_WITH_QTGUI),yes,no)' \
612 -E 'VBOX_WITH_DOCS_PACKING=$(if $(VBOX_WITH_DOCS_PACKING),yes,no)' \
613 -E 'VBOX_WITH_DRAG_AND_DROP=$(if $(VBOX_WITH_DRAG_AND_DROP),yes,no)' \
614 -E 'VBOX_WITH_DTRACE=$(if $(VBOX_WITH_DTRACE),yes,no)' \
615 -E 'VBOX_WITH_EFIFW_PACKING=$(if $(VBOX_WITH_EFIFW_PACKING),yes,no)' \
616 -E 'VBOX_WITH_EXTPACK=$(if $(VBOX_WITH_EXTPACK),yes,no)' \
617 -E 'VBOX_WITH_GUEST_CONTROL=$(if $(VBOX_WITH_GUEST_CONTROL),yes,no)' \
618 -E 'VBOX_WITH_GUEST_PROPS=$(if $(VBOX_WITH_GUEST_PROPS),yes,no)' \
619 -E 'VBOX_WITH_HARDENING=$(if $(VBOX_WITH_HARDENING),yes,no)' \
620 -E 'VBOX_WITH_LICENSE_DISPLAY=$(if $(VBOX_WITH_LICENSE_DISPLAY),yes,no)' \
621 -E 'VBOX_WITH_MIDL_PROXY_STUB=$(if $(VBOX_WITH_MIDL_PROXY_STUB),yes,no)' \
622 -E 'VBOX_WITH_MSM_INSTALL=$(if-expr defined(VBOX_WITH_MSM_INSTALL),yes,no)' \
623 -E 'VBOX_WITH_NETFLT=$(if $(VBOX_WITH_NETFLT),yes,no)' \
624 -E 'VBOX_WITH_PYTHON=$(if $(VBOX_WITH_PYTHON),yes,no)' \
625 -E 'VBOX_WITH_RAW_MODE=$(if $(VBOX_WITH_RAW_MODE),yes,no)' \
626 -E 'VBOX_WITH_QTGUI=$(if $(VBOX_WITH_QTGUI),yes,no)' \
627 -E 'VBOX_WITH_SECURELABEL=$(if $(VBOX_WITH_SECURELABEL),yes,no)' \
628 -E 'VBOX_WITH_SERIALNUMBER_INSTALL=$(if $(VBOX_WITH_SERIALNUMBER_INSTALL),yes,no)' \
629 -E 'VBOX_WITH_VIDEOHWACCEL=$(if $(VBOX_WITH_VIDEOHWACCEL),yes,no)' \
630 -E 'VBOX_WITH_VRDP=$(if-expr defined(VBOX_WITH_VRDP) && !defined(VBOX_WITH_EXTPACK_PUEL),yes,no)' \
631 -E 'VBOX_WITH_WEBSERVICES=$(if $(VBOX_WITH_WEBSERVICES),yes,no)' \
632 -E 'VBOX_WITH_SDS=$(if $(VBOX_WITH_SDS),yes,no)' \
633 -E 'VBOX_WITH_UNATTENDED=$(if $(VBOX_WITH_UNATTENDED),yes,no)' \
634 -E 'VBOX_WITH_VBOX_IMG=$(if $(VBOX_WITH_VBOX_IMG),yes,no)' \
635 -E 'BUILD_TYPE=$(KBUILD_TYPE)' \
636 -E 'BUILD_TARGET_ARCH=$(KBUILD_TARGET_ARCH)' \
637 -E 'VBOX_VCC_TOOL_STEM=$(VBOX_VCC_TOOL_STEM)' \
638 -- \
639 $(VBOX_PATH_WIX)/candle.exe $(filter-out $(VBOX_VERSION_STAMP),$$<) \
640 -ext $(VBOX_PATH_WIX)/WixUIExtension.dll \
641 -ext $(VBOX_PATH_WIX)/WixDifxAppExtension.dll \
642 -p$(VBOX_WIN_INST_OUT_DIR)/$(lang)/VirtualBox_$(lang).wix
643 $(VBOX_PATH_WIX)/candle.exe $(VBOX_WIN_INST_OUT_DIR)/$(lang)/VirtualBox_$(lang).wix \
644 -ext $(VBOX_PATH_WIX)/WixUIExtension.dll \
645 -ext $(VBOX_PATH_WIX)/WixDifxAppExtension.dll \
646 -out $$@
647 ifeq ($(lang),en_US)
648# Copy preprocessed wix and change source paths to be relative. Stuff not in ../bin needs copying.
649 $(SED) -e 's,$(subst /,\\,$(PATH_OUT))\\bin,..\\bin,g' \
650 -e 's,$(subst /,\\,$(PATH_OUT_BASE))\\win.amd64\\$(KBUILD_TYPE)\\bin,..\\..\\..\\win.amd64\\$(KBUILD_TYPE)\\bin,g' \
651 -e 's,$(subst /,\\,$(PATH_OUT_BASE))\\win.x86\\$(KBUILD_TYPE)\\bin,..\\..\\..\\win.x86\\$(KBUILD_TYPE)\\bin,g' \
652 \
653 -e 's,$(subst /,\\,$(PATH_ROOT))\\doc\\,files-VirtualBox_$(lang)\\,g' \
654 -e 's,$(subst /,\\,$(VBOX_PATH_WIN_INST_SRC))\\Binary\\,files-VirtualBox_$(lang)\\,g' \
655 -e 's,$(subst /,\\,$(VBOX_WIN_INST_OUT_DIR))\\,,g' \
656 -e 's,$(subst /,\\,$(dir $(VBOX_WINDOWS_ICON_FILE))),files-VirtualBox_$(lang)\\,g' \
657 --output "$(VBOX_WIN_INST_REPACK_DIR)/VirtualBox_$(lang).wix" \
658 "$(VBOX_WIN_INST_OUT_DIR)/$(lang)/VirtualBox_$(lang).wix"
659 $(SED) -n \
660 -e '/<\?ln /d' \
661 -e '/$(subst /,\\,$(PATH_ROOT))/p' \
662 -e '/$(subst /,\\,$(PATH_ROOT))/q2' \
663 "$(VBOX_WIN_INST_REPACK_DIR)/VirtualBox_$(lang).wix"
664 $(SED) -n \
665 -e '/<\?ln /d' \
666 -e 's/\\/\//g' \
667 -e 's,^.*"\($(PATH_ROOT)/doc/[^"]*\)".*$$(DOLLAR),\1,p' \
668 -e 's,^.*"\($(VBOX_PATH_WIN_INST_SRC)/Binary/[^"]*\)".*$$(DOLLAR),\1,p' \
669 -e 's,^.*"\($(dir $(VBOX_WINDOWS_ICON_FILE))[^"]*\)".*$$(DOLLAR),\1,p' \
670 --output "$(VBOX_WIN_INST_REPACK_DIR)/VirtualBox_$(lang).files" \
671 "$(VBOX_WIN_INST_OUT_DIR)/$(lang)/VirtualBox_$(lang).wix"
672 set -xe && for file in `$(CAT_EXT) "$(VBOX_WIN_INST_REPACK_DIR)/VirtualBox_$(lang).files"`; \
673 do $(CP_EXT) -f -- "$$(DOLLAR){file}" "$(VBOX_WIN_INST_REPACK_DIR)/files-VirtualBox_$(lang)/"; done
674# Create repack script for this step.
675 $(APPEND) -tn "$(VBOX_WIN_INST_REPACK_DIR)/1-compile-VirtualBox_$(lang).cmd" \
676 'if ".%KBUILD_DEVTOOLS%" == "." (echo KBUILD_DEVTOOLS is not set & exit /b1)' \
677 $(subst $(KBUILD_DEVTOOLS),%KBUILD_DEVTOOLS%,\
678 '$(VBOX_PATH_WIX)/candle.exe VirtualBox_$(lang).wix ^' \
679 ' -ext $(VBOX_PATH_WIX)/WixUIExtension.dll ^' \
680 ' -ext $(VBOX_PATH_WIX)/WixDifxAppExtension.dll ^' \
681 ' -out $$(@F) || exit /b1' \
682 ) \
683 '@echo Created: $$(@F)'
684 endif
685# Generate wxi dependencies based on the sourceLineNumber references in the output. Add repack file list for cleanup.
686 $(QUIET)$(APPEND) -t '[email protected]' '$$@: \'
687 $(QUIET)$(VBOX_XSLTPROC) $(VBOX_PATH_WIN_INST_SRC)/dep.xsl "$$@" >> "[email protected]"
688 $(QUIET)$(VBOX_XSLTPROC) $(VBOX_PATH_WIN_INST_SRC)/dep2.xsl "$$@" | sort | $(SED) '$!N; /^\(.*\)\n\1$$$$/!P; D' >> "[email protected]"
689 $(QUIET)$(APPEND) -n '[email protected]' '' ''
690 ifeq ($(lang),en_US)
691 $(QUIET)$(APPEND) -n '[email protected]' 'define VBOX_REPACK_FILES_VirtualBox_$(lang)'
692 $(QUIET)$(CAT_EXT) "$(VBOX_WIN_INST_REPACK_DIR)/VirtualBox_$(lang).files" >> '[email protected]'
693 $(QUIET)$(APPEND) -n '[email protected]' '' 'endef'
694 endif
695
696$(eval OTHER_CLEAN += $(VBOX_REPACK_FILES_VirtualBox_$(lang)))
697endef
698
699$(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
700 $(eval $(def_vbox_compile_wixobj)))
701
702#
703# MSM (merge module) compile.
704#
705define def_vbox_compile_msm
706includedep $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).wixobj.dep
707$(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).wixobj \
708+ $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).wix \
709$(if-expr "$(lang)" != "en_US",, \
710+ $(VBOX_WIN_INST_REPACK_DIR)/VBoxMerge$(module)_$(lang).wix): \
711 $(PATH_SUB_CURRENT)/VBoxMerge$(module).wxs \
712 $(PATH_SUB_CURRENT)/VBoxMerge$(module).wxi \
713 $(PATH_SUB_CURRENT)/VBoxMerge$(module)CA.wxi \
714 $(PATH_SUB_CURRENT)/VBoxMerge$(module)Seq.wxi \
715 $(PATH_SUB_CURRENT)/UserInterface.wxi \
716 $(VBOX_WIN_INST_OUT_DIR)/Shortcuts_StartMenu.wxi \
717 $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib.wxi \
718 $(if $(VBOX_WITH_32_ON_64_MAIN_API),$(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib_x86.wxi,) \
719 $(VBOX_WIN_INST_OUT_DIR)/VBoxKey.wxi \
720 $(VBOX_WIN_INST_OUT_DIR)/VBoxUnattendedTemplateComponent.wxi \
721 $(if $(VBOX_WITH_QTGUI),$(VBOX_WIN_INST_OUT_DIR)/VBoxGuiNLS.wxi) \
722 $(VBOX_MSI_DEPENDENCIES) \
723 $(VBOX_VERSION_STAMP) \
724 | $$$$(dir $$$$@) $(VBOX_WIN_INST_REPACK_DIR)/
725 $(QUIET)$(RM) -f -- "$$@" "$(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).wix" "$(VBOX_WIN_INST_REPACK_DIR)/VBoxMerge$(module)_$(lang).wix"
726 $(REDIRECT) \
727 -E 'PATH_OUT=$(subst /,\,$(PATH_OUT))' \
728 -E 'PATH_TARGET=$(subst /,\,$(VBOX_WIN_INST_OUT_DIR))' \
729 -E 'PATH_ROOT=$(subst /,\,$(PATH_ROOT))' \
730 -E 'PATH_MULTIARCH_GUEST_ADDITIONS_ISO=$(subst /,\,$(PATH_MULTIARCH_GUEST_ADDITIONS_ISO))' \
731 -E 'VBOX_PATH_WIN_INST_SRC=$(subst /,\,$(VBOX_PATH_WIN_INST_SRC))' \
732 -E 'VBOX_BRAND_WIN_INST_DLGJPG=$(subst /,\,$(VBOX_BRAND_WIN_INST_DLGJPG))' \
733 -E 'VBOX_ADD_LANGUAGES=$(VBOX_INSTALLER_ADD_LANGUAGES)' \
734 -E 'VBOX_BRAND_LICENSE_RTF=$(subst /,\,$(VBOX_BRAND_LICENSE_RTF))' \
735 $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
736 -E 'VBOX_BRAND_$(lang)_LICENSE_RTF=$(subst /,\,$(VBOX_BRAND_$(subst en_US_,,$(lang)_)LICENSE_RTF))') \
737 -E 'VBOX_BUILD_NR_FOR_INST=$(VBOX_VERSION_BUILD)' \
738 -E 'VBOX_VENDOR=$(VBOX_VENDOR)' \
739 -E 'VBOX_VENDOR_SHORT=$(VBOX_VENDOR_SHORT)' \
740 -E 'VBOX_PRODUCT=$(VBOX_PRODUCT)' \
741 -E 'VBOX_C_YEAR=$(VBOX_C_YEAR)' \
742 -E 'VBOX_VERSION_STRING=$(VBOX_VERSION_STRING)' \
743 -E 'VBOX_VERSION_STRING_RAW=$(VBOX_VERSION_STRING_RAW)' \
744 -E 'VBOX_VERSION_MAJOR_INST=$(VBOX_VERSION_MAJOR)' \
745 -E 'VBOX_VERSION_MINOR_INST=$(VBOX_VERSION_MINOR)' \
746 -E 'VBOX_SIGNING_MODE=$(strip $(if $(VBOX_SIGNING_MODE),$(VBOX_SIGNING_MODE),none))' \
747 -E 'VBOX_CAB_COMPRESSION_LEVEL=$(VBOX_CAB_COMPRESSION_LEVEL)' \
748 -E 'VBOX_CAB_COMPRESSION_LEVEL_COMMON=$(VBOX_CAB_COMPRESSION_LEVEL)' \
749 -E 'VBOX_GUI_USE_QGL=$(if $(VBOX_GUI_USE_QGL),yes,no)' \
750 -E 'VBOX_MIDL_PROXY_CLSID=$(VBOX_MIDL_PROXY_CLSID)' \
751 -E 'VBOX_WINDOWS_ICON_FILE=$(subst /,\,$(VBOX_WINDOWS_ICON_FILE))' \
752 -E 'VBOX_QT_INFIX=$(VBOX_QT_INFIX)' \
753 -E 'VBOX_WITH_32_ON_64_MAIN_API=$(if $(VBOX_WITH_32_ON_64_MAIN_API),yes,no)' \
754 -E 'VBOX_WITH_ADDITIONS_PACKING=$(if $(VBOX_WITH_ADDITIONS_PACKING),yes,no)' \
755 -E 'VBOX_WITH_COMBINED_PACKAGE=$(if-expr defined(VBOX_WITH_COMBINED_PACKAGE),yes,no)' \
756 -E 'VBOX_WITH_DEBUGGER_GUI=$(if-expr defined(VBOX_WITH_DEBUGGER_GUI) && defined(VBOX_WITH_QTGUI),yes,no)' \
757 -E 'VBOX_WITH_DOCS_PACKING=$(if $(VBOX_WITH_DOCS_PACKING),yes,no)' \
758 -E 'VBOX_WITH_DRAG_AND_DROP=$(if $(VBOX_WITH_DRAG_AND_DROP),yes,no)' \
759 -E 'VBOX_WITH_DTRACE=$(if $(VBOX_WITH_DTRACE),yes,no)' \
760 -E 'VBOX_WITH_EFIFW_PACKING=$(if $(VBOX_WITH_EFIFW_PACKING),yes,no)' \
761 -E 'VBOX_WITH_EXTPACK=$(if $(VBOX_WITH_EXTPACK),yes,no)' \
762 -E 'VBOX_WITH_GUEST_CONTROL=$(if $(VBOX_WITH_GUEST_CONTROL),yes,no)' \
763 -E 'VBOX_WITH_GUEST_PROPS=$(if $(VBOX_WITH_GUEST_PROPS),yes,no)' \
764 -E 'VBOX_WITH_HARDENING=$(if $(VBOX_WITH_HARDENING),yes,no)' \
765 -E 'VBOX_WITH_LICENSE_DISPLAY=$(if $(VBOX_WITH_LICENSE_DISPLAY),yes,no)' \
766 -E 'VBOX_WITH_MIDL_PROXY_STUB=$(if $(VBOX_WITH_MIDL_PROXY_STUB),yes,no)' \
767 -E 'VBOX_WITH_MSM_INSTALL=$(if-expr defined(VBOX_WITH_MSM_INSTALL),yes,no)' \
768 -E 'VBOX_WITH_NETFLT=$(if $(VBOX_WITH_NETFLT),yes,no)' \
769 -E 'VBOX_WITH_PYTHON=$(if $(VBOX_WITH_PYTHON),yes,no)' \
770 -E 'VBOX_WITH_RAW_MODE=$(if $(VBOX_WITH_RAW_MODE),yes,no)' \
771 -E 'VBOX_WITH_QTGUI=$(if $(VBOX_WITH_QTGUI),yes,no)' \
772 -E 'VBOX_WITH_SECURELABEL=$(if $(VBOX_WITH_SECURELABEL),yes,no)' \
773 -E 'VBOX_WITH_SERIALNUMBER_INSTALL=$(if $(VBOX_WITH_SERIALNUMBER_INSTALL),yes,no)' \
774 -E 'VBOX_WITH_VIDEOHWACCEL=$(if $(VBOX_WITH_VIDEOHWACCEL),yes,no)' \
775 -E 'VBOX_WITH_VRDP=$(if-expr defined(VBOX_WITH_VRDP) && !defined(VBOX_WITH_EXTPACK_PUEL),yes,no)' \
776 -E 'VBOX_WITH_WEBSERVICES=$(if $(VBOX_WITH_WEBSERVICES),yes,no)' \
777 -E 'VBOX_WITH_SDS=$(if $(VBOX_WITH_SDS),yes,no)' \
778 -E 'VBOX_WITH_UNATTENDED=$(if $(VBOX_WITH_UNATTENDED),yes,no)' \
779 -E 'BUILD_TYPE=$(KBUILD_TYPE)' \
780 -E 'BUILD_TARGET_ARCH=$(KBUILD_TARGET_ARCH)' \
781 -E 'VBOX_VCC_TOOL_STEM=$(VBOX_VCC_TOOL_STEM)' \
782 -- \
783 $(VBOX_PATH_WIX)/candle.exe $(filter-out $(VBOX_VERSION_STAMP),$$<) \
784 -ext $(VBOX_PATH_WIX)/WixUIExtension.dll \
785 -ext $(VBOX_PATH_WIX)/WixDifxAppExtension.dll \
786 -p$(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).wix
787 $(VBOX_PATH_WIX)/candle.exe $(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).wix \
788 -ext $(VBOX_PATH_WIX)/WixUIExtension.dll \
789 -ext $(VBOX_PATH_WIX)/WixDifxAppExtension.dll \
790 -out $$@
791 ifeq ($(lang),en_US)
792# Copy preprocessed wix and change source paths to be relative. Stuff not in ../bin needs copying.
793 $(SED) -e 's,$(subst /,\\,$(PATH_OUT))\\bin,..\\bin,g' \
794 -e 's,$(subst /,\\,$(PATH_OUT_BASE))\\win.amd64\\$(KBUILD_TYPE)\\bin,..\\..\\..\\win.amd64\\$(KBUILD_TYPE)\\bin,g' \
795 -e 's,$(subst /,\\,$(PATH_OUT_BASE))\\win.x86\\$(KBUILD_TYPE)\\bin,..\\..\\..\\win.x86\\$(KBUILD_TYPE)\\bin,g' \
796 -e 's,$(subst /,\\,$(PATH_ROOT))\\doc\\,files-VBoxMerge$(module)_$(lang)\\,g' \
797 -e 's,$(subst /,\\,$(VBOX_PATH_WIN_INST_SRC))\\Binary\\,files-VBoxMerge$(module)_$(lang)\\,g' \
798 -e 's,$(subst /,\\,$(dir $(VBOX_WINDOWS_ICON_FILE))),files-VBoxMerge$(module)_$(lang)\\,g' \
799 -e 's,$(subst /,\\,$(VBOX_PATH_WIN_INST_SRC))\\,,g' \
800 --output "$(VBOX_WIN_INST_REPACK_DIR)/VBoxMerge$(module)_$(lang).wix" \
801 "$(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).wix"
802 $(SED) -n \
803 -e '/<\?ln /d' \
804 -e '/$(subst /,\\,$(PATH_ROOT))/p' \
805 -e '/$(subst /,\\,$(PATH_ROOT))/q2' \
806 "$(VBOX_WIN_INST_REPACK_DIR)/VBoxMerge$(module)_$(lang).wix"
807 $(SED) -n \
808 -e '/<\?ln /d' \
809 -e 's/\\/\//g' \
810 -e 's,^.*"\($(PATH_ROOT)/doc/[^"]*\)".*$$(DOLLAR),\1,p' \
811 -e 's,^.*"\($(VBOX_PATH_WIN_INST_SRC)/Binary/[^"]*\)".*$$(DOLLAR),\1,p' \
812 -e 's,^.*"\($(dir $(VBOX_WINDOWS_ICON_FILE))[^"]*\)".*$$(DOLLAR),\1,p' \
813 --output "$(VBOX_WIN_INST_REPACK_DIR)/VBoxMerge$(module)_$(lang).files" \
814 "$(VBOX_WIN_INST_OUT_DIR)/VBoxMerge$(module)_$(lang).wix"
815 $(MKDIR) -p -- "$(VBOX_WIN_INST_REPACK_DIR)/files-VBoxMerge$(module)_$(lang)/"
816 set -xe && for file in `$(CAT_EXT) "$(VBOX_WIN_INST_REPACK_DIR)/VBoxMerge$(module)_$(lang).files"`; \
817 do $(CP_EXT) -f -- "$$(DOLLAR){file}" "$(VBOX_WIN_INST_REPACK_DIR)/files-VBoxMerge$(module)_$(lang)/"; done
818# Create repack script for this step.
819 $(APPEND) -tn "$(VBOX_WIN_INST_REPACK_DIR)/1-compile-VBoxMerge$(module)_$(lang).cmd" \
820 'if ".%KBUILD_DEVTOOLS%" == "." (echo KBUILD_DEVTOOLS is not set & exit /b1)' \
821 $(subst $(KBUILD_DEVTOOLS),%KBUILD_DEVTOOLS%,\
822 '$(VBOX_PATH_WIX)/candle.exe VBoxMerge$(module)_$(lang).wix ^' \
823 ' -ext $(VBOX_PATH_WIX)/WixUIExtension.dll ^'\
824 ' -ext $(VBOX_PATH_WIX)/WixDifxAppExtension.dll ^' \
825 ' -out $$(@F) || exit /b1' \
826 ) \
827 '@echo Created: $$(@F)'
828 endif
829# Generate wxi dependencies based on the sourceLineNumber references in the output. Add repack file list for cleanup.
830 $(QUIET)$(APPEND) -t '[email protected]' '$$@: \'
831 $(QUIET)$(VBOX_XSLTPROC) $(VBOX_PATH_WIN_INST_SRC)/dep.xsl "$$@" >> "[email protected]"
832 $(QUIET)$(VBOX_XSLTPROC) $(VBOX_PATH_WIN_INST_SRC)/dep2.xsl "$$@" | sort | $(SED) '$!N; /^\(.*\)\n\1$$$$/!P; D' >> "[email protected]"
833 $(QUIET)$(APPEND) -n '[email protected]' '' ''
834 ifeq ($(lang),en_US)
835 $(QUIET)$(APPEND) -n '[email protected]' 'define VBOX_REPACK_FILES_VBoxMerge$(module)_$(lang)'
836 $(QUIET)$(CAT_EXT) "$(VBOX_WIN_INST_REPACK_DIR)/VBoxMerge$(module)_$(lang).files" >> '[email protected]'
837 $(QUIET)$(APPEND) -n '[email protected]' '' 'endef'
838 endif
839
840$(eval OTHER_CLEAN += $(VBOX_REPACK_FILES_VBoxMerge$(module)_$(lang)))
841endef
842
843$(foreach module,$(VBOX_INSTALLER_MERGE_MODULES), \
844 $(foreach lang,$(VBOX_INSTALLER_MERGE_LANGUAGES), \
845 $(eval $(def_vbox_compile_msm))))
846
847#
848# VirtualBox Type Library definition.
849#
850$(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib.wxi: \
851 $(PATH_SUB_CURRENT)/$(if-expr defined(VBOX_WITH_MIDL_PROXY_STUB),VirtualBox_TypeLibWithInterfaces.xsl,VirtualBox_TypeLib.xsl) \
852 $(VBOX_XIDL_FILE) \
853 $(MAKEFILE) \
854 | $$(dir $$@)
855 $(VBOX_XSLTPROC) \
856 $(if-expr defined(VBOX_WITH_MIDL_PROXY_STUB),--stringparam "a_sProxyStubClsid" "$(VBOX_MIDL_PROXY_CLSID)",) \
857 $(if-expr defined(VBOX_WITH_SDS),--stringparam "a_sWithSDS" "yes",) \
858 -o $@ $< $(VBOX_XIDL_FILE)
859
860$(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib_x86.wxi: \
861 $(PATH_SUB_CURRENT)/$(if-expr defined(VBOX_WITH_MIDL_PROXY_STUB),VirtualBox_TypeLibWithInterfaces.xsl,VirtualBox_TypeLib.xsl) \
862 $(VBOX_XIDL_FILE) \
863 | $$(dir $$@)
864 $(VBOX_XSLTPROC) --stringparam "a_sTarget" "VBoxClient-x86" \
865 $(if-expr defined(VBOX_WITH_MIDL_PROXY_STUB),--stringparam "a_sProxyStubClsid" "$(VBOX_MIDL_PROXY_CLSID)",) \
866 $(if-expr defined(VBOX_WITH_SDS),--stringparam "a_sWithSDS" "yes",) \
867 -o $@ $< $(VBOX_XIDL_FILE)
868
869#
870# Construct the list of GUI translations.
871# ('-t' -- truncate file; '-n' -- new line between arguments)
872#
873include $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.kmk
874$(call KB_FN_AUTO_CMD_DEPS,$(VBOX_WIN_INST_OUT_DIR)/VBoxGuiNLS.wxi)
875$(VBOX_WIN_INST_OUT_DIR)/VBoxGuiNLS.wxi: $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.kmk | $$(dir $$@)
876 $(APPEND) -t $@ '<?xml version="1.0" ?>'
877 $(APPEND) $@ '<Include>'
878 $(APPEND) -n $@ $(foreach lang,$(VBOX_APPROVED_GUI_LANGUAGES), \
879 ' <File Id="nlsqt${lang}" Name="qt_${lang}.qm" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$$(env.PATH_OUT)\bin\nls\qt_${lang}.qm" />' \
880 ' <File Id="nlsgui${lang}" Name="VirtualBox_${lang}.qm" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$$(env.PATH_OUT)\bin\nls\VirtualBox_${lang}.qm" />')
881 $(APPEND) $@ '</Include>'
882
883#
884# Edit the version stored in the registry.
885#
886$(call KB_FN_AUTO_CMD_DEPS,$(VBOX_WIN_INST_OUT_DIR)/VBoxKey.wxi)
887$(VBOX_WIN_INST_OUT_DIR)/VBoxKey.wxi: $(PATH_SUB_CURRENT)/VBoxKey.wxi $(VBOX_VERSION_STAMP) | $$(dir $$@)
888 $(SED) -e 's/%VER%/$(VBOX_VERSION_STRING_RAW)/' \
889 -e 's/%VER_EXT%/$(VBOX_VERSION_STRING)/' \
890 --output $@ $<
891
892#
893# Generate the list of unattended template script files.
894#
895$(call KB_FN_AUTO_CMD_DEPS,$(VBOX_WIN_INST_OUT_DIR)/VBoxUnattendedTemplateComponent.wxi)
896$(VBOX_WIN_INST_OUT_DIR)/VBoxUnattendedTemplateComponent.wxi: | $$(dir $$@)
897 $(APPEND) -t -n $@ \
898 '<?xml version="1.0" ?>' \
899 '<Include>'
900ifdef VBOX_UNATTENDED_TEMPLATES
901 $(APPEND) -n $@ \
902 ' <Directory Id="dir_VBoxUnattendedTemplates" Name="UnattendedTemplates">' \
903 ' <Component Id="cp_UnattendedTemplates" Guid="0571550d-aaa5-4723-c17b-5ddcc29f5686" Win64="$$(var.Property_Win64)">' \
904 $(foreach file,$(VBOX_UNATTENDED_TEMPLATES), \
905 ' <File Id="$(file)" Name="$(file)" Source="$$(env.PATH_OUT)\bin\UnattendedTemplates\$(file)" />') \
906 ' </Component>' \
907 ' </Directory>'
908endif
909 $(APPEND) $@ '</Include>'
910
911
912#
913# Build the multi-language version of the .MSI installer (final installer).
914#
915# This is done by creating binary .MST diffs of all the language-specific installers
916# against the en_US one, and then merging the diffs into the en_US one using tools
917# from the MS Installer SDK.
918#
919define def_vbox_create_mst
920$(VBOX_WIN_INST_OUT_DIR)/$(lang)/$(lang).mst \
921+ $(VBOX_WIN_INST_REPACK_DIR)/$(lang).mst: \
922 $(VBOX_WIN_INST_OUT_DIR)/en_US/$(PACKAGE_NAME_LANG)_en_US.msi \
923 $(VBOX_WIN_INST_OUT_DIR)/$(lang)/VirtualBox_$(lang).wixobj \
924 $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl \
925 $(VBOX_WIN_INST_OUT_DIR)/NLS/License_$(lang).wxl \
926 $(PATH_STAGE_BIN)/VBoxInstallHelper.dll \
927 $(VBOX_SVN_REV_KMK) \
928 $(VBOX_WIN_INST_MAKEFILE_DEP) \
929 $(if-expr defined(VBOX_WITH_MSI_HACK),$(MsiHack_0_OUTDIR)/MsiHack.dll,) \
930 $(if-expr defined(VBOX_WITH_MSI_HACK),$(MsiHack_0_OUTDIR)/MsiHackExtension.dll,) \
931 | $$$$(dir $$$$@) $(VBOX_WIN_INST_REPACK_DIR)/
932 $(call MSG_L1,Creating language diff for $(lang))
933 kmk_time $(VBOX_PATH_WIX)/light.exe -v -nologo \
934 -loc $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl \
935 -loc $(VBOX_WIN_INST_OUT_DIR)/NLS/License_$(lang).wxl \
936 -ext $(VBOX_PATH_WIX)/WixUIExtension.dll \
937 -ext $(VBOX_PATH_WIX)/WixDifxAppExtension.dll \
938 $(if-expr defined(VBOX_WITH_MSI_HACK),-ext $(MsiHack_0_OUTDIR)/MsiHackExtension.dll,) \
939 $(VBOX_MSI_ICE_IGNORE) \
940 -out $$(@D)/$(PACKAGE_NAME_LANG)_$(lang).msi \
941 $$(@D)/VirtualBox_$(lang).wixobj \
942 $(VBOX_PATH_WIX)/difxapp_$(if-expr "$(KBUILD_TARGET_ARCH)" == "x86",x86,x64).wixlib
943 $(REDIRECT) -C $$(@D) -- $(VBOX_PATH_MSITRAN) -g $$< $(PACKAGE_NAME_LANG)_$(lang).msi $(lang).mst
944 $(CP) -f -- "$(VBOX_WIN_INST_OUT_DIR)/$(lang)/$(lang).mst" "$(VBOX_WIN_INST_REPACK_DIR)/$(lang).mst"
945 $(RM) -f -- $$(@D)/$(PACKAGE_NAME_LANG)_$(lang).msi \
946 $$(@D)/$(PACKAGE_NAME_LANG)_$(lang).wixpdb \
947 $$(@D)/common.cab
948
949endef
950
951$(foreach lang,$(filter-out en_US, $(VBOX_INSTALLER_LANGUAGES)), \
952 $(eval local lang_id := $(VBOX_BRAND_$(lang)_LANG_ID)) \
953 $(eval $(def_vbox_create_mst)))
954
955
956# Create WISUMINFO argument.
957VBOX_INS_PROD_ARCH.amd64 = x64
958VBOX_INS_PROD_ARCH.x86 = Intel
959VBOX_INS_PROD_ARCH := $(VBOX_INS_PROD_ARCH.$(KBUILD_TARGET_ARCH))
960$(if $(VBOX_INS_PROD_ARCH),,$(error VBOX_INS_PROD_ARCH is empty!))
961VBOX_INS_PROD_LANG := 7="$(VBOX_INS_PROD_ARCH);1033
962$(foreach lang, $(filter-out en_US,$(VBOX_INSTALLER_LANGUAGES))\
963 , $(eval VBOX_INS_PROD_LANG := $(VBOX_INS_PROD_LANG)$(COMMA)$(VBOX_BRAND_$(lang)_LANG_ID)))
964VBOX_INS_PROD_LANG := $(VBOX_INS_PROD_LANG)"
965
966# The multilingual installer rule.
967$(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG).msi \
968+ $(VBOX_WIN_INST_REPACK_DIR)/3-multilingual-$(PACKAGE_NAME_LANG).cmd: \
969 $(VBOX_WIN_INST_OUT_DIR)/en_US/$(PACKAGE_NAME_LANG)_en_US.msi \
970 $(foreach lang,$(filter-out en_US,$(VBOX_INSTALLER_LANGUAGES)),$(VBOX_WIN_INST_OUT_DIR)/$(lang)/$(lang).mst)
971 $(call MSG_L1,Creating final multilingual MSI)
972 $(QUIET)$(RM) -f -- \
973 $(wildcard $(@D)/$(PACKAGE_BASE)-r*.msi $(VBOX_WIN_INST_REPACK_DIR)/3-multilingual-$(PACKAGE_BASE)-r*.cmd )
974 $(CP) -f -- "$<" "$@"
975
976 $(foreach lang,$(filter-out en_US,$(VBOX_INSTALLER_LANGUAGES)), \
977 $(NLTAB)$(REDIRECT) -C $(@D)/$(lang) -- $(VBOX_PATH_MSIDB) -d $@ -r $(lang).mst \
978 $(NLTAB)$(REDIRECT) -C $(@D)/$(lang) -- cscript.exe /nologo $(VBOX_PATH_WISUBSTG) $@ $(lang).mst $(VBOX_BRAND_$(lang)_LANG_ID) )
979
980 $(REDIRECT) -C $(@D) -- cscript.exe /nologo $(VBOX_PATH_WISUBSTG) $(@F)
981 $(REDIRECT) -C $(@D) -- cscript.exe /nologo $(VBOX_PATH_WISUMINFO) $@ $(VBOX_INS_PROD_LANG)
982 $(call VBOX_SIGN_FILE_FN,$@,$(VBOX_PRODUCT) $(VBOX_VERSION_STRING)r$(VBOX_SVN_REV) ($(KBUILD_TARGET_ARCH)),,,disable-dual-signing)
983
984# Create repack script for this step.
985 $(APPEND) -nt "$(VBOX_WIN_INST_REPACK_DIR)/3-multilingual-$(PACKAGE_NAME_LANG).cmd" \
986 'if ".%KBUILD_DEVTOOLS%" == "." (echo KBUILD_DEVTOOLS is not set & exit /b1)' \
987 'if ".%KBUILD_BIN_PATH%" == "." (echo KBUILD_BIN_PATH is not set & exit /b1)' \
988 'copy /y "$(<F)" "$(@F)" || exit /b1' \
989 $(subst $(KBUILD_BIN_PATH),%KBUILD_BIN_PATH%,$(subst $(KBUILD_DEVTOOLS),%KBUILD_DEVTOOLS%,\
990 $(foreach lang,$(filter-out en_US,$(VBOX_INSTALLER_LANGUAGES)), \
991 '$(VBOX_PATH_MSIDB) -d $(@F) -r $(lang).mst || exit /b1' \
992 'cscript.exe /nologo $(VBOX_PATH_WISUBSTG) $(@F) $(lang).mst $(VBOX_BRAND_$(lang)_LANG_ID) || exit /b1') \
993 'cscript.exe /nologo $(VBOX_PATH_WISUBSTG) $(@F) || exit /b1' \
994 'cscript.exe /nologo $(VBOX_PATH_WISUMINFO) $(@F) $(VBOX_INS_PROD_LANG) || exit /b1' \
995 'call sign-sha1.cmd $(@F) || exit /b1' \
996 ) ) \
997 $(if-expr defined(VBOX_WITH_COMBINED_PACKAGE),'copy /y "$(@F)" "$(notdir $(PACKAGE_NAME_FINAL))" || exit /b1',) \
998 '@echo Created multilanguage MSI: $(notdir $(PACKAGE_NAME_FINAL))'
999
1000# Copy multilingual installer to bin.
1001$(PACKAGE_NAME_FINAL): $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG).msi | $$(dir $$@)
1002 $(QUIET)$(RM) -f $(wildcard $(@D)/$(PACKAGE_BASE)-r*$(if-expr defined(VBOX_WITH_COMBINED_PACKAGE),_$(KBUILD_TARGET_ARCH),).msi)
1003 $(INSTALL_STAGING) -- $< $@
1004
1005
1006if defined(VBOX_WITH_COMBINED_PACKAGE) && "$(KBUILD_TARGET_ARCH)" == "x86"
1007#
1008# Make the multi-architecture installer by calling our stub builder
1009# with both platform installers (x86 and amd64) + common cab. The common
1010# cab only is needed when we don't use merge modules. We only
1011# need to do this once; so do it on x86 only.
1012#
1013$(PATH_STAGE_BIN)/$(PACKAGE_NAME_MULTIARCH_FINAL) \
1014+ $(VBOX_WIN_INST_REPACK_DIR)/4-multiarch-$(PACKAGE_NAME_MULTIARCH_FINAL).cmd: \
1015 $(PATH_MULTIARCH_TEMP)/$(PACKAGE_NAME_MULTIARCH.x86) \
1016 $(PATH_MULTIARCH_TEMP)/$(PACKAGE_NAME_MULTIARCH.amd64) \
1017 $(PATH_STAGE_BIN)/VBoxStub.exe \
1018 $$(VBoxStubBld_1_TARGET)
1019 $(call MSG_L1,Building Windows combined package)
1020 $(QUIET)$(RM) -f -- $(wildcard $(subst r$(VBOX_SVN_REV),r*, \
1021 $@ \
1022 $(VBOX_WIN_INST_REPACK_DIR)/4-multiarch-$(PACKAGE_NAME_MULTIARCH_FINAL).cmd ) )
1023 $(if-expr defined(VBOX_WITH_MSM_INSTALL),,$(call VBOX_SIGN_FILE_FN,$(PACKAGE_NAME_MULTIARCH_COMMONCAB)))
1024 $(REDIRECT) -C $(@D) -- \
1025 $(VBoxStubBld_1_TARGET) -out $@ \
1026 -target-x86 $(PATH_MULTIARCH_TEMP)/$(PACKAGE_NAME_MULTIARCH.x86) \
1027 -target-amd64 $(PATH_MULTIARCH_TEMP)/$(PACKAGE_NAME_MULTIARCH.amd64) \
1028 $(if-expr defined(VBOX_WITH_MSM_INSTALL),,-target-all $(PACKAGE_NAME_MULTIARCH_COMMONCAB)) \
1029 -stub $(PATH_STAGE_BIN)/VBoxStub.exe
1030 $(VBOX_VCC_EDITBIN) /IntegrityCheck:NO $@
1031 $(call VBOX_SIGN_FILE_FN,$@)
1032# Create repack script for this step.
1033 $(APPEND) -nt "$(VBOX_WIN_INST_REPACK_DIR)/4-multiarch-$(@F).cmd" \
1034 'if ".%KBUILD_DEVTOOLS%" == "." (echo KBUILD_DEVTOOLS is not set & exit /b1)' \
1035 'if ".%KBUILD_BIN_PATH%" == "." (echo KBUILD_BIN_PATH is not set & exit /b1)' \
1036 $(subst $(KBUILD_BIN_PATH),%KBUILD_BIN_PATH%,$(subst $(KBUILD_DEVTOOLS),%KBUILD_DEVTOOLS%, \
1037 $(if-expr defined(VBOX_WITH_MSM_INSTALL), \
1038 ,'call sign-dual.cmd ../../../win.amd64/$(KBUILD_TYPE)/repack/$(notdir $(PACKAGE_NAME_MULTIARCH_COMMONCAB)) || exit /b1') \
1039 '..\bin\VBoxStubBld.exe ^' \
1040 ' -out $(@F) ^' \
1041 ' -target-x86 $(PACKAGE_NAME_MULTIARCH.x86) ^' \
1042 ' -target-amd64 ../../../win.amd64/$(KBUILD_TYPE)/repack/$(PACKAGE_NAME_MULTIARCH.amd64) ^' \
1043 $(if-expr defined(VBOX_WITH_MSM_INSTALL),\
1044 ,' -target-all ../../../win.amd64/$(KBUILD_TYPE)/repack/$(notdir $(PACKAGE_NAME_MULTIARCH_COMMONCAB)) ^' ) \
1045 ' -stub ../bin/VBoxStub.exe || exit /b1' \
1046 '$(VBOX_VCC_EDITBIN) /IntegrityCheck:NO $(@F) || exit /b1' \
1047 'call sign-dual.cmd $(@F) || exit /b1' \
1048 ) ) \
1049 '@echo Created multiarch EXE: $(@F)'
1050else
1051#
1052# We still do the installer stub thing even if we only ship 64-bit, because we've
1053# gotten used to having it around to install the certificate and such.
1054#
1055$(PATH_STAGE_BIN)/$(PACKAGE_NAME_MULTIARCH_FINAL) \
1056+ $(VBOX_WIN_INST_REPACK_DIR)/4-multiarch-$(PACKAGE_NAME_MULTIARCH_FINAL).cmd: \
1057 $(PACKAGE_NAME_FINAL) \
1058 $(PATH_STAGE_BIN)/VBoxStub.exe \
1059 $$(VBoxStubBld_1_TARGET)
1060 $(call MSG_L1,Building Windows package w/ installer stub)
1061 $(QUIET)$(RM) -f -- $(wildcard $(subst r$(VBOX_SVN_REV),r*, \
1062 $@ \
1063 $(VBOX_WIN_INST_REPACK_DIR)/4-multiarch-$(PACKAGE_NAME_MULTIARCH_FINAL).cmd ) )
1064 $(REDIRECT) -C $(@D) -- \
1065 $(VBoxStubBld_1_TARGET) -out $@ \
1066 -target-$(KBUILD_TARGET_ARCH) $(PACKAGE_NAME_FINAL) \
1067 -stub $(PATH_STAGE_BIN)/VBoxStub.exe
1068 $(VBOX_VCC_EDITBIN) /IntegrityCheck:NO $@
1069 $(call VBOX_SIGN_FILE_FN,$@)
1070# Create repack script for this step.
1071 $(APPEND) -nt "$(VBOX_WIN_INST_REPACK_DIR)/4-multiarch-$(@F).cmd" \
1072 'if ".%KBUILD_DEVTOOLS%" == "." (echo KBUILD_DEVTOOLS is not set & exit /b1)' \
1073 'if ".%KBUILD_BIN_PATH%" == "." (echo KBUILD_BIN_PATH is not set & exit /b1)' \
1074 $(subst $(KBUILD_BIN_PATH),%KBUILD_BIN_PATH%,$(subst $(KBUILD_DEVTOOLS),%KBUILD_DEVTOOLS%, \
1075 '..\bin\VBoxStubBld.exe ^' \
1076 ' -out $(@F) ^' \
1077 ' -target-$(KBUILD_TARGET_ARCH) $(notdir $(PACKAGE_NAME_FINAL)) ^' \
1078 ' -stub ../bin/VBoxStub.exe || exit /b1' \
1079 '$(VBOX_VCC_EDITBIN) /IntegrityCheck:NO $(@F) || exit /b1' \
1080 'call sign-dual.cmd $(@F) || exit /b1' \
1081 ) ) \
1082 '@echo Created multiarch EXE: $(@F)'
1083endif
1084
1085#
1086# Repackaging scripts and files.
1087#
1088INSTALLS += RePackScripts
1089RePackScripts_TEMPLATE = DUMMY
1090RePackScripts_INST = repack/
1091RePackScripts_INSTTYPE = stage
1092RePackScripts_SOURCES = \
1093 Scripts/UnpackBlessedDrivers.cmd \
1094 $(RePackScripts_0_OUTDIR)/PackDriversForSubmission.cmd \
1095 $(RePackScripts_0_OUTDIR)/sign-dual.cmd \
1096 $(RePackScripts_0_OUTDIR)/sign-sha1.cmd \
1097 $(if-expr defined(VBOX_SIGN_EV_FILE_FN),$(RePackScripts_0_OUTDIR)/sign-ev.cmd,) \
1098 $(RePackScripts_0_OUTDIR)/VMMR0.inf \
1099 $(RePackScripts_0_OUTDIR)/VBoxExtPackPuel.inf
1100if !defined(VBOX_WITH_COMBINED_PACKAGE) || "$(KBUILD_TARGET_ARCH)" == "x86"
1101 RePackScripts_SOURCES += \
1102 $(RePackScripts_0_OUTDIR)/RepackExtPack.cmd
1103endif
1104ifdef VBOX_WITH_COMBINED_PACKAGE
1105 if "$(KBUILD_TARGET_ARCH)" == "x86"
1106 RePackScripts_SOURCES += \
1107 $(RePackScripts_0_OUTDIR)/Combined-1-Prepare.cmd \
1108 $(RePackScripts_0_OUTDIR)/Combined-3-Repack.cmd
1109 endif
1110else
1111 RePackScripts_SOURCES += \
1112 $(RePackScripts_0_OUTDIR)/Single-1-Prepare.cmd \
1113 $(RePackScripts_0_OUTDIR)/Single-3-Repack.cmd
1114endif
1115RePackScripts_CLEAN = \
1116 $(RePackScripts_0_OUTDIR)/PackDriversForSubmission.cmd \
1117 $(RePackScripts_0_OUTDIR)/sign-dual.cmd \
1118 $(RePackScripts_0_OUTDIR)/sign-sha1.cmd \
1119 $(RePackScripts_0_OUTDIR)/sign-ev.cmd \
1120 $(RePackScripts_0_OUTDIR)/VMMR0.inf \
1121 $(RePackScripts_0_OUTDIR)/VBoxExtPackPuel.inf
1122
1123$(call VBOX_EDIT_VERSION_AND_BUILD_RULE_FN,RePackScripts,Scripts/PackDriversForSubmission.cmd,PackDriversForSubmission.cmd)
1124$(call VBOX_EDIT_VERSION_AND_BUILD_RULE_FN,RePackScripts,Scripts/RepackExtPack.cmd,RepackExtPack.cmd)
1125ifdef VBOX_WITH_COMBINED_PACKAGE
1126$(call VBOX_EDIT_VERSION_AND_BUILD_RULE_FN,RePackScripts,Scripts/Combined-1-Prepare.cmd,Combined-1-Prepare.cmd)
1127$(call VBOX_EDIT_VERSION_AND_BUILD_RULE_FN,RePackScripts,Scripts/Combined-3-Repack.cmd,Combined-3-Repack.cmd)
1128else
1129$(call VBOX_EDIT_VERSION_AND_BUILD_RULE_FN,RePackScripts,Scripts/Single-1-Prepare.cmd,Single-1-Prepare.cmd)
1130$(call VBOX_EDIT_VERSION_AND_BUILD_RULE_FN,RePackScripts,Scripts/Single-3-Repack.cmd,Single-3-Repack.cmd)
1131endif
1132
1133$$(RePackScripts_0_OUTDIR)/sign-dual.cmd: | $$(dir $$@)
1134 $(APPEND) -nt "$@" \
1135 'if ".%KBUILD_DEVTOOLS%" == "." (echo KBUILD_DEVTOOLS is not set & exit /b 1)' \
1136 'if ".%KBUILD_BIN_PATH%" == "." (echo KBUILD_BIN_PATH is not set & exit /b 1)' \
1137 'if ".%1" == "." (echo No .cat file specified & exit /b 1)' \
1138 $(subst $(KBUILD_BIN_PATH),%KBUILD_BIN_PATH%,$(subst $(KBUILD_DEVTOOLS),%KBUILD_DEVTOOLS%, \
1139 '( $(call VBOX_SIGN_FILE_FN,%1,$(VBOX_PRODUCT) $(VBOX_VERSION_STRING)r$(VBOX_SVN_REV) ($(KBUILD_TARGET_ARCH)),,,,&&) ) || exit /b1' \
1140 ) )
1141
1142$$(RePackScripts_0_OUTDIR)/sign-sha1.cmd: | $$(dir $$@)
1143 $(APPEND) -nt "$@" \
1144 'if ".%KBUILD_DEVTOOLS%" == "." (echo KBUILD_DEVTOOLS is not set & exit /b 1)' \
1145 'if ".%KBUILD_BIN_PATH%" == "." (echo KBUILD_BIN_PATH is not set & exit /b 1)' \
1146 'if ".%1" == "." (echo No .cat file specified & exit /b 1)' \
1147 $(subst $(KBUILD_BIN_PATH),%KBUILD_BIN_PATH%,$(subst $(KBUILD_DEVTOOLS),%KBUILD_DEVTOOLS%, \
1148 '( $(call VBOX_SIGN_FILE_FN,%1,$(VBOX_PRODUCT) $(VBOX_VERSION_STRING)r$(VBOX_SVN_REV) ($(KBUILD_TARGET_ARCH)),,,disable-dual-signing,&&) ) || exit /b1' \
1149 ) )
1150
1151$$(RePackScripts_0_OUTDIR)/sign-ev.cmd: | $$(dir $$@)
1152 # The %~dp1\ oddity is working around otherwise ending with \" during
1153 # expansion of the CCS command line which for a reason I cannot immediately
1154 # understand appends a " to the path.
1155 $(APPEND) -nt "$@" \
1156 'if ".%KBUILD_DEVTOOLS%" == "." (echo KBUILD_DEVTOOLS is not set & exit /b 1)' \
1157 'if ".%KBUILD_BIN_PATH%" == "." (echo KBUILD_BIN_PATH is not set & exit /b 1)' \
1158 'if ".%1" == "." (echo No .cab file specified & exit /b 1)' \
1159 $(subst $(KBUILD_BIN_PATH),%KBUILD_BIN_PATH%,$(subst $(KBUILD_DEVTOOLS),%KBUILD_DEVTOOLS%, \
1160 '( $(call VBOX_SIGN_EV_FILE_FN,%1,%~dp1\) ) || exit /b1' \
1161 ) )
1162
1163$$(RePackScripts_0_OUTDIR)/VMMR0.inf: $(PATH_SUB_CURRENT)/Scripts/VMMR0.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
1164 $(call MSG_GENERATE,RePackScripts,$@,$<)
1165 $(call VBOX_EDIT_INF_FN,$<,$@)
1166
1167$$(RePackScripts_0_OUTDIR)/VBoxExtPackPuel.inf: $(PATH_SUB_CURRENT)/Scripts/VBoxExtPackPuel.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
1168 $(call MSG_GENERATE,RePackScripts,$@,$<)
1169 $(call VBOX_EDIT_INF_FN,$<,$@)
1170
1171
1172include $(FILE_KBUILD_SUB_FOOTER)
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette