Changeset 107015 in vbox for trunk/src/VBox/Installer/win/Makefile.kmk
- Timestamp:
- Nov 15, 2024 11:20:04 AM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/win/Makefile.kmk
r107009 r107015 100 100 VBOX_WIN_INST_OUT_DIR := $(PATH_TARGET)/Installer/win 101 101 VBOX_WIN_INST_REPACK_DIR := $(PATH_OUT)/repack 102 103 # Translate our architecture names to MSI platform/arch. 104 VBOX_INS_PROD_ARCH.amd64 = x64 105 VBOX_INS_PROD_ARCH.arm64 = Arm64 106 VBOX_INS_PROD_ARCH.x86 = Intel 107 VBOX_INS_PROD_ARCH := $(VBOX_INS_PROD_ARCH.$(KBUILD_TARGET_ARCH)) 108 ifeq ($(VBOX_INS_PROD_ARCH),) 109 $(error VBOX_INS_PROD_ARCH is empty!) 110 endif 102 111 103 112 # Note: en_US *must* come first for the dependency file generation. … … 622 631 kmk_time $$(REDIRECT_EXT) $(VBOX_WIN_INST_ENV) -E WIX_TEMP='$$(subst /,\,$$(@D))' \ 623 632 -- $(VBOX_TOOLS_WIN_WIX_BIN) build \ 624 -defaultcompressionlevel high \ 633 -arch "$(VBOX_INS_PROD_ARCH)" \ 634 -defaultcompressionlevel "$(VBOX_CAB_COMPRESSION_LEVEL)" \ 625 635 -intermediatefolder $$(@D)/wix-temp/ \ 626 636 -loc $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl \ … … 682 692 kmk_time $$(REDIRECT_EXT) $(VBOX_WIN_INST_ENV) -E WIX_TEMP='$$(subst /,\,$$(@D))' \ 683 693 -- $(VBOX_TOOLS_WIN_WIX_BIN) build \ 684 -defaultcompressionlevel high \ 694 -arch "$(VBOX_INS_PROD_ARCH)" \ 695 -defaultcompressionlevel "$(VBOX_CAB_COMPRESSION_LEVEL)" \ 685 696 -intermediatefolder $$(@D)/wix-temp/ \ 686 697 -loc $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl \ … … 776 787 -- \ 777 788 $(VBOX_TOOLS_WIN_WIX_BIN) build $(filter-out $(VBOX_VERSION_STAMP),$<) \ 778 -defaultcompressionlevel high \ 789 -arch "$(VBOX_INS_PROD_ARCH)" \ 790 -defaultcompressionlevel "$(VBOX_CAB_COMPRESSION_LEVEL)" \ 779 791 -intermediatefolder $(@D)/wix-temp/ \ 780 792 $(VBOX_TOOLS_WIN_WIX_EXT) \ … … 818 830 -- \ 819 831 $(VBOX_TOOLS_WIN_WIX_BIN) build $(filter-out $(VBOX_VERSION_STAMP),$$<) \ 820 -defaultcompressionlevel high \ 832 -arch "$(VBOX_INS_PROD_ARCH)" \ 833 -defaultcompressionlevel "$(VBOX_CAB_COMPRESSION_LEVEL)" \ 821 834 -intermediatefolder $$(@D)/wix-temp/ \ 822 835 $(VBOX_TOOLS_WIN_WIX_EXT) \ … … 969 982 kmk_time $$(REDIRECT_EXT) -E WIX_TEMP='$$(subst /,\,$$(@D))' $(VBOX_WIN_INST_ENV) \ 970 983 -- $(VBOX_TOOLS_WIN_WIX_BIN) build \ 984 -arch "$(VBOX_INS_PROD_ARCH)" \ 971 985 -defaultcompressionlevel none \ 972 986 -intermediatefolder $$(@D)/wix-temp/ \ … … 991 1005 992 1006 # Create WISUMINFO argument. 993 VBOX_INS_PROD_ARCH.amd64 = x64994 VBOX_INS_PROD_ARCH.arm64 = Arm64995 VBOX_INS_PROD_ARCH.x86 = Intel996 VBOX_INS_PROD_ARCH := $(VBOX_INS_PROD_ARCH.$(KBUILD_TARGET_ARCH))997 ifeq ($(VBOX_INS_PROD_ARCH),)998 $(error VBOX_INS_PROD_ARCH is empty!)999 endif1000 1007 VBOX_INS_PROD_LANG := 7="$(VBOX_INS_PROD_ARCH);1033 1001 1008 $(foreach lang, $(filter-out en_US,$(VBOX_INSTALLER_LANGUAGES))\ … … 1004 1011 1005 1012 # The multilingual installer rule. 1013 $(call KB_FN_AUTO_CMD_DEPS,$(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG).msi) 1006 1014 $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG).msi \ 1007 1015 + $(VBOX_WIN_INST_REPACK_DIR)/2-multilingual-$(PACKAGE_NAME_LANG).cmd: \ 1008 1016 $(VBOX_WIN_INST_OUT_DIR)/en_US/$(PACKAGE_NAME_LANG)_en_US.msi \ 1009 1017 $(foreach lang,$(filter-out en_US,$(VBOX_INSTALLER_LANGUAGES)),$(VBOX_WIN_INST_OUT_DIR)/$(lang)/$(lang).mst) 1018 $(call KB_FN_AUTO_CMD_DEPS_COMMANDS) 1010 1019 $(call MSG_L1,Creating final multilingual MSI) 1011 1020 $(QUIET)$(RM) -f -- \ … … 1018 1027 1019 1028 $(REDIRECT) -C $(@D) -- cscript.exe /nologo $(VBOX_PATH_WISUBSTG) $(@F) 1029 $(REDIRECT) -C $(@D) -- cscript.exe /nologo $(VBOX_PATH_WISUMINFO) $@ 1020 1030 $(REDIRECT) -C $(@D) -- cscript.exe /nologo $(VBOX_PATH_WISUMINFO) $@ $(VBOX_INS_PROD_LANG) 1031 $(REDIRECT) -C $(@D) -- cscript.exe /nologo $(VBOX_PATH_WISUMINFO) $@ 1021 1032 $(call VBOX_SIGN_MSI_FN,$@,$(VBOX_PRODUCT) $(VBOX_VERSION_STRING)r$(VBOX_SVN_REV) ($(KBUILD_TARGET_ARCH)),,,disable-dual-signing) 1022 1033 … … 1034 1045 'call sign-sha1.cmd $(@F) || exit /b1' \ 1035 1046 ) ) \ 1036 1047 $(if-expr defined(VBOX_WITH_COMBINED_PACKAGE),'copy /y "$(@F)" "$(notdir $(PACKAGE_NAME_FINAL))" || exit /b1',) \ 1037 1048 '@echo Created multilanguage MSI: $(notdir $(PACKAGE_NAME_FINAL))' 1038 1039 # Copy multilingual installer to bin. 1049 $(call MSG_L1,Start validation of "$@" - errors will be ignored) 1050 -$(REDIRECT) -- $(VBOX_TOOLS_WIN_WIX_BIN) msi validate "$@" 1051 $(call MSG_L1,Finished validating "$@" - any errors was ignored) 1052 1053 1054 # Copy multilingual installer to bin, deleting any older .msi files to avoid wasting space. 1040 1055 $(PACKAGE_NAME_FINAL): $(VBOX_WIN_INST_OUT_DIR)/$(PACKAGE_NAME_LANG).msi | $$(dir $$@) 1041 1056 $(QUIET)$(RM) -f $(wildcard $(@D)/$(PACKAGE_BASE)-r*$(if-expr defined(VBOX_WITH_COMBINED_PACKAGE),_$(KBUILD_TARGET_ARCH),).msi)
Note:
See TracChangeset
for help on using the changeset viewer.