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/configure_with_bazel_transitive/BUILD.bazel

27 lines
608 B
Python
Raw Normal View History

load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
load("@rules_foreign_cc//tools/build_defs:configure.bzl", "configure_make")
cc_library(
name = "built_with_bazel",
srcs = ["builtWithBazel.c"],
hdrs = ["builtWithBazel.h"],
includes = ["."],
)
configure_make(
name = "simple",
configure_in_place = True,
lib_source = "//configure_with_bazel_transitive/simple_lib:simple_srcs",
make_commands = [
"make simple",
"make install",
],
deps = [":built_with_bazel"],
)
cc_test(
name = "test",
srcs = ["testSimple.c"],
deps = [":simple"],
)