gecko-dev/mobile/android/locales/Makefile.in

85 строки
3.1 KiB
Makefile
Исходник Обычный вид История

2012-05-21 15:12:37 +04:00
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
Bug 455145: Support for localizing Fennec, r=mfinkle --HG-- rename : mobile/chrome/Makefile.in => mobile/locales/Makefile.in rename : mobile/chrome/locale/en-US/brand/brand.dtd => mobile/locales/en-US/chrome/brand/brand.dtd rename : mobile/chrome/locale/en-US/brand/brand.properties => mobile/locales/en-US/chrome/brand/brand.properties rename : mobile/chrome/locale/en-US/browser.dtd => mobile/locales/en-US/chrome/browser.dtd rename : mobile/chrome/locale/en-US/browser.properties => mobile/locales/en-US/chrome/browser.properties rename : mobile/chrome/locale/en-US/overrides/netError.dtd => mobile/locales/en-US/chrome/overrides/netError.dtd rename : mobile/chrome/locale/en-US/preferences.dtd => mobile/locales/en-US/chrome/preferences.dtd rename : mobile/chrome/locale/en-US/region.properties => mobile/locales/en-US/chrome/region.properties rename : mobile/chrome/locale/en-US/search.properties => mobile/locales/en-US/chrome/search.properties rename : mobile/chrome/locale/en-US/searchplugins/amazondotcom.xml => mobile/locales/en-US/chrome/searchplugins/amazondotcom.xml rename : mobile/chrome/locale/en-US/searchplugins/answers.xml => mobile/locales/en-US/chrome/searchplugins/answers.xml rename : mobile/chrome/locale/en-US/searchplugins/creativecommons.xml => mobile/locales/en-US/chrome/searchplugins/creativecommons.xml rename : mobile/chrome/locale/en-US/searchplugins/eBay.xml => mobile/locales/en-US/chrome/searchplugins/eBay.xml rename : mobile/chrome/locale/en-US/searchplugins/google.xml => mobile/locales/en-US/chrome/searchplugins/google.xml rename : mobile/chrome/locale/en-US/searchplugins/list.txt => mobile/locales/en-US/chrome/searchplugins/list.txt rename : mobile/chrome/locale/en-US/searchplugins/wikipedia.xml => mobile/locales/en-US/chrome/searchplugins/wikipedia.xml rename : mobile/chrome/locale/en-US/searchplugins/yahoo.xml => mobile/locales/en-US/chrome/searchplugins/yahoo.xml rename : mobile/chrome/locale/en-US/shortcuts.properties => mobile/locales/en-US/chrome/shortcuts.properties
2008-10-01 02:03:16 +04:00
include $(topsrcdir)/config/config.mk
Bug 455145: Support for localizing Fennec, r=mfinkle --HG-- rename : mobile/chrome/Makefile.in => mobile/locales/Makefile.in rename : mobile/chrome/locale/en-US/brand/brand.dtd => mobile/locales/en-US/chrome/brand/brand.dtd rename : mobile/chrome/locale/en-US/brand/brand.properties => mobile/locales/en-US/chrome/brand/brand.properties rename : mobile/chrome/locale/en-US/browser.dtd => mobile/locales/en-US/chrome/browser.dtd rename : mobile/chrome/locale/en-US/browser.properties => mobile/locales/en-US/chrome/browser.properties rename : mobile/chrome/locale/en-US/overrides/netError.dtd => mobile/locales/en-US/chrome/overrides/netError.dtd rename : mobile/chrome/locale/en-US/preferences.dtd => mobile/locales/en-US/chrome/preferences.dtd rename : mobile/chrome/locale/en-US/region.properties => mobile/locales/en-US/chrome/region.properties rename : mobile/chrome/locale/en-US/search.properties => mobile/locales/en-US/chrome/search.properties rename : mobile/chrome/locale/en-US/searchplugins/amazondotcom.xml => mobile/locales/en-US/chrome/searchplugins/amazondotcom.xml rename : mobile/chrome/locale/en-US/searchplugins/answers.xml => mobile/locales/en-US/chrome/searchplugins/answers.xml rename : mobile/chrome/locale/en-US/searchplugins/creativecommons.xml => mobile/locales/en-US/chrome/searchplugins/creativecommons.xml rename : mobile/chrome/locale/en-US/searchplugins/eBay.xml => mobile/locales/en-US/chrome/searchplugins/eBay.xml rename : mobile/chrome/locale/en-US/searchplugins/google.xml => mobile/locales/en-US/chrome/searchplugins/google.xml rename : mobile/chrome/locale/en-US/searchplugins/list.txt => mobile/locales/en-US/chrome/searchplugins/list.txt rename : mobile/chrome/locale/en-US/searchplugins/wikipedia.xml => mobile/locales/en-US/chrome/searchplugins/wikipedia.xml rename : mobile/chrome/locale/en-US/searchplugins/yahoo.xml => mobile/locales/en-US/chrome/searchplugins/yahoo.xml rename : mobile/chrome/locale/en-US/shortcuts.properties => mobile/locales/en-US/chrome/shortcuts.properties
2008-10-01 02:03:16 +04:00
SUBMAKEFILES += \
$(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/Makefile \
$(DEPTH)/$(MOZ_BRANDING_DIRECTORY)/locales/Makefile \
$(DEPTH)/mobile/locales/Makefile \
$(NULL)
L10N_PREF_JS_EXPORTS = $(firstword $(wildcard $(LOCALE_SRCDIR)/mobile-l10n.js) \
$(srcdir)/en-US/mobile-l10n.js )
L10N_PREF_JS_EXPORTS_PATH = $(FINAL_TARGET)/$(PREF_DIR)
L10N_PREF_JS_EXPORTS_FLAGS = $(PREF_PPFLAGS) --silence-missing-directive-warnings
PP_TARGETS += L10N_PREF_JS_EXPORTS
Bug 455145: Support for localizing Fennec, r=mfinkle --HG-- rename : mobile/chrome/Makefile.in => mobile/locales/Makefile.in rename : mobile/chrome/locale/en-US/brand/brand.dtd => mobile/locales/en-US/chrome/brand/brand.dtd rename : mobile/chrome/locale/en-US/brand/brand.properties => mobile/locales/en-US/chrome/brand/brand.properties rename : mobile/chrome/locale/en-US/browser.dtd => mobile/locales/en-US/chrome/browser.dtd rename : mobile/chrome/locale/en-US/browser.properties => mobile/locales/en-US/chrome/browser.properties rename : mobile/chrome/locale/en-US/overrides/netError.dtd => mobile/locales/en-US/chrome/overrides/netError.dtd rename : mobile/chrome/locale/en-US/preferences.dtd => mobile/locales/en-US/chrome/preferences.dtd rename : mobile/chrome/locale/en-US/region.properties => mobile/locales/en-US/chrome/region.properties rename : mobile/chrome/locale/en-US/search.properties => mobile/locales/en-US/chrome/search.properties rename : mobile/chrome/locale/en-US/searchplugins/amazondotcom.xml => mobile/locales/en-US/chrome/searchplugins/amazondotcom.xml rename : mobile/chrome/locale/en-US/searchplugins/answers.xml => mobile/locales/en-US/chrome/searchplugins/answers.xml rename : mobile/chrome/locale/en-US/searchplugins/creativecommons.xml => mobile/locales/en-US/chrome/searchplugins/creativecommons.xml rename : mobile/chrome/locale/en-US/searchplugins/eBay.xml => mobile/locales/en-US/chrome/searchplugins/eBay.xml rename : mobile/chrome/locale/en-US/searchplugins/google.xml => mobile/locales/en-US/chrome/searchplugins/google.xml rename : mobile/chrome/locale/en-US/searchplugins/list.txt => mobile/locales/en-US/chrome/searchplugins/list.txt rename : mobile/chrome/locale/en-US/searchplugins/wikipedia.xml => mobile/locales/en-US/chrome/searchplugins/wikipedia.xml rename : mobile/chrome/locale/en-US/searchplugins/yahoo.xml => mobile/locales/en-US/chrome/searchplugins/yahoo.xml rename : mobile/chrome/locale/en-US/shortcuts.properties => mobile/locales/en-US/chrome/shortcuts.properties
2008-10-01 02:03:16 +04:00
include $(topsrcdir)/config/rules.mk
include $(topsrcdir)/toolkit/locales/l10n.mk
# need to kill stage for repacks for now due to the library moves
# in PACKAGE and UNPACKAGE
# also clean up potential left-overs of multi-locale builds, notably
# values-*/strings.xml and raw-*/suggestedsites.json.
# Those would be in the way of a single locale build, which this
# target is for
clobber-stage:
$(RM) -rf $(STAGEDIST)
$(RM) $(DEPTH)/mobile/android/base/res/values-*/strings.xml
$(RM) $(DEPTH)/mobile/android/base/res/raw-*/suggestedsites.json
# merge if we're not en-US, using conditional function as we need
# the current value of AB_CD
libs-%: AB_CD=$*
libs-%:
$(if $(filter en-US,$(AB_CD)),, @$(MAKE) merge-$*)
@$(MAKE) -C $(DEPTH)/mobile/locales libs-$*
@$(MAKE) libs AB_CD=$* XPI_NAME=locale-$* PREF_DIR=defaults/pref
bug 708015, support both native and xul l10n, r=stas, dougt --HG-- rename : mobile/android/locales/Makefile.in => mobile/locales/Makefile.in rename : mobile/android/locales/en-US/chrome/region.properties => mobile/locales/en-US/chrome/region.properties rename : mobile/android/locales/en-US/chrome/overrides/appstrings.properties => mobile/locales/en-US/overrides/appstrings.properties rename : mobile/android/locales/en-US/chrome/overrides/netError.dtd => mobile/locales/en-US/overrides/netError.dtd rename : mobile/android/locales/en-US/chrome/overrides/passwordmgr.properties => mobile/locales/en-US/overrides/passwordmgr.properties rename : mobile/android/locales/en-US/profile/bookmarks.inc => mobile/locales/en-US/profile/bookmarks.inc rename : mobile/android/locales/en-US/searchplugins/amazondotcom.xml => mobile/locales/en-US/searchplugins/amazondotcom.xml rename : mobile/android/locales/en-US/searchplugins/google.xml => mobile/locales/en-US/searchplugins/google.xml rename : mobile/android/locales/en-US/searchplugins/list.txt => mobile/locales/en-US/searchplugins/list.txt rename : mobile/android/locales/en-US/searchplugins/twitter.xml => mobile/locales/en-US/searchplugins/twitter.xml rename : mobile/android/locales/en-US/searchplugins/wikipedia.xml => mobile/locales/en-US/searchplugins/wikipedia.xml rename : mobile/android/locales/en-US/searchplugins/yahoo.xml => mobile/locales/en-US/searchplugins/yahoo.xml rename : mobile/android/locales/filter.py => mobile/locales/filter.py rename : mobile/android/locales/generic/profile/bookmarks.json.in => mobile/locales/generic/profile/bookmarks.json.in rename : mobile/android/locales/jar.mn => mobile/locales/jar.mn rename : mobile/android/locales/l10n.ini => mobile/locales/l10n.ini
2011-12-22 03:10:06 +04:00
ifeq ($(OS_TARGET),Android)
@$(MAKE) -C $(DEPTH)/mobile/android/base/locales AB_CD=$* XPI_NAME=locale-$*
bug 708015, support both native and xul l10n, r=stas, dougt --HG-- rename : mobile/android/locales/Makefile.in => mobile/locales/Makefile.in rename : mobile/android/locales/en-US/chrome/region.properties => mobile/locales/en-US/chrome/region.properties rename : mobile/android/locales/en-US/chrome/overrides/appstrings.properties => mobile/locales/en-US/overrides/appstrings.properties rename : mobile/android/locales/en-US/chrome/overrides/netError.dtd => mobile/locales/en-US/overrides/netError.dtd rename : mobile/android/locales/en-US/chrome/overrides/passwordmgr.properties => mobile/locales/en-US/overrides/passwordmgr.properties rename : mobile/android/locales/en-US/profile/bookmarks.inc => mobile/locales/en-US/profile/bookmarks.inc rename : mobile/android/locales/en-US/searchplugins/amazondotcom.xml => mobile/locales/en-US/searchplugins/amazondotcom.xml rename : mobile/android/locales/en-US/searchplugins/google.xml => mobile/locales/en-US/searchplugins/google.xml rename : mobile/android/locales/en-US/searchplugins/list.txt => mobile/locales/en-US/searchplugins/list.txt rename : mobile/android/locales/en-US/searchplugins/twitter.xml => mobile/locales/en-US/searchplugins/twitter.xml rename : mobile/android/locales/en-US/searchplugins/wikipedia.xml => mobile/locales/en-US/searchplugins/wikipedia.xml rename : mobile/android/locales/en-US/searchplugins/yahoo.xml => mobile/locales/en-US/searchplugins/yahoo.xml rename : mobile/android/locales/filter.py => mobile/locales/filter.py rename : mobile/android/locales/generic/profile/bookmarks.json.in => mobile/locales/generic/profile/bookmarks.json.in rename : mobile/android/locales/jar.mn => mobile/locales/jar.mn rename : mobile/android/locales/l10n.ini => mobile/locales/l10n.ini
2011-12-22 03:10:06 +04:00
endif
# Tailored target to just add the chrome processing for multi-locale builds
# merge if we're not en-US, using conditional function as we need
# the current value of AB_CD
chrome-%: AB_CD=$*
chrome-%: IS_LANGUAGE_REPACK=1
chrome-%:
$(if $(filter en-US,$(AB_CD)),, @$(MAKE) merge-$*)
bug 708015, support both native and xul l10n, r=stas, dougt --HG-- rename : mobile/android/locales/Makefile.in => mobile/locales/Makefile.in rename : mobile/android/locales/en-US/chrome/region.properties => mobile/locales/en-US/chrome/region.properties rename : mobile/android/locales/en-US/chrome/overrides/appstrings.properties => mobile/locales/en-US/overrides/appstrings.properties rename : mobile/android/locales/en-US/chrome/overrides/netError.dtd => mobile/locales/en-US/overrides/netError.dtd rename : mobile/android/locales/en-US/chrome/overrides/passwordmgr.properties => mobile/locales/en-US/overrides/passwordmgr.properties rename : mobile/android/locales/en-US/profile/bookmarks.inc => mobile/locales/en-US/profile/bookmarks.inc rename : mobile/android/locales/en-US/searchplugins/amazondotcom.xml => mobile/locales/en-US/searchplugins/amazondotcom.xml rename : mobile/android/locales/en-US/searchplugins/google.xml => mobile/locales/en-US/searchplugins/google.xml rename : mobile/android/locales/en-US/searchplugins/list.txt => mobile/locales/en-US/searchplugins/list.txt rename : mobile/android/locales/en-US/searchplugins/twitter.xml => mobile/locales/en-US/searchplugins/twitter.xml rename : mobile/android/locales/en-US/searchplugins/wikipedia.xml => mobile/locales/en-US/searchplugins/wikipedia.xml rename : mobile/android/locales/en-US/searchplugins/yahoo.xml => mobile/locales/en-US/searchplugins/yahoo.xml rename : mobile/android/locales/filter.py => mobile/locales/filter.py rename : mobile/android/locales/generic/profile/bookmarks.json.in => mobile/locales/generic/profile/bookmarks.json.in rename : mobile/android/locales/jar.mn => mobile/locales/jar.mn rename : mobile/android/locales/l10n.ini => mobile/locales/l10n.ini
2011-12-22 03:10:06 +04:00
@$(MAKE) -C $(DEPTH)/mobile/locales chrome-$*
@$(MAKE) chrome AB_CD=$*
ifeq ($(OS_TARGET),Android)
@$(MAKE) -C $(DEPTH)/mobile/android/base/locales chrome-$*
endif
# 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.
installers-%: IS_LANGUAGE_REPACK=1
installers-%:
@$(MAKE) clobber-stage
@$(MAKE) libs-$*
@$(MAKE) repackage-zip-$*
@echo 'repackaging done'
# When we unpack fennec on MacOS X the platform.ini and application.ini are in slightly
# different locations that on all other platforms
ifeq (Darwin, $(OS_ARCH))
GECKO_PLATFORM_INI_PATH='$(STAGEDIST)/platform.ini'
FENNEC_APPLICATION_INI_PATH='$(STAGEDIST)/application.ini'
else
GECKO_PLATFORM_INI_PATH='$(STAGEDIST)/platform.ini'
FENNEC_APPLICATION_INI_PATH='$(STAGEDIST)/application.ini'
endif
ident:
@printf 'gecko_revision '
@$(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(GECKO_PLATFORM_INI_PATH) Build SourceStamp
@printf 'fennec_revision '
@$(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(FENNEC_APPLICATION_INI_PATH) App SourceStamp
@printf 'buildid '
@$(PYTHON) $(topsrcdir)/config/printconfigsetting.py $(FENNEC_APPLICATION_INI_PATH) App BuildID