syncfiles/lib/BUILD.bazel
2022-04-10 03:37:14 -04:00

61 lines
917 B
Python

load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
load("//bazel:copts.bzl", "COPTS")
cc_library(
name = "lib",
srcs = [
"crc32.c",
"toolbox.c",
"util.c",
],
hdrs = [
"crc32.h",
"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",
],
)
cc_test(
name = "crc32_test",
size = "small",
srcs = [
"crc32_test.c",
],
copts = COPTS,
deps = [
":lib",
],
)