forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBUILD
More file actions
97 lines (86 loc) · 2.39 KB
/
Copy pathBUILD
File metadata and controls
97 lines (86 loc) · 2.39 KB
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
licenses(["notice"]) # Apache 2
exports_files([
"VERSION.txt",
"API_VERSION.txt",
".clang-format",
"pytest.ini",
".coveragerc",
"CODEOWNERS",
"OWNERS.md",
".github/config.yml",
"reviewers.yaml",
])
alias(
name = "envoy",
actual = "//source/exe:envoy",
visibility = ["//visibility:public"],
)
alias(
name = "envoy.stripped",
actual = "//source/exe:envoy-static.stripped",
visibility = ["//visibility:public"],
)
filegroup(
name = "clang_tidy_config",
srcs = [".clang-tidy"],
visibility = ["//visibility:public"],
)
# These two definitions exist to help reduce Envoy upstream core code depending on extensions.
# To avoid visibility problems, see notes in source/extensions/extensions_build_config.bzl
#
# TODO(#9953) //test/config_test:__pkg__ should probably be split up and removed.
# TODO(#9953) the config fuzz tests should be moved somewhere local and //test/config_test and //test/server removed.
package_group(
name = "extension_config",
packages = [
"//source/exe",
"//source/extensions/...",
"//test/config_test",
"//test/extensions/...",
"//test/server",
"//test/server/config_validation",
"//test/tools/...",
"//tools/extensions/...",
],
)
package_group(
name = "extension_library",
packages = [
"//source/extensions/...",
"//test/extensions/...",
],
)
package_group(
name = "contrib_library",
packages = [
"//contrib/...",
],
)
package_group(
name = "mobile_library",
packages = [
"//mobile/...",
],
)
exports_files([
"rustfmt.toml",
])
load(
"@bazel_tools//tools/jdk:default_java_toolchain.bzl",
"BASE_JDK9_JVM_OPTS",
"DEFAULT_JAVACOPTS",
"DEFAULT_TOOLCHAIN_CONFIGURATION",
"default_java_toolchain",
)
# On illumos this config gets activated. We use it to force Bazel to use the local (pkgsrc) JDK. If we
# don't it will try to use '@bazel_tools//tools/jdk:remote_jdk11'. Which won't work because there is no
# remote illumos JDK which can be downloaded configured in the 'rules_java' project.
default_java_toolchain(
name = "repository_default_toolchain",
configuration = DEFAULT_TOOLCHAIN_CONFIGURATION,
java_runtime = "@local_jdk//:jdk",
javacopts = DEFAULT_JAVACOPTS,
jvm_opts = BASE_JDK9_JVM_OPTS,
source_version = "11",
target_version = "11",
)