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 toolkit = CONFIG["MOZ_WIDGET_TOOLKIT"]
11 if toolkit == "windows":
13 elif toolkit == "cocoa":
15 elif toolkit == "gtk":
17 elif toolkit == "android":
21 "mozILocaleService.idl",
22 "mozIOSPreferences.idl",
26 XPIDL_MODULE = "locale"
31 "nsLanguageAtomService.h",
32 "nsUConvPropertySearch.h",
35 EXPORTS.mozilla.intl += [
38 "MozLocaleBindings.h",
48 "nsCollationFactory.cpp",
49 "nsLanguageAtomService.cpp",
50 "nsUConvPropertySearch.cpp",
70 "language.properties",
73 prefixes = ("encodingsgroups",)
75 for prefix in prefixes:
76 input_file = prefix + ".properties"
77 header = prefix + ".properties.h"
78 GeneratedFile(header, script="props2arrays.py", inputs=[input_file])
80 if CONFIG["ENABLE_TESTS"]:
81 DIRS += ["tests/gtest"]
83 if CONFIG["COMPILE_ENVIRONMENT"]:
85 "fluent_langneg_ffi_generated.h",
86 inputs=["/intl/locale/rust/fluent-langneg-ffi"],
89 "unic_langid_ffi_generated.h", inputs=["/intl/locale/rust/unic-langid-ffi"]
92 EXPORTS.mozilla.intl += [
93 "!fluent_langneg_ffi_generated.h",
94 "!unic_langid_ffi_generated.h",