|
1 | 1 | load("@crates//:defs.bzl", "all_crate_deps") |
2 | 2 | load("@rules_rust//rust:defs.bzl", "rust_binary", "rust_library", "rust_test") |
3 | 3 |
|
| 4 | +# We want the release versions of Selenium to include the prebuilt |
| 5 | +# binaries, but if we're doing day-to-day dev work, then we should |
| 6 | +# use a local build, unless on we're on Windows, where for some |
| 7 | +# reason we're not able to build locally. |
| 8 | +# |
| 9 | +# We tag the compiled versions as `manual` so that when we do a |
| 10 | +# `bazel build //...` we don't do any additional work |
| 11 | + |
| 12 | +# Start with the variants for each platform |
| 13 | +alias( |
| 14 | + name = "selenium-manager-windows", |
| 15 | + actual = select({ |
| 16 | + "//common:windows": ":selenium-manager", |
| 17 | + "//conditions:default": "//common/manager:windows/selenium-manager.exe", |
| 18 | + }), |
| 19 | + tags = [ |
| 20 | + "manual", |
| 21 | + ], |
| 22 | + visibility = [ |
| 23 | + "//common/manager:__pkg__", |
| 24 | + ], |
| 25 | +) |
| 26 | + |
| 27 | +alias( |
| 28 | + name = "selenium-manager-macos", |
| 29 | + actual = select({ |
| 30 | + "//common:macos": ":selenium-manager", |
| 31 | + "//conditions:default": "//common/manager:macos/selenium-manager", |
| 32 | + }), |
| 33 | + tags = [ |
| 34 | + "manual", |
| 35 | + ], |
| 36 | + visibility = [ |
| 37 | + "//common/manager:__pkg__", |
| 38 | + ], |
| 39 | +) |
| 40 | + |
| 41 | +alias( |
| 42 | + name = "selenium-manager-linux", |
| 43 | + actual = select({ |
| 44 | + "//common:linux": ":selenium-manager", |
| 45 | + "//conditions:default": "//common/manager:linux/selenium-manager", |
| 46 | + }), |
| 47 | + tags = [ |
| 48 | + "manual", |
| 49 | + ], |
| 50 | + visibility = [ |
| 51 | + "//common/manager:__pkg__", |
| 52 | + ], |
| 53 | +) |
| 54 | + |
| 55 | +filegroup( |
| 56 | + name = "selenium-manager-dev", |
| 57 | + srcs = [ |
| 58 | + ":selenium-manager-linux", |
| 59 | + ":selenium-manager-macos", |
| 60 | + ":selenium-manager-windows", |
| 61 | + ], |
| 62 | + tags = [ |
| 63 | + "manual", |
| 64 | + ], |
| 65 | + visibility = [ |
| 66 | + "//common/manager:__subpackages__", |
| 67 | + ], |
| 68 | +) |
| 69 | + |
4 | 70 | rust_binary( |
5 | 71 | # Yes, this name is very similar to the library. Note the dash |
6 | 72 | # instead of an underscore |
|
0 commit comments