mirror of
https://github.com/bazel-contrib/rules_foreign_cc
synced 2024-12-01 22:16:27 +00:00
e285764b78
* Reorganized examples * Documentation * Third party
24 lines
515 B
Python
24 lines
515 B
Python
load("@rules_cc//cc:defs.bzl", "cc_test")
|
|
load("@rules_foreign_cc//tools/build_defs:make.bzl", "make")
|
|
|
|
make(
|
|
name = "make_lib",
|
|
tools_deps = ["//make_simple/code:clang_wrapper.sh"],
|
|
env = {
|
|
"CLANG_WRAPPER": "$(execpath //make_simple/code:clang_wrapper.sh)",
|
|
},
|
|
lib_source = "//make_simple/code:sources",
|
|
static_libraries = ["liba.a"],
|
|
)
|
|
|
|
cc_test(
|
|
name = "test_lib",
|
|
srcs = [
|
|
"test_libb.cpp",
|
|
],
|
|
tags = ["windows"],
|
|
deps = [
|
|
":make_lib",
|
|
],
|
|
)
|