зеркало из https://github.com/mozilla/pjs.git
bug 621692 - multi-locale repacks are broken on android r=mbrubeck a=blocking-fennec
This commit is contained in:
Родитель
8e4d0b5873
Коммит
190df81d9c
|
@ -104,6 +104,8 @@ RES_LAYOUT = \
|
||||||
|
|
||||||
RES_VALUES = res/values/colors.xml
|
RES_VALUES = res/values/colors.xml
|
||||||
|
|
||||||
|
AB_rCD = $(shell echo $(AB_CD) | sed -e s/-/-r/)
|
||||||
|
|
||||||
JAVA_CLASSPATH = $(ANDROID_SDK)/android.jar
|
JAVA_CLASSPATH = $(ANDROID_SDK)/android.jar
|
||||||
|
|
||||||
DEFAULT_BRANDPATH = $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales/en-US/brand.dtd
|
DEFAULT_BRANDPATH = $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales/en-US/brand.dtd
|
||||||
|
@ -124,7 +126,7 @@ MOZ_ANDROID_DRAWABLES += $(shell if test -e $(topsrcdir)/$(MOZ_BRANDING_DIRECTOR
|
||||||
include $(topsrcdir)/config/rules.mk
|
include $(topsrcdir)/config/rules.mk
|
||||||
|
|
||||||
ifneq ($(AB_CD),en-US)
|
ifneq ($(AB_CD),en-US)
|
||||||
LOCALIZED_STRINGS_XML = res/values-$(AB_CD)/strings.xml
|
LOCALIZED_STRINGS_XML = res/values-$(AB_rCD)/strings.xml
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Override the Java settings with some specific android settings
|
# Override the Java settings with some specific android settings
|
||||||
|
@ -177,8 +179,8 @@ res/values/strings.xml: $(DEFAULT_BRANDPATH) $(DEFAULT_STRINGSPATH)
|
||||||
$(srcdir)/strings.xml.in \
|
$(srcdir)/strings.xml.in \
|
||||||
> $@
|
> $@
|
||||||
|
|
||||||
res/values-$(AB_CD)/strings.xml: $(LOCALIZED_BRANDPATH) $(LOCALIZED_STRINGSPATH)
|
res/values-$(AB_rCD)/strings.xml: $(LOCALIZED_BRANDPATH) $(LOCALIZED_STRINGSPATH)
|
||||||
mkdir -p res/values-$(AB_CD)
|
mkdir -p res/values-$(AB_rCD)
|
||||||
$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) \
|
$(PYTHON) $(topsrcdir)/config/Preprocessor.py $(DEFINES) \
|
||||||
-DBRANDPATH="$(call core_abspath,$(LOCALIZED_BRANDPATH))" \
|
-DBRANDPATH="$(call core_abspath,$(LOCALIZED_BRANDPATH))" \
|
||||||
-DSTRINGSPATH="$(call core_abspath,$(LOCALIZED_STRINGSPATH))" \
|
-DSTRINGSPATH="$(call core_abspath,$(LOCALIZED_STRINGSPATH))" \
|
||||||
|
|
Загрузка…
Ссылка в новой задаче