-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathBUCK
98 lines (94 loc) · 2.36 KB
/
BUCK
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Generated by Buckaroo - https://buckaroo.pm
include_defs('//BUCKAROO_DEPS')
cxx_library(
name = 'yaml-cpp',
header_namespace = '',
srcs = glob([
'dependencies/yaml-cpp/src/**/*.cpp',
]),
headers = subdir_glob([
('dependencies/yaml-cpp/src', '**/*.h'),
]),
exported_headers = subdir_glob([
('dependencies/yaml-cpp/include', 'yaml-cpp/**/*.h'),
]),
visibility = [
'PUBLIC',
],
)
#cxx_library(
# name = 'janus',
# header_namespace = 'janus',
# srcs = glob([
# './**/*.cpp',
# './**/*.cc',
# ]),
# headers = subdir_glob([ # private include files
# ('quckproject/detail', '**/*.h'), # they are only accesible inside the library
# ('quckproject/detail', '**/*.hpp'),
# ]),
# exported_headers = subdir_glob([ # public include files
# ('quckproject/include', '**/*.h'), # those will be exported
# ('quckproject/include', '**/*.hpp'), # and accessible via <quckproject/header.h>
# ]),
# deps = BUCKAROO_DEPS,
# visibility = ['PUBLIC']
#)
cxx_library(
name = 'rrr',
srcs = glob([
'src/rrr/base/*.cpp',
'src/rrr/misc/*.cpp',
'src/rrr/rpc/*.cpp',
'src/rrr/coroutine/*.cc',
]),
headers = subdir_glob([ # private include files
('src/rrr', '**/*.hpp'),
('src/rrr', '**/*.h'),
]),
# exported_headers = subdir_glob([ # public include files
# ('quckproject/include', '**/*.h'), # those will be exported
# ('quckproject/include', '**/*.hpp'), # and accessible via <quckproject/header.h>
# ]),
deps = BUCKAROO_DEPS,
visibility = ['PUBLIC']
)
cxx_binary(
name = 'main',
srcs = glob([
'src/rrr/base/*.cpp',
'src/rrr/misc/*.cpp',
'src/rrr/rpc/*.cpp',
'src/rrr/coroutine/*.cc',
'src/memdb/*.cc',
'src/deptran/**/*.cc',
'src/deptran/**/*.cpp',
'src/bench/**/*.cc',
'src/bench/**/*.cpp',
]),
headers = subdir_glob([
('src', "**/*.h"),
('src/deptran', "**/*.h"),
('src/memdb', "**/*.h"),
('src/rrr', "**/*.hpp"),
('src/rrr', "**/*.h"),
],
excludes = [
"src/rrr/mq/*.h",
],
),
# deps = BUCKAROO_DEPS,
deps = [
'boost.core//:core',
'boost.algorithm//:algorithm',
'boost.utility//:utility',
'boost.filesystem//:filesystem',
'boost.context//:context',
'boost.coroutine2//:coroutine2',
'boost.thread//:thread',
':yaml-cpp',
],
link_style = 'static',
linker_flags = [''],
visibility = ['PUBLIC']
)