| 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("mojom") { | 8 mojom("mojom") { |
| 9 sources = [ | 9 sources = [ |
| 10 "ipc.mojom", | 10 "ipc.mojom", |
| 11 ] | 11 ] |
| 12 } | 12 } |
| 13 | 13 |
| 14 component("mojo") { | 14 component("mojo") { |
| 15 sources = [ | 15 sources = [ |
| 16 "ipc_channel_mojo.cc", | 16 "ipc_channel_mojo.cc", |
| 17 "ipc_channel_mojo.h", | 17 "ipc_channel_mojo.h", |
| 18 "ipc_message_pipe_reader.cc", | 18 "ipc_message_pipe_reader.cc", |
| 19 "ipc_message_pipe_reader.h", | 19 "ipc_message_pipe_reader.h", |
| 20 "ipc_mojo_bootstrap.cc", | 20 "ipc_mojo_bootstrap.cc", |
| 21 "ipc_mojo_bootstrap.h", | 21 "ipc_mojo_bootstrap.h", |
| 22 "ipc_mojo_handle_attachment.cc", | 22 "ipc_mojo_handle_attachment.cc", |
| 23 "ipc_mojo_handle_attachment.h", | 23 "ipc_mojo_handle_attachment.h", |
| 24 "ipc_mojo_message_helper.cc", | 24 "ipc_mojo_message_helper.cc", |
| 25 "ipc_mojo_message_helper.h", | 25 "ipc_mojo_message_helper.h", |
| 26 "ipc_mojo_param_traits.cc", | 26 "ipc_mojo_param_traits.cc", |
| 27 "ipc_mojo_param_traits.h", | 27 "ipc_mojo_param_traits.h", |
| 28 "scoped_ipc_support.cc", | |
| 29 "scoped_ipc_support.h", | |
| 30 ] | 28 ] |
| 31 | 29 |
| 32 defines = [ "IPC_MOJO_IMPLEMENTATION" ] | 30 defines = [ "IPC_MOJO_IMPLEMENTATION" ] |
| 33 | 31 |
| 34 deps = [ | 32 deps = [ |
| 35 ":mojom", | 33 ":mojom", |
| 36 "//base", | 34 "//base", |
| 37 "//base/third_party/dynamic_annotations", | 35 "//base/third_party/dynamic_annotations", |
| 38 "//ipc", | 36 "//ipc", |
| 37 "//mojo/public/c/system", |
| 38 "//mojo/public/cpp/bindings", |
| 39 ] |
| 40 } |
| 41 |
| 42 source_set("ipc_support") { |
| 43 sources = [ |
| 44 "scoped_ipc_support.cc", |
| 45 "scoped_ipc_support.h", |
| 46 ] |
| 47 |
| 48 deps = [ |
| 49 "//base", |
| 39 "//mojo/edk/system", | 50 "//mojo/edk/system", |
| 40 "//mojo/public/cpp/bindings", | |
| 41 ] | 51 ] |
| 42 } | 52 } |
| 43 | 53 |
| 44 test("ipc_mojo_unittests") { | 54 test("ipc_mojo_unittests") { |
| 45 sources = [ | 55 sources = [ |
| 46 "ipc_channel_mojo_unittest.cc", | 56 "ipc_channel_mojo_unittest.cc", |
| 47 "ipc_mojo_bootstrap_unittest.cc", | 57 "ipc_mojo_bootstrap_unittest.cc", |
| 48 "run_all_unittests.cc", | 58 "run_all_unittests.cc", |
| 49 ] | 59 ] |
| 50 | 60 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 80 "//mojo/edk/system", | 90 "//mojo/edk/system", |
| 81 "//mojo/edk/test:test_support", | 91 "//mojo/edk/test:test_support", |
| 82 "//mojo/edk/test:test_support_impl", | 92 "//mojo/edk/test:test_support_impl", |
| 83 "//url", | 93 "//url", |
| 84 ] | 94 ] |
| 85 | 95 |
| 86 if (is_linux && !is_component_build) { | 96 if (is_linux && !is_component_build) { |
| 87 public_configs = [ "//build/config/gcc:rpath_for_built_shared_libraries" ] | 97 public_configs = [ "//build/config/gcc:rpath_for_built_shared_libraries" ] |
| 88 } | 98 } |
| 89 } | 99 } |
| OLD | NEW |