forked from njlr/r3
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBUCK
50 lines (45 loc) · 945 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
load('//:subdir_glob.bzl', 'subdir_glob')
load('//:buckaroo_macros.bzl', 'buckaroo_deps_from_package')
macos_headers = {
'config.h': 'src/config.h.macosx',
}
linux_headers = {
'config.h': 'src/config.h.linux',
}
prebuilt_cxx_library(
name = 'config',
header_namespace = '',
header_only = True,
exported_platform_headers = [
('macos.*', macos_headers),
('linux.*', linux_headers),
],
visibility = [
'PUBLIC',
],
)
cxx_library(
name = 'r3',
header_namespace = '',
exported_headers = subdir_glob([
('include', '**/*.h'),
('include', '**/*.hpp'),
], prefix = 'r3'),
headers = subdir_glob([
('include', '**/*.h'),
('include', '**/*.hpp'),
('src', '**/*.h'),
]),
srcs = glob([
'src/**/*.c',
], exclude = [
'src/gvc.c',
'src/json.c',
]),
deps = [
':config',
] + buckaroo_deps_from_package('github.com/buckaroo-pm/pcre'),
visibility = [
'PUBLIC',
],
)