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