aboutsummaryrefslogtreecommitdiffhomepage
path: root/base_workspace/examples/cpp/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'base_workspace/examples/cpp/BUILD')
-rw-r--r--base_workspace/examples/cpp/BUILD25
1 files changed, 25 insertions, 0 deletions
diff --git a/base_workspace/examples/cpp/BUILD b/base_workspace/examples/cpp/BUILD
new file mode 100644
index 0000000000..195bbb3d25
--- /dev/null
+++ b/base_workspace/examples/cpp/BUILD
@@ -0,0 +1,25 @@
+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"],
+)