Permalink
29 lines (25 sloc)
494 Bytes
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
bazel/examples/cpp/BUILD
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adhere to best practices https://bazel.build/concepts/visibility#best-practices An example should follow the best practices Closes #16432. PiperOrigin-RevId: 480791523 Change-Id: I509ede78747049009f906488863181639e551739
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 = glob(["**"]), | |
visibility = ["//examples:__pkg__"], | |
) |