2021-02-09 15:56:55 +00:00
|
|
|
load("//cc:defs.bzl", "cc_binary")
|
|
|
|
|
|
|
|
cc_shared_library(
|
|
|
|
name = "baz_so",
|
2021-02-23 13:03:02 +00:00
|
|
|
permissions = [
|
2021-02-09 15:56:55 +00:00
|
|
|
"//examples/test_cc_shared_library:permissions",
|
|
|
|
],
|
2021-02-23 13:03:02 +00:00
|
|
|
roots = ["//examples/test_cc_shared_library:a_suffix"],
|
2021-02-09 15:56:55 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
cc_shared_library(
|
|
|
|
name = "qux_so",
|
|
|
|
dynamic_deps = [":baz_so"],
|
|
|
|
permissions = [
|
|
|
|
"//examples/test_cc_shared_library:permissions",
|
|
|
|
],
|
2021-02-23 13:03:02 +00:00
|
|
|
roots = ["//examples/test_cc_shared_library:qux"],
|
2021-02-09 15:56:55 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
cc_shared_library(
|
|
|
|
name = "qux2_so",
|
|
|
|
dynamic_deps = [":baz_so"],
|
|
|
|
permissions = [
|
|
|
|
"//examples/test_cc_shared_library:permissions",
|
|
|
|
],
|
2021-02-23 13:03:02 +00:00
|
|
|
roots = ["//examples/test_cc_shared_library:qux2"],
|
2021-02-09 15:56:55 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
cc_binary(
|
|
|
|
name = "diamond_inheritance",
|
|
|
|
srcs = ["main.cc"],
|
|
|
|
dynamic_deps = [
|
|
|
|
":qux_so",
|
|
|
|
":qux2_so",
|
|
|
|
],
|
|
|
|
deps = [
|
2021-02-23 13:03:02 +00:00
|
|
|
"//examples/test_cc_shared_library:a_suffix",
|
|
|
|
],
|
2021-02-09 15:56:55 +00:00
|
|
|
)
|