Changeset 107005 in vbox for trunk/src/VBox/Installer/win
- Timestamp:
- Nov 14, 2024 3:51:06 PM (2 months ago)
- Location:
- trunk/src/VBox/Installer/win
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Installer/win/Makefile.kmk
r107004 r107005 477 477 478 478 # Note! Keep the list sorted for easier lookup. 479 VBOX_WIN_INST_ENV _FIXED:= \479 VBOX_WIN_INST_ENV := \ 480 480 -E 'KBUILD_TARGET_ARCH=$(KBUILD_TARGET_ARCH)' \ 481 481 -E 'KBUILD_TYPE=$(KBUILD_TYPE)' \ … … 551 551 -E 'VBOX_WITH_WEBSERVICES=$(if $(VBOX_WITH_WEBSERVICES),yes,no)' 552 552 553 # The bits that depends on $(lang) + the expand once stuff above.554 VBOX_WIN_INST_ENV = $(VBOX_WIN_INST_ENV_FIXED) \555 -E 'VBOX_CAB_COMPRESSION_LEVEL_COMMON=$(if-expr $(lang) == "en_US" && $(KBUILD_TARGET_ARCH) == "amd64",$(VBOX_CAB_COMPRESSION_LEVEL),none)' \556 -E 'VBOX_CAB_COMPRESSION_LEVEL=$(if-expr $(lang) == "en_US",$(VBOX_CAB_COMPRESSION_LEVEL),none)'557 558 553 # 559 554 # Building the main installer (en_US). … … 585 580 kmk_time $$(REDIRECT_EXT) $(VBOX_WIN_INST_ENV) -E WIX_TEMP='$$(subst /,\,$$(@D))' \ 586 581 -- $(VBOX_TOOLS_WIN_WIX_BIN) build \ 582 -defaultcompressionlevel high \ 587 583 -intermediatefolder $$(@D)/wix-temp/ \ 588 584 -loc $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl \ … … 644 640 kmk_time $$(REDIRECT_EXT) $(VBOX_WIN_INST_ENV) -E WIX_TEMP='$$(subst /,\,$$(@D))' \ 645 641 -- $(VBOX_TOOLS_WIN_WIX_BIN) build \ 642 -defaultcompressionlevel high \ 646 643 -intermediatefolder $$(@D)/wix-temp/ \ 647 644 -loc $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl \ … … 738 735 -- \ 739 736 $(VBOX_TOOLS_WIN_WIX_BIN) build $(filter-out $(VBOX_VERSION_STAMP),$$<) \ 737 -defaultcompressionlevel $(if-expr "$(lang)" == "en_US",high,none) \ 740 738 -intermediatefolder $$(@D)/wix-temp/ \ 741 739 $(VBOX_TOOLS_WIN_WIX_EXT) \ … … 746 744 # doing the repacking via the shell scripts. 747 745 $(CP) $(VBOX_WIN_INST_OUT_DIR)/VirtualBox_$(lang).wixlib $(VBOX_WIN_INST_REPACK_DIR)/ 748 749 746 endif 750 747 $(RM) -Rf -- $$(@D)/wix-temp/ … … 753 750 endef 754 751 752 ## @todo We generate rules for all the languages here, but only the en_US one is actually used. 753 ## This used to mess up the compression optimizations, since the compression level used to be 754 ## part of the Media tag in the VirtualBox_en_US.wixlib file. Omitting it and using the command 755 ## line option -defaultcompressionlevel for controlling it works around this. 755 756 $(foreach lang,$(VBOX_INSTALLER_LANGUAGES),\ 756 757 $(eval $(def_vbox_build_wixlib))) … … 785 786 -- \ 786 787 $(VBOX_TOOLS_WIN_WIX_BIN) build $(filter-out $(VBOX_VERSION_STAMP),$$<) \ 788 -defaultcompressionlevel high \ 787 789 -intermediatefolder $$(@D)/wix-temp/ \ 788 790 $(VBOX_TOOLS_WIN_WIX_EXT) \ … … 929 931 $(call MSG_L1,Creating language diff for $(lang)) 930 932 kmk_time $$(REDIRECT_EXT) -E WIX_TEMP='$$(subst /,\,$$(@D))' $(VBOX_WIN_INST_ENV) \ 931 -E 'VBOX_CAB_COMPRESSION_LEVEL=none' \932 -E 'VBOX_CAB_COMPRESSION_LEVEL_COMMON=none' \933 933 -- $(VBOX_TOOLS_WIN_WIX_BIN) build \ 934 -defaultcompressionlevel none \ 934 935 -intermediatefolder $$(@D)/wix-temp/ \ 935 936 -loc $(VBOX_WIN_INST_OUT_DIR)/NLS/Language_$(lang).wxl \ … … 938 939 -ext $(VBOX_TOOLS_WIN_WIXEXT_DIR)/WixToolset.Util.wixext.dll \ 939 940 -pdbtype none \ 940 -defaultcompressionlevel none \941 941 -out $$(@D)/$(PACKAGE_NAME_LANG)_$(lang).msi 942 942 $(REDIRECT) -C $$(@D) -- $$(VBOX_PATH_MSITRAN) -g $$< $(PACKAGE_NAME_LANG)_$(lang).msi $(lang).mst -
trunk/src/VBox/Installer/win/VirtualBox.wxs
r106986 r107005 152 152 -rw-rw-rw- 1 bird 0 135 874 578 2016-09-25 03:47 VirtualBox-5.1.51-r110887_en_US.msi 153 153 154 We set the level in the VBOX_CAB_COMPRESSION_LEVEL and VBOX_CAB_COMPRESSION_LEVEL_COMMON 155 environment variables so we don't waste time compressing and decompressing the intermediate 156 language MSIs and the common.cab that we're not going to use (x86). 154 We use the -defaultcompressionlevel command line option to control this. 157 155 --> 158 <Media Id="1" Cabinet="product.cab" EmbedCab="yes" CompressionLevel="$(env.VBOX_CAB_COMPRESSION_LEVEL)"/>156 <Media Id="1" Cabinet="product.cab" EmbedCab="yes" /> 159 157 <?if $(env.VBOX_WITH_MSM_INSTALL) = "no" ?> 160 158 <?if $(env.VBOX_WITH_COMBINED_PACKAGE) = "yes" ?> 161 <Media Id="2" Cabinet="common.cab" EmbedCab="no" CompressionLevel="$(env.VBOX_CAB_COMPRESSION_LEVEL_COMMON)"/>159 <Media Id="2" Cabinet="common.cab" EmbedCab="no" /> 162 160 <?endif?> 163 161 <?endif?>
Note:
See TracChangeset
for help on using the changeset viewer.