mirror of
https://github.com/depp/syncfiles.git
synced 2024-11-28 12:51:05 +00:00
33 lines
511 B
Python
33 lines
511 B
Python
|
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
|
||
|
load("//bazel:copts.bzl", "COPTS")
|
||
|
|
||
|
cc_library(
|
||
|
name = "tree",
|
||
|
srcs = [
|
||
|
"tree.c",
|
||
|
],
|
||
|
hdrs = [
|
||
|
"meta.h",
|
||
|
"tree.h",
|
||
|
],
|
||
|
copts = COPTS,
|
||
|
visibility = ["//visibility:public"],
|
||
|
deps = [
|
||
|
"//lib",
|
||
|
],
|
||
|
)
|
||
|
|
||
|
cc_test(
|
||
|
name = "tree_test",
|
||
|
size = "small",
|
||
|
srcs = [
|
||
|
"tree_test.c",
|
||
|
],
|
||
|
copts = COPTS,
|
||
|
deps = [
|
||
|
":tree",
|
||
|
"//lib",
|
||
|
"//lib:test",
|
||
|
],
|
||
|
)
|