Repository navigation
Expand file tree
/
Copy pathBUILD.bazel
More file actions
92 lines (82 loc) · 2.63 KB
/
Copy pathBUILD.bazel
File metadata and controls
92 lines (82 loc) · 2.63 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
load("@py_dev_requirements//:requirements.bzl", "requirement")
load("@rules_python//python:defs.bzl", "py_binary", "py_library")
load("//java:defs.bzl", "artifact", "java_binary")
# Canonical license notice text, shared by update_copyright and the code generators
# so the license body is defined in exactly one place. Consumers in other packages
# use a local copy_file target rather than depending on this label directly, so each
# generator can read it as a plain sibling file instead of locating the repo root.
exports_files([
"generated_note_template.txt",
"license_header.txt",
])
# Shared "generated, DO NOT EDIT" marker text. Python generators depend on this
# library directly (deps, not a local copy_file) since Bazel resolves the Python
# import regardless of package location — only raw data-file reads need the local
# copy trick. Non-Python generators format generated_note_template.txt themselves.
py_library(
name = "generated_note",
srcs = ["generated_note.py"],
data = ["generated_note_template.txt"],
visibility = ["//visibility:public"],
)
py_binary(
name = "pinned_browsers",
srcs = ["pinned_browsers.py"],
deps = [
":generated_note",
requirement("packaging"),
requirement("urllib3"),
],
)
py_binary(
name = "selenium_manager",
srcs = ["selenium_manager.py"],
deps = [
requirement("urllib3"),
],
)
py_binary(
name = "update_cdp",
srcs = ["update_cdp.py"],
deps = [
requirement("packaging"),
requirement("urllib3"),
],
)
py_binary(
name = "update_cddl",
srcs = ["update_cddl.py"],
deps = [
requirement("urllib3"),
],
)
py_binary(
name = "update_copyright",
srcs = ["update_copyright.py"],
data = ["license_header.txt"],
)
py_binary(
name = "update_multitool_binaries",
srcs = ["update_multitool_binaries.py"],
deps = [requirement("urllib3")],
)
py_binary(
name = "update_docfx",
srcs = ["update_docfx.py"],
deps = [
requirement("packaging"),
requirement("urllib3"),
],
)
java_binary(
name = "google-java-format",
jvm_flags = [
"--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED",
"--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED",
"--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED",
"--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED",
"--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED",
],
main_class = "com.google.googlejavaformat.java.Main",
runtime_deps = [artifact("com.google.googlejavaformat:google-java-format")],
)