Han-Wen Nienhuys | d08b27f | 2015-02-25 16:45:20 +0100 | [diff] [blame] | 1 | cc_library( |
| 2 | name = "hello-lib", |
| 3 | srcs = ["hello-lib.cc"], |
| 4 | hdrs = ["hello-lib.h"], |
| 5 | ) |
| 6 | |
| 7 | cc_binary( |
| 8 | name = "hello-world", |
| 9 | srcs = ["hello-world.cc"], |
| 10 | deps = [":hello-lib"], |
| 11 | ) |
| 12 | |
| 13 | cc_test( |
| 14 | name = "hello-success_test", |
| 15 | srcs = ["hello-world.cc"], |
| 16 | deps = [":hello-lib"], |
| 17 | ) |
| 18 | |
| 19 | cc_test( |
| 20 | name = "hello-fail_test", |
| 21 | srcs = ["hello-fail.cc"], |
| 22 | deps = [":hello-lib"], |
| 23 | ) |
Damien Martin-Guillerez | 5cbd5a4 | 2015-03-24 21:55:19 +0000 | [diff] [blame] | 24 | |
| 25 | filegroup( |
| 26 | name = "srcs", |
Damien Martin-Guillerez | 7d265e0 | 2016-07-01 13:33:48 +0000 | [diff] [blame] | 27 | srcs = glob(["**"]), |
Xavier Bonaventura | 1fafa96 | 2022-10-12 21:17:40 -0700 | [diff] [blame] | 28 | visibility = ["//examples:__pkg__"], |
Damien Martin-Guillerez | 5cbd5a4 | 2015-03-24 21:55:19 +0000 | [diff] [blame] | 29 | ) |