5 ms·
You could probably write a rule similar to go_repository[1] that would invoke pkgconfig to find the location of local libs instead of downloading a lib. [1] ht
by codesuki 7y ago
You could probably write a rule similar to go_repository[1] that would invoke pkgconfig to find the location of local libs instead of downloading a lib.
[1] https://github.com/bazelbuild/bazel-gazelle/blob/master/internal/go_repository.bzl https://github.com/bazelbuild/bazel-gazelle/blob/master/inte...
- rienbdj 7y agopeople have done this rules_cc_foreign or something like that.
- bennofs 7y agorules_foreign_cc appears to be something different: building projects with other build systems as part of a bazel build. The README does not talk about using prebuilt system libraries at all. Additionally, adding lots of additional customization on top of the build system itself defeats the purpose of using a popular system in the first place.