summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorJoshua Haberman <jhaberman@gmail.com>2019-01-23 17:10:22 -0800
committerJoshua Haberman <jhaberman@gmail.com>2019-01-23 17:10:22 -0800
commit7f9f7222bf5ab3ad3720b1afd55370b0e473109f (patch)
tree15340076b10ef85cc5b2c5454de203dc4dbd18c4 /BUILD
parent77371f050c317d01c5c089eb057b24d439f40dd3 (diff)
Changes for google3 import.
Diffstat (limited to 'BUILD')
-rw-r--r--BUILD35
1 files changed, 20 insertions, 15 deletions
diff --git a/BUILD b/BUILD
index 0a8a684..9593936 100644
--- a/BUILD
+++ b/BUILD
@@ -1,6 +1,7 @@
load(
":build_defs.bzl",
"generated_file_staleness_test",
+ "licenses", # copybara:strip_for_google3
"lua_binary",
"lua_cclibrary",
"lua_library",
@@ -11,6 +12,21 @@ load(
"upb_proto_reflection_library",
)
+licenses(["notice"]) # BSD (Google-authored w/ possible external contributions)
+
+exports_files([
+ "LICENSE",
+ "build_defs",
+])
+
+COPTS = [
+ # copybara:strip_for_google3_begin
+ "-std=c89",
+ "-pedantic",
+ "-Wno-long-long",
+ # copybara:strip_end
+]
+
# C/C++ rules ##################################################################
cc_library(
@@ -44,11 +60,7 @@ cc_library(
"upb/sink.h",
"upb/upb.h",
],
- copts = [
- "-std=c89",
- "-pedantic",
- "-Wno-long-long",
- ],
+ copts = COPTS,
visibility = ["//visibility:public"],
)
@@ -68,11 +80,7 @@ cc_library(
"upb/pb/encoder.h",
"upb/pb/textprinter.h",
],
- copts = [
- "-std=c89",
- "-pedantic",
- "-Wno-long-long",
- ],
+ copts = COPTS,
deps = [
":upb",
],
@@ -88,11 +96,7 @@ cc_library(
"upb/json/parser.h",
"upb/json/printer.h",
],
- copts = [
- "-std=c89",
- "-pedantic",
- "-Wno-long-long",
- ],
+ copts = COPTS,
deps = [
":upb",
":upb_pb",
@@ -309,6 +313,7 @@ cc_library(
name = "amalgamation",
srcs = ["upb.c"],
hdrs = ["upb.h"],
+ copts = COPTS,
)
# Lua libraries. ###############################################################
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback