syncfiles/lib/BUILD.bazel
2022-03-30 05:18:21 -04:00

47 lines
723 B
Python

load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
load("//bazel:copts.bzl", "COPTS")
cc_library(
name = "lib",
srcs = [
"toolbox.c",
"util.c",
],
hdrs = [
"defs.h",
"endian.h",
"util.h",
],
copts = COPTS,
visibility = ["//visibility:public"],
)
cc_library(
name = "test",
testonly = True,
srcs = [
"test.c",
],
hdrs = [
"test.h",
],
copts = COPTS,
visibility = ["//visibility:public"],
deps = [
":lib",
],
)
cc_test(
name = "endian_test",
size = "small",
srcs = [
"endian_test.c",
],
copts = COPTS,
deps = [
":lib",
":test",
],
)