Bug 1413240 - Build webext langpack for mobile/android. r=gandalf

This cargo cults a few things from browser/ and works when following
the instructions from
https://bugzilla.mozilla.org/show_bug.cgi?id=1413240#c0.

MozReview-Commit-ID: ciA7nfc8BR

--HG--
extra : rebase_source : 30edde6d670dd9a081a691959d298066895ab335
This commit is contained in:
Nick Alexander 2017-12-15 12:19:15 -08:00
parent 7a04621843
commit 93938b5b2b
2 changed files with 10 additions and 2 deletions

View File

@ -56,8 +56,7 @@ wget-en-US:
# make -j1 because dependencies in l10n build targets don't work
# with parallel builds
# Not exposing langpack-% because that doesn't work on Android
merge-% installers-% chrome-%:
merge-% installers-% langpack-% chrome-%:
$(MAKE) -j1 -C mobile/android/locales $@
ifdef ENABLE_TESTS

View File

@ -18,6 +18,12 @@ PP_TARGETS += L10N_PREF_JS_EXPORTS
include $(topsrcdir)/config/rules.mk
# Required for l10n.mk - defines a list of app sub dirs that should
# be included in langpack xpis.
DIST_SUBDIRS = $(DIST_SUBDIR)
MOZ_LANGPACK_EID=langpack-$(AB_CD)@firefox.mozilla.org
include $(topsrcdir)/toolkit/locales/l10n.mk
# need to kill stage for repacks for now due to the library moves
@ -56,6 +62,8 @@ ifeq ($(OS_TARGET),Android)
@$(MAKE) -C $(DEPTH)/mobile/android/base/locales chrome-$*
endif
langpack: langpack-$(AB_CD)
# This is a generic target that will make a langpack and repack tarball
# builds. It is called from the tinderbox scripts. Alter it with caution.
@ -63,6 +71,7 @@ installers-%: IS_LANGUAGE_REPACK=1
installers-%:
@$(MAKE) clobber-stage
@$(MAKE) libs-$*
@$(MAKE) package-langpack-$*
@$(MAKE) repackage-zip-$*
@echo 'repackaging done'