| 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", |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 "//mojo/edk/system", | 30 "//mojo/edk/system", |
| 31 "//components/nacl:nacl", | 31 "//components/nacl:nacl", |
| 32 ] | 32 ] |
| 33 | 33 |
| 34 sources = [ | 34 sources = [ |
| 35 "configuration.h", | 35 "configuration.h", |
| 36 "embedder.cc", | 36 "embedder.cc", |
| 37 "embedder.h", | 37 "embedder.h", |
| 38 "embedder_internal.h", | 38 "embedder_internal.h", |
| 39 "entrypoints.cc", | 39 "entrypoints.cc", |
| 40 "entrypoints.h", |
| 40 | 41 |
| 41 # Test-only code: | 42 # Test-only code: |
| 42 # TODO(vtl): It's a little unfortunate that these end up in the same | 43 # TODO(vtl): It's a little unfortunate that these end up in the same |
| 43 # component as non-test-only code. In the static build, this code should | 44 # component as non-test-only code. In the static build, this code should |
| 44 # hopefully be dead-stripped. | 45 # hopefully be dead-stripped. |
| 45 "test_embedder.cc", | 46 "test_embedder.cc", |
| 46 "test_embedder.h", | 47 "test_embedder.h", |
| 47 ] | 48 ] |
| 48 | 49 |
| 49 defines = [ | 50 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ] |
| 50 "MOJO_SYSTEM_IMPL_IMPLEMENTATION", | |
| 51 "MOJO_SYSTEM_IMPLEMENTATION", | |
| 52 ] | |
| 53 | |
| 54 configs += [ "//mojo/edk/system:system_config" ] | |
| 55 | 51 |
| 56 public_deps = [ | 52 public_deps = [ |
| 57 ":delegates", | 53 ":delegates", |
| 58 ":headers", | 54 ":headers", |
| 59 ":platform", | 55 ":platform", |
| 60 "//base", | 56 "//base", |
| 61 "//mojo/public/cpp/system", | 57 "//mojo/public/cpp/system", |
| 62 ] | 58 ] |
| 63 | 59 |
| 64 if (!is_nacl) { | 60 if (!is_nacl) { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 91 "platform_handle_utils_posix.cc", | 87 "platform_handle_utils_posix.cc", |
| 92 "platform_handle_utils_win.cc", | 88 "platform_handle_utils_win.cc", |
| 93 "platform_handle_vector.h", | 89 "platform_handle_vector.h", |
| 94 "platform_shared_buffer.cc", | 90 "platform_shared_buffer.cc", |
| 95 "platform_shared_buffer.h", | 91 "platform_shared_buffer.h", |
| 96 "scoped_platform_handle.h", | 92 "scoped_platform_handle.h", |
| 97 ] | 93 ] |
| 98 | 94 |
| 99 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ] | 95 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ] |
| 100 | 96 |
| 101 configs += [ "//mojo/edk/system:system_config" ] | |
| 102 | |
| 103 public_deps = [ | 97 public_deps = [ |
| 104 "//mojo/public/cpp/system", | 98 "//mojo/public/cpp/system", |
| 105 ] | 99 ] |
| 106 | 100 |
| 107 deps = [ | 101 deps = [ |
| 108 "//base", | 102 "//base", |
| 109 ] | 103 ] |
| 110 | 104 |
| 111 if (is_android) { | 105 if (is_android) { |
| 112 deps += [ "//third_party/ashmem" ] | 106 deps += [ "//third_party/ashmem" ] |
| (...skipping 11 matching lines...) Expand all Loading... |
| 124 ":embedder", | 118 ":embedder", |
| 125 "//mojo/edk/system", | 119 "//mojo/edk/system", |
| 126 ] | 120 ] |
| 127 | 121 |
| 128 sources = [ | 122 sources = [ |
| 129 "process_delegate.h", | 123 "process_delegate.h", |
| 130 ] | 124 ] |
| 131 | 125 |
| 132 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ] | 126 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ] |
| 133 | 127 |
| 134 configs += [ "//mojo/edk/system:system_config" ] | |
| 135 | |
| 136 public_deps = [ | 128 public_deps = [ |
| 137 "//mojo/public/cpp/system", | 129 "//mojo/public/cpp/system", |
| 138 ] | 130 ] |
| 139 } | 131 } |
| 140 | 132 |
| 141 source_set("embedder_unittests") { | 133 source_set("embedder_unittests") { |
| 142 testonly = true | 134 testonly = true |
| 143 | 135 |
| 144 # TODO: Figure out why this visibility check fails on Android. | 136 # TODO: Figure out why this visibility check fails on Android. |
| 145 # visibility = [ "//mojo/edk/system:mojo_system_unittests" ] | 137 # visibility = [ "//mojo/edk/system:mojo_system_unittests" ] |
| 146 | 138 |
| 147 sources = [ | 139 sources = [ |
| 148 "embedder_unittest.cc", | 140 "embedder_unittest.cc", |
| 149 "platform_channel_pair_posix_unittest.cc", | 141 "platform_channel_pair_posix_unittest.cc", |
| 150 "platform_shared_buffer_unittest.cc", | 142 "platform_shared_buffer_unittest.cc", |
| 151 ] | 143 ] |
| 152 | 144 |
| 153 deps = [ | 145 deps = [ |
| 154 "//base", | 146 "//base", |
| 155 "//base/test:test_support", | 147 "//base/test:test_support", |
| 156 "//mojo/edk/system", | 148 "//mojo/edk/system", |
| 157 "//mojo/edk/system:test_utils", | 149 "//mojo/edk/system:test_utils", |
| 158 "//mojo/edk/test:test_support", | 150 "//mojo/edk/test:test_support", |
| 159 "//testing/gtest", | 151 "//testing/gtest", |
| 160 ] | 152 ] |
| 161 } | 153 } |
| OLD | NEW |