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.ini"]
9 TESTING_JS_MODULES += [
10 "tests/LangPackMatcherTestUtils.jsm",
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.jsm",
69 "language.properties",
72 prefixes = ("encodingsgroups",)
74 for prefix in prefixes:
75 input_file = prefix + ".properties"
76 header = prefix + ".properties.h"
77 GeneratedFile(header, script="props2arrays.py", inputs=[input_file])
79 if CONFIG["ENABLE_TESTS"]:
80 DIRS += ["tests/gtest"]
82 if CONFIG["COMPILE_ENVIRONMENT"]:
84 "fluent_langneg_ffi_generated.h",
85 inputs=["/intl/locale/rust/fluent-langneg-ffi"],
88 "unic_langid_ffi_generated.h", inputs=["/intl/locale/rust/unic-langid-ffi"]
91 EXPORTS.mozilla.intl += [
92 "!fluent_langneg_ffi_generated.h",
93 "!unic_langid_ffi_generated.h",
96 REQUIRES_UNIFIED_BUILD = True