1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 XPCSHELL_TESTS_MANIFESTS += ["tests/unit/xpcshell.toml"]
9 TESTING_JS_MODULES += [
10 "tests/LangPackMatcherTestUtils.sys.mjs",
13 toolkit = CONFIG["MOZ_WIDGET_TOOLKIT"]
15 if toolkit == "windows":
17 elif toolkit == "cocoa":
19 elif toolkit == "gtk":
21 elif toolkit == "android":
25 "mozILocaleService.idl",
26 "mozIOSPreferences.idl",
29 XPIDL_MODULE = "locale"
32 "nsLanguageAtomService.h",
33 "nsUConvPropertySearch.h",
36 EXPORTS.mozilla.intl += [
37 "AppDateTimeFormat.h",
39 "MozLocaleBindings.h",
45 "AppDateTimeFormat.cpp",
47 "nsLanguageAtomService.cpp",
48 "nsUConvPropertySearch.cpp",
54 "LangPackMatcher.sys.mjs",
68 "language.properties",
71 prefixes = ("encodingsgroups",)
73 for prefix in prefixes:
74 input_file = prefix + ".properties"
75 header = prefix + ".properties.h"
76 GeneratedFile(header, script="props2arrays.py", inputs=[input_file])
78 if CONFIG["ENABLE_TESTS"]:
79 DIRS += ["tests/gtest"]
81 if CONFIG["COMPILE_ENVIRONMENT"]:
83 "fluent_langneg_ffi_generated.h",
84 inputs=["/intl/locale/rust/fluent-langneg-ffi"],
87 "oxilangtag_ffi_generated.h", inputs=["/intl/locale/rust/oxilangtag-ffi"]
90 "unic_langid_ffi_generated.h", inputs=["/intl/locale/rust/unic-langid-ffi"]
93 EXPORTS.mozilla.intl += [
94 "!fluent_langneg_ffi_generated.h",
95 "!oxilangtag_ffi_generated.h",
96 "!unic_langid_ffi_generated.h",