| load(":win_rules.bzl", "win_cc_binary", "win_cc_library") |
| |
| filegroup( |
| name = "srcs", |
| srcs = glob(["**"]) + ["//src/tools/launcher/util:srcs"], |
| visibility = ["//src:__pkg__"], |
| ) |
| |
| win_cc_binary( |
| name = "launcher", |
| srcs = ["launcher_main.cc"], |
| visibility = [ |
| "//src:__pkg__", |
| "//tools/launcher:__pkg__", |
| ], |
| deps = [ |
| ":bash_launcher", |
| ":java_launcher", |
| ":launcher_base", |
| ":python_launcher", |
| "//src/tools/launcher/util", |
| "//src/tools/launcher/util:data_parser", |
| ], |
| ) |
| |
| win_cc_library( |
| name = "launcher_base", |
| srcs = ["launcher.cc"], |
| hdrs = ["launcher.h"], |
| deps = [ |
| "//src/main/cpp/util:filesystem", |
| "//src/tools/launcher/util", |
| "//src/tools/launcher/util:data_parser", |
| ], |
| ) |
| |
| win_cc_library( |
| name = "java_launcher", |
| srcs = ["java_launcher.cc"], |
| hdrs = ["java_launcher.h"], |
| deps = [ |
| ":launcher_base", |
| "//src/main/native/windows:lib-process", |
| ], |
| ) |
| |
| win_cc_library( |
| name = "python_launcher", |
| srcs = ["python_launcher.cc"], |
| hdrs = ["python_launcher.h"], |
| deps = [ |
| ":launcher_base", |
| "//src/main/native/windows:lib-process", |
| ], |
| ) |
| |
| win_cc_library( |
| name = "bash_launcher", |
| srcs = ["bash_launcher.cc"], |
| hdrs = ["bash_launcher.h"], |
| deps = [":launcher_base"], |
| ) |
| |
| test_suite( |
| name = "all_windows_tests", |
| tests = [ |
| "//src/tools/launcher/util:all_windows_tests", |
| ], |
| visibility = ["//src:__pkg__"], |
| ) |