-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
62 lines (57 loc) · 1.02 KB
/
BUILD
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
56
57
58
59
60
61
62
load("@rules_cc//cc:defs.bzl", "cc_library")
cc_library(
name = "catch2",
copts = [
"-std=c++11",
],
hdrs = [
"third_party/catch2/catch.hpp",
],
includes = [
"third_party",
],
visibility = ["//visibility:public"],
)
cc_library(
name = "inversify",
copts = [
"-std=c++17",
"-pedantic-errors",
"-Wall",
"-Wextra",
"-Wshadow",
"-Wunused",
],
hdrs = glob([
"include/**/*.hpp",
]),
includes = [
"include",
],
visibility = ["//visibility:public"]
)
cc_library(
name = "test_mocks",
hdrs = glob([
"test/mock/*.hpp",
]),
includes = [
"test",
],
visibility = ["//visibility:public"]
)
cc_binary(
name = "test",
copts = [
"-DINVERSIFY_BINDING_INSPECTION",
],
srcs = glob([
"test/**/*.cpp",
]),
deps = [
":catch2",
":inversify",
":test_mocks",
],
visibility = ["//visibility:public"]
)