mirror of
https://github.com/depp/syncfiles.git
synced 2024-12-01 00:49:21 +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",
|
|
],
|
|
)
|