forked from boostorg/dll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
41 lines (39 loc) · 1.1 KB
/
BUILD.bazel
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
load("@rules_cc//cc:defs.bzl", "cc_library")
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
bool_flag(
name = "use_std_fs",
visibility = ["//visibility:public"],
build_setting_default = False,
)
config_setting(name = "use_std_fs_enabled", flag_values = {":use_std_fs": "true"})
config_setting(name = "use_std_fs_disabled", flag_values = {":use_std_fs": "false"})
cc_library(
name = "boost.dll",
visibility = ["//visibility:public"],
defines = select({
":use_std_fs_enabled": ["BOOST_DLL_USE_STD_FS"],
":use_std_fs_disabled": [],
}),
hdrs = glob([
"include/**/*.hpp",
"include/**/*.h",
]),
includes = ["include"],
deps = [
"@boost.assert",
"@boost.config",
"@boost.core",
"@boost.filesystem",
"@boost.function",
"@boost.move",
"@boost.predef",
"@boost.smart_ptr",
"@boost.spirit",
"@boost.static_assert",
"@boost.system",
"@boost.throw_exception",
"@boost.type_index",
"@boost.type_traits",
"@boost.winapi",
],
)