mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
Build fixes for recent Bazel versions
We need to add the `oss-internship-2020` and `examples/hello_sapi` directories to `.bazelignore`, so that `bazel build ...` works on a clean working copy. This is because the Bazel builds in these directories use their own `WORKSPACE.bazel` and this does not nest well, leading to all kinds of hard to debug errors. PiperOrigin-RevId: 333728800 Change-Id: Ie2e68dd39bf6f8eb21af29d8ae3ae12971b408db
This commit is contained in:
parent
0fa81cf706
commit
88c980218f
4
.bazelignore
Normal file
4
.bazelignore
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# Using CMake or own WORKSPACE
|
||||||
|
oss-internship-2020
|
||||||
|
# Uses its own WORKSPACE
|
||||||
|
sandboxed_api/examples/hello_sapi
|
|
@ -40,7 +40,6 @@ sapi_library(
|
||||||
cc_binary(
|
cc_binary(
|
||||||
name = "hello",
|
name = "hello",
|
||||||
srcs = ["hello_main.cc"],
|
srcs = ["hello_main.cc"],
|
||||||
includes = ["."], # To find the generated header
|
|
||||||
deps = [":hello_sapi"],
|
deps = [":hello_sapi"],
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -50,7 +49,6 @@ cc_binary(
|
||||||
cc_binary(
|
cc_binary(
|
||||||
name = "hello_transacted",
|
name = "hello_transacted",
|
||||||
srcs = ["hello_transacted.cc"],
|
srcs = ["hello_transacted.cc"],
|
||||||
includes = ["."], # To find the generated header
|
|
||||||
deps = [
|
deps = [
|
||||||
":hello_sapi",
|
":hello_sapi",
|
||||||
"@com_google_absl//absl/memory",
|
"@com_google_absl//absl/memory",
|
||||||
|
|
|
@ -46,6 +46,7 @@ cc_library(
|
||||||
name = "statusor",
|
name = "statusor",
|
||||||
hdrs = ["statusor.h"],
|
hdrs = ["statusor.h"],
|
||||||
deprecation = "Migrate to `absl::StatusOr<T>`",
|
deprecation = "Migrate to `absl::StatusOr<T>`",
|
||||||
|
visibility = ["//visibility:public"],
|
||||||
deps = [
|
deps = [
|
||||||
"@com_google_absl//absl/base:core_headers",
|
"@com_google_absl//absl/base:core_headers",
|
||||||
"@com_google_absl//absl/status:statusor",
|
"@com_google_absl//absl/status:statusor",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user