| licenses(["notice"]) |
| |
| package(default_visibility = ["//src/main/starlark/tests/builtins_bzl/cc/cc_shared_library:__subpackages__"]) |
| |
| TAGS = [ |
| "manual", |
| "nobuilder", |
| ] |
| |
| cc_binary( |
| name = "should_fail_binary", |
| dynamic_deps = ["//src/main/starlark/tests/builtins_bzl/cc/cc_shared_library/test_cc_shared_library:bar_so"], |
| tags = TAGS, |
| deps = [ |
| "//src/main/starlark/tests/builtins_bzl/cc/cc_shared_library/test_cc_shared_library:barX", |
| ], |
| ) |
| |
| cc_shared_library( |
| name = "should_fail_shared_lib", |
| dynamic_deps = ["//src/main/starlark/tests/builtins_bzl/cc/cc_shared_library/test_cc_shared_library:bar_so"], |
| deps = [ |
| ":intermediate", |
| ], |
| tags = TAGS, |
| ) |
| |
| cc_library( |
| name = "intermediate", |
| deps = [ |
| "//src/main/starlark/tests/builtins_bzl/cc/cc_shared_library/test_cc_shared_library:barX", |
| ], |
| ) |
| |
| cc_shared_library( |
| name = "permissions_fail_so", |
| deps = [ |
| "//src/main/starlark/tests/builtins_bzl/cc/cc_shared_library/test_cc_shared_library3:bar", |
| ], |
| tags = TAGS, |
| ) |
| |
| cc_shared_library_permissions( |
| name = "permissions_fail", |
| tags = TAGS, |
| targets = [ |
| "//src/main/starlark/tests/builtins_bzl/cc/cc_shared_library/test_cc_shared_library:foo", |
| ], |
| ) |
| |
| cc_library( |
| name = "a", |
| srcs = ["a.cc"], |
| ) |
| |
| cc_library( |
| name = "b", |
| srcs = ["b.cc"], |
| ) |
| |
| cc_library( |
| name = "c", |
| srcs = ["c.cc"], |
| ) |
| |
| cc_shared_library( |
| name = "two_dynamic_deps_same_export_in_so", |
| dynamic_deps = [ |
| ":b_so", |
| ":b2_so", |
| ], |
| deps = [ |
| ":a", |
| ], |
| tags = TAGS, |
| ) |
| |
| cc_binary( |
| name = "two_dynamic_deps_same_export_in_binary", |
| srcs = ["main.cc"], |
| dynamic_deps = [ |
| ":b_so", |
| ":b2_so", |
| ], |
| tags = TAGS, |
| ) |
| |
| cc_shared_library( |
| name = "b_so", |
| deps = [ |
| ":b", |
| ], |
| tags = TAGS, |
| ) |
| |
| cc_shared_library( |
| name = "b2_so", |
| deps = [ |
| ":b", |
| ], |
| tags = TAGS, |
| ) |