forked from Checkmk/checkmk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
48 lines (42 loc) · 1.44 KB
/
BUILD
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
load("@bazel_skylib//rules:common_settings.bzl", "string_flag")
load("@hedron_compile_commands//:refresh_compile_commands.bzl", "refresh_compile_commands")
exports_files([
"Pipfile",
"Pipfile.lock",
])
string_flag(
name = "cmk_version",
build_setting_default = "UNSET",
visibility = ["//:__subpackages__"],
)
string_flag(
# For a discussion of Linux Standard Base (LSB) vs Filesystem Hierarchy Standard (FHS),
# see https://lists.linux-foundation.org/pipermail/lsb-discuss/2011-February/006674.html
#
# Current state: debian-based distros use LSB and the others, including el{8,9} and sles
# use FHS.
name = "filesystem_layout",
build_setting_default = "FILESYSTEM_LAYOUT_INVALID",
visibility = ["//visibility:public"],
)
config_setting(
name = "lsb_filesystem_layout",
flag_values = {":filesystem_layout": "lsb"},
)
config_setting(
name = "fhs_filesystem_layout",
flag_values = {":filesystem_layout": "fhs"},
)
# Generate `compile_commands.json` with `bazel run //:refresh_compile_commands`.
refresh_compile_commands(
name = "refresh_compile_commands",
# TODO: Do we want that or not? We get quite a few duplicate entries which often differ without that option.
# exclude_headers = "all",
targets = {
# target: build-flags
"//packages/cmc:all": "",
"//packages/livestatus:all": "",
"//packages/neb:all": "",
"//packages/unixcat:all": "",
},
)