Backed out changeset 68ed52f7e45d (bug 1899241) for causing sccache misses (bug 19048...
[gecko.git] / intl / l10n / moz.build
blob6dfc7a4b83c17e0b73402b638118b9632f7c3119
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 EXPORTS.mozilla.intl += [
8     "FileSource.h",
9     "FluentBindings.h",
10     "FluentBundle.h",
11     "FluentResource.h",
12     "L10nRegistry.h",
13     "Localization.h",
14     "LocalizationBindings.h",
15     "RegistryBindings.h",
18 UNIFIED_SOURCES += [
19     "FileSource.cpp",
20     "FluentBundle.cpp",
21     "FluentResource.cpp",
22     "L10nRegistry.cpp",
23     "Localization.cpp",
26 TEST_DIRS += [
27     "rust/gtest",
28     "test/gtest",
31 include("/ipc/chromium/chromium-config.mozbuild")
33 USE_LIBS += ["intlcomponents"]
35 if CONFIG["COMPILE_ENVIRONMENT"]:
36     CbindgenHeader("fluent_ffi_generated.h", inputs=["/intl/l10n/rust/fluent-ffi"])
38     CbindgenHeader(
39         "l10nregistry_ffi_generated.h", inputs=["/intl/l10n/rust/l10nregistry-ffi"]
40     )
42     CbindgenHeader(
43         "localization_ffi_generated.h", inputs=["/intl/l10n/rust/localization-ffi"]
44     )
46     EXPORTS.mozilla.intl += [
47         "!fluent_ffi_generated.h",
48         "!l10nregistry_ffi_generated.h",
49         "!localization_ffi_generated.h",
50     ]
52 XPCSHELL_TESTS_MANIFESTS += ["test/xpcshell.toml"]
53 MOCHITEST_CHROME_MANIFESTS += ["test/mochitest/chrome.toml"]
55 SPHINX_TREES["/l10n"] = "docs"
57 FINAL_LIBRARY = "xul"