-
Notifications
You must be signed in to change notification settings - Fork 4
/
BUCK
56 lines (51 loc) · 882 Bytes
/
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
HEADERS = subdir_glob([
('include', '**/*.h'),
('experimental/include', '**/*.h'),
],
excludes = [
'include/altruct/concurrency/concurrency.h',
],
prefix='')
TEST_UTIL_HEADERS = subdir_glob([
('test_util/include', '**/*.h'),
],
prefix='')
def merge_dicts(list_of_dicts):
r = {}
for d in list_of_dicts:
r.update(d)
return r
cxx_library(
name = 'altruct_lib',
srcs = glob([
'src/**/*.cpp',
],
excludes=[
]),
headers = HEADERS,
)
cxx_test(
name = 'altruct_tests',
srcs = glob([
'test/**/*.cpp',
],
excludes=[
'test/concurrency/concurrency_test.cpp'
]),
headers = merge_dicts([HEADERS, TEST_UTIL_HEADERS]),
deps = [
':altruct_lib',
],
)
cxx_binary(
name = 'altruct_samples',
srcs = glob([
'sample/**/*.cpp',
],
excludes=[
]),
headers = HEADERS,
deps = [
':altruct_lib',
],
)