mirror of
https://github.com/bazel-contrib/rules_foreign_cc
synced 2024-12-04 08:02:31 +00:00
edbfa3bfa9
* Restructured rules to match architecture * Added exports of all symbols in the deprecated location for legacy support * Updated examples
23 lines
387 B
Python
23 lines
387 B
Python
load("@rules_cc//cc:defs.bzl", "cc_test")
|
|
load("@rules_foreign_cc//foreign_cc:defs.bzl", "ninja")
|
|
|
|
ninja(
|
|
name = "ninja_lib",
|
|
lib_source = "//ninja_simple/code:srcs",
|
|
out_static_libs = ["liba.a"],
|
|
targets = [
|
|
"",
|
|
"install",
|
|
],
|
|
)
|
|
|
|
cc_test(
|
|
name = "test_lib",
|
|
srcs = [
|
|
"test_libb.cpp",
|
|
],
|
|
deps = [
|
|
":ninja_lib",
|
|
],
|
|
)
|