mirror of
https://github.com/depp/syncfiles.git
synced 2024-11-24 17:31:40 +00:00
70abe95ff1
This adds a a "simple" red-black tree that can store a record of each file both on the local and remote side.
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",
|
|
],
|
|
)
|