| 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("//mojo/public/tools/bindings/mojom.gni") | 5 import("//mojo/public/tools/bindings/mojom.gni") |
| 6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
| 7 | 7 |
| 8 mojom("client_channel") { | |
| 9 sources = [ | |
| 10 "client_channel.mojom", | |
| 11 ] | |
| 12 } | |
| 13 | |
| 14 component("mojo") { | 8 component("mojo") { |
| 15 sources = [ | 9 sources = [ |
| 16 "async_handle_waiter.cc", | 10 "async_handle_waiter.cc", |
| 17 "async_handle_waiter.h", | 11 "async_handle_waiter.h", |
| 18 "client_channel.mojom", | |
| 19 "ipc_channel_mojo.cc", | 12 "ipc_channel_mojo.cc", |
| 20 "ipc_channel_mojo.h", | 13 "ipc_channel_mojo.h", |
| 21 "ipc_message_pipe_reader.cc", | 14 "ipc_message_pipe_reader.cc", |
| 22 "ipc_message_pipe_reader.h", | 15 "ipc_message_pipe_reader.h", |
| 23 "ipc_mojo_bootstrap.cc", | 16 "ipc_mojo_bootstrap.cc", |
| 24 "ipc_mojo_bootstrap.h", | 17 "ipc_mojo_bootstrap.h", |
| 25 "ipc_mojo_handle_attachment.cc", | 18 "ipc_mojo_handle_attachment.cc", |
| 26 "ipc_mojo_handle_attachment.h", | 19 "ipc_mojo_handle_attachment.h", |
| 27 "ipc_mojo_message_helper.cc", | 20 "ipc_mojo_message_helper.cc", |
| 28 "ipc_mojo_message_helper.h", | 21 "ipc_mojo_message_helper.h", |
| 29 "ipc_mojo_param_traits.cc", | 22 "ipc_mojo_param_traits.cc", |
| 30 "ipc_mojo_param_traits.h", | 23 "ipc_mojo_param_traits.h", |
| 31 "scoped_ipc_support.cc", | 24 "scoped_ipc_support.cc", |
| 32 "scoped_ipc_support.h", | 25 "scoped_ipc_support.h", |
| 33 ] | 26 ] |
| 34 | 27 |
| 35 defines = [ "IPC_MOJO_IMPLEMENTATION" ] | 28 defines = [ "IPC_MOJO_IMPLEMENTATION" ] |
| 36 | 29 |
| 37 deps = [ | 30 deps = [ |
| 38 ":client_channel", | |
| 39 "//base", | 31 "//base", |
| 40 "//base/third_party/dynamic_annotations", | 32 "//base/third_party/dynamic_annotations", |
| 41 "//ipc", | 33 "//ipc", |
| 34 "//mojo/edk/system", |
| 42 "//mojo/environment:chromium", | 35 "//mojo/environment:chromium", |
| 43 "//mojo/public/c/environment:environment", | 36 "//mojo/public/c/environment:environment", |
| 44 "//mojo/public/cpp/bindings", | 37 "//mojo/public/cpp/bindings", |
| 45 "//third_party/mojo/src/mojo/edk/system", | |
| 46 ] | 38 ] |
| 47 } | 39 } |
| 48 | 40 |
| 49 test("ipc_mojo_unittests") { | 41 test("ipc_mojo_unittests") { |
| 50 sources = [ | 42 sources = [ |
| 51 "async_handle_waiter_unittest.cc", | 43 "async_handle_waiter_unittest.cc", |
| 52 "ipc_channel_mojo_unittest.cc", | 44 "ipc_channel_mojo_unittest.cc", |
| 53 "ipc_mojo_bootstrap_unittest.cc", | 45 "ipc_mojo_bootstrap_unittest.cc", |
| 54 "run_all_unittests.cc", | 46 "run_all_unittests.cc", |
| 55 ] | 47 ] |
| 56 | 48 |
| 57 deps = [ | 49 deps = [ |
| 58 "//base", | 50 "//base", |
| 59 "//base/test:test_support", | 51 "//base/test:test_support", |
| 60 "//base/third_party/dynamic_annotations", | 52 "//base/third_party/dynamic_annotations", |
| 61 "//ipc", | 53 "//ipc", |
| 62 "//ipc:test_support", | 54 "//ipc:test_support", |
| 63 "//ipc/mojo", | 55 "//ipc/mojo", |
| 56 "//mojo/edk/system", |
| 64 "//mojo/environment:chromium", | 57 "//mojo/environment:chromium", |
| 65 "//testing/gtest", | 58 "//testing/gtest", |
| 66 "//third_party/mojo/src/mojo/edk/system", | |
| 67 "//url", | 59 "//url", |
| 68 ] | 60 ] |
| 69 } | 61 } |
| 70 | 62 |
| 71 test("ipc_mojo_perftests") { | 63 test("ipc_mojo_perftests") { |
| 72 sources = [ | 64 sources = [ |
| 73 "ipc_mojo_perftest.cc", | 65 "ipc_mojo_perftest.cc", |
| 74 ] | 66 ] |
| 75 | 67 |
| 76 deps = [ | 68 deps = [ |
| 77 "//base", | 69 "//base", |
| 78 "//base/test:test_support", | 70 "//base/test:test_support", |
| 79 "//base/test:test_support_perf", | 71 "//base/test:test_support_perf", |
| 80 "//base/third_party/dynamic_annotations", | 72 "//base/third_party/dynamic_annotations", |
| 81 "//ipc", | 73 "//ipc", |
| 82 "//ipc:test_support", | 74 "//ipc:test_support", |
| 83 "//ipc/mojo", | 75 "//ipc/mojo", |
| 76 "//mojo/edk/system", |
| 84 "//mojo/environment:chromium", | 77 "//mojo/environment:chromium", |
| 85 "//third_party/mojo/src/mojo/edk/system", | |
| 86 "//url", | 78 "//url", |
| 87 ] | 79 ] |
| 88 } | 80 } |
| OLD | NEW |