| OLD | NEW |
| 1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 import("//build/config/nacl/config.gni") | 5 import("//build/config/nacl/config.gni") |
| 6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 import("../../../mojo/public/tools/bindings/mojom.gni") | 7 import("../../../mojo/public/tools/bindings/mojom.gni") |
| 8 | 8 |
| 9 if (is_android) { | 9 if (is_android) { |
| 10 import("//build/config/android/config.gni") | 10 import("//build/config/android/config.gni") |
| 11 import("//build/config/android/rules.gni") | 11 import("//build/config/android/rules.gni") |
| 12 } | 12 } |
| 13 | 13 |
| 14 component("system") { | 14 component("system") { |
| 15 output_name = "mojo_system_impl" | 15 output_name = "mojo_system_impl" |
| 16 | 16 |
| 17 sources = [ | 17 sources = [ |
| 18 "atomic_flag.h", | 18 "atomic_flag.h", |
| 19 "awakable.h", | |
| 20 "awakable_list.cc", | |
| 21 "awakable_list.h", | |
| 22 "broker.h", | 19 "broker.h", |
| 23 "broker_host.cc", | 20 "broker_host.cc", |
| 24 "broker_host.h", | 21 "broker_host.h", |
| 25 "broker_posix.cc", | 22 "broker_posix.cc", |
| 26 "broker_win.cc", | 23 "broker_win.cc", |
| 27 "channel.cc", | 24 "channel.cc", |
| 28 "channel.h", | 25 "channel.h", |
| 29 "channel_posix.cc", | 26 "channel_posix.cc", |
| 30 "channel_win.cc", | 27 "channel_win.cc", |
| 31 "configuration.cc", | 28 "configuration.cc", |
| (...skipping 23 matching lines...) Expand all Loading... |
| 55 "node_controller.h", | 52 "node_controller.h", |
| 56 "options_validation.h", | 53 "options_validation.h", |
| 57 "platform_handle_dispatcher.cc", | 54 "platform_handle_dispatcher.cc", |
| 58 "platform_handle_dispatcher.h", | 55 "platform_handle_dispatcher.h", |
| 59 "ports_message.cc", | 56 "ports_message.cc", |
| 60 "ports_message.h", | 57 "ports_message.h", |
| 61 "request_context.cc", | 58 "request_context.cc", |
| 62 "request_context.h", | 59 "request_context.h", |
| 63 "shared_buffer_dispatcher.cc", | 60 "shared_buffer_dispatcher.cc", |
| 64 "shared_buffer_dispatcher.h", | 61 "shared_buffer_dispatcher.h", |
| 65 "wait_set_dispatcher.cc", | |
| 66 "wait_set_dispatcher.h", | |
| 67 "waiter.cc", | |
| 68 "waiter.h", | |
| 69 "watch.cc", | 62 "watch.cc", |
| 70 "watch.h", | 63 "watch.h", |
| 71 "watcher_dispatcher.cc", | 64 "watcher_dispatcher.cc", |
| 72 "watcher_dispatcher.h", | 65 "watcher_dispatcher.h", |
| 73 "watcher_set.cc", | 66 "watcher_set.cc", |
| 74 "watcher_set.h", | 67 "watcher_set.h", |
| 75 ] | 68 ] |
| 76 | 69 |
| 77 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ] | 70 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ] |
| 78 | 71 |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 deps = [ | 141 deps = [ |
| 149 "//base", | 142 "//base", |
| 150 "//base/test:test_support", | 143 "//base/test:test_support", |
| 151 "//mojo/edk/test:test_support", | 144 "//mojo/edk/test:test_support", |
| 152 "//testing/gtest:gtest", | 145 "//testing/gtest:gtest", |
| 153 ] | 146 ] |
| 154 } | 147 } |
| 155 | 148 |
| 156 test("mojo_system_unittests") { | 149 test("mojo_system_unittests") { |
| 157 sources = [ | 150 sources = [ |
| 158 "awakable_list_unittest.cc", | |
| 159 "channel_unittest.cc", | 151 "channel_unittest.cc", |
| 160 "core_test_base.cc", | 152 "core_test_base.cc", |
| 161 "core_test_base.h", | 153 "core_test_base.h", |
| 162 "core_unittest.cc", | 154 "core_unittest.cc", |
| 163 "message_pipe_unittest.cc", | 155 "message_pipe_unittest.cc", |
| 164 "options_validation_unittest.cc", | 156 "options_validation_unittest.cc", |
| 165 "platform_handle_dispatcher_unittest.cc", | 157 "platform_handle_dispatcher_unittest.cc", |
| 166 "shared_buffer_dispatcher_unittest.cc", | 158 "shared_buffer_dispatcher_unittest.cc", |
| 167 "shared_buffer_unittest.cc", | 159 "shared_buffer_unittest.cc", |
| 168 "signals_unittest.cc", | 160 "signals_unittest.cc", |
| 169 "wait_set_dispatcher_unittest.cc", | |
| 170 "waiter_test_utils.cc", | |
| 171 "waiter_test_utils.h", | |
| 172 "waiter_unittest.cc", | |
| 173 "watcher_unittest.cc", | 161 "watcher_unittest.cc", |
| 174 ] | 162 ] |
| 175 | 163 |
| 176 if (!is_ios) { | 164 if (!is_ios) { |
| 177 sources += [ | 165 sources += [ |
| 178 "data_pipe_unittest.cc", | 166 "data_pipe_unittest.cc", |
| 179 "multiprocess_message_pipe_unittest.cc", | 167 "multiprocess_message_pipe_unittest.cc", |
| 180 "platform_wrapper_unittest.cc", | 168 "platform_wrapper_unittest.cc", |
| 181 ] | 169 ] |
| 182 } | 170 } |
| 183 | 171 |
| 184 deps = [ | 172 deps = [ |
| 185 ":test_utils", | 173 ":test_utils", |
| 186 "//base", | 174 "//base", |
| 187 "//base/test:test_support", | 175 "//base/test:test_support", |
| 188 "//mojo/edk/embedder:embedder_unittests", | 176 "//mojo/edk/embedder:embedder_unittests", |
| 189 "//mojo/edk/system", | 177 "//mojo/edk/system", |
| 190 "//mojo/edk/system/ports:tests", | 178 "//mojo/edk/system/ports:tests", |
| 191 "//mojo/edk/test:run_all_unittests", | 179 "//mojo/edk/test:run_all_unittests", |
| 192 "//mojo/edk/test:test_support", | 180 "//mojo/edk/test:test_support", |
| 181 "//mojo/public/cpp/system", |
| 193 "//testing/gmock", | 182 "//testing/gmock", |
| 194 "//testing/gtest", | 183 "//testing/gtest", |
| 195 ] | 184 ] |
| 196 | 185 |
| 197 allow_circular_includes_from = [ "//mojo/edk/embedder:embedder_unittests" ] | 186 allow_circular_includes_from = [ "//mojo/edk/embedder:embedder_unittests" ] |
| 198 } | 187 } |
| 199 | 188 |
| 200 if (!is_ios) { | 189 if (!is_ios) { |
| 201 test("mojo_message_pipe_perftests") { | 190 test("mojo_message_pipe_perftests") { |
| 202 sources = [ | 191 sources = [ |
| 203 "message_pipe_perftest.cc", | 192 "message_pipe_perftest.cc", |
| 204 ] | 193 ] |
| 205 | 194 |
| 206 deps = [ | 195 deps = [ |
| 207 ":test_utils", | 196 ":test_utils", |
| 208 "//base", | 197 "//base", |
| 209 "//base/test:test_support", | 198 "//base/test:test_support", |
| 210 "//mojo/edk/system", | 199 "//mojo/edk/system", |
| 211 "//mojo/edk/test:run_all_perftests", | 200 "//mojo/edk/test:run_all_perftests", |
| 212 "//mojo/edk/test:test_support", | 201 "//mojo/edk/test:test_support", |
| 213 "//testing/gtest", | 202 "//testing/gtest", |
| 214 ] | 203 ] |
| 215 } | 204 } |
| 216 } | 205 } |
| OLD | NEW |