Merge pull request #233 from annarev/add_port_dependencies

Add port dependencies
pull/13171/head
Joshua Haberman 5 years ago committed by GitHub
commit d8f3d6f9d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      BUILD
  2. 6
      CMakeLists.txt
  3. 3
      bazel/upb_proto_library.bzl

12
BUILD

@ -101,6 +101,8 @@ cc_library(
hdrs = [
"upb/generated_util.h",
"upb/msg.h",
"upb/port_def.inc",
"upb/port_undef.inc",
],
copts = select({
":windows": [],
@ -108,7 +110,6 @@ cc_library(
}),
visibility = ["//visibility:public"],
deps = [
":port",
":upb",
],
)
@ -136,6 +137,7 @@ cc_library(
visibility = ["//visibility:public"],
deps = [
":descriptor_upbproto",
":port",
":table",
":upb",
],
@ -189,6 +191,7 @@ cc_library(
}),
deps = [
":reflection",
":port",
":table",
":upb",
],
@ -218,6 +221,7 @@ cc_library(
":descriptor_upbproto",
":handlers",
":reflection",
":port",
":table",
":upb",
],
@ -253,6 +257,7 @@ cc_library(
deps = [
":descriptor_upbproto",
":handlers",
":port",
":upb",
],
)
@ -331,6 +336,7 @@ cc_library(
}),
deps = [
":handlers",
":port",
":upb",
],
)
@ -346,6 +352,7 @@ cc_test(
"//conditions:default": COPTS
}),
deps = [
":port",
":upb",
":upb_pb",
":upb_test",
@ -376,6 +383,7 @@ cc_test(
}),
deps = [
":handlers",
":port",
":test_decoder_upbproto",
":upb",
":upb_pb",
@ -404,6 +412,7 @@ cc_test(
}),
deps = [
":handlers",
":port",
":reflection",
":test_cpp_upbproto",
":upb",
@ -420,6 +429,7 @@ cc_test(
"//conditions:default": CPPOPTS
}),
deps = [
":port",
":table",
":upb",
":upb_test",

@ -78,7 +78,6 @@ target_link_libraries(upb
port)
add_library(generated_code_support__only_for_generated_code_do_not_use__i_give_permission_to_break_me INTERFACE)
target_link_libraries(generated_code_support__only_for_generated_code_do_not_use__i_give_permission_to_break_me INTERFACE
port
upb)
add_library(reflection
upb/def.c
@ -87,6 +86,7 @@ add_library(reflection
upb/msgfactory.h)
target_link_libraries(reflection
descriptor_upbproto
port
table
upb)
add_library(table INTERFACE)
@ -109,6 +109,7 @@ add_library(handlers
upb/sink.h)
target_link_libraries(handlers
reflection
port
table
upb)
add_library(upb_pb
@ -126,6 +127,7 @@ target_link_libraries(upb_pb
descriptor_upbproto
handlers
reflection
port
table
upb)
add_library(upb_json
@ -140,6 +142,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 +150,7 @@ add_library(upb_test
tests/upb_test.h)
target_link_libraries(upb_test
handlers
port
upb)

@ -238,7 +238,7 @@ _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"
"//:upb",
]),
"_ext": attr.string(default = ".upb"),
}),
@ -279,6 +279,7 @@ _upb_proto_reflection_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",
"//:reflection",
],

Loading…
Cancel
Save