Permalink
Browse files

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
  • Loading branch information...
1 parent 6984257 commit 9268d30025d01abf2aef7eae2e88c946bded99fe @glandium glandium committed Jul 19, 2011
@@ -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
@@ -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 \
@@ -65,6 +65,7 @@ endif
include $(topsrcdir)/config/rules.mk
INSTALL_SDK = 1
+GENERATE_CACHE = 1
include $(topsrcdir)/toolkit/mozapps/installer/packager.mk

0 comments on commit 9268d30

Please sign in to comment.