mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
Bug 1692990 - Changes to security/moz.build to allow building nssckbi-testlib in m-c. r=kjacobs
Differential Revision: https://phabricator.services.mozilla.com/D97630
This commit is contained in:
parent
0379f315c7
commit
395f43422d
23
security/generate_certdata-testlib.py
Normal file
23
security/generate_certdata-testlib.py
Normal file
@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env 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/.
|
||||
|
||||
#
|
||||
# This exists to paper over differences between gyp's `action` definitions
|
||||
# and moz.build `GENERATED_FILES` semantics.
|
||||
|
||||
import buildconfig
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
|
||||
def main(output, *inputs):
|
||||
env = dict(os.environ)
|
||||
env["PERL"] = str(buildconfig.substs["PERL"])
|
||||
output.write(
|
||||
subprocess.check_output(
|
||||
[buildconfig.substs["PYTHON3"], inputs[0], inputs[2]], env=env
|
||||
)
|
||||
)
|
||||
return None
|
@ -81,6 +81,8 @@ gyp_vars["nss_dist_dir"] = "$PRODUCT_DIR/dist"
|
||||
# This forces it to put them in dist/include/nss.
|
||||
gyp_vars["nss_public_dist_dir"] = "$PRODUCT_DIR/dist"
|
||||
gyp_vars["nss_dist_obj_dir"] = "$PRODUCT_DIR/dist/bin"
|
||||
# We need specific features and tests on mozilla-central.
|
||||
gyp_vars["mozilla_central"] = 1
|
||||
# We don't currently build NSS tests.
|
||||
gyp_vars["disable_tests"] = 1
|
||||
gyp_vars["disable_dbm"] = 1
|
||||
@ -153,6 +155,7 @@ GYP_DIRS["nss"].no_unified = True
|
||||
# Python scripts that can be used in moz.build GENERATED_FILES.
|
||||
GYP_DIRS["nss"].action_overrides = {
|
||||
"generate_certdata_c": "generate_certdata.py",
|
||||
"generate_certdata-testlib_c": "generate_certdata-testlib.py",
|
||||
"generate_mapfile": "generate_mapfile.py",
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user