зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1231379 - Disable omni.ja compression on desktop platforms r=catlee,glandium
--HG-- extra : rebase_source : c669b3d1ff093b40e8d8f46845948f4f9c18ae41
This commit is contained in:
Родитель
7a681c85f9
Коммит
c9be0d6fd9
|
@ -50,6 +50,7 @@ stage-package: $(MOZ_PKG_MANIFEST) $(MOZ_PKG_MANIFEST_DEPS)
|
||||||
) \
|
) \
|
||||||
$(if $(JARLOG_DIR),$(addprefix --jarlog ,$(wildcard $(JARLOG_FILE_AB_CD)))) \
|
$(if $(JARLOG_DIR),$(addprefix --jarlog ,$(wildcard $(JARLOG_FILE_AB_CD)))) \
|
||||||
$(if $(OPTIMIZEJARS),--optimizejars) \
|
$(if $(OPTIMIZEJARS),--optimizejars) \
|
||||||
|
$(if $(DISABLE_JAR_COMPRESSION),--disable-compression) \
|
||||||
$(addprefix --unify ,$(UNIFY_DIST)) \
|
$(addprefix --unify ,$(UNIFY_DIST)) \
|
||||||
$(MOZ_PKG_MANIFEST) $(DIST) $(DIST)/$(STAGEPATH)$(MOZ_PKG_DIR)$(if $(MOZ_PKG_MANIFEST),,$(_BINPATH)) \
|
$(MOZ_PKG_MANIFEST) $(DIST) $(DIST)/$(STAGEPATH)$(MOZ_PKG_DIR)$(if $(MOZ_PKG_MANIFEST),,$(_BINPATH)) \
|
||||||
$(if $(filter omni,$(MOZ_PACKAGER_FORMAT)),$(if $(NON_OMNIJAR_FILES),--non-resource $(NON_OMNIJAR_FILES)))
|
$(if $(filter omni,$(MOZ_PACKAGER_FORMAT)),$(if $(NON_OMNIJAR_FILES),--non-resource $(NON_OMNIJAR_FILES)))
|
||||||
|
|
|
@ -265,6 +265,9 @@ def main():
|
||||||
help='Enable jar optimizations')
|
help='Enable jar optimizations')
|
||||||
parser.add_argument('--unify', default='',
|
parser.add_argument('--unify', default='',
|
||||||
help='Base directory of another build to unify with')
|
help='Base directory of another build to unify with')
|
||||||
|
parser.add_argument('--disable-compression', action='store_false',
|
||||||
|
dest='compress', default=True,
|
||||||
|
help='Disable jar compression')
|
||||||
parser.add_argument('manifest', default=None, nargs='?',
|
parser.add_argument('manifest', default=None, nargs='?',
|
||||||
help='Manifest file name')
|
help='Manifest file name')
|
||||||
parser.add_argument('source', help='Source directory')
|
parser.add_argument('source', help='Source directory')
|
||||||
|
@ -286,10 +289,11 @@ def main():
|
||||||
if args.format == 'flat':
|
if args.format == 'flat':
|
||||||
formatter = FlatFormatter(copier)
|
formatter = FlatFormatter(copier)
|
||||||
elif args.format == 'jar':
|
elif args.format == 'jar':
|
||||||
formatter = JarFormatter(copier, optimize=args.optimizejars)
|
formatter = JarFormatter(copier, compress=args.compress, optimize=args.optimizejars)
|
||||||
elif args.format == 'omni':
|
elif args.format == 'omni':
|
||||||
formatter = OmniJarFormatter(copier,
|
formatter = OmniJarFormatter(copier,
|
||||||
buildconfig.substs['OMNIJAR_NAME'],
|
buildconfig.substs['OMNIJAR_NAME'],
|
||||||
|
compress=args.compress,
|
||||||
optimize=args.optimizejars,
|
optimize=args.optimizejars,
|
||||||
non_resources=args.non_resource)
|
non_resources=args.non_resource)
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -681,6 +681,11 @@ endif
|
||||||
|
|
||||||
ifneq (android,$(MOZ_WIDGET_TOOLKIT))
|
ifneq (android,$(MOZ_WIDGET_TOOLKIT))
|
||||||
OPTIMIZEJARS = 1
|
OPTIMIZEJARS = 1
|
||||||
|
ifneq (gonk,$(MOZ_WIDGET_TOOLKIT))
|
||||||
|
ifdef NIGHTLY_BUILD
|
||||||
|
DISABLE_JAR_COMPRESSION = 1
|
||||||
|
endif
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# A js binary is needed to perform verification of JavaScript minification.
|
# A js binary is needed to perform verification of JavaScript minification.
|
||||||
|
|
Загрузка…
Ссылка в новой задаче