Makefile.kmk revision 3b3bc8a9383a065307e540b83fc3a3d6c548a082
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# Makefile for the Windows installer.
85668909c68b5d0e67c89d6042535b41c4bffeccvboxsync# Copyright (C) 2006-2011 Oracle Corporation
78f327ee942771169c65c91baf789fd10e72b01avboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
78f327ee942771169c65c91baf789fd10e72b01avboxsync# available from http://www.virtualbox.org. This file is free software;
78f327ee942771169c65c91baf789fd10e72b01avboxsync# you can redistribute it and/or modify it under the terms of the GNU
78f327ee942771169c65c91baf789fd10e72b01avboxsync# General Public License (GPL) as published by the Free Software
78f327ee942771169c65c91baf789fd10e72b01avboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
78f327ee942771169c65c91baf789fd10e72b01avboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
78f327ee942771169c65c91baf789fd10e72b01avboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncSUB_DEPTH = ../../../..
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncinclude $(KBUILD_PATH)/subheader.kmk
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncifneq ($(KBUILD_HOST),win)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(error "The Windows installer can only be built on Windows!")
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# Include Sub-Makefiles.
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncinclude $(PATH_SUB_CURRENT)/InstallHelper/Makefile.kmk
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncifdef VBOX_WITH_BUNDLED_INSTALLER
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync ifeq ($(KBUILD_TARGET_ARCH),x86)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync include $(PATH_SUB_CURRENT)/BundleMachine/Makefile.kmk
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncifeq ($(KBUILD_TARGET_ARCH),x86)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync include $(PATH_SUB_CURRENT)/Stub/Makefile.kmk
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync include $(PATH_SUB_CURRENT)/StubBld/Makefile.kmk
e24bfeec424d0e6481eccbe85ffde550384b6364vboxsync ifdef VBOX_BRAND_WIN_AS_MENU
e24bfeec424d0e6481eccbe85ffde550384b6364vboxsync include $(PATH_SUB_CURRENT)/AutoStartMenu/Makefile.kmk
dcd01485c22687cd874d69a566131b4a6a82e54bvboxsyncinclude $(PATH_SUB_CURRENT)/Resources/Makefile.kmk
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# Globals and targets.
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncVBOX_INSTALLER_LANGUAGES = en_US
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncVBOX_INSTALLER_LANGUAGES += $(VBOX_INSTALLER_ADD_LANGUAGES)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncVBOX_PATH_WIN_INST_SRC := $(PATH_SUB_CURRENT)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncVBOX_WIN_INST_OUT_DIR := $(PATH_TARGET)/Installer/win
1f2b5fc378de7ce78fee422ffb66635630f23016vboxsync# If we want to build a combined package, we separate all common stuff
1f2b5fc378de7ce78fee422ffb66635630f23016vboxsync# (that is all 100% identical content between 32-/64-bit builds)
1f2b5fc378de7ce78fee422ffb66635630f23016vboxsync# into an own .cab file to save space. This .cab file then gets included
1f2b5fc378de7ce78fee422ffb66635630f23016vboxsync# and used by the 32-/64-bit installers.
1f2b5fc378de7ce78fee422ffb66635630f23016vboxsyncifdef VBOX_WITH_COMBINED_PACKAGE
1f2b5fc378de7ce78fee422ffb66635630f23016vboxsync VBOX_INSTALLER_COMMON_DISKID := 2
1f2b5fc378de7ce78fee422ffb66635630f23016vboxsync VBOX_INSTALLER_COMMON_DISKID := 1
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync## @todo VBOX_ prefixes!
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncPACKAGE_BASE := VirtualBox-$(VBOX_VERSION_STRING)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncPACKAGE_NAME_LANG := $(PACKAGE_BASE)-r$(VBOX_SVN_REV)
3b3bc8a9383a065307e540b83fc3a3d6c548a082vboxsyncPACKAGE_NAME_FINAL := $(PATH_STAGE_BIN)/$(PACKAGE_NAME_LANG).msi
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncifdef VBOX_WITH_COMBINED_PACKAGE
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync PATH_MULTIARCH_TEMP := $(PATH_OUT_BASE)/win.x86/$(KBUILD_TYPE)/obj/Installer
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync PATH_MULTIARCH_GUEST_ADDITIONS_ISO := $(PATH_OUT_BASE)/win.amd64/$(KBUILD_TYPE)/bin/additions
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync PACKAGE_NAME_MULTIARCH := $(PACKAGE_NAME_LANG)-MultiArch
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync PACKAGE_NAME_MULTIARCH.x86 := $(PACKAGE_NAME_MULTIARCH)_x86.msi
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync PACKAGE_NAME_MULTIARCH.amd64 := $(PACKAGE_NAME_MULTIARCH)_amd64.msi
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync PACKAGE_NAME_FINAL := $(PATH_MULTIARCH_TEMP)/$(PACKAGE_NAME_MULTIARCH.$(KBUILD_TARGET_ARCH))
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync PACKAGE_NAME_MULTIARCH_FINAL := $(PACKAGE_NAME_MULTIARCH).exe
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync PACKAGE_NAME_MULTIARCH_COMMONCAB := common.cab
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync BLDDIRS += $(PATH_MULTIARCH_TEMP)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync PACKING += $(PACKAGE_NAME_FINAL)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync ifeq ($(KBUILD_TARGET_ARCH),x86)
3b3bc8a9383a065307e540b83fc3a3d6c548a082vboxsync PACKING += $(PATH_STAGE_BIN)/$(PACKAGE_NAME_MULTIARCH_FINAL)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync PACKING += $(PACKAGE_NAME_FINAL)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncBLDDIRS += \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_WIN_INST_OUT_DIR) \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_WIN_INST_OUT_DIR)/Languages/
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncOTHER_CLEAN += \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_WIN_INST_OUT_DIR)/VirtualBox.wixobj \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_WIN_INST_OUT_DIR)/VirtualBox.wixobj.dep \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib.wxi \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_WIN_INST_OUT_DIR)/VBoxGuiNLS.wxi \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_WIN_INST_OUT_DIR)/VBoxKey.wxi \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_WIN_INST_OUT_DIR)/Languages/Language_$(lang).wxl \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_WIN_INST_OUT_DIR)/Languages/License_$(lang).wxl \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_WIN_INST_OUT_DIR)/Languages/$(lang).mst \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_$(lang).wixobj \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG)_$(lang).msi) \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_WIN_INST_OUT_DIR)/Files_Doc.wxi \
d97357e2036109245c83ba553d0290212e28ea40vboxsync $(VBOX_WIN_INST_OUT_DIR)/Files_License.wxi \
d97357e2036109245c83ba553d0290212e28ea40vboxsync $(VBOX_WIN_INST_OUT_DIR)/Shortcuts_StartMenu.wxi
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncifdef VBOX_WITH_COMBINED_PACKAGE
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync ifeq ($(KBUILD_TARGET_ARCH),x86)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync OTHER_CLEAN += \
3b3bc8a9383a065307e540b83fc3a3d6c548a082vboxsync $(PATH_STAGE_BIN)/$(PACKAGE_NAME_MULTIARCH_FINAL) \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(PATH_MULTIARCH_TEMP)/$(PACKAGE_NAME_MULTIARCH.x86) \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(PATH_MULTIARCH_TEMP)/$(PACKAGE_NAME_MULTIARCH.am64) \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_MULTIARCH_COMMONCAB)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync # Nothing to do here yet.
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync OTHER_CLEAN += \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(PACKAGE_NAME_FINAL)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncifdef VBOX_WITH_BUNDLED_INSTALLER
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync ifeq ($(KBUILD_TARGET),darwin)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync VBOX_TMP_DIR ?= /VBox
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync VBOX_TMP_DIR ?= c:\Temp
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync ifndef VBOX_PATH_PACK_TMP
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync VBOX_PATH_PACK_TMP := $(VBOX_WIN_INST_OUT_DIR)
3b3bc8a9383a065307e540b83fc3a3d6c548a082vboxsync VBOX_PATH_PACK_BUNDLE_TMP = $(PATH_STAGE_BIN)/VBoxWinBundleInstaller
3b3bc8a9383a065307e540b83fc3a3d6c548a082vboxsync VBOX_PATH_PACK_BUNDLE_ZIP = $(PATH_STAGE_BIN)/VBoxWinBundleInstaller-$(KBUILD_TARGET_ARCH).zip
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync VBOX_BRAND_WIN_INST_NAME.x86 = $(PACKAGE_BASE)-Win_x86$(VBOX_BRAND_WIN_INST_EXT).msi
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync VBOX_BRAND_WIN_INST_NAME.amd64 = $(PACKAGE_BASE)-Win_amd64$(VBOX_BRAND_WIN_INST_EXT).msi
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync PACKING.win += $(VBOX_PATH_PACK_BUNDLE_ZIP)
d97357e2036109245c83ba553d0290212e28ea40vboxsync# Surpress/skip the following ICE (internal consistency evaluators):
d97357e2036109245c83ba553d0290212e28ea40vboxsync# - ICE64: Checks that new directories in the user profile are removed correctly in roaming scenarios.
d97357e2036109245c83ba553d0290212e28ea40vboxsync# -> We don't want to remove system folders (like "Microsoft/Internet Explorer/Quick Launch").
d97357e2036109245c83ba553d0290212e28ea40vboxsyncVBOX_MSI_ICE_IGNORE := \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# Create intermediate XML file for languages (needed for .MSI linking).
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# Note: The double escaping of $(dir $@) in the prereq/dep list is because we first have
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# to escape the expansion of the $(eval ) argument and then the definition of the
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# rule. The statement is finally expanded during second dependency expansion, which
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# takes place after all makefiles has been loaded and with the @ variable defined.
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncdefine def_vbox_lang_xml
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync$(VBOX_WIN_INST_OUT_DIR)/Languages/Language_$(lang).wxl: $(VBOX_PATH_WIN_INST_SRC)/Languages/$(lang).wxl | $$$$(dir $$$$@)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $$(call MSG_GENERATE,,$$@,$$<)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(QUIET)$(INSTALL) -m 0644 $$< $$@
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync$(foreach lang,$(VBOX_INSTALLER_LANGUAGES),$(eval $(def_vbox_lang_xml)))
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# Create intermediate XML file for licenses (needed for .MSI linking).
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# These files are created from the original .RTF files in the /docs directory.
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# Note: The redirect command below will open $$@ as stdout in append+text mode
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# and then exec cat, thus appending the license file to the result file.
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# Note: The license_file variable has to be created before def_vbox_license_xml
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# is expanded by the 2nd eval because we rely on the that expansion
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# replacing all $(license_file) (and $(lang)) references before evaluation.
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# Note: The REDIRECT + ECHO_EXT is because WiX gets upset if there a newline
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# between the tag and the RTF license text.
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncdefine def_vbox_license_xml
418b2ca36b57bba4727decfa2e9b93affca1dd43vboxsync$(VBOX_WIN_INST_OUT_DIR)/Languages/License_$(lang).wxl: $(license_file) $(MAKEFILE_CURRENT) | $$$$(dir $$$$@)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $$(call MSG_GENERATE,,$$@,$$<)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(APPEND) -t $$@ '<?xml version="1.0" encoding="utf-8"?>'
d97357e2036109245c83ba553d0290212e28ea40vboxsync $(APPEND) $$@ '<WixLocalization xmlns="http://schemas.microsoft.com/wix/2006/localization" Codepage="1252" Culture="$(lang)">'
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(REDIRECT) -a+to $$@ -- $(ECHO_EXT) -n '<String Id=\"LicenseText\">'
2868a4e01e366cc5b7228503675dbbf3ecdeba2cvboxsync $(REDIRECT) -a+to $$@ -- $(SED) -e "s|<|\<|g" -e "s|>|\>|g" $(license_file)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(APPEND) $$@ '</String>'
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(APPEND) $$@ '<String Id="LicenseFile">$(license_file)</String>'
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(APPEND) $$@ '<String Id="LicenseInstallFileLong">License_$(lang).rtf</String>'
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(APPEND) $$@ '<String Id="LicenseInstallFileShort">L_$(lang).rtf</String>'
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(APPEND) $$@ '</WixLocalization>'
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync$(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(eval local license_file := $(VBOX_BRAND_$(subst en_US_,,$(lang)_)LICENSE_RTF)) \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(eval $(def_vbox_license_xml)))
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# Create one intermediate WXI (Windows Installer Include) file for all installers (needed for .MSI compiling).
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# This file includes all language-specific files (PDFs, CHMs, ...) to install.
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# Note: When using the -n switch, append will append a new line after each
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# argument. The -t switch makes it truncate the file.
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync$(VBOX_WIN_INST_OUT_DIR)/Files_Main.wxi: $(MAKEFILE_CURRENT) | $$(dir $$@)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(call MSG_GENERATE,,$@,$<)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(APPEND) -t $@ '<?xml version="1.0" ?>'
d97357e2036109245c83ba553d0290212e28ea40vboxsync $(APPEND) $@ '<Include xmlns="http://schemas.microsoft.com/wix/2006/wi">'
1f2b5fc378de7ce78fee422ffb66635630f23016vboxsync ifdef VBOX_WITH_DOCS_CHM
3b3bc8a9383a065307e540b83fc3a3d6c548a082vboxsync $(APPEND) $@ ' <File Id="file_VirtualBox.chm" Name="VirtualBox.chm" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$(PATH_STAGE_BIN)/VirtualBox.chm"></File>'
1f2b5fc378de7ce78fee422ffb66635630f23016vboxsync $(APPEND) -n $@ $(foreach lang,$(VBOX_MANUAL_ADD_LANGUAGES), \
3b3bc8a9383a065307e540b83fc3a3d6c548a082vboxsync ' <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>')
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(APPEND) $@ '</Include>'
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync$(VBOX_WIN_INST_OUT_DIR)/Files_Doc.wxi: $(MAKEFILE_CURRENT) | $$(dir $$@)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(call MSG_GENERATE,,$@,$<)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(APPEND) -t $@ '<?xml version="1.0" ?>'
d97357e2036109245c83ba553d0290212e28ea40vboxsync $(APPEND) $@ '<Include xmlns="http://schemas.microsoft.com/wix/2006/wi">'
3b3bc8a9383a065307e540b83fc3a3d6c548a082vboxsync $(APPEND) $@ ' <File Id="file_UserManual.pdf" Name="UserManual.pdf" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$(PATH_STAGE_BIN)/UserManual.pdf">'
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(APPEND) $@ ' </File>'
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(APPEND) -n $@ $(foreach lang,$(VBOX_MANUAL_ADD_LANGUAGES), \
3b3bc8a9383a065307e540b83fc3a3d6c548a082vboxsync ' <File Id="file_UserManual_$(lang).pdf" Name="UserManual_$(lang).pdf" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$(PATH_STAGE_BIN)/UserManual_$(lang).pdf">' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync ' </File>')
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(APPEND) $@ '</Include>'
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync$(VBOX_WIN_INST_OUT_DIR)/Files_License.wxi: $(MAKEFILE_CURRENT) | $$(dir $$@)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(call MSG_GENERATE,,$@,$<)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(APPEND) -t $@ '<?xml version="1.0" ?>'
d97357e2036109245c83ba553d0290212e28ea40vboxsync $(APPEND) $@ '<Include xmlns="http://schemas.microsoft.com/wix/2006/wi">'
d97357e2036109245c83ba553d0290212e28ea40vboxsync $(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)">' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(APPEND) -n $@ $(foreach lang,$(VBOX_MANUAL_ADD_LANGUAGES), \
d97357e2036109245c83ba553d0290212e28ea40vboxsync ' <File Id="file_License_$(lang).rtf" Name="License_$(lang).rtf" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$(VBOX_BRAND_$(lang)_LICENSE_RTF)"/>' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync ' </File>')
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(APPEND) $@ '</Include>'
d97357e2036109245c83ba553d0290212e28ea40vboxsync$(VBOX_WIN_INST_OUT_DIR)/Shortcuts_StartMenu.wxi: $(MAKEFILE_CURRENT) | $$(dir $$@)
d97357e2036109245c83ba553d0290212e28ea40vboxsync $(call MSG_GENERATE,,$@,$<)
d97357e2036109245c83ba553d0290212e28ea40vboxsync $(APPEND) -t $@ '<?xml version="1.0" ?>'
d97357e2036109245c83ba553d0290212e28ea40vboxsync $(APPEND) $@ '<Include xmlns="http://schemas.microsoft.com/wix/2006/wi">'
d97357e2036109245c83ba553d0290212e28ea40vboxsync # Documentation (PDF/CHM)
d97357e2036109245c83ba553d0290212e28ea40vboxsync ifdef VBOX_WITH_DOCS_CHM
d97357e2036109245c83ba553d0290212e28ea40vboxsync $(APPEND) $@ ' <Shortcut Id="sc_StartMenu_ManualCHM_en_US" Directory="dir_StartMenuVBox" Name="!(loc.StartMenu_UserManual) (CHM, English)" Description="!(loc.StartMenu_UserManual)"' \
26809165876a75147696a496b69185a6aecbb8b0vboxsync ' Target="[INSTALLDIR]\doc\VirtualBox.chm" WorkingDirectory="dir_Documents" Advertise="no"/>'
d97357e2036109245c83ba553d0290212e28ea40vboxsync $(APPEND) -n $@ $(foreach lang,$(VBOX_MANUAL_ADD_LANGUAGES), \
d97357e2036109245c83ba553d0290212e28ea40vboxsync ' <Shortcut Id="sc_StartMenu_ManualCHM_$(lang)" Directory="dir_StartMenuVBox" Name="$!(loc.StartMenu_UserManual) (CHM, $(VBOX_BRAND_$(lang)_LANG_NAME))"' \
26809165876a75147696a496b69185a6aecbb8b0vboxsync ' Description="$!(loc.StartMenu_UserManual) ($(VBOX_BRAND_$(lang)_LANG_NAME))" Target="[INSTALLDIR]\doc\VirtualBox_$(lang).chm" WorkingDirectory="dir_Documents"/>')
d97357e2036109245c83ba553d0290212e28ea40vboxsync $(APPEND) $@ ' <Shortcut Id="sc_StartMenu_ManualPDF_en_US" Directory="dir_StartMenuVBox" Name="!(loc.StartMenu_UserManual) (PDF, English)" Description="!(loc.StartMenu_UserManual)"' \
26809165876a75147696a496b69185a6aecbb8b0vboxsync ' Target="[INSTALLDIR]\doc\UserManual.pdf" WorkingDirectory="dir_Documents" Advertise="no"/>'
d97357e2036109245c83ba553d0290212e28ea40vboxsync $(APPEND) -n $@ $(foreach lang,$(VBOX_MANUAL_ADD_LANGUAGES), \
d97357e2036109245c83ba553d0290212e28ea40vboxsync ' <Shortcut Id="sc_StartMenu_ManualPDF_$(lang)" Directory="dir_StartMenuVBox" Name="$!(loc.StartMenu_UserManual) (PDF, $(VBOX_BRAND_$(lang)_LANG_NAME))"' \
26809165876a75147696a496b69185a6aecbb8b0vboxsync ' Description="$!(loc.StartMenu_UserManual) ($(VBOX_BRAND_$(lang)_LANG_NAME))" Target="[INSTALLDIR]\doc\UserManual_$(lang).pdf" WorkingDirectory="dir_Documents"/>')
d97357e2036109245c83ba553d0290212e28ea40vboxsync # License(s) (RTF)
d97357e2036109245c83ba553d0290212e28ea40vboxsync $(APPEND) $@ ' <Shortcut Id="sc_StartMenu_License_en_US" Directory="dir_StartMenuVBox" Name="!(loc.StartMenu_License) (English)" Description="!(loc.StartMenu_License)"' \
d97357e2036109245c83ba553d0290212e28ea40vboxsync ' Target="[INSTALLDIR]License_en_US.rtf" WorkingDirectory="INSTALLDIR" Advertise="no"/>'
d97357e2036109245c83ba553d0290212e28ea40vboxsync $(APPEND) -n $@ $(foreach lang,$(VBOX_MANUAL_ADD_LANGUAGES), \
d97357e2036109245c83ba553d0290212e28ea40vboxsync ' <Shortcut Id="sc_StartMenu_License_$(lang)" Directory="dir_StartMenuVBox" Name="$!(loc.StartMenu_License) ($(VBOX_BRAND_$(lang)_LANG_NAME))"' \
d97357e2036109245c83ba553d0290212e28ea40vboxsync ' Description="$!(loc.StartMenu_License) ($(VBOX_BRAND_$(lang)_LANG_NAME))" Target="License_$(lang).rtf" WorkingDirectory="INSTALLDIR"/>')
d97357e2036109245c83ba553d0290212e28ea40vboxsync $(APPEND) $@ '</Include>'
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# .MSI link (all languages).
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# Note: This will clean up any previous .msi to prevent dep build boxes from
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# filling up with old files.
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncdefine def_vbox_link_msi
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync$(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG)_$(lang).msi: \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_$(lang).wixobj \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_WIN_INST_OUT_DIR)/Languages/Language_$(lang).wxl \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_WIN_INST_OUT_DIR)/Languages/License_$(lang).wxl \
3b3bc8a9383a065307e540b83fc3a3d6c548a082vboxsync $(PATH_STAGE_BIN)/VBoxInstallHelper.dll \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(MAKEFILE_CURRENT) \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync | $$$$(dir $$$$@)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $$(call MSG_L1,Linking installer $$@)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(QUIET)$(RM) -f $$(wildcard $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_BASE)-r*_$(lang).msi)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_PATH_WIX)/light.exe -nologo \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -loc $(VBOX_WIN_INST_OUT_DIR)/Languages/Language_$(lang).wxl \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -loc $(VBOX_WIN_INST_OUT_DIR)/Languages/License_$(lang).wxl \
d97357e2036109245c83ba553d0290212e28ea40vboxsync -ext $(VBOX_PATH_WIX)/WixUIExtension.dll \
d97357e2036109245c83ba553d0290212e28ea40vboxsync -ext $(VBOX_PATH_WIX)/WixDifxAppExtension.dll \
d97357e2036109245c83ba553d0290212e28ea40vboxsync $(VBOX_MSI_ICE_IGNORE) \
d97357e2036109245c83ba553d0290212e28ea40vboxsync $(if-expr "$(KBUILD_TARGET_ARCH)" == "x86", \
d97357e2036109245c83ba553d0290212e28ea40vboxsync $(VBOX_PATH_WIX)/difxapp_x86.wixlib, \
d97357e2036109245c83ba553d0290212e28ea40vboxsync $(VBOX_PATH_WIX)/difxapp_x64.wixlib)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(RM) -f $(VBOX_WIN_INST_OUT_DIR)/Languages/$(lang).mst
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(call VBOX_SIGN_FILE_FN,$$@)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync$(foreach lang,$(VBOX_INSTALLER_LANGUAGES), $(eval $(def_vbox_link_msi)))
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# Load and adjust the MSI compile step dependencies.
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync-include $(VBOX_WIN_INST_OUT_DIR)/VirtualBox.wixobj.dep
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# Filter out some files depending on build type and compiler.
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncifeq ($(KBUILD_TYPE),release)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync VBOX_MSI_DEPENDENCIES := $(filer-out $(PATH_OUT)/bin/VBoxDbg3.dll, $(VBOX_MSI_DEPENDENCIES))
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncifndef VBOX_SIGNING_MODE
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync VBOX_MSI_DEPENDENCIES := $(filer-out %.cat, $(VBOX_MSI_DEPENDENCIES))
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncifdef VBOX_USE_VCC80
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync VBOX_MSI_DEPENDENCIES := $(filter-out \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync , $(VBOX_MSI_DEPENDENCIES))
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync VBOX_MSI_DEPENDENCIES := $(filter-out \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(PATH_OUT)/bin/Microsoft.VC80.CRT/Microsoft.VC80.CRT.manifest \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync , $(VBOX_MSI_DEPENDENCIES))
d97357e2036109245c83ba553d0290212e28ea40vboxsync# TODO: Add filtering out more dependencies here!
d97357e2036109245c83ba553d0290212e28ea40vboxsyncifndef VBOX_WITH_QTGUI
d97357e2036109245c83ba553d0290212e28ea40vboxsync $(PATH_OUT)/bin/accessible/qtaccessiblewidgets4.dll \
d97357e2036109245c83ba553d0290212e28ea40vboxsync , $(VBOX_MSI_DEPENDENCIES))
d97357e2036109245c83ba553d0290212e28ea40vboxsyncifndef VBOX_WITH_PYTHON
d97357e2036109245c83ba553d0290212e28ea40vboxsync VBOX_MSI_DEPENDENCIES := $(filer-out $ \
d97357e2036109245c83ba553d0290212e28ea40vboxsync $(PATH_OUT)/bin/sdk/installer/vboxapi/__init__.py \
d97357e2036109245c83ba553d0290212e28ea40vboxsync $(PATH_OUT)/bin/sdk/installer/vboxapi/VirtualBox_constants.py \
d97357e2036109245c83ba553d0290212e28ea40vboxsync , $(VBOX_MSI_DEPENDENCIES))
d97357e2036109245c83ba553d0290212e28ea40vboxsyncifndef VBOX_WITH_CROGL
d97357e2036109245c83ba553d0290212e28ea40vboxsync VBOX_MSI_DEPENDENCIES := $(filer-out $ \
d97357e2036109245c83ba553d0290212e28ea40vboxsync , $(VBOX_MSI_DEPENDENCIES))
d97357e2036109245c83ba553d0290212e28ea40vboxsyncifndef VBOX_WITH_SECURELABEL
d97357e2036109245c83ba553d0290212e28ea40vboxsync VBOX_MSI_DEPENDENCIES := $(filer-out $(PATH_OUT)/bin/SDL_ttf.dll, $(VBOX_MSI_DEPENDENCIES))
d97357e2036109245c83ba553d0290212e28ea40vboxsyncifndef VBOX_WITH_WEBSERVICES
d97357e2036109245c83ba553d0290212e28ea40vboxsync VBOX_MSI_DEPENDENCIES := $(filer-out $(PATH_OUT)/bin/vboxwebsrv.exe, $(VBOX_MSI_DEPENDENCIES))
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncifneq ($(KBUILD_TARGET_ARCH),amd64)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync VBOX_MSI_DEPENDENCIES := $(filter-out \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync , $(VBOX_MSI_DEPENDENCIES))
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync VBOX_MSI_DEPENDENCIES := $(filter-out \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync , $(VBOX_MSI_DEPENDENCIES))
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# Add dependencies that makes sure necessary bits gets built since
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# VBOX_MSI_DEPENDENCIES will be zero the first time around.
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# For combined packages we always use the .ISO from the amd64 build.
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncifdef VBOX_WITH_COMBINED_PACKAGE
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync VBOX_MSI_DEPENDENCIES += \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(if $(VBOX_WITH_ADDITIONS_PACKING),$(PATH_MULTIARCH_GUEST_ADDITIONS_ISO)/VBoxGuestAdditions.iso)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync VBOX_MSI_DEPENDENCIES += \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(if $(VBOX_WITH_ADDITIONS_PACKING),$(VBOX_PATH_ADDITIONS)/VBoxGuestAdditions.iso)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# MSI compile.
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncdefine def_vbox_compile_wixobj
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync$(VBOX_WIN_INST_OUT_DIR)/VirtualBox_$(lang).wixobj: \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(PATH_SUB_CURRENT)/VirtualBox.wxs \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(PATH_SUB_CURRENT)/UserInterface.wxi \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib.wxi \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_WIN_INST_OUT_DIR)/VBoxKey.wxi \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_WIN_INST_OUT_DIR)/VBoxGuiNLS.wxi \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_MSI_DEPENDENCIES) \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_VERSION_STAMP) \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync | $$$$(dir $$$$@)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(QUIET)$(RM) -f $@
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(REDIRECT) \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'PATH_OUT=$(subst /,\\,$(PATH_OUT))' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'PATH_TARGET=$(subst /,\\,$(VBOX_WIN_INST_OUT_DIR))' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'PATH_ROOT=$(subst /,\\,$(PATH_ROOT))' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'PATH_MULTIARCH_GUEST_ADDITIONS_ISO=$(subst /,\\,$(PATH_MULTIARCH_GUEST_ADDITIONS_ISO))' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'VBOX_PATH_WIN_INST_SRC=$(subst /,\\,$(VBOX_PATH_WIN_INST_SRC))' \
0da0539aeae9b2692f4967c4a8ef273018effb2evboxsync -E 'VBOX_BRAND_WIN_INST_DLGJPG=$(subst /,\\,$(VBOX_BRAND_WIN_INST_DLGJPG))' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'VBOX_ADD_LANGUAGES=$(VBOX_INSTALLER_ADD_LANGUAGES)' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'VBOX_BRAND_LICENSE_RTF=$(subst /,\\,$(VBOX_BRAND_LICENSE_RTF))' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'VBOX_BRAND_$(lang)_LICENSE_RTF=$(subst /,\\,$(VBOX_BRAND_$(subst en_US_,,$(lang)_)LICENSE_RTF))') \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'VBOX_BUILD_NR_FOR_INST=$(VBOX_VERSION_BUILD)' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'VBOX_VENDOR=$(VBOX_VENDOR)' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'VBOX_VENDOR_SHORT=$(VBOX_VENDOR_SHORT)' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'VBOX_PRODUCT=$(VBOX_PRODUCT)' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'VBOX_C_YEAR=$(VBOX_C_YEAR)' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'VBOX_VERSION_STRING=$(VBOX_VERSION_STRING)' \
85668909c68b5d0e67c89d6042535b41c4bffeccvboxsync -E 'VBOX_VERSION_STRING_RAW=$(VBOX_VERSION_STRING_RAW)' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'VBOX_VERSION_MAJOR_INST=$(VBOX_VERSION_MAJOR)' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'VBOX_VERSION_MINOR_INST=$(VBOX_VERSION_MINOR)' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'VBOX_SIGNING_MODE=$(strip $(if $(VBOX_SIGNING_MODE),$(VBOX_SIGNING_MODE),none))' \
945e2415c4f3b92c25b27f5568cd94e281353e5fvboxsync -E 'VBOX_GUI_USE_QGL=$(if $(VBOX_GUI_USE_QGL),yes,no)' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'VBOX_WITH_ADDITIONS_PACKING=$(if $(VBOX_WITH_ADDITIONS_PACKING),yes,no)' \
945e2415c4f3b92c25b27f5568cd94e281353e5fvboxsync -E 'VBOX_WITH_COMBINED_PACKAGE=$(if $(VBOX_WITH_COMBINED_PACKAGE),yes,no)' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'VBOX_WITH_CROGL=$(if $(VBOX_WITH_CROGL),yes,no)' \
945e2415c4f3b92c25b27f5568cd94e281353e5fvboxsync -E 'VBOX_WITH_DEBUGGER_GUI=$(if-expr defined(VBOX_WITH_DEBUGGER_GUI) && defined(VBOX_WITH_QTGUI),yes,no)' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'VBOX_WITH_DOCS_PACKING=$(if $(VBOX_WITH_DOCS_PACKING),yes,no)' \
945e2415c4f3b92c25b27f5568cd94e281353e5fvboxsync -E 'VBOX_WITH_EFIFW_PACKING=$(if $(VBOX_WITH_EFIFW_PACKING),yes,no)' \
f5dceedee19e251fca087d8efb960533a60c82e4vboxsync -E 'VBOX_WITH_EXTPACK=$(if $(VBOX_WITH_EXTPACK),yes,no)' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'VBOX_WITH_GUEST_CONTROL=$(if $(VBOX_WITH_GUEST_CONTROL),yes,no)' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'VBOX_WITH_GUEST_PROPS=$(if $(VBOX_WITH_GUEST_PROPS),yes,no)' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'VBOX_WITH_NETFLT=$(if $(VBOX_WITH_NETFLT),yes,no)' \
945e2415c4f3b92c25b27f5568cd94e281353e5fvboxsync -E 'VBOX_WITH_PYTHON=$(if $(VBOX_WITH_PYTHON),yes,no)' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'VBOX_WITH_QTGUI=$(if $(VBOX_WITH_QTGUI),yes,no)' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'VBOX_WITH_VIDEOHWACCEL=$(if $(VBOX_WITH_VIDEOHWACCEL),yes,no)' \
e33e8ebf8162fdd25a8349e71d5891bdbd3bf17dvboxsync -E 'VBOX_WITH_VRDP=$(if-expr defined(VBOX_WITH_VRDP) && !defined(VBOX_WITH_EXTPACK_PUEL),yes,no)' \
945e2415c4f3b92c25b27f5568cd94e281353e5fvboxsync -E 'VBOX_WITH_WEBSERVICES=$(if $(VBOX_WITH_WEBSERVICES),yes,no)' \
225ca6d3ef738902dab207ecb9354b64430962bcvboxsync -E 'VBOX_WITH_SECURELABEL=$(if $(VBOX_WITH_SECURELABEL),yes,no)' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'VBOX_WITH_SERIALNUMBER_INSTALL=$(if $(VBOX_WITH_SERIALNUMBER_INSTALL),yes,no)' \
2bb528b255ed2d743bb36b48b400447012e8f6dbvboxsync -E 'VBOX_WITH_LICENSE_DISPLAY=$(if $(VBOX_WITH_LICENSE_DISPLAY),yes,no)' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'VBOX_WINDOWS_ICON_FILE=$(subst /,\\,$(VBOX_WINDOWS_ICON_FILE))' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'BUILD_TYPE=$(KBUILD_TYPE)' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'BUILD_TARGET_ARCH=$(KBUILD_TARGET_ARCH)' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -E 'VBOX_USE_VCC80=$(if $(VBOX_USE_VCC80),yes,no)' \
d97357e2036109245c83ba553d0290212e28ea40vboxsync $(VBOX_PATH_WIX)/candle.exe $(filter-out $(VBOX_VERSION_STAMP),$$<) \
d97357e2036109245c83ba553d0290212e28ea40vboxsync -ext $(VBOX_PATH_WIX)/WixUIExtension.dll \
d97357e2036109245c83ba553d0290212e28ea40vboxsync -ext $(VBOX_PATH_WIX)/WixDifxAppExtension.dll \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncifeq ($(lang),en_US)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# Generate dependency file, we share this between all the languages.
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(APPEND) -t $(VBOX_WIN_INST_OUT_DIR)/VirtualBox.wixobj.dep 'VBOX_MSI_DEPENDENCIES = \'
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(SED) -f $(VBOX_PATH_WIN_INST_SRC)/dep.sed \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync --append $(VBOX_WIN_INST_OUT_DIR)/VirtualBox.wixobj.dep \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_PATH_WIN_INST_SRC)/VirtualBox.wxs \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_PATH_WIN_INST_SRC)/UserInterface.wxi \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib.wxi
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(APPEND) $(VBOX_WIN_INST_OUT_DIR)/VirtualBox.wixobj.dep ''
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync$(foreach lang,$(VBOX_INSTALLER_LANGUAGES), \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(eval $(def_vbox_compile_wixobj)))
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# VirtualBox Type Library definition.
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync$(VBOX_WIN_INST_OUT_DIR)/VirtualBox_TypeLib.wxi: \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(PATH_SUB_CURRENT)/VirtualBox_TypeLib.xsl \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_XIDL_FILE) \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync | $$(dir $$@)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_XSLTPROC) -o $@ $< $(VBOX_XIDL_FILE)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# Construct the list of GUI translations.
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# ('-t' -- truncate file; '-n' -- new line between arguments)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncinclude $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.kmk
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync$(VBOX_WIN_INST_OUT_DIR)/VBoxGuiNLS.wxi: $(PATH_ROOT)/src/VBox/Frontends/VirtualBox/nls/ApprovedLanguages.kmk $(MAKEFILE_CURRENT) | $$(dir $$@)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(APPEND) -t $@ '<?xml version="1.0" ?>'
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(APPEND) $@ '<Include>'
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(APPEND) -n $@ $(foreach lang,$(VBOX_APPROVED_GUI_LANGUAGES), \
d97357e2036109245c83ba553d0290212e28ea40vboxsync ' <File Id="nlsqt${lang}" Name="qt_${lang}.qm" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$$(env.PATH_OUT)\bin\nls\qt_${lang}.qm" />' \
d97357e2036109245c83ba553d0290212e28ea40vboxsync ' <File Id="nlsgui${lang}" Name="VirtualBox_${lang}.qm" DiskId="$(VBOX_INSTALLER_COMMON_DISKID)" Vital="yes" Source="$$(env.PATH_OUT)\bin\nls\VirtualBox_${lang}.qm" />')
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(APPEND) $@ '</Include>'
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# Edit the version stored in the registry.
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync$(VBOX_WIN_INST_OUT_DIR)/VBoxKey.wxi: $(PATH_SUB_CURRENT)/VBoxKey.wxi $(VBOX_VERSION_STAMP) | $$(dir $$@)
85668909c68b5d0e67c89d6042535b41c4bffeccvboxsync $(SED) -e 's/%VER%/$(VBOX_VERSION_STRING_RAW)/' --output $@ $<
85668909c68b5d0e67c89d6042535b41c4bffeccvboxsync $(SED) -e 's/%VER_EXT%/$(VBOX_VERSION_STRING)/' --output $@ $<
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# Build the multi-language version of the .MSI installer (final installer).
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# This is done by creating binary .MST diffs of all the language-specific installers
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# and then merging the diffs into the existing .MSI using tools from the MS Installer SDK.
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# .MSI link (all languages).
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# Note: Prereqs of the special .NOTPARALLEL target will be executed with parallel
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# make jobs temporarily disabled. This is a hack to work around what seems
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# to be a problem with the sharing mode set by one or more of the three
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# programs / scripts involved in this step.
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncdefine def_vbox_create_mst
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync.NOTPARALLEL: $(VBOX_WIN_INST_OUT_DIR)/Languages/$(lang).mst
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync$(VBOX_WIN_INST_OUT_DIR)/Languages/$(lang).mst: \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG)_en_US.msi \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG)_$(lang).msi \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync | $$$$(dir $$$$@)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(call MSG_L1,Integrating language ($(lang)))
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(REDIRECT) -C $$(@D) -- $(VBOX_PATH_MSITRAN) -g $$< $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG)_$(lang).msi $(lang).mst
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(REDIRECT) -C $$(@D) -- $(VBOX_PATH_MSIDB) -d $$< -r $(lang).mst
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(REDIRECT) -C $$(@D) -- wscript.exe $(VBOX_PATH_WISUBSTG) $$< $(lang).mst $(lang_id)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync$(foreach lang,$(VBOX_INSTALLER_ADD_LANGUAGES), \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(eval local lang_id := $(VBOX_BRAND_$(lang)_LANG_ID)) \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(eval $(def_vbox_create_mst)))
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# Create all xxx_<Lang>.msi installers and prepare the final xxx_MultiLang.msi installer.
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync## @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
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# where en_US.msi is created, it shouldn't be changed after that (if possible). Also, document the path length issue.
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncVBOX_INS_PROD_ARCH := $(VBOX_INS_PROD_ARCH.$(KBUILD_TARGET_ARCH))
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync$(if $(VBOX_INS_PROD_ARCH),,$(error VBOX_INS_PROD_ARCH is empty!))
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncVBOX_INS_PROD_LANG := 7="$(VBOX_INS_PROD_ARCH);1033
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync$(foreach lang, $(VBOX_INSTALLER_ADD_LANGUAGES), $(eval VBOX_INS_PROD_LANG := $(VBOX_INS_PROD_LANG)$(COMMA)$(VBOX_BRAND_$(lang)_LANG_ID)))
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncVBOX_INS_PROD_LANG := $(VBOX_INS_PROD_LANG)"
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync$(PACKAGE_NAME_FINAL): \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_WIN_INST_OUT_DIR)/Files_Main.wxi \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_WIN_INST_OUT_DIR)/Files_Doc.wxi \
3c3d0383bb6ce1db26a5d4ca83da998bbac6eeb5vboxsync $(VBOX_WIN_INST_OUT_DIR)/Files_License.wxi \
d97357e2036109245c83ba553d0290212e28ea40vboxsync $(VBOX_WIN_INST_OUT_DIR)/Shortcuts_StartMenu.wxi \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(foreach lang,$(VBOX_INSTALLER_LANGUAGES), $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG)_$(lang).msi) \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(foreach lang,$(VBOX_INSTALLER_ADD_LANGUAGES), $(VBOX_WIN_INST_OUT_DIR)/Languages/$(lang).mst) \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync | $$(dir $$@)
3b3bc8a9383a065307e540b83fc3a3d6c548a082vboxsync $(QUIET)$(RM) -f $(wildcard $(PATH_STAGE_BIN)/$(PACKAGE_BASE)-r*.msi)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(REDIRECT) -C $(@D) -- \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync wscript.exe $(VBOX_PATH_WISUMINFO) $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG)_en_US.msi $(VBOX_INS_PROD_LANG)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(CP) -f $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG)_en_US.msi $@
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(call VBOX_SIGN_FILE_FN,$@)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncif defined(VBOX_WITH_COMBINED_PACKAGE) && "$(KBUILD_TARGET_ARCH)" == "x86"
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# Make the multi-architecture installer by calling our stub builder
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# with both platform installers (x86 and amd64) + common cab. We only
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# need to do this once; so do it on x86 only.
3b3bc8a9383a065307e540b83fc3a3d6c548a082vboxsync$(PATH_STAGE_BIN)/$(PACKAGE_NAME_MULTIARCH_FINAL): \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(PATH_MULTIARCH_TEMP)/$(PACKAGE_NAME_MULTIARCH.x86) \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(PATH_MULTIARCH_TEMP)/$(PACKAGE_NAME_MULTIARCH.amd64)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(call MSG_L1,Building Windows combined package)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(call VBOX_SIGN_FILE_FN,$(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_MULTIARCH_COMMONCAB))
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(REDIRECT) -C $(@D) -- \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync VBoxStubBld -out $@ \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -target-x86 $(PATH_MULTIARCH_TEMP)/$(PACKAGE_NAME_MULTIARCH.x86) \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -target-amd64 $(PATH_MULTIARCH_TEMP)/$(PACKAGE_NAME_MULTIARCH.amd64) \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -target-all $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_MULTIARCH_COMMONCAB) \
3b3bc8a9383a065307e540b83fc3a3d6c548a082vboxsync -stub $(PATH_STAGE_BIN)/VBoxStub.exe
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(call VBOX_SIGN_FILE_FN,$@)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync# Make the bundle installer (for retail ISOs) (zip-file).
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync$(VBOX_PATH_PACK_BUNDLE_ZIP): \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(PACKAGE_NAME_FINAL) \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(if-expr "$(KBUILD_TARGET_ARCH)" == "x86", \
3b3bc8a9383a065307e540b83fc3a3d6c548a082vboxsync $(PATH_STAGE_BIN)/VBoxBundleMachine.exe \
3b3bc8a9383a065307e540b83fc3a3d6c548a082vboxsync $(if $(VBOX_BRAND_WIN_AS_MENU), $(PATH_STAGE_BIN)/AutoStartMenu.exe) \
3b3bc8a9383a065307e540b83fc3a3d6c548a082vboxsync $(if $(VBOX_WITH_COMBINED_PACKAGE), $(PATH_STAGE_BIN)/$(PACKAGE_NAME_MULTIARCH_FINAL)),)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(RM) -Rf -- $(VBOX_PATH_PACK_BUNDLE_TMP)/
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(MKDIR) -p $(VBOX_PATH_PACK_BUNDLE_TMP)/
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncifndef VBOX_WITH_COMBINED_PACKAGE
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(CP) $(PACKAGE_NAME_FINAL) $(VBOX_PATH_PACK_BUNDLE_TMP)/$(VBOX_BRAND_WIN_INST_NAME.$(KBUILD_TARGET_ARCH))
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncifeq ($(KBUILD_TARGET_ARCH),x86)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync ifdef VBOX_WITH_COMBINED_PACKAGE
3b3bc8a9383a065307e540b83fc3a3d6c548a082vboxsync $(CP) $(PATH_STAGE_BIN)/$(PACKAGE_NAME_MULTIARCH_FINAL) $(VBOX_PATH_PACK_BUNDLE_TMP)/$(PACKAGE_NAME_MULTIARCH_FINAL)
3b3bc8a9383a065307e540b83fc3a3d6c548a082vboxsync $(CP) $(PATH_STAGE_BIN)/VBoxBundleMachine.exe $(VBOX_PATH_PACK_BUNDLE_TMP)/
3b3bc8a9383a065307e540b83fc3a3d6c548a082vboxsync $(CP) $(PATH_STAGE_BIN)/AutoStartMenu.exe $(VBOX_PATH_PACK_BUNDLE_TMP)/
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync ifdef VBOX_BRAND_WIN_AS_MENU
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(MKDIR) -p $(VBOX_PATH_PACK_BUNDLE_TMP)/Menu/Graphics/
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(CP) $(VBOX_BRAND_WIN_AS_CONTENT) $(VBOX_PATH_PACK_BUNDLE_TMP)/
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(CP) $(VBOX_BRAND_WIN_AS_MENU_CONTENT) $(VBOX_PATH_PACK_BUNDLE_TMP)/Menu/
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(CP) $(VBOX_BRAND_WIN_AS_MENU_CONTENT_GFX) $(VBOX_PATH_PACK_BUNDLE_TMP)/Menu/Graphics/
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync ifdef VBOX_WITH_COMBINED_PACKAGE
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(SED) -e 's/VBOXEXE/$(PACKAGE_NAME_MULTIARCH_FINAL)/g' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync --output $(VBOX_PATH_PACK_BUNDLE_TMP)/Menu/index.html \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_BRAND_WIN_AS_MENU)/index_combined.html
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(SED) -e 's/VBOX32EXE/$(VBOX_BRAND_WIN_INST_NAME.x86)/g' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync -e 's/VBOX64EXE/$(VBOX_BRAND_WIN_INST_NAME.amd64)/g' \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync --output $(VBOX_PATH_PACK_BUNDLE_TMP)/Menu/index.html \
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(VBOX_BRAND_WIN_AS_MENU)/index.html
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncifeq ($(KBUILD_TARGET_ARCH),amd64)
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync ifndef VBOX_WITH_COMBINED_PACKAGE
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync # Only needed if *not* combined package -- otherwise the 64-bit build
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync # has nothing to do here since the one and only amd64 .MSI file is already
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync # included in the x86 combined package.
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(REDIRECT) -C $(VBOX_PATH_PACK_BUNDLE_TMP) -- $(ZIP) -9r $@ .
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync # Do a bundle .zip in every case on x86. On a combined package this also
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync # will include the amd64 installer we left out in the block above (see comment).
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsync $(REDIRECT) -C $(VBOX_PATH_PACK_BUNDLE_TMP) -- $(ZIP) -9r $@ .
dee9e52b1688c0617890cbbd8a8488f9f315d1b7vboxsyncinclude $(KBUILD_PATH)/subfooter.kmk