blob: c9fb28b452de0c584af9ef6c1e4c928157272b60 [file] [log] [blame]
load(":win_rules.bzl", "win_cc_binary", "win_cc_library")
load(":launcher_maker_test.bzl", "launcher_maker_test")
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"],
)
win_cc_binary(
name = "launcher_maker",
srcs = ["launcher_maker.cc"],
visibility = [
"//src:__pkg__",
"//tools/launcher:__pkg__",
],
deps = [
"//src/main/cpp/util:filesystem",
],
)
launcher_maker_test(name = "launcher_maker_test")