-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathBUILD.bazel
49 lines (45 loc) · 875 Bytes
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
load("@rules_cc//cc:defs.bzl", "cc_library", "cc_test")
package(default_visibility = ["//visibility:public"])
COPTS = select({
"@platforms//os:windows": [
"/W4",
"/WX",
],
"//conditions:default": [
"-Wall",
"-Wextra",
"-Wundef",
"-Werror",
],
})
cc_library(
name = "compression",
srcs = [
"src/compression.c",
],
hdrs = [
"src/compression.h",
],
copts = COPTS + [
"-Iexternal",
],
deps = [
"@bitshuffle",
"@lz4",
],
)
cc_test(
name = "compression_test",
srcs = [
"src/compression_test.cc",
],
copts = COPTS + select({
"@platforms//os:windows": [],
"//conditions:default": ["-std=c++14"],
}),
deps = [
":compression",
"@gtest",
"@gtest//:gtest_main",
],
)