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