2016-07-14 19:16:42 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
2013-02-26 00:47:21 +04:00
|
|
|
# vim: set filetype=python:
|
|
|
|
# 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/.
|
|
|
|
|
2014-09-26 08:20:23 +04:00
|
|
|
XPCSHELL_TESTS_MANIFESTS += ["tests/unit/xpcshell.ini"]
|
2013-03-19 22:47:00 +04:00
|
|
|
|
2022-03-02 18:52:43 +03:00
|
|
|
TESTING_JS_MODULES += [
|
|
|
|
"tests/LangPackMatcherTestUtils.jsm",
|
|
|
|
]
|
|
|
|
|
2014-07-24 21:56:38 +04:00
|
|
|
toolkit = CONFIG["MOZ_WIDGET_TOOLKIT"]
|
|
|
|
|
|
|
|
if toolkit == "windows":
|
|
|
|
DIRS += ["windows"]
|
|
|
|
elif toolkit == "cocoa":
|
|
|
|
DIRS += ["mac"]
|
2019-08-21 15:25:42 +03:00
|
|
|
elif toolkit == "gtk":
|
2017-11-27 06:45:14 +03:00
|
|
|
DIRS += ["gtk"]
|
|
|
|
elif toolkit == "android":
|
|
|
|
DIRS += ["android"]
|
2014-07-24 21:56:38 +04:00
|
|
|
|
2014-07-24 21:56:38 +04:00
|
|
|
XPIDL_SOURCES += [
|
2017-02-05 23:29:39 +03:00
|
|
|
"mozILocaleService.idl",
|
2017-02-09 04:17:51 +03:00
|
|
|
"mozIOSPreferences.idl",
|
2014-07-24 21:56:38 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
XPIDL_MODULE = "locale"
|
|
|
|
|
2014-07-24 21:56:38 +04:00
|
|
|
EXPORTS += [
|
2015-04-03 22:39:23 +03:00
|
|
|
"nsLanguageAtomService.h",
|
2016-09-16 22:38:00 +03:00
|
|
|
"nsUConvPropertySearch.h",
|
2014-07-24 21:56:38 +04:00
|
|
|
]
|
|
|
|
|
2017-01-26 02:58:14 +03:00
|
|
|
EXPORTS.mozilla.intl += [
|
2021-12-01 20:41:37 +03:00
|
|
|
"AppDateTimeFormat.h",
|
2017-02-09 00:12:14 +03:00
|
|
|
"LocaleService.h",
|
2019-11-20 02:04:06 +03:00
|
|
|
"MozLocaleBindings.h",
|
2017-03-06 05:03:46 +03:00
|
|
|
"OSPreferences.h",
|
2019-07-09 02:56:12 +03:00
|
|
|
"Quotes.h",
|
2017-01-26 02:58:14 +03:00
|
|
|
]
|
|
|
|
|
2014-07-24 21:56:38 +04:00
|
|
|
UNIFIED_SOURCES += [
|
2021-12-01 20:41:37 +03:00
|
|
|
"AppDateTimeFormat.cpp",
|
2017-01-26 02:58:14 +03:00
|
|
|
"LocaleService.cpp",
|
2014-07-24 21:56:38 +04:00
|
|
|
"nsLanguageAtomService.cpp",
|
|
|
|
"nsUConvPropertySearch.cpp",
|
2017-03-06 05:03:46 +03:00
|
|
|
"OSPreferences.cpp",
|
2019-07-09 02:56:12 +03:00
|
|
|
"Quotes.cpp",
|
2014-07-24 21:56:38 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
EXTRA_JS_MODULES += [
|
2022-03-02 18:52:43 +03:00
|
|
|
"LangPackMatcher.jsm",
|
2014-07-24 21:56:38 +04:00
|
|
|
"PluralForm.jsm",
|
|
|
|
]
|
|
|
|
|
2019-01-25 02:58:31 +03:00
|
|
|
XPCOM_MANIFESTS += [
|
|
|
|
"components.conf",
|
|
|
|
]
|
|
|
|
|
2014-07-24 21:56:38 +04:00
|
|
|
FINAL_LIBRARY = "xul"
|
|
|
|
|
|
|
|
LOCAL_INCLUDES += [
|
2014-07-24 21:56:39 +04:00
|
|
|
"/intl/uconv",
|
2014-07-24 21:56:38 +04:00
|
|
|
]
|
|
|
|
|
|
|
|
RESOURCE_FILES += [
|
|
|
|
"language.properties",
|
|
|
|
]
|
2014-07-24 19:55:33 +04:00
|
|
|
|
2017-06-17 05:54:40 +03:00
|
|
|
prefixes = ("encodingsgroups",)
|
|
|
|
|
|
|
|
for prefix in prefixes:
|
|
|
|
input_file = prefix + ".properties"
|
|
|
|
header = prefix + ".properties.h"
|
2020-02-28 03:28:24 +03:00
|
|
|
GeneratedFile(header, script="props2arrays.py", inputs=[input_file])
|
2020-10-26 21:34:53 +03:00
|
|
|
|
2017-01-26 02:58:14 +03:00
|
|
|
if CONFIG["ENABLE_TESTS"]:
|
|
|
|
DIRS += ["tests/gtest"]
|
2020-10-26 21:34:53 +03:00
|
|
|
|
2019-11-20 02:04:06 +03:00
|
|
|
if CONFIG["COMPILE_ENVIRONMENT"]:
|
2020-06-26 13:41:26 +03:00
|
|
|
CbindgenHeader(
|
|
|
|
"fluent_langneg_ffi_generated.h",
|
|
|
|
inputs=["/intl/locale/rust/fluent-langneg-ffi"],
|
|
|
|
)
|
|
|
|
CbindgenHeader(
|
|
|
|
"unic_langid_ffi_generated.h", inputs=["/intl/locale/rust/unic-langid-ffi"]
|
|
|
|
)
|
2019-11-20 02:04:06 +03:00
|
|
|
|
|
|
|
EXPORTS.mozilla.intl += [
|
2019-11-20 02:07:08 +03:00
|
|
|
"!fluent_langneg_ffi_generated.h",
|
2019-11-20 02:04:06 +03:00
|
|
|
"!unic_langid_ffi_generated.h",
|
|
|
|
]
|
2021-08-25 13:46:17 +03:00
|
|
|
|
|
|
|
REQUIRES_UNIFIED_BUILD = True
|