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
581 B
Python
Raw Normal View History

load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
load("@rules_foreign_cc//foreign_cc:defs.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",
targets = [
"simple",
"install",
],
deps = [":built_with_bazel"],
)
cc_test(
name = "test",
srcs = ["testSimple.c"],
deps = [":simple"],
)