forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD
102 lines (88 loc) · 2.74 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
load("//bazel:envoy_build_system.bzl", "envoy_package")
load("//tools/python:namespace.bzl", "envoy_py_namespace")
licenses(["notice"]) # Apache 2
envoy_package()
envoy_py_namespace()
exports_files([
"VERSION.txt",
"API_VERSION.txt",
".clang-format",
"pytest.ini",
".coveragerc",
"CODEOWNERS",
"OWNERS.md",
".github/config.yml",
])
alias(
name = "envoy",
actual = "//source/exe:envoy",
)
alias(
name = "envoy.stripped",
actual = "//source/exe:envoy-static.stripped",
)
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 = "examples_library",
packages = [
"//examples/...",
],
)
package_group(
name = "mobile_library",
packages = [
"//mobile/...",
],
)
load(
"@bazel_tools//tools/jdk:default_java_toolchain.bzl",
"default_java_toolchain", "DEFAULT_TOOLCHAIN_CONFIGURATION", "BASE_JDK9_JVM_OPTS", "DEFAULT_JAVACOPTS"
)
# 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, # One of predefined configurations
# Other parameters are from java_toolchain rule:
java_runtime = "@local_jdk//:jdk", # JDK to use for compilation and toolchain's tools execution
jvm_opts = BASE_JDK9_JVM_OPTS, # Additional JDK options
javacopts = DEFAULT_JAVACOPTS, # Additional javac options
source_version = "11",
target_version = "11",
)