mirror of
https://github.com/bazel-contrib/rules_foreign_cc
synced 2024-11-30 16:42:07 +00:00
e4399415b8
* Added `targets` API to all existing build rules * Updated examples * Restore making the make toolchain always available. * Add support for generator cmake parsing and setting CMAKE_MAKE_PROGRAM * Cleaned up duplicate generator arguments * Fixed cmake tests * Updated docs * Addressed PR feedback * Fixed missing and incorrect generators * Fixed `generate_args` name
27 lines
581 B
Python
27 lines
581 B
Python
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"],
|
|
)
|