aboutsummaryrefslogtreecommitdiffhomepage
path: root/third_party/nanopb
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2018-05-31 16:45:03 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2018-05-31 16:45:03 -0700
commit483b4b7bded98fd008e7db6007a95a8a32d943e5 (patch)
tree733c1483d20b35782096d93ab93ba86629f764e1 /third_party/nanopb
parent2a0d447d272cea8a5e077a16799f860edef7295e (diff)
Treat nanopb as a regular external dep
Diffstat (limited to 'third_party/nanopb')
-rw-r--r--third_party/nanopb/BUILD29
1 files changed, 16 insertions, 13 deletions
diff --git a/third_party/nanopb/BUILD b/third_party/nanopb/BUILD
index f9fc57f50a..1dc830eb01 100644
--- a/third_party/nanopb/BUILD
+++ b/third_party/nanopb/BUILD
@@ -5,17 +5,20 @@ exports_files(["LICENSE.txt"])
package(default_visibility = ["//visibility:public"])
cc_library(
- name = "nanopb",
- visibility = ["//visibility:public"],
- hdrs = [
- "pb.h",
- "pb_common.h",
- "pb_decode.h",
- "pb_encode.h",
- ],
- srcs = [
- "pb_common.c",
- "pb_decode.c",
- "pb_encode.c",
- ],
+ name = "nanopb",
+ srcs = [
+ "pb_common.c",
+ "pb_decode.c",
+ "pb_encode.c",
+ ],
+ hdrs = [
+ "pb.h",
+ "pb_common.h",
+ "pb_decode.h",
+ "pb_encode.h",
+ ],
+ defines = [
+ "PB_FIELD_32BIT=1",
+ ],
+ visibility = ["//visibility:public"],
)