Bug 1362496 - Add chrome-% for Firefox Desktop. r?pike draft
authorZibi Braniecki <zbraniecki@mozilla.com>
Mon, 08 May 2017 14:34:32 -0700
changeset 574446 011224b42a6659b8374bd64cbab411f4ef6bed92
parent 572160 96605941c0021795376d9c6ec1e458de2fac329e
child 627600 3f57c2dc48bb661cf0777cb8003c8f38315e1dc7
push id57714
push userbmo:gandalf@aviary.pl
push dateMon, 08 May 2017 21:36:29 +0000
reviewerspike
bugs1362496
milestone55.0a1
Bug 1362496 - Add chrome-% for Firefox Desktop. r?pike In order to be able to produce multi-locale Firefox Desktop, we need make chrome-% to work for browser/locales the same way as it works for mobile/android/locales. MozReview-Commit-ID: 9dm7YGZhr9C
browser/locales/Makefile.in
--- a/browser/locales/Makefile.in
+++ b/browser/locales/Makefile.in
@@ -109,16 +109,35 @@ endif
 	@$(MAKE) -C ../../devtools/client/locales AB_CD=$* XPI_NAME=locale-$* XPI_ROOT_APPID='$(XPI_ROOT_APPID)'
 	@$(MAKE) -B searchplugins AB_CD=$* XPI_NAME=locale-$*
 	@$(MAKE) libs AB_CD=$* XPI_NAME=locale-$* PREF_DIR=$(PREF_DIR)
 	@$(MAKE) -C $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales AB_CD=$* XPI_NAME=locale-$*
 ifdef NIGHTLY_BUILD
 	@$(MAKE) -C ../extensions/webcompat-reporter/locales AB_CD=$* XPI_NAME=locale-$*
 endif
 
+chrome-%:
+	@$(MAKE) -C ../../toolkit/locales chrome-$*
+	@$(MAKE) -C ../../services/sync/locales chrome AB_CD=$*
+	@$(MAKE) -C ../../extensions/spellcheck/locales chrome AB_CD=$*
+ifndef RELEASE_OR_BETA
+	@$(MAKE) -C ../extensions/formautofill/locale chrome AB_CD=$*
+endif
+	@$(MAKE) -C ../extensions/pocket/locale chrome AB_CD=$*
+ifndef RELEASE_OR_BETA
+	@$(MAKE) -C ../extensions/presentation/locale chrome AB_CD=$*
+endif
+	@$(MAKE) -C ../../intl/locales chrome AB_CD=$*
+	@$(MAKE) -C ../../devtools/client/locales chrome AB_CD=$*
+	@$(MAKE) chrome AB_CD=$*
+	@$(MAKE) -C $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales chrome AB_CD=$*
+ifdef NIGHTLY_BUILD
+	@$(MAKE) -C ../extensions/webcompat-reporter/locales chrome AB_CD=$*
+endif
+
 repackage-win32-installer: WIN32_INSTALLER_OUT=$(ABS_DIST)/$(PKG_INST_PATH)$(PKG_INST_BASENAME).exe
 repackage-win32-installer: $(call ESCAPE_WILDCARD,$(WIN32_INSTALLER_IN)) $(SUBMAKEFILES) libs-$(AB_CD)
 	@echo 'Repackaging $(WIN32_INSTALLER_IN) into $(WIN32_INSTALLER_OUT).'
 	$(MAKE) -C $(DEPTH)/$(MOZ_BRANDING_DIRECTORY) export
 	$(MAKE) -C ../installer/windows CONFIG_DIR=l10ngen l10ngen/setup.exe l10ngen/7zSD.sfx
 	$(MAKE) repackage-zip \
 	  AB_CD=$(AB_CD) \
 	  MOZ_PKG_FORMAT=SFX7Z \