mobile/android/locales/Makefile.in

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/mobile/android/locales/Makefile.in	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,90 @@
     1.4 +# This Source Code Form is subject to the terms of the Mozilla Public
     1.5 +# License, v. 2.0. If a copy of the MPL was not distributed with this
     1.6 +# file, You can obtain one at http://mozilla.org/MPL/2.0/.
     1.7 +
     1.8 +include $(topsrcdir)/config/config.mk
     1.9 +
    1.10 +SUBMAKEFILES += \
    1.11 +        $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/Makefile \
    1.12 +        $(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales/Makefile \
    1.13 +        $(DEPTH)/mobile/locales/Makefile \
    1.14 +        $(NULL)
    1.15 +
    1.16 +PREF_JS_EXPORTS = $(firstword $(wildcard $(LOCALE_SRCDIR)/mobile-l10n.js) \
    1.17 +                       @srcdir@/en-US/mobile-l10n.js )
    1.18 +
    1.19 +include $(topsrcdir)/config/rules.mk
    1.20 +
    1.21 +include $(topsrcdir)/toolkit/locales/l10n.mk
    1.22 +
    1.23 +clobber-zip:
    1.24 +	$(RM) $(STAGEDIST)/chrome/$(AB_CD).jar \
    1.25 +	  $(STAGEDIST)/chrome/$(AB_CD).manifest \
    1.26 +	  $(STAGEDIST)/defaults/pref/mobile-l10n.js
    1.27 +	$(RM) -r $(STAGEDIST)/dictionaries \
    1.28 +	  $(STAGEDIST)/hyphenation \
    1.29 +	  $(STAGEDIST)/defaults/profile \
    1.30 +	  $(STAGEDIST)/chrome/$(AB_CD)
    1.31 +
    1.32 +# need to kill stage for repacks for now due to the library moves
    1.33 +# in PACKAGE and UNPACKAGE
    1.34 +# also clean up potential left-overs of multi-locale builds, notably
    1.35 +# values-*/strings.xml. Those would be in the way of a single locale build,
    1.36 +# which this target is for
    1.37 +clobber-stage:
    1.38 +	$(RM) -rf $(STAGEDIST)
    1.39 +	$(RM) $(DEPTH)/mobile/android/base/res/values-*/strings.xml
    1.40 +
    1.41 +libs-%:
    1.42 +	@$(MAKE) -C $(DEPTH)/mobile/locales libs-$*
    1.43 +	@$(MAKE) libs AB_CD=$* XPI_NAME=locale-$* PREF_DIR=defaults/pref
    1.44 +ifeq ($(OS_TARGET),Android)
    1.45 +	@$(MAKE) -C $(DEPTH)/mobile/android/base/locales AB_CD=$* XPI_NAME=locale-$*
    1.46 +endif
    1.47 +
    1.48 +# Tailored target to just add the chrome processing for multi-locale builds
    1.49 +chrome-%:
    1.50 +	@$(MAKE) -C $(DEPTH)/mobile/locales chrome-$*
    1.51 +	@$(MAKE) chrome AB_CD=$*
    1.52 +ifeq ($(OS_TARGET),Android)
    1.53 +	@$(MAKE) -C $(DEPTH)/mobile/android/base/locales chrome-$*
    1.54 +endif
    1.55 +
    1.56 +# This is a generic target that will make a langpack and repack tarball
    1.57 +# builds. It is called from the tinderbox scripts. Alter it with caution.
    1.58 +
    1.59 +installers-%: clobber-stage repackage-zip-%
    1.60 +	@echo 'repackaging done'
    1.61 +
    1.62 +# When we unpack fennec on MacOS X the platform.ini and application.ini are in slightly
    1.63 +# different locations that on all other platforms
    1.64 +ifeq (Darwin, $(OS_ARCH))
    1.65 +ifdef LIBXUL_SDK
    1.66 +GECKO_PLATFORM_INI_PATH='$(STAGEDIST)/../Frameworks/XUL.framework/Versions/$(MOZILLA_VERSION)/platform.ini'
    1.67 +else
    1.68 +GECKO_PLATFORM_INI_PATH='$(STAGEDIST)/platform.ini'
    1.69 +endif
    1.70 +FENNEC_APPLICATION_INI_PATH='$(STAGEDIST)/application.ini'
    1.71 +else
    1.72 +ifdef LIBXUL_SDK
    1.73 +GECKO_PLATFORM_INI_PATH='$(STAGEDIST)/xulrunner/platform.ini'
    1.74 +else
    1.75 +GECKO_PLATFORM_INI_PATH='$(STAGEDIST)/platform.ini'
    1.76 +endif
    1.77 +FENNEC_APPLICATION_INI_PATH='$(STAGEDIST)/application.ini'
    1.78 +endif
    1.79 +
    1.80 +ident:
    1.81 +	@printf 'gecko_revision '
    1.82 +	@$(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(GECKO_PLATFORM_INI_PATH) Build SourceStamp
    1.83 +	@printf 'fennec_revision '
    1.84 +	@$(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(FENNEC_APPLICATION_INI_PATH) App SourceStamp
    1.85 +	@printf 'buildid '
    1.86 +	@$(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(FENNEC_APPLICATION_INI_PATH) App BuildID
    1.87 +
    1.88 +merge-%:
    1.89 +ifdef LOCALE_MERGEDIR
    1.90 +	$(RM) -rf $(LOCALE_MERGEDIR)
    1.91 +	MACOSX_DEPLOYMENT_TARGET= compare-locales -m $(LOCALE_MERGEDIR) $(srcdir)/l10n.ini $(L10NBASEDIR) $*
    1.92 +endif
    1.93 +	@echo

mercurial