blob: e3aa79a8fe6ad711d850e3cfb19fbf43aa697d0b [file] [log] [blame]
package(default_visibility = ["//src/tools/launcher:__subpackages__"])
load("//src/tools/launcher:win_rules.bzl", "cc_binary", "cc_library", "cc_test")
filegroup(
name = "srcs",
srcs = glob(["**"]),
visibility = ["//visibility:public"],
)
cc_library(
name = "data_parser",
srcs = ["data_parser.cc"],
hdrs = ["data_parser.h"],
deps = [":util"],
)
cc_library(
name = "util",
srcs = ["launcher_util.cc"],
hdrs = ["launcher_util.h"],
visibility = [
"//src/tools/launcher:__subpackages__",
"//tools/test:__pkg__",
],
deps = ["//src/main/cpp/util:filesystem"],
)
cc_test(
name = "util_test",
srcs = ["launcher_util_test.cc"],
data = [
":printarg",
],
deps = [
":util",
"//src/main/native/windows:lib-util",
"@bazel_tools//tools/cpp/runfiles",
"@com_google_googletest//:gtest_main",
],
)
cc_test(
name = "data_parser_test",
srcs = ["data_parser_test.cc"],
deps = [
":data_parser",
"@com_google_googletest//:gtest_main",
],
)
cc_binary(
name = "printarg",
testonly = 1,
srcs = ["printarg.cc"],
)
test_suite(
name = "windows_tests",
tags = [
"-no_windows",
"-slow",
],
visibility = ["//visibility:private"],
)
test_suite(
name = "all_windows_tests",
tests = [
":windows_tests",
],
visibility = ["//src/tools/launcher:__pkg__"],
)