mirror of
https://fuchsia.googlesource.com/third_party/pigweed.googlesource.com/pigweed/pigweed
synced 2024-09-20 13:51:05 +00:00
pw_third_party: update protobuf to build google.protobuf
No-Docs-Update-Reason: minor third-party addition Change-Id: I4abee5f05b6f893f817c24adab0969804ecbb578 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/60186 Commit-Queue: Zihan Chen <zihanchen@google.com> Pigweed-Auto-Submit: Zihan Chen <zihanchen@google.com> Reviewed-by: David Rogers <davidrogers@google.com> Reviewed-by: Wyatt Hepler <hepler@google.com>
This commit is contained in:
parent
6d7317260b
commit
cd66a74609
18
third_party/protobuf/BUILD.gn
vendored
18
third_party/protobuf/BUILD.gn
vendored
|
@ -15,6 +15,7 @@
|
|||
import("//build_overrides/pigweed.gni")
|
||||
|
||||
import("$dir_pw_build/target_types.gni")
|
||||
import("$dir_pw_protobuf_compiler/proto.gni")
|
||||
import("protobuf.gni")
|
||||
|
||||
# This file defines a GN source_set for an external installation of protobuf.
|
||||
|
@ -146,6 +147,23 @@ if (dir_pw_third_party_protobuf != "") {
|
|||
public_deps = [ ":libprotobuf_lite" ]
|
||||
configs = [ ":defines" ]
|
||||
}
|
||||
|
||||
pw_proto_library("wellknown_types") {
|
||||
sources = [
|
||||
"$dir_pw_third_party_protobuf/src/google/protobuf/any.proto",
|
||||
"$dir_pw_third_party_protobuf/src/google/protobuf/api.proto",
|
||||
"$dir_pw_third_party_protobuf/src/google/protobuf/descriptor.proto",
|
||||
"$dir_pw_third_party_protobuf/src/google/protobuf/duration.proto",
|
||||
"$dir_pw_third_party_protobuf/src/google/protobuf/empty.proto",
|
||||
"$dir_pw_third_party_protobuf/src/google/protobuf/field_mask.proto",
|
||||
"$dir_pw_third_party_protobuf/src/google/protobuf/source_context.proto",
|
||||
"$dir_pw_third_party_protobuf/src/google/protobuf/struct.proto",
|
||||
"$dir_pw_third_party_protobuf/src/google/protobuf/timestamp.proto",
|
||||
"$dir_pw_third_party_protobuf/src/google/protobuf/type.proto",
|
||||
"$dir_pw_third_party_protobuf/src/google/protobuf/wrappers.proto",
|
||||
]
|
||||
strip_prefix = "$dir_pw_third_party_protobuf/src/"
|
||||
}
|
||||
} else {
|
||||
# As mentioned above, these targets are effectively disabled if the build
|
||||
# argument pointing to the protobuf source directory is not set.
|
||||
|
|
Loading…
Reference in New Issue
Block a user