@@ -9,6 +9,10 @@ load("//bazel:proto_library.bzl", "proto_library")
99load ("//bazel:upb_c_proto_library.bzl" , "upb_c_proto_library" )
1010load ("//bazel:upb_minitable_proto_library.bzl" , "upb_minitable_proto_library" )
1111load ("//bazel:upb_proto_reflection_library.bzl" , "upb_proto_reflection_library" )
12+ load (
13+ "//bazel/tests:protobuf_test_proto_library.bzl" ,
14+ "protobuf_test_proto_library" ,
15+ )
1216load ("//build_defs:cpp_opts.bzl" , "COPTS" , "LINK_OPTS" )
1317load ("//upb/cmake:build_defs.bzl" , "staleness_test" )
1418
@@ -980,11 +984,13 @@ filegroup(
980984 "map_unittest.proto" ,
981985 "unittest.proto" ,
982986 "unittest_custom_options.proto" ,
987+ "unittest_custom_options_unlinked.proto" ,
983988 "unittest_embed_optimize_for.proto" ,
984989 "unittest_empty.proto" ,
985990 "unittest_enormous_descriptor.proto" ,
986991 "unittest_features.proto" ,
987992 "unittest_import.proto" ,
993+ "unittest_import_option.proto" ,
988994 "unittest_import_public.proto" ,
989995 "unittest_invalid_features.proto" ,
990996 "unittest_lite_imports_nonlite.proto" ,
@@ -1300,6 +1306,31 @@ cc_proto_library(
13001306 deps = [":unittest_string_view_proto" ],
13011307)
13021308
1309+ proto_library (
1310+ name = "unittest_custom_options_unlinked_proto" ,
1311+ srcs = ["unittest_custom_options_unlinked.proto" ],
1312+ strip_import_prefix = "/src" ,
1313+ deps = [
1314+ "//:any_proto" ,
1315+ "//:descriptor_proto" ,
1316+ ],
1317+ )
1318+
1319+ protobuf_test_proto_library (
1320+ name = "unittest_import_option_proto" ,
1321+ srcs = ["unittest_import_option.proto" ],
1322+ option_deps = [
1323+ ":test_protos" ,
1324+ ":unittest_custom_options_unlinked_proto" ,
1325+ ],
1326+ strip_import_prefix = "/src" ,
1327+ )
1328+
1329+ cc_proto_library (
1330+ name = "unittest_import_option_cc_proto" ,
1331+ deps = [":unittest_import_option_proto" ],
1332+ )
1333+
13031334cc_test (
13041335 name = "string_view_test" ,
13051336 srcs = ["string_view_test.cc" ],
@@ -1755,6 +1786,7 @@ cc_test(
17551786 ":port" ,
17561787 ":protobuf" ,
17571788 ":test_util" ,
1789+ ":unittest_import_option_cc_proto" ,
17581790 ":unittest_proto3_cc_proto" ,
17591791 "//src/google/protobuf/stubs" ,
17601792 "//src/google/protobuf/testing" ,
0 commit comments