forked from kythe/kythe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBUILD
65 lines (54 loc) · 1.31 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
package(default_visibility = ["//visibility:private"])
load("//:version.bzl", "MAX_VERSION", "MIN_VERSION")
load("@bazel_gazelle//:def.bzl", "gazelle")
exports_files(glob(["*"]))
filegroup(
name = "nothing",
visibility = ["//visibility:public"],
)
config_setting(
name = "darwin",
values = {"cpu": "darwin"},
visibility = ["//visibility:public"],
)
sh_test(
name = "check_bazel_versions",
srcs = ["//tools:check_bazel_versions.sh"],
args = [
MIN_VERSION,
MAX_VERSION,
],
data = [
".bazelminversion",
".bazelversion",
],
)
load("@rules_python//python:defs.bzl", "py_runtime_pair")
py_runtime(
name = "python2_runtime",
python_version = "PY2",
files = [],
interpreter = "@python//:bin/python",
)
py_runtime(
name = "python3_runtime",
python_version = "PY3",
files = [],
interpreter = "@python3//:bin/python",
)
py_runtime_pair(
name = "my_python_pairs",
py2_runtime = ":python2_runtime",
py3_runtime = ":python3_runtime",
)
toolchain(
name = "py_pair_toolchain",
#target_compatible_with = <...>,
toolchain = ":my_python_pairs",
toolchain_type = "@rules_python//python:toolchain_type",
)
# gazelle:build_file_name BUILD
# gazelle:exclude kythe
# gazelle:exclude third_party
# gazelle:prefix kythe.io
gazelle(name = "gazelle")