| 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 source_set("headers") { |
| 6 sources = [ |
| 7 "configuration.h", |
| 8 "embedder.h", |
| 9 "embedder_internal.h", |
| 10 "platform_channel_pair.h", |
| 11 "platform_handle.h", |
| 12 "platform_handle_utils.h", |
| 13 "process_delegate.h", |
| 14 "scoped_platform_handle.h", |
| 15 ] |
| 16 |
| 17 public_deps = [ |
| 18 "//base", |
| 19 "//mojo/public/cpp/system", |
| 20 ] |
| 21 } |
| 22 |
| 5 source_set("embedder") { | 23 source_set("embedder") { |
| 6 # This isn't really a standalone target; it must be linked into the | 24 # This isn't really a standalone target; it must be linked into the |
| 7 # mojo_system_impl component. | 25 # mojo_system_impl component. |
| 8 visibility = [ | 26 visibility = [ |
| 9 "//mojo/edk/system", | 27 "//mojo/edk/system", |
| 10 "//components/nacl:nacl", | 28 "//components/nacl:nacl", |
| 11 ] | 29 ] |
| 12 | 30 |
| 13 sources = [ | 31 sources = [ |
| 14 "configuration.h", | 32 "configuration.h", |
| (...skipping 12 matching lines...) Expand all Loading... |
| 27 | 45 |
| 28 defines = [ | 46 defines = [ |
| 29 "MOJO_SYSTEM_IMPL_IMPLEMENTATION", | 47 "MOJO_SYSTEM_IMPL_IMPLEMENTATION", |
| 30 "MOJO_SYSTEM_IMPLEMENTATION", | 48 "MOJO_SYSTEM_IMPLEMENTATION", |
| 31 ] | 49 ] |
| 32 | 50 |
| 33 configs += [ "//mojo/edk/system:system_config" ] | 51 configs += [ "//mojo/edk/system:system_config" ] |
| 34 | 52 |
| 35 public_deps = [ | 53 public_deps = [ |
| 36 ":delegates", | 54 ":delegates", |
| 55 ":headers", |
| 37 ":platform", | 56 ":platform", |
| 57 "//base", |
| 38 "//mojo/public/cpp/system", | 58 "//mojo/public/cpp/system", |
| 39 ] | 59 ] |
| 40 | 60 |
| 41 deps = [ | 61 deps = [ |
| 42 "//base", | |
| 43 "//crypto", | 62 "//crypto", |
| 44 ] | 63 ] |
| 45 } | 64 } |
| 46 | 65 |
| 47 source_set("platform") { | 66 source_set("platform") { |
| 48 # This isn't really a standalone target; it must be linked into the | 67 # This isn't really a standalone target; it must be linked into the |
| 49 # mojo_system_impl component. | 68 # mojo_system_impl component. |
| 50 visibility = [ | 69 visibility = [ |
| 51 ":embedder", | 70 ":embedder", |
| 52 "//mojo/edk/system", | 71 "//mojo/edk/system", |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 124 |
| 106 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ] | 125 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ] |
| 107 | 126 |
| 108 configs += [ "//mojo/edk/system:system_config" ] | 127 configs += [ "//mojo/edk/system:system_config" ] |
| 109 | 128 |
| 110 public_deps = [ | 129 public_deps = [ |
| 111 "//mojo/public/cpp/system", | 130 "//mojo/public/cpp/system", |
| 112 ] | 131 ] |
| 113 } | 132 } |
| 114 | 133 |
| 115 # TODO(use_chrome_edk): remove "2" | 134 source_set("embedder_unittests") { |
| 116 source_set("embedder_unittests2") { | |
| 117 testonly = true | 135 testonly = true |
| 118 | 136 |
| 119 # TODO(use_chrome_edk): remove "2". Also enable this visibility check when we | 137 # TODO: Figure out why this visibility check fails on Android. |
| 120 # figure out why it's failing just on Android. | 138 # visibility = [ "//mojo/edk/system:mojo_system_unittests" ] |
| 121 #visibility = [ "//mojo/edk/system:mojo_system_unittests2" ] | |
| 122 | 139 |
| 123 sources = [ | 140 sources = [ |
| 124 "embedder_unittest.cc", | 141 "embedder_unittest.cc", |
| 125 "platform_channel_pair_posix_unittest.cc", | 142 "platform_channel_pair_posix_unittest.cc", |
| 126 "simple_platform_shared_buffer_unittest.cc", | 143 "simple_platform_shared_buffer_unittest.cc", |
| 127 ] | 144 ] |
| 128 | 145 |
| 129 deps = [ | 146 deps = [ |
| 130 "//base", | 147 "//base", |
| 131 "//base/test:test_support", | 148 "//base/test:test_support", |
| 132 "//mojo/message_pump", | 149 "//mojo/edk/system", |
| 133 | |
| 134 # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are | |
| 135 # declared in third party only for now. | |
| 136 "//mojo/edk/system:test_utils", | 150 "//mojo/edk/system:test_utils", |
| 137 "//mojo/edk/test:test_support", | 151 "//mojo/edk/test:test_support", |
| 152 "//mojo/message_pump", |
| 138 "//testing/gtest", | 153 "//testing/gtest", |
| 139 "//third_party/mojo/src/mojo/edk/system", | |
| 140 | |
| 141 # TODO(use_chrome_edk): temporary since the Mojo wrapper primitives are | |
| 142 # declared in third party only for now. | |
| 143 "//third_party/mojo/src/mojo/edk/system", | |
| 144 ] | 154 ] |
| 145 } | 155 } |
| OLD | NEW |