diff options
author | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-07-25 16:22:46 +0200 |
---|---|---|
committer | Klaus Aehlig <klaus.aehlig@huawei.com> | 2024-07-25 16:22:46 +0200 |
commit | 1825c775dafd591e2a9e6bf12065e8c41727b96f (patch) | |
tree | 2e6aa43ba606ad2b086e5d73590bb56db4ee4bc9 /tests/test_cases/deps/components/TARGETS | |
parent | e85a871e579ef77b6b226249d199a50d8a91f08f (diff) | |
download | rules-cc-1825c775dafd591e2a9e6bf12065e8c41727b96f.tar.gz |
Add a test for the use of the "components" field of a library
Diffstat (limited to 'tests/test_cases/deps/components/TARGETS')
-rw-r--r-- | tests/test_cases/deps/components/TARGETS | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/tests/test_cases/deps/components/TARGETS b/tests/test_cases/deps/components/TARGETS new file mode 100644 index 0000000..edd62db --- /dev/null +++ b/tests/test_cases/deps/components/TARGETS @@ -0,0 +1,47 @@ +{ "combined_static_lib": + { "type": ["@", "rules", "CC", "library"] + , "name": ["combstatic"] + , "components": ["foo", "bar"] + } +, "combined_shared_lib": + { "type": ["@", "rules", "CC", "library"] + , "name": ["combshared"] + , "shared": [""] + , "components": ["foo", "bar"] + } +, "foo": + { "type": ["@", "rules", "CC", "library"] + , "name": ["foo"] + , "hdrs": ["foo.hpp"] + , "srcs": ["foo.cpp"] + , "deps": ["foodep"] + } +, "foodep": + { "type": ["@", "rules", "CC", "library"] + , "name": ["foodep"] + , "hdrs": ["foodep.hpp"] + , "srcs": ["foodep.cpp"] + } +, "bar": + { "type": ["@", "rules", "CC", "library"] + , "name": ["bar"] + , "hdrs": ["bar.hpp"] + , "srcs": ["bar.cpp"] + } +, "main": + { "type": ["@", "rules", "CC", "binary"] + , "name": ["main"] + , "srcs": ["main.cpp"] + , "private-deps": ["combined_static_lib"] + } +, "main-shared": + { "type": ["@", "rules", "CC", "binary"] + , "name": ["main"] + , "srcs": ["main.cpp"] + , "private-deps": ["combined_shared_lib"] + } +, "main-dynamic": + { "type": ["@", "rules", "CC", "install-with-deps"] + , "targets": ["main-shared"] + } +} |