mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
6d97220e5c
Build macros in earlier versions of Bazel (pre-1.0) needed to specify targets in a different format, depending from where they were included/expanded at build time. For example, a `sapi_library()` macro invocation in one of the directories under `examples`, always needed to depend on the SAPI main library as `//sandboxed_api:sapi`. When using SAPI from another Bazel project, the same macro would have needed to depend on `@com_google_sandboxed_api//sandboxed_api:sapi`. The `sapi_library()` macro was thus checking the repository name and conditionally changed the dependencies. This approach is brittle and as of Bazel 3.1.0 no longer works. This CL simple removes the conditional prefix and unconditionally uses `@com_google_sandboxed_api`. Tested on Bazel 1.2.1, 2.2.0 and 3.1.0 |
||
---|---|---|
.. | ||
external | ||
testdata | ||
BUILD | ||
build_defs.bzl | ||
CMakeLists.txt | ||
embed_data.bzl | ||
filewrapper_test.cc | ||
filewrapper.cc | ||
proto.bzl | ||
repositories.bzl | ||
sapi_deps.bzl | ||
sapi.bzl |