| 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 | 6 |
| 7 source_set("headers") { | 7 source_set("headers") { |
| 8 sources = [ | 8 sources = [ |
| 9 "configuration.h", | 9 "configuration.h", |
| 10 "embedder.h", | 10 "embedder.h", |
| 11 "embedder_internal.h", | 11 "embedder_internal.h", |
| 12 "named_platform_channel_pair.h", | 12 "named_platform_channel_pair.h", |
| 13 "named_platform_handle.h", | 13 "named_platform_handle.h", |
| 14 "named_platform_handle_utils.h", | 14 "named_platform_handle_utils.h", |
| 15 "platform_channel_pair.h", | 15 "platform_channel_pair.h", |
| 16 "platform_handle.h", | 16 "platform_handle.h", |
| 17 "platform_handle_utils.h", | 17 "platform_handle_utils.h", |
| 18 "process_delegate.h", | |
| 19 "scoped_platform_handle.h", | 18 "scoped_platform_handle.h", |
| 20 ] | 19 ] |
| 21 | 20 |
| 22 public_deps = [ | 21 public_deps = [ |
| 23 "//base", | 22 "//base", |
| 24 "//mojo/public/cpp/system", | 23 "//mojo/public/cpp/system", |
| 25 ] | 24 ] |
| 26 } | 25 } |
| 27 | 26 |
| 28 source_set("embedder") { | 27 source_set("embedder") { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 47 # TODO(vtl): It's a little unfortunate that these end up in the same | 46 # TODO(vtl): It's a little unfortunate that these end up in the same |
| 48 # component as non-test-only code. In the static build, this code should | 47 # component as non-test-only code. In the static build, this code should |
| 49 # hopefully be dead-stripped. | 48 # hopefully be dead-stripped. |
| 50 "test_embedder.cc", | 49 "test_embedder.cc", |
| 51 "test_embedder.h", | 50 "test_embedder.h", |
| 52 ] | 51 ] |
| 53 | 52 |
| 54 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ] | 53 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ] |
| 55 | 54 |
| 56 public_deps = [ | 55 public_deps = [ |
| 57 ":delegates", | |
| 58 ":headers", | 56 ":headers", |
| 59 ":platform", | 57 ":platform", |
| 60 "//base", | 58 "//base", |
| 61 "//mojo/public/cpp/system", | 59 "//mojo/public/cpp/system", |
| 62 ] | 60 ] |
| 63 | 61 |
| 64 if (!is_nacl) { | 62 if (!is_nacl) { |
| 65 deps = [ | 63 deps = [ |
| 66 "//crypto", | 64 "//crypto", |
| 67 ] | 65 ] |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 | 112 |
| 115 if (is_android) { | 113 if (is_android) { |
| 116 deps += [ "//third_party/ashmem" ] | 114 deps += [ "//third_party/ashmem" ] |
| 117 } | 115 } |
| 118 | 116 |
| 119 if (is_nacl && !is_nacl_nonsfi) { | 117 if (is_nacl && !is_nacl_nonsfi) { |
| 120 sources -= [ "platform_channel_utils_posix.cc" ] | 118 sources -= [ "platform_channel_utils_posix.cc" ] |
| 121 } | 119 } |
| 122 } | 120 } |
| 123 | 121 |
| 124 source_set("delegates") { | |
| 125 # This isn't really a standalone target; it must be linked into the | |
| 126 # mojo_system_impl component. | |
| 127 visibility = [ | |
| 128 ":embedder", | |
| 129 "//mojo/edk/system", | |
| 130 ] | |
| 131 | |
| 132 sources = [ | |
| 133 "process_delegate.h", | |
| 134 ] | |
| 135 | |
| 136 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ] | |
| 137 | |
| 138 public_deps = [ | |
| 139 "//mojo/public/cpp/system", | |
| 140 ] | |
| 141 } | |
| 142 | |
| 143 source_set("embedder_unittests") { | 122 source_set("embedder_unittests") { |
| 144 testonly = true | 123 testonly = true |
| 145 | 124 |
| 146 # TODO: Figure out why this visibility check fails on Android. | 125 # TODO: Figure out why this visibility check fails on Android. |
| 147 # visibility = [ "//mojo/edk/system:mojo_system_unittests" ] | 126 # visibility = [ "//mojo/edk/system:mojo_system_unittests" ] |
| 148 | 127 |
| 149 sources = [ | 128 sources = [ |
| 150 "embedder_unittest.cc", | 129 "embedder_unittest.cc", |
| 151 "platform_channel_pair_posix_unittest.cc", | 130 "platform_channel_pair_posix_unittest.cc", |
| 152 "platform_shared_buffer_unittest.cc", | 131 "platform_shared_buffer_unittest.cc", |
| 153 ] | 132 ] |
| 154 | 133 |
| 155 deps = [ | 134 deps = [ |
| 156 "//base", | 135 "//base", |
| 157 "//base/test:test_support", | 136 "//base/test:test_support", |
| 158 "//mojo/edk/system", | 137 "//mojo/edk/system", |
| 159 "//mojo/edk/system:test_utils", | 138 "//mojo/edk/system:test_utils", |
| 160 "//mojo/edk/test:test_support", | 139 "//mojo/edk/test:test_support", |
| 161 "//testing/gtest", | 140 "//testing/gtest", |
| 162 ] | 141 ] |
| 163 } | 142 } |
| OLD | NEW |