-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.boost
executable file
·58 lines (50 loc) · 1.12 KB
/
BUILD.boost
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
# Description:
# The Boost library collection (http://www.boost.org)
#
# Most Boost libraries are header-only, in which case you only need to depend
# on :boost. If you need one of the libraries that has a separately-compiled
# implementation, depend on the appropriate libs rule.
package(default_visibility = ["//visibility:public"])
licenses(["notice"]) # Boost software license
cc_library(
name = "boost",
hdrs = glob([
"boost/**/*.hpp",
"boost/**/*.h",
"boost/**/*.ipp",
]),
includes = [
"."
],
)
cc_library(
name = "filesystem",
srcs = glob([ "libs/filesystem/src/*.cpp"]),
deps = [
":boost",
":system",
],
)
cc_library(
name = "iostreams",
srcs = glob(["libs/iostreams/src/*.cpp"]),
deps = [
":boost",
"@bzip2_archive//:bz2lib",
"@zlib_archive//:zlib",
],
)
cc_library(
name = "program_options",
srcs = glob([ "libs/program_options/src/*.cpp"]),
deps = [
":boost",
],
)
cc_library(
name = "system",
srcs = glob(["libs/system/src/*.cpp"]),
deps = [
":boost",
],
)