2021-01-25 16:04:52 +00:00
|
|
|
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
|
2019-05-09 08:35:00 +00:00
|
|
|
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"],
|
|
|
|
)
|