diff options
author | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2022-12-22 12:11:03 +0100 |
---|---|---|
committer | Paul Cristian Sarbu <paul.cristian.sarbu@huawei.com> | 2023-01-10 10:38:38 +0100 |
commit | b95cd9ee451ff26295d099a8a31340b99b8f0558 (patch) | |
tree | e6eea0b1b21120b12c593f474f86231a67bc2f59 | |
parent | d767c02c5bbb0b86f4d8343d83387b8b10cacac4 (diff) | |
download | justbuild-b95cd9ee451ff26295d099a8a31340b99b8f0558.tar.gz |
Targets: Create top-level just-mr install target
This target uses the just-mr binary and will replace the Python
script in all non-bootstrap-related scenarios.
-rw-r--r-- | TARGETS | 54 |
1 files changed, 54 insertions, 0 deletions
@@ -117,6 +117,60 @@ } } } +, "installed just-mr": {"type": "install", "files": {"bin/just-mr": "just-mr"}} +, "exported-just-mr": + { "type": "export" + , "target": ["src/other_tools/just_mr", "just-mr"] + , "flexible_config": + [ "OS" + , "ARCH" + , "HOST_ARCH" + , "TARGET_ARCH" + , "DEBUG" + , "COMPILER_FAMILY" + , "CC" + , "CXX" + , "ADD_CXXFLAGS" + , "ADD_CFLAGS" + , "AR" + , "ENV" + , "BUILD_STATIC_BINARY" + , "SOURCE_DATE_EPOCH" + , "VERSION_EXTRA_SUFFIX" + ] + } +, "just-mr": + { "type": "configure" + , "arguments_config": + ["OS", "ARCH", "HOST_ARCH", "TARGET_ARCH", "COMPILER_FAMILY"] + , "target": "exported-just-mr" + , "config": + { "type": "let*" + , "bindings": + [ ["OS", {"type": "var", "name": "OS", "default": "linux"}] + , ["ARCH", {"type": "var", "name": "ARCH", "default": "x86_64"}] + , [ "HOST_ARCH" + , { "type": "var" + , "name": "HOST_ARCH" + , "default": {"type": "var", "name": "ARCH"} + } + ] + , [ "TARGET_ARCH" + , { "type": "var" + , "name": "TARGET_ARCH" + , "default": {"type": "var", "name": "ARCH"} + } + ] + , [ "COMPILER_FAMILY" + , {"type": "var", "name": "COMPILER_FAMILY", "default": "clang"} + ] + ] + , "body": + { "type": "env" + , "vars": ["OS", "ARCH", "HOST_ARCH", "TARGET_ARCH", "COMPILER_FAMILY"] + } + } + } , "libgit2": { "type": "configure" , "target": ["@", "libgit2", "", "git2"] |