Bug 655678 - Move startupcache precompilation to the common packaging rules, and opt-in in browser and xulrunner. r=khuey

--HG--
rename : browser/installer/precompile_cache.js => toolkit/mozapps/installer/precompile_cache.js
This commit is contained in:
Mike Hommey 2011-07-19 08:51:54 +02:00
parent 84658faf83
commit f7fab44c9e
4 changed files with 19 additions and 13 deletions

View File

@ -116,18 +116,7 @@ ifndef LIBXUL_SDK
INSTALL_SDK = 1
endif
ifneq (1_,$(if $(CROSS_COMPILE),1,0)_$(UNIVERSAL_BINARY))
ifdef RUN_TEST_PROGRAM
_ABS_RUN_TEST_PROGRAM = $(call core_abspath,$(RUN_TEST_PROGRAM))
endif
GENERATE_CACHE = \
$(_ABS_RUN_TEST_PROGRAM) $(LIBXUL_DIST)/bin/xpcshell$(BIN_SUFFIX) -g "$$PWD" -a "$$PWD" -f $(topsrcdir)/browser/installer/precompile_cache.js -e 'populate_startupcache("omni.jar", "startupCache.zip");' && \
rm -rf jsloader && \
$(UNZIP) startupCache.zip && \
rm startupCache.zip && \
$(ZIP) -r9m omni.jar jsloader
endif
GENERATE_CACHE = 1
include $(topsrcdir)/toolkit/mozapps/installer/packager.mk

View File

@ -383,7 +383,23 @@ MAKE_SDK = $(CREATE_FINAL_TAR) - $(MOZ_APP_NAME)-sdk | bzip2 -vf > $(SDK)
endif
ifdef MOZ_OMNIJAR
GENERATE_CACHE ?= true
ifdef GENERATE_CACHE
ifneq (1_,$(if $(CROSS_COMPILE),1,0)_$(UNIVERSAL_BINARY))
ifdef RUN_TEST_PROGRAM
_ABS_RUN_TEST_PROGRAM = $(call core_abspath,$(RUN_TEST_PROGRAM))
endif
GENERATE_CACHE = \
$(_ABS_RUN_TEST_PROGRAM) $(LIBXUL_DIST)/bin/xpcshell$(BIN_SUFFIX) -g "$$PWD" -a "$$PWD" -f $(topsrcdir)/toolkit/mozapps/installer/precompile_cache.js -e 'populate_startupcache("omni.jar", "startupCache.zip");' && \
rm -rf jsloader && \
$(UNZIP) startupCache.zip && \
rm startupCache.zip && \
$(ZIP) -r9m omni.jar jsloader
endif
else
GENERATE_CACHE = true
endif
OMNIJAR_FILES = \
chrome \

View File

@ -65,6 +65,7 @@ endif
include $(topsrcdir)/config/rules.mk
INSTALL_SDK = 1
GENERATE_CACHE = 1
include $(topsrcdir)/toolkit/mozapps/installer/packager.mk