-
Notifications
You must be signed in to change notification settings - Fork 462
/
BUILD
73 lines (63 loc) · 2.01 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
load("@bazel_skylib//rules:common_settings.bzl", "string_flag")
load("@hedron_compile_commands//:refresh_compile_commands.bzl", "refresh_compile_commands")
load("@repo_license//:license.bzl", "REPO_LICENSE")
exports_files([
"Pipfile",
"Pipfile.lock",
"pyproject.toml",
"requirements_lock.txt",
])
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"},
)
string_flag(
name = "repo_license",
build_setting_default = REPO_LICENSE,
visibility = ["//visibility:public"],
)
config_setting(
name = "gpl_repo",
flag_values = {":repo_license": "gpl"},
)
config_setting(
# We really mean the license here, editions are handled differently!
name = "gpl+enterprise_repo",
flag_values = {":repo_license": "gpl+enterprise"},
)
# 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": "",
},
)
alias(
name = "requirements.update",
actual = "//cmk:requirements.update",
)