2021-02-20 05:51:12 +03:00
|
|
|
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
|
|
# vim: set filetype=python:
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
|
|
|
with Files("**"):
|
|
|
|
BUG_COMPONENT = ("Firefox", "Nimbus Desktop Client")
|
|
|
|
|
2021-12-08 12:06:36 +03:00
|
|
|
EXPORTS.mozilla.browser += ["!lib/NimbusFeatureManifest.h", "lib/NimbusFeatures.h"]
|
2021-07-07 20:12:29 +03:00
|
|
|
|
|
|
|
UNIFIED_SOURCES += [
|
|
|
|
"lib/NimbusFeatures.cpp",
|
|
|
|
]
|
|
|
|
|
2021-10-21 16:48:04 +03:00
|
|
|
# We expose NimbusFeatures to Android to make it easier to
|
|
|
|
# import everywhere but the tests will fail to run
|
|
|
|
if CONFIG["OS_TARGET"] != "Android":
|
|
|
|
TEST_DIRS += [
|
|
|
|
"test/gtest",
|
|
|
|
]
|
2021-07-07 20:12:29 +03:00
|
|
|
|
2021-02-20 05:51:12 +03:00
|
|
|
BROWSER_CHROME_MANIFESTS += [
|
2023-09-29 14:38:53 +03:00
|
|
|
"test/browser/browser.toml",
|
2021-02-20 05:51:12 +03:00
|
|
|
]
|
|
|
|
|
2023-11-29 07:58:09 +03:00
|
|
|
XPCSHELL_TESTS_MANIFESTS += ["test/unit/xpcshell.toml"]
|
2021-02-20 05:51:12 +03:00
|
|
|
|
2021-02-26 14:01:20 +03:00
|
|
|
SPHINX_TREES["docs"] = "docs"
|
|
|
|
|
2021-02-20 05:51:12 +03:00
|
|
|
TESTING_JS_MODULES += [
|
2023-03-30 23:51:58 +03:00
|
|
|
"test/NimbusTestUtils.sys.mjs",
|
2021-02-20 05:51:12 +03:00
|
|
|
]
|
|
|
|
|
2021-12-01 18:03:21 +03:00
|
|
|
GeneratedFile(
|
2023-04-24 12:54:19 +03:00
|
|
|
"FeatureManifest.sys.mjs",
|
2021-12-01 18:03:21 +03:00
|
|
|
script="generate/generate_feature_manifest.py",
|
|
|
|
entry_point="generate_feature_manifest",
|
|
|
|
inputs=["./FeatureManifest.yaml"],
|
|
|
|
)
|
|
|
|
|
2021-12-08 12:06:36 +03:00
|
|
|
GeneratedFile(
|
|
|
|
"lib/NimbusFeatureManifest.h",
|
|
|
|
script="generate/generate_feature_manifest.py",
|
|
|
|
entry_point="generate_platform_feature_manifest",
|
|
|
|
inputs=["./FeatureManifest.yaml"],
|
|
|
|
)
|
|
|
|
|
2021-07-07 20:12:29 +03:00
|
|
|
FINAL_LIBRARY = "xul"
|
|
|
|
|
2021-02-20 05:51:12 +03:00
|
|
|
JAR_MANIFESTS += ["jar.mn"]
|