Brian Silverman | 100534c | 2015-09-07 15:51:23 -0400 | [diff] [blame] | 1 | package(default_visibility = ['//visibility:public']) |
| 2 | |
| 3 | cc_library( |
| 4 | name = 'aos_sync', |
| 5 | srcs = [ |
| 6 | 'aos_sync.cc', |
| 7 | ], |
| 8 | hdrs = [ |
| 9 | 'aos_sync.h', |
| 10 | ], |
| 11 | deps = [ |
| 12 | '//aos/common/logging:logging_interface', |
| 13 | '//aos/common:once', |
| 14 | ], |
| 15 | ) |
| 16 | |
| 17 | cc_library( |
| 18 | name = 'core_lib', |
| 19 | srcs = [ |
| 20 | 'core_lib.c', |
| 21 | ], |
| 22 | hdrs = [ |
| 23 | 'core_lib.h', |
| 24 | ], |
| 25 | deps = [ |
| 26 | ':aos_sync', |
| 27 | ':shared_mem', |
| 28 | ], |
| 29 | ) |
| 30 | |
| 31 | cc_library( |
| 32 | name = 'shared_mem', |
| 33 | srcs = [ |
| 34 | 'shared_mem.c', |
| 35 | ], |
| 36 | hdrs = [ |
| 37 | 'shared_mem.h', |
| 38 | ], |
| 39 | deps = [ |
| 40 | ':aos_sync', |
| 41 | '//aos/common/logging:logging_interface', |
| 42 | ], |
| 43 | ) |
| 44 | |
| 45 | cc_library( |
| 46 | name = 'queue', |
| 47 | srcs = [ |
| 48 | 'queue.cc', |
| 49 | ], |
| 50 | hdrs = [ |
| 51 | 'queue.h', |
| 52 | ], |
| 53 | deps = [ |
| 54 | '//aos/linux_code/ipc_lib:condition', |
| 55 | '//aos/linux_code/ipc_lib:mutex', |
| 56 | ':core_lib', |
| 57 | '//aos/common/logging:logging_interface', |
| 58 | ], |
| 59 | ) |
| 60 | |
| 61 | cc_test( |
| 62 | name = 'raw_queue_test', |
| 63 | srcs = [ |
| 64 | 'raw_queue_test.cc', |
| 65 | ], |
| 66 | deps = [ |
| 67 | '//third_party/gtest', |
| 68 | ':queue', |
| 69 | '//aos/common/logging', |
| 70 | ':core_lib', |
| 71 | '//aos/common:queue_testutils', |
| 72 | '//aos/common:time', |
| 73 | '//aos/common:die', |
| 74 | '//aos/common/util:thread', |
| 75 | '//aos/common/util:death_test_log_implementation', |
| 76 | ], |
| 77 | ) |
| 78 | |
| 79 | cc_test( |
| 80 | name = 'ipc_stress_test', |
| 81 | srcs = [ |
| 82 | 'ipc_stress_test.cc', |
| 83 | ], |
| 84 | tags = [ |
| 85 | 'manual', |
| 86 | ], |
| 87 | deps = [ |
| 88 | '//third_party/gtest', |
| 89 | '//aos/common:time', |
| 90 | '//aos/common:queue_testutils', |
| 91 | '//aos/linux_code/ipc_lib:mutex', |
| 92 | ':core_lib', |
| 93 | '//aos/common:die', |
| 94 | '//aos/common/libc:dirname', |
| 95 | '//aos/common/libc:aos_strsignal', |
| 96 | '//aos/common/logging', |
| 97 | ], |
| 98 | ) |
| 99 | |
| 100 | cc_library( |
| 101 | name = 'scoped_message_ptr', |
| 102 | deps = [ |
| 103 | ':queue', |
| 104 | ], |
| 105 | ) |
Brian Silverman | f480a61 | 2015-09-13 02:22:01 -0400 | [diff] [blame] | 106 | |
| 107 | cc_library( |
| 108 | name = 'condition', |
| 109 | srcs = [ |
| 110 | 'condition.cc', |
| 111 | ], |
| 112 | deps = [ |
| 113 | ':mutex', |
| 114 | ':aos_sync', |
| 115 | '//aos/common/logging:logging_interface', |
| 116 | ], |
| 117 | ) |
| 118 | |
| 119 | cc_library( |
| 120 | name = 'mutex', |
| 121 | srcs = [ |
| 122 | 'mutex.cc', |
| 123 | ], |
| 124 | deps = [ |
| 125 | ':aos_sync', |
| 126 | '//aos/common/logging:logging_interface', |
| 127 | ], |
| 128 | ) |
| 129 | |
| 130 | cc_library( |
| 131 | name = 'event', |
| 132 | srcs = [ |
| 133 | 'event.cc', |
| 134 | ], |
| 135 | deps = [ |
| 136 | ':aos_sync', |
| 137 | '//aos/common/logging:logging_interface', |
| 138 | ], |
| 139 | ) |