summaryrefslogtreecommitdiff
path: root/BUILD
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2018-12-17 10:07:00 -0800
committerJosh Haberman <jhaberman@gmail.com>2018-12-17 10:07:00 -0800
commit9dd2446531827a9848983a2dbe3bfb612ed7047e (patch)
tree6bae333a9a73d917affac554998568761c2a53a0 /BUILD
parent5e958a8c055872ecd5b7f7d00f48212de5711ae5 (diff)
test_cpp is working!
Diffstat (limited to 'BUILD')
-rw-r--r--BUILD44
1 files changed, 14 insertions, 30 deletions
diff --git a/BUILD b/BUILD
index 0f4231a..bf988f9 100644
--- a/BUILD
+++ b/BUILD
@@ -209,10 +209,24 @@ cc_test(
],
)
+proto_library(
+ name = "test_cpp_proto",
+ srcs = [
+ "tests/test_cpp.proto"
+ ]
+)
+
+upb_proto_reflection_library(
+ name = "test_cpp_upbproto",
+ deps = ["test_cpp_proto"],
+ upbc = ":protoc-gen-upb",
+)
+
cc_test(
name = "test_cpp",
srcs = ["tests/test_cpp.cc"],
deps = [
+ ":test_cpp_upbproto",
":upb",
":upb_pb",
":upb_test",
@@ -331,17 +345,6 @@ lua_library(
strip_prefix = "upb/bindings/lua",
)
-lua_library(
- name = "lua/upbc_lib",
- srcs = [
- "tools/dump_cinit.lua",
- ],
- luadeps = [
- "lua/upb",
- ],
- strip_prefix = "tools",
-)
-
# Lua tests. ###################################################################
lua_test(
@@ -358,14 +361,6 @@ lua_test(
# upb compiler #################################################################
-lua_binary(
- name = "lua_upbc",
- luadeps = [
- "lua/upbc_lib",
- ],
- luamain = "tools/upbc.lua",
-)
-
cc_library(
name = "upbc_generator",
hdrs = ["upbc/generator.h"],
@@ -491,17 +486,6 @@ genrule(
cmd = "cp $< $@",
)
-#genrule(
-# name = "generated_json_test_proto_upbdefs",
-# srcs = ["generated/tests/json/test.proto.pb"],
-# outs = [
-# "generated/tests/json/test.upbdefs.h",
-# "generated/tests/json/test.upbdefs.c",
-# ],
-# cmd = "UPBC=$$PWD/$(location :lua_upbc); INFILE=$$PWD/$<; cd $(GENDIR)/generated && $$UPBC --generate-upbdefs $$INFILE",
-# tools = [":lua_upbc"],
-#)
-
genrule(
name = "generate_json_ragel",
srcs = ["upb/json/parser.rl"],
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback