Bug 1708422: part 18) Factor `mozInlineSpellChecker::SpellCheckerSlice::IsInNoCheckRa...
[gecko.git] / intl / locale / moz.build
blob28662541952f878d07a92a93fb28e074e8f994d8
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":
12     DIRS += ["windows"]
13 elif toolkit == "cocoa":
14     DIRS += ["mac"]
15 elif toolkit == "gtk":
16     DIRS += ["gtk"]
17 elif toolkit == "android":
18     DIRS += ["android"]
20 XPIDL_SOURCES += [
21     "mozILocaleService.idl",
22     "mozIOSPreferences.idl",
23     "nsICollation.idl",
26 XPIDL_MODULE = "locale"
28 EXPORTS += [
29     "DateTimeFormat.h",
30     "nsCollationCID.h",
31     "nsLanguageAtomService.h",
32     "nsUConvPropertySearch.h",
35 EXPORTS.mozilla.intl += [
36     "LocaleService.h",
37     "MozLocale.h",
38     "MozLocaleBindings.h",
39     "OSPreferences.h",
40     "Quotes.h",
43 UNIFIED_SOURCES += [
44     "DateTimeFormat.cpp",
45     "LocaleService.cpp",
46     "MozLocale.cpp",
47     "nsCollation.cpp",
48     "nsCollationFactory.cpp",
49     "nsLanguageAtomService.cpp",
50     "nsUConvPropertySearch.cpp",
51     "OSPreferences.cpp",
52     "Quotes.cpp",
55 EXTRA_JS_MODULES += [
56     "PluralForm.jsm",
59 XPCOM_MANIFESTS += [
60     "components.conf",
63 FINAL_LIBRARY = "xul"
65 LOCAL_INCLUDES += [
66     "/intl/uconv",
69 RESOURCE_FILES += [
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"]:
84     CbindgenHeader(
85         "fluent_langneg_ffi_generated.h",
86         inputs=["/intl/locale/rust/fluent-langneg-ffi"],
87     )
88     CbindgenHeader(
89         "unic_langid_ffi_generated.h", inputs=["/intl/locale/rust/unic-langid-ffi"]
90     )
92     EXPORTS.mozilla.intl += [
93         "!fluent_langneg_ffi_generated.h",
94         "!unic_langid_ffi_generated.h",
95     ]