forked from SeleniumHQ/selenium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
BUILD.bazel
111 lines (95 loc) · 2.05 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
load("@bazel_skylib//rules:common_settings.bzl", "bool_flag")
package(default_visibility = ["//visibility:public"])
bool_flag(
name = "pin_browsers",
build_setting_default = False,
)
config_setting(
name = "use_pinned_browser",
flag_values = {
":pin_browsers": "true",
},
)
bool_flag(
name = "headless",
build_setting_default = False,
)
config_setting(
name = "use_headless_browser",
flag_values = {
":headless": "true",
},
)
config_setting(
name = "linux",
constraint_values = ["@platforms//os:linux"],
)
config_setting(
name = "macos",
constraint_values = ["@platforms//os:macos"],
)
config_setting(
name = "windows",
constraint_values = ["@platforms//os:windows"],
)
# Are we creating a stamped build?
config_setting(
name = "stamp",
values = {"stamp": "true"},
)
alias(
name = "chromedriver",
actual = "@local_drivers//:chromedriver",
)
config_setting(
name = "use_local_chromedriver",
flag_values = {
"@local_drivers//:use_chromedriver": "false",
":pin_browsers": "false",
},
)
alias(
name = "geckodriver",
actual = "@local_drivers//:geckodriver",
)
config_setting(
name = "use_local_geckodriver",
flag_values = {
"@local_drivers//:use_geckodriver": "false",
":pin_browsers": "false",
},
)
alias(
name = "msedgedriver",
actual = "@local_drivers//:msedgedriver",
)
config_setting(
name = "use_local_msedgedriver",
flag_values = {
"@local_drivers//:use_msedgedriver": "false",
":pin_browsers": "false",
},
)
[
[
config_setting(
name = "use_pinned_%s_%s" % (platform, browser),
constraint_values = [
"@platforms//os:%s" % platform,
],
flag_values = {
":pin_browsers": "true",
},
)
for platform in [
"linux",
"macos",
"windows",
]
]
for browser in [
"chrome",
"edge",
"firefox",
]
]