2
0
Fork 0
mirror of https://github.com/bazel-contrib/rules_foreign_cc synced 2024-12-01 22:16:27 +00:00
rules_foreign_cc/examples/make_simple/BUILD
UebelAndre e285764b78
Restructed examples and enabled more testing (#515)
* Reorganized examples

* Documentation

* Third party
2021-02-26 20:21:13 +00:00

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",
],
)