forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
85 lines (74 loc) · 1.9 KB
/
BUILD.bazel
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
load("//common:browsers.bzl", "chrome_data", "firefox_data")
load("//java:browsers.bzl", "chrome_jvm_flags", "firefox_jvm_flags")
load("//java:defs.bzl", "artifact")
load("@rules_python//python:defs.bzl", "py_runtime_pair")
filegroup(
name = "license",
srcs = [
"LICENSE",
"NOTICE",
],
visibility = ["//visibility:public"],
)
py_runtime(
name = "py3_runtime",
interpreter_path = select({
"@platforms//os:macos": "/usr/bin/python3",
"@platforms//os:linux": "/usr/bin/python",
"@platforms//os:windows": "C:\\Python310\\python",
}),
python_version = "PY3",
stub_shebang = "#!/usr/bin/python3",
)
py_runtime_pair(
name = "py_runtime_pair",
py2_runtime = None,
py3_runtime = ":py3_runtime",
)
toolchain(
name = "py_toolchain",
toolchain = ":py_runtime_pair",
toolchain_type = "@rules_python//python:toolchain_type",
)
alias(
name = "grid",
actual = "//java/src/org/openqa/selenium/grid:executable-grid",
)
alias(
name = "pinned-grid",
actual = "//java/src/org/openqa/selenium/grid:pinned-grid",
)
alias(
name = "debug-server",
actual = "//java/test/org/openqa/selenium/environment:appserver",
)
alias(
name = "calcdeps",
actual = "//javascript/atoms:deps",
)
alias(
name = "selenium-server-standalone",
actual = "//java/src/org/openqa/selenium/grid:selenium_server_deploy.jar",
)
java_binary(
name = "server",
args = [
"standalone",
"--relax-checks",
"true",
],
data = chrome_data + firefox_data,
jvm_flags = chrome_jvm_flags + firefox_jvm_flags,
main_class = "org.openqa.selenium.grid.Bootstrap",
runtime_deps = [
"//java/src/org/openqa/selenium/grid",
artifact("org.slf4j:slf4j-jdk14"),
],
)
platform(
name = "rosetta",
constraint_values = [
"@platforms//os:osx",
"@platforms//cpu:x86_64",
],
)