forked from ReneNyffenegger/cpp-base64
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
55 lines (52 loc) · 1.12 KB
/
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
50
51
52
53
54
55
cc_library(
name = "base64",
srcs = ["base64.cpp"],
hdrs = ["base64.h"],
copts = [
"-Werror",
"-Wall",
"-Wextra",
"-pedantic",
"-Wcast-align",
"-Wcast-qual",
"-Wctor-dtor-privacy",
"-Wdisabled-optimization",
"-Wformat=2",
"-Winit-self",
"-Wlogical-op",
"-Wmissing-include-dirs",
"-Wmissing-declarations",
"-Wnoexcept",
"-Wold-style-cast",
"-Woverloaded-virtual",
"-Wredundant-decls",
"-Wshadow",
"-Wsign-promo",
"-Wstrict-null-sentinel",
"-Wstrict-overflow=5",
"-Wundef",
"-Wno-unused",
"-Wno-variadic-macros",
"-Wno-parentheses",
"-fdiagnostics-show-option",
],
)
cc_test(
name = "base64_test_11",
srcs = ["test.cpp"],
deps = [":base64"],
copts = ["-std=c++11"],
)
cc_test(
name = "base64_test_17",
srcs = ["test.cpp"],
deps = [":base64"],
copts = ["-std=c++17"],
)
test_suite(
name = "all_tests",
tests = [
":base64_test_11",
":base64_test_17",
],
)