blob: 7c0543e1f4aa78c8f9d568fd567312af5c186216 [file] [log] [blame]
package(default_visibility = ["//visibility:public"])
cc_library(
name = "hello-lib",
srcs = ["hello-lib.cc"],
hdrs = ["hello-lib.h"],
)
cc_binary(
name = "hello-world",
srcs = ["hello-world.cc"],
deps = [":hello-lib"],
)
cc_test(
name = "hello-success_test",
srcs = ["hello-world.cc"],
deps = [":hello-lib"],
)
cc_test(
name = "hello-fail_test",
srcs = ["hello-fail.cc"],
deps = [":hello-lib"],
)
filegroup(
name = "srcs",
srcs = ["BUILD"] + glob([
"**/*.cc",
"**/*.h",
]),
)