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

91 строка
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)
PREF_JS_EXPORTS = $(firstword $(wildcard $(LOCALE_SRCDIR)/mobile-l10n.js) \
@srcdir@/en-US/mobile-l10n.js )
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
clobber-zip:
$(RM) $(STAGEDIST)/chrome/$(AB_CD).jar \
$(STAGEDIST)/chrome/$(AB_CD).manifest \
$(STAGEDIST)/defaults/pref/mobile-l10n.js
$(RM) -r $(STAGEDIST)/dictionaries \
$(STAGEDIST)/hyphenation \
$(STAGEDIST)/defaults/profile \
$(STAGEDIST)/chrome/$(AB_CD)
# 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. 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
libs-%:
@$(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
chrome-%:
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-%: clobber-stage 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))
ifdef LIBXUL_SDK
GECKO_PLATFORM_INI_PATH="$(STAGEDIST)/../Frameworks/XUL.framework/Versions/$(MOZILLA_VERSION)/platform.ini"
else
GECKO_PLATFORM_INI_PATH="$(STAGEDIST)/platform.ini"
endif
FENNEC_APPLICATION_INI_PATH="$(STAGEDIST)/application.ini"
else
ifdef LIBXUL_SDK
GECKO_PLATFORM_INI_PATH="$(STAGEDIST)/xulrunner/platform.ini"
else
GECKO_PLATFORM_INI_PATH="$(STAGEDIST)/platform.ini"
endif
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
merge-%:
ifdef LOCALE_MERGEDIR
$(RM) -rf $(LOCALE_MERGEDIR)
MACOSX_DEPLOYMENT_TARGET= compare-locales -m $(LOCALE_MERGEDIR) $(srcdir)/l10n.ini $(L10NBASEDIR) $*
endif
@echo