mirror of
https://github.com/bazelbuild/rules_cc
synced 2024-11-30 22:41:22 +00:00
aa7ff810cf
Eventually, when we are ready to pull out all the other rules to an external repository cc_shared_library will be moved with the others: cc_library, cc_binary,... RELNOTES:none PiperOrigin-RevId: 401307125 Change-Id: I14f48a7753598eaa4269554e87351a70f75111c2
40 lines
865 B
Python
40 lines
865 B
Python
load("//cc:defs.bzl", "cc_binary")
|
|
|
|
cc_shared_library(
|
|
name = "baz_so",
|
|
permissions = [
|
|
"//examples/test_cc_shared_library:permissions",
|
|
],
|
|
roots = ["//examples/test_cc_shared_library:a_suffix"],
|
|
)
|
|
|
|
cc_shared_library(
|
|
name = "qux_so",
|
|
dynamic_deps = [":baz_so"],
|
|
permissions = [
|
|
"//examples/test_cc_shared_library:permissions",
|
|
],
|
|
roots = ["//examples/test_cc_shared_library:qux"],
|
|
)
|
|
|
|
cc_shared_library(
|
|
name = "qux2_so",
|
|
dynamic_deps = [":baz_so"],
|
|
permissions = [
|
|
"//examples/test_cc_shared_library:permissions",
|
|
],
|
|
roots = ["//examples/test_cc_shared_library:qux2"],
|
|
)
|
|
|
|
cc_binary(
|
|
name = "diamond_inheritance",
|
|
srcs = ["main.cc"],
|
|
dynamic_deps = [
|
|
":qux_so",
|
|
":qux2_so",
|
|
],
|
|
deps = [
|
|
"//examples/test_cc_shared_library:a_suffix",
|
|
],
|
|
)
|