|
|
|
@ -57,13 +57,13 @@ config_setting( |
|
|
|
|
|
|
|
|
|
cc_library( |
|
|
|
|
name = "port", |
|
|
|
|
srcs = [ |
|
|
|
|
"upb/port.c", |
|
|
|
|
], |
|
|
|
|
textual_hdrs = [ |
|
|
|
|
"upb/port_def.inc", |
|
|
|
|
"upb/port_undef.inc", |
|
|
|
|
], |
|
|
|
|
srcs = [ |
|
|
|
|
"upb/port.c", |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_library( |
|
|
|
@ -84,7 +84,7 @@ cc_library( |
|
|
|
|
], |
|
|
|
|
copts = select({ |
|
|
|
|
":windows": [], |
|
|
|
|
"//conditions:default": COPTS |
|
|
|
|
"//conditions:default": COPTS, |
|
|
|
|
}), |
|
|
|
|
visibility = ["//visibility:public"], |
|
|
|
|
deps = [":port"], |
|
|
|
@ -105,10 +105,11 @@ cc_library( |
|
|
|
|
], |
|
|
|
|
copts = select({ |
|
|
|
|
":windows": [], |
|
|
|
|
"//conditions:default": COPTS |
|
|
|
|
"//conditions:default": COPTS, |
|
|
|
|
}), |
|
|
|
|
visibility = ["//visibility:public"], |
|
|
|
|
deps = [ |
|
|
|
|
":table", |
|
|
|
|
":upb", |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
@ -131,7 +132,7 @@ cc_library( |
|
|
|
|
], |
|
|
|
|
copts = select({ |
|
|
|
|
":windows": [], |
|
|
|
|
"//conditions:default": COPTS |
|
|
|
|
"//conditions:default": COPTS, |
|
|
|
|
}), |
|
|
|
|
visibility = ["//visibility:public"], |
|
|
|
|
deps = [ |
|
|
|
@ -152,6 +153,7 @@ cc_library( |
|
|
|
|
], |
|
|
|
|
visibility = ["//visibility:public"], |
|
|
|
|
deps = [ |
|
|
|
|
":port", |
|
|
|
|
":reflection", |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
@ -165,8 +167,9 @@ cc_library( |
|
|
|
|
"upb/json_encode.h", |
|
|
|
|
], |
|
|
|
|
deps = [ |
|
|
|
|
":upb", |
|
|
|
|
":port", |
|
|
|
|
":reflection", |
|
|
|
|
":upb", |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
@ -196,11 +199,11 @@ cc_library( |
|
|
|
|
], |
|
|
|
|
copts = select({ |
|
|
|
|
":windows": [], |
|
|
|
|
"//conditions:default": COPTS |
|
|
|
|
"//conditions:default": COPTS, |
|
|
|
|
}), |
|
|
|
|
deps = [ |
|
|
|
|
":reflection", |
|
|
|
|
":port", |
|
|
|
|
":reflection", |
|
|
|
|
":table", |
|
|
|
|
":upb", |
|
|
|
|
], |
|
|
|
@ -224,13 +227,13 @@ cc_library( |
|
|
|
|
], |
|
|
|
|
copts = select({ |
|
|
|
|
":windows": [], |
|
|
|
|
"//conditions:default": COPTS |
|
|
|
|
"//conditions:default": COPTS, |
|
|
|
|
}), |
|
|
|
|
deps = [ |
|
|
|
|
":descriptor_upbproto", |
|
|
|
|
":handlers", |
|
|
|
|
":reflection", |
|
|
|
|
":port", |
|
|
|
|
":reflection", |
|
|
|
|
":table", |
|
|
|
|
":upb", |
|
|
|
|
], |
|
|
|
@ -249,7 +252,7 @@ cc_library( |
|
|
|
|
], |
|
|
|
|
copts = select({ |
|
|
|
|
":windows": [], |
|
|
|
|
"//conditions:default": COPTS |
|
|
|
|
"//conditions:default": COPTS, |
|
|
|
|
}), |
|
|
|
|
deps = [ |
|
|
|
|
":upb", |
|
|
|
@ -283,7 +286,7 @@ cc_library( |
|
|
|
|
hdrs = ["upbc/generator.h"], |
|
|
|
|
copts = select({ |
|
|
|
|
":windows": [], |
|
|
|
|
"//conditions:default": CPPOPTS |
|
|
|
|
"//conditions:default": CPPOPTS, |
|
|
|
|
}), |
|
|
|
|
deps = [ |
|
|
|
|
"@com_google_absl//absl/base:core_headers", |
|
|
|
@ -299,7 +302,7 @@ cc_binary( |
|
|
|
|
srcs = ["upbc/main.cc"], |
|
|
|
|
copts = select({ |
|
|
|
|
":windows": [], |
|
|
|
|
"//conditions:default": CPPOPTS |
|
|
|
|
"//conditions:default": CPPOPTS, |
|
|
|
|
}), |
|
|
|
|
visibility = ["//visibility:public"], |
|
|
|
|
deps = [ |
|
|
|
@ -341,7 +344,7 @@ cc_library( |
|
|
|
|
], |
|
|
|
|
copts = select({ |
|
|
|
|
":windows": [], |
|
|
|
|
"//conditions:default": CPPOPTS |
|
|
|
|
"//conditions:default": CPPOPTS, |
|
|
|
|
}), |
|
|
|
|
deps = [ |
|
|
|
|
":handlers", |
|
|
|
@ -358,7 +361,7 @@ cc_test( |
|
|
|
|
], |
|
|
|
|
copts = select({ |
|
|
|
|
":windows": [], |
|
|
|
|
"//conditions:default": COPTS |
|
|
|
|
"//conditions:default": COPTS, |
|
|
|
|
}), |
|
|
|
|
deps = [ |
|
|
|
|
":port", |
|
|
|
@ -390,7 +393,7 @@ cc_test( |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
upb_proto_reflection_library( |
|
|
|
|
upb_proto_library( |
|
|
|
|
name = "test_messages_proto3_proto_upb", |
|
|
|
|
testonly = 1, |
|
|
|
|
deps = ["@com_google_protobuf//:test_messages_proto3_proto"], |
|
|
|
@ -416,7 +419,7 @@ cc_test( |
|
|
|
|
], |
|
|
|
|
copts = select({ |
|
|
|
|
":windows": [], |
|
|
|
|
"//conditions:default": CPPOPTS |
|
|
|
|
"//conditions:default": CPPOPTS, |
|
|
|
|
}), |
|
|
|
|
deps = [ |
|
|
|
|
":handlers", |
|
|
|
@ -445,7 +448,7 @@ cc_test( |
|
|
|
|
srcs = ["tests/test_cpp.cc"], |
|
|
|
|
copts = select({ |
|
|
|
|
":windows": [], |
|
|
|
|
"//conditions:default": CPPOPTS |
|
|
|
|
"//conditions:default": CPPOPTS, |
|
|
|
|
}), |
|
|
|
|
deps = [ |
|
|
|
|
":handlers", |
|
|
|
@ -463,7 +466,7 @@ cc_test( |
|
|
|
|
srcs = ["tests/test_table.cc"], |
|
|
|
|
copts = select({ |
|
|
|
|
":windows": [], |
|
|
|
|
"//conditions:default": CPPOPTS |
|
|
|
|
"//conditions:default": CPPOPTS, |
|
|
|
|
}), |
|
|
|
|
deps = [ |
|
|
|
|
":port", |
|
|
|
@ -480,7 +483,7 @@ cc_binary( |
|
|
|
|
srcs = ["tests/file_descriptor_parsenew_fuzzer.cc"], |
|
|
|
|
copts = select({ |
|
|
|
|
":windows": [], |
|
|
|
|
"//conditions:default": CPPOPTS |
|
|
|
|
"//conditions:default": CPPOPTS, |
|
|
|
|
}) + select({ |
|
|
|
|
"//conditions:default": [], |
|
|
|
|
":fuzz": ["-fsanitize=fuzzer,address"], |
|
|
|
@ -501,7 +504,7 @@ cc_test( |
|
|
|
|
srcs = ["tests/pb/test_encoder.cc"], |
|
|
|
|
copts = select({ |
|
|
|
|
":windows": [], |
|
|
|
|
"//conditions:default": CPPOPTS |
|
|
|
|
"//conditions:default": CPPOPTS, |
|
|
|
|
}), |
|
|
|
|
deps = [ |
|
|
|
|
":descriptor_upbproto", |
|
|
|
@ -546,7 +549,7 @@ cc_test( |
|
|
|
|
], |
|
|
|
|
copts = select({ |
|
|
|
|
":windows": [], |
|
|
|
|
"//conditions:default": CPPOPTS |
|
|
|
|
"//conditions:default": CPPOPTS, |
|
|
|
|
}), |
|
|
|
|
deps = [ |
|
|
|
|
":test_json_upbproto", |
|
|
|
@ -589,16 +592,16 @@ cc_binary( |
|
|
|
|
], |
|
|
|
|
copts = select({ |
|
|
|
|
":windows": [], |
|
|
|
|
"//conditions:default": COPTS |
|
|
|
|
"//conditions:default": COPTS, |
|
|
|
|
}) + ["-Ibazel-out/k8-fastbuild/bin"], |
|
|
|
|
deps = [ |
|
|
|
|
":conformance_proto_upb", |
|
|
|
|
":conformance_proto_upbdefs", |
|
|
|
|
":json", |
|
|
|
|
":reflection", |
|
|
|
|
":test_messages_proto2_upbdefs", |
|
|
|
|
":test_messages_proto3_upbdefs", |
|
|
|
|
":reflection", |
|
|
|
|
":textformat", |
|
|
|
|
":json", |
|
|
|
|
":upb", |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
@ -653,7 +656,7 @@ cc_library( |
|
|
|
|
hdrs = ["upb.h"], |
|
|
|
|
copts = select({ |
|
|
|
|
":windows": [], |
|
|
|
|
"//conditions:default": COPTS |
|
|
|
|
"//conditions:default": COPTS, |
|
|
|
|
}), |
|
|
|
|
) |
|
|
|
|
|
|
|
|
@ -679,23 +682,23 @@ cc_library( |
|
|
|
|
|
|
|
|
|
cc_test( |
|
|
|
|
name = "test_lua", |
|
|
|
|
linkstatic = 1, |
|
|
|
|
srcs = ["tests/bindings/lua/main.c"], |
|
|
|
|
data = [ |
|
|
|
|
"@com_google_protobuf//:conformance_proto", |
|
|
|
|
"@com_google_protobuf//:descriptor_proto", |
|
|
|
|
":descriptor_proto_lua", |
|
|
|
|
":test_messages_proto3_proto_lua", |
|
|
|
|
":test_proto_lua", |
|
|
|
|
"tests/bindings/lua/test_upb.lua", |
|
|
|
|
"third_party/lunit/console.lua", |
|
|
|
|
"third_party/lunit/lunit.lua", |
|
|
|
|
"upb/bindings/lua/upb.lua", |
|
|
|
|
":descriptor_proto_lua", |
|
|
|
|
":test_messages_proto3_proto_lua", |
|
|
|
|
":test_proto_lua", |
|
|
|
|
"@com_google_protobuf//:conformance_proto", |
|
|
|
|
"@com_google_protobuf//:descriptor_proto", |
|
|
|
|
], |
|
|
|
|
linkstatic = 1, |
|
|
|
|
deps = [ |
|
|
|
|
":lupb", |
|
|
|
|
"@lua//:liblua", |
|
|
|
|
] |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
cc_binary( |
|
|
|
@ -703,12 +706,12 @@ cc_binary( |
|
|
|
|
srcs = ["upb/bindings/lua/upbc.cc"], |
|
|
|
|
copts = select({ |
|
|
|
|
":windows": [], |
|
|
|
|
"//conditions:default": CPPOPTS |
|
|
|
|
"//conditions:default": CPPOPTS, |
|
|
|
|
}), |
|
|
|
|
visibility = ["//visibility:public"], |
|
|
|
|
deps = [ |
|
|
|
|
"@com_google_absl//absl/strings", |
|
|
|
|
"@com_google_protobuf//:protoc_lib" |
|
|
|
|
"@com_google_protobuf//:protoc_lib", |
|
|
|
|
], |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|