Add :port dependencies to libraries that include it

pull/13171/head
Anna R 5 years ago
parent 7d1abedbdd
commit fc4941183f
  1. 9
      BUILD
  2. 5
      CMakeLists.txt
  3. 4
      bazel/upb_proto_library.bzl

@ -136,6 +136,7 @@ cc_library(
visibility = ["//visibility:public"],
deps = [
":descriptor_upbproto",
":port",
":table",
":upb",
],
@ -189,6 +190,7 @@ cc_library(
}),
deps = [
":reflection",
":port",
":table",
":upb",
],
@ -218,6 +220,7 @@ cc_library(
":descriptor_upbproto",
":handlers",
":reflection",
":port",
":table",
":upb",
],
@ -253,6 +256,7 @@ cc_library(
deps = [
":descriptor_upbproto",
":handlers",
":port",
":upb",
],
)
@ -331,6 +335,7 @@ cc_library(
}),
deps = [
":handlers",
":port",
":upb",
],
)
@ -346,6 +351,7 @@ cc_test(
"//conditions:default": COPTS
}),
deps = [
":port",
":upb",
":upb_pb",
":upb_test",
@ -376,6 +382,7 @@ cc_test(
}),
deps = [
":handlers",
":port",
":test_decoder_upbproto",
":upb",
":upb_pb",
@ -404,6 +411,7 @@ cc_test(
}),
deps = [
":handlers",
":port",
":reflection",
":test_cpp_upbproto",
":upb",
@ -420,6 +428,7 @@ cc_test(
"//conditions:default": CPPOPTS
}),
deps = [
":port",
":table",
":upb",
":upb_test",

@ -87,6 +87,7 @@ add_library(reflection
upb/msgfactory.h)
target_link_libraries(reflection
descriptor_upbproto
port
table
upb)
add_library(table INTERFACE)
@ -109,6 +110,7 @@ add_library(handlers
upb/sink.h)
target_link_libraries(handlers
reflection
port
table
upb)
add_library(upb_pb
@ -126,6 +128,7 @@ target_link_libraries(upb_pb
descriptor_upbproto
handlers
reflection
port
table
upb)
add_library(upb_json
@ -140,6 +143,7 @@ add_library(upb_cc_bindings INTERFACE)
target_link_libraries(upb_cc_bindings INTERFACE
descriptor_upbproto
handlers
port
upb)
add_library(upb_test
tests/testmain.cc
@ -147,6 +151,7 @@ add_library(upb_test
tests/upb_test.h)
target_link_libraries(upb_test
handlers
port
upb)

@ -238,7 +238,8 @@ _upb_proto_library_aspect = aspect(
),
"_upb": attr.label_list(default = [
"//:generated_code_support__only_for_generated_code_do_not_use__i_give_permission_to_break_me",
"//:upb"
"//:port",
"//:upb",
]),
"_ext": attr.string(default = ".upb"),
}),
@ -279,6 +280,7 @@ _upb_proto_reflection_library_aspect = aspect(
),
"_upb": attr.label_list(
default = [
"//:port",
"//:upb",
"//:reflection",
],

Loading…
Cancel
Save