sandboxed-api/sandboxed_api
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
..
bazel Use common repository prefix everywhere 2020-05-11 16:51:53 +02:00
docs Internal change. 2020-03-19 09:58:28 -07:00
examples Add zlib as dependency for examples 2020-04-30 04:57:33 -07:00
sandbox2 Add zlib as dependency for examples 2020-04-30 04:57:33 -07:00
tools/generator2 Replace sapi::Status with absl::Status 2020-02-27 09:24:12 -08:00
util Update StatusOr<> and tests 2020-04-28 06:12:58 -07:00
BUILD.bazel Replace sapi::Status with absl::Status 2020-02-27 09:24:12 -08:00
call.h Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
client.cc Cleanup calls to sapi::StatusOr<>::ValueOrDie() 2020-04-02 07:42:45 -07:00
CMakeLists.txt Fix path to generated proto sources when embedding 2020-03-18 18:47:02 +01:00
embed_file.cc Replace sapi::Status with absl::Status 2020-02-27 09:24:12 -08:00
embed_file.h Replace deprecated thread annotations macros. 2020-01-30 05:06:55 -08:00
file_toc.h Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
lenval_core.h Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
proto_arg.proto Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
proto_helper.h Replace sapi::Status with absl::Status 2020-02-27 09:24:12 -08:00
rpcchannel.cc Cleanup calls to sapi::StatusOr<>::ValueOrDie() 2020-04-02 07:42:45 -07:00
rpcchannel.h Replace sapi::Status with absl::Status 2020-02-27 09:24:12 -08:00
sandbox.cc Replace sapi::Status with absl::Status 2020-02-27 09:24:12 -08:00
sandbox.h Replace sapi::Status with absl::Status 2020-02-27 09:24:12 -08:00
sapi_test.cc Cleanup calls to sapi::StatusOr<>::ValueOrDie() 2020-04-02 07:42:45 -07:00
transaction.cc Replace sapi::Status with absl::Status 2020-02-27 09:24:12 -08:00
transaction.h Replace sapi::Status with absl::Status 2020-02-27 09:24:12 -08:00
var_abstract.cc Replace sapi::Status with absl::Status 2020-02-27 09:24:12 -08:00
var_abstract.h Replace sapi::Status with absl::Status 2020-02-27 09:24:12 -08:00
var_array.h Replace sapi::Status with absl::Status 2020-02-27 09:24:12 -08:00
var_int.cc Replace sapi::Status with absl::Status 2020-02-27 09:24:12 -08:00
var_int.h Replace sapi::Status with absl::Status 2020-02-27 09:24:12 -08:00
var_lenval.cc Replace sapi::Status with absl::Status 2020-02-27 09:24:12 -08:00
var_lenval.h Replace sapi::Status with absl::Status 2020-02-27 09:24:12 -08:00
var_pointable.cc Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
var_pointable.h Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
var_proto.h Cleanup calls to sapi::StatusOr<>::ValueOrDie() 2020-04-02 07:42:45 -07:00
var_ptr.h Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
var_reg.h Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
var_struct.h Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
var_type.h Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
var_void.h Update license header with recommended best practices 2020-01-17 05:05:29 -08:00
vars.h Update license header with recommended best practices 2020-01-17 05:05:29 -08:00