2
0
Fork 0
mirror of https://github.com/bazel-contrib/rules_foreign_cc synced 2024-12-03 02:52:58 +00:00
rules_foreign_cc/examples/cmake_defines/BUILD

26 lines
580 B
Python
Raw Normal View History

load("@rules_foreign_cc//tools/build_defs:cmake.bzl", "cmake_external")
cmake_external(
name = "lib_a",
lib_source = ":lib_a_sources",
static_libraries = ["liblib_a.a"],
deps = [":lib_b"],
)
cmake_external(
name = "lib_b",
defines = ["FOO"],
lib_source = ":lib_b_sources",
static_libraries = ["liblib_b.a"],
)
filegroup(
name = "lib_a_sources",
srcs = ["lib_a/{}".format(s) for s in ["CMakeLists.txt", "lib_a.cpp"]],
)
filegroup(
name = "lib_b_sources",
srcs = ["lib_b/{}".format(s) for s in ["CMakeLists.txt", "lib_b.cpp"]],
)