Debian Codegraph @

tests/inputs/BUILD

raw
1 # https://github.com/bazelbuild/bazel/raw/master/examples/cpp/BUILD
2
3 package(default_visibility = ["//visibility:public"])
4
5 load("@rules_cc//cc:defs.bzl", "cc_binary", "cc_library", "cc_test")
6
7 cc_library(
8 name = "hello-lib",
9 srcs = ["hello-lib.cc"],
10 hdrs = ["hello-lib.h"],
11 )
12
13 cc_binary(
14 name = "hello-world",
15 srcs = ["hello-world.cc"],
16 deps = [":hello-lib"],
17 )
18
19 cc_test(
20 name = "hello-success_test",
21 srcs = ["hello-world.cc"],
22 deps = [":hello-lib"],
23 )
24
25 cc_test(
26 name = "hello-fail_test",
27 srcs = ["hello-fail.cc"],
28 deps = [":hello-lib"],
29 )
30
31 filegroup(
32 name = "srcs",
33 srcs = glob(["**"]),
34 )