Bug 1773205 [wpt PR 34343] - SVG Text NG: Improve performance on ancestor scaling...
[gecko.git] / intl / locale / moz.build
blob232e40007659874f5e3f50fe45e7a622f6a7ec73
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":
16     DIRS += ["windows"]
17 elif toolkit == "cocoa":
18     DIRS += ["mac"]
19 elif toolkit == "gtk":
20     DIRS += ["gtk"]
21 elif toolkit == "android":
22     DIRS += ["android"]
24 XPIDL_SOURCES += [
25     "mozILocaleService.idl",
26     "mozIOSPreferences.idl",
29 XPIDL_MODULE = "locale"
31 EXPORTS += [
32     "nsLanguageAtomService.h",
33     "nsUConvPropertySearch.h",
36 EXPORTS.mozilla.intl += [
37     "AppDateTimeFormat.h",
38     "LocaleService.h",
39     "MozLocaleBindings.h",
40     "OSPreferences.h",
41     "Quotes.h",
44 UNIFIED_SOURCES += [
45     "AppDateTimeFormat.cpp",
46     "LocaleService.cpp",
47     "nsLanguageAtomService.cpp",
48     "nsUConvPropertySearch.cpp",
49     "OSPreferences.cpp",
50     "Quotes.cpp",
53 EXTRA_JS_MODULES += [
54     "LangPackMatcher.jsm",
55     "PluralForm.jsm",
58 XPCOM_MANIFESTS += [
59     "components.conf",
62 FINAL_LIBRARY = "xul"
64 LOCAL_INCLUDES += [
65     "/intl/uconv",
68 RESOURCE_FILES += [
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"]:
83     CbindgenHeader(
84         "fluent_langneg_ffi_generated.h",
85         inputs=["/intl/locale/rust/fluent-langneg-ffi"],
86     )
87     CbindgenHeader(
88         "unic_langid_ffi_generated.h", inputs=["/intl/locale/rust/unic-langid-ffi"]
89     )
91     EXPORTS.mozilla.intl += [
92         "!fluent_langneg_ffi_generated.h",
93         "!unic_langid_ffi_generated.h",
94     ]
96 REQUIRES_UNIFIED_BUILD = True