sandboxed-api/sandboxed_api/bazel
Christian Blichmann 6d97220e5c
Use common repository prefix everywhere
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
2020-05-11 16:51:53 +02:00
..
external Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
testdata Sandboxed API OSS release. 2019-03-18 19:00:48 +01:00
BUILD Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
build_defs.bzl Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
CMakeLists.txt Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
embed_data.bzl Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
filewrapper_test.cc Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
filewrapper.cc Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
proto.bzl Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
repositories.bzl Fix libffi configure directory in Bazel/CMake builds 2020-03-23 13:52:02 +01:00
sapi_deps.bzl Update dependencies to latest versions 2020-04-29 06:45:44 -07:00
sapi.bzl Use common repository prefix everywhere 2020-05-11 16:51:53 +02:00