commit | 819a574fd2058622a8d0c08a77e0f27861257022 | [log] [tgz] |
---|---|---|
author | Chris McDonald <cjmcdonald@chromium.org> | Fri Jan 07 21:50:37 2022 |
committer | Chris McDonald <cjmcdonald@chromium.org> | Fri Jan 07 22:00:48 2022 |
tree | 619eca0f31bb26b0a8a607fee49d20a589ba2795 | |
parent | 73733ee1d0ed28b7674f1ea75179af052f5a5161 [diff] |
Add `sysroot_library` repository rule Add the `sysroot_library` repository rule for importing existing libraries from a Chrome OS sysroot into a Bazel workspace so that these libraries can be used as regular `cc_import` dependencies by other Bazel targets. The implementation of this repository rule is heavily based on the upstream `system_library` repository rule [1] but adapted for Chrome OS to assume a clang-based C toolchain and to respect sysroot settings for cross-compilation. 1: https://github.com/bazelbuild/rules_cc/blob/081771d4a0e9d7d3aa0eed2ef389fa4700dfb23e/cc/system_library.bzl BUG=b:213616502 TEST=None Change-Id: Ic53092829e704d863870ed65fde80aa17a192be2 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/rules_cros/+/3373721