Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 1 | load("//tools/build_rules:ruby.bzl", "ruby_binary") |
| 2 | load("//aos/build:queues.bzl", "queue_library") |
| 3 | load("@com_google_protobuf//:protobuf.bzl", "cc_proto_library") |
James Kuszmaul | 27da814 | 2019-07-21 16:13:55 -0700 | [diff] [blame^] | 4 | load("//tools/cpp/emscripten:defs.bzl", "emcc_binary") |
| 5 | |
| 6 | emcc_binary( |
| 7 | name = "helloworld.html", |
| 8 | srcs = ["helloworld.cc"], |
| 9 | ) |
Brian Silverman | b67da23 | 2015-09-12 23:50:30 -0400 | [diff] [blame] | 10 | |
Brian Silverman | fbe79b8 | 2015-09-12 15:10:54 -0400 | [diff] [blame] | 11 | cc_test( |
Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 12 | name = "gflags_build_test", |
| 13 | size = "small", |
| 14 | srcs = [ |
| 15 | "gflags.cc", |
| 16 | ], |
| 17 | deps = [ |
Brian Silverman | 16a923c | 2018-10-31 19:40:51 -0700 | [diff] [blame] | 18 | "@com_github_gflags_gflags//:gflags", |
Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 19 | ], |
Brian Silverman | fbe79b8 | 2015-09-12 15:10:54 -0400 | [diff] [blame] | 20 | ) |
Brian Silverman | b67da23 | 2015-09-12 23:50:30 -0400 | [diff] [blame] | 21 | |
| 22 | ruby_binary( |
Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 23 | name = "ruby_binary", |
| 24 | srcs = [ |
| 25 | "ruby.rb", |
| 26 | "ruby_to_require.rb", |
| 27 | ], |
| 28 | data = [ |
| 29 | "ruby_to_require.rb", |
| 30 | ], |
Brian Silverman | b67da23 | 2015-09-12 23:50:30 -0400 | [diff] [blame] | 31 | ) |
| 32 | |
| 33 | sh_test( |
Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 34 | name = "ruby_build_test", |
| 35 | size = "small", |
| 36 | srcs = [ |
| 37 | "ruby_check.sh", |
| 38 | ], |
| 39 | data = [ |
| 40 | ":ruby_binary", |
| 41 | ], |
Brian Silverman | b67da23 | 2015-09-12 23:50:30 -0400 | [diff] [blame] | 42 | ) |
Brian Silverman | 38658b0 | 2015-09-13 02:25:50 -0400 | [diff] [blame] | 43 | |
| 44 | queue_library( |
Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 45 | name = "queue_library", |
| 46 | srcs = [ |
| 47 | "queue.q", |
| 48 | ], |
Brian Silverman | 38658b0 | 2015-09-13 02:25:50 -0400 | [diff] [blame] | 49 | ) |
| 50 | |
| 51 | cc_test( |
Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 52 | name = "queue_build_test", |
| 53 | size = "small", |
| 54 | srcs = [ |
| 55 | "queue.cc", |
| 56 | ], |
| 57 | deps = [ |
| 58 | ":queue_library", |
| 59 | ], |
Brian Silverman | 38658b0 | 2015-09-13 02:25:50 -0400 | [diff] [blame] | 60 | ) |
Brian Silverman | 516ceb2 | 2015-11-27 01:29:05 -0500 | [diff] [blame] | 61 | |
| 62 | cc_binary( |
Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 63 | name = "tcmalloc_build_test_binary", |
| 64 | srcs = [ |
| 65 | "tcmalloc.cc", |
| 66 | ], |
Brian Silverman | 516ceb2 | 2015-11-27 01:29:05 -0500 | [diff] [blame] | 67 | ) |
| 68 | |
| 69 | sh_test( |
Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 70 | name = "tcmalloc_build_test", |
| 71 | size = "small", |
| 72 | srcs = [ |
| 73 | "tcmalloc_test.sh", |
| 74 | ], |
| 75 | data = [ |
| 76 | ":tcmalloc_build_test_binary", |
| 77 | ], |
Brian Silverman | 516ceb2 | 2015-11-27 01:29:05 -0500 | [diff] [blame] | 78 | ) |
Brian Silverman | eb16fa4 | 2016-02-20 15:29:56 -0500 | [diff] [blame] | 79 | |
Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 80 | cc_proto_library( |
| 81 | name = "proto_build_test_library", |
| 82 | srcs = ["proto.proto"], |
| 83 | deps = [ |
| 84 | ":proto_build_test_library_base", |
| 85 | "@com_google_protobuf//:cc_wkt_protos", |
| 86 | ], |
Parker Schuh | 971588a | 2017-03-01 22:15:04 -0800 | [diff] [blame] | 87 | ) |
| 88 | |
Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 89 | cc_proto_library( |
| 90 | name = "proto_build_test_library_base", |
| 91 | srcs = ["proto_base.proto"], |
Brian Silverman | eb16fa4 | 2016-02-20 15:29:56 -0500 | [diff] [blame] | 92 | ) |
| 93 | |
| 94 | cc_test( |
Austin Schuh | f972444 | 2018-10-28 20:30:21 -0700 | [diff] [blame] | 95 | name = "proto_build_test", |
| 96 | size = "small", |
| 97 | srcs = [ |
| 98 | "proto.cc", |
| 99 | ], |
| 100 | deps = [ |
| 101 | ":proto_build_test_library", |
| 102 | "//aos/testing:googletest", |
| 103 | ], |
Brian Silverman | eb16fa4 | 2016-02-20 15:29:56 -0500 | [diff] [blame] | 104 | ) |