-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.gn
82 lines (63 loc) · 1.33 KB
/
BUILD.gn
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
config("executable_config") {
include_dirs = [ "//" ]
if (host_os == "linux") {
ldflags = [
# ld.so understands the string $ORIGIN (or equivalently ${ORIGIN}) in an rpath
# specification (DT_RPATH or DT_RUNPATH) to mean the directory containing the
# application executable.
#"-Wl,-rpath-link=\$ORIGIN",
"-Wl,-rpath=\$ORIGIN",
]
}
}
config("shared_library_config") {
include_dirs = [ "//" ]
cflags = [ "-fPIC" ]
}
config("static_libaray_config") {
include_dirs = [ "//" ]
}
config("tests_config") {
cflags = [
"-fpermissive",
# full access
"-fno-access-control",
# coverage
"-fprofile-arcs",
"-ftest-coverage",
]
#coverage
ldflags = [ "--coverage" ]
libs = [
"gtest",
"gtest_main",
# "gmock",
# "gmock_main",
]
}
# executable("main") {
# sources = [ "pillar/main.cc" ]
# }
# targets
shared_library("pillar") {
deps = [ "//pillar:pillar_sources" ]
}
shared_library("tests") {
deps = [ "//tests:tests_sources" ]
}
executable("closure_tests") {
include_dirs = [ "//" ]
sources = [ "//tests/base/closure_tests.cc" ]
libs = [
"gtest",
"gtest_main",
]
}
executable("functor_traits_tests") {
include_dirs = [ "//" ]
sources = [ "//tests/thread/functor_traits_tests.cc" ]
libs = [
"gtest",
"gtest_main",
]
}