| 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_edk.gni") | 5 import("../mojo_edk.gni") |
| 6 | 6 |
| 7 mojo_edk_source_set("embedder") { | 7 mojo_edk_source_set("embedder") { |
| 8 # This isn't really a standalone target; it must be linked into the | 8 # This isn't really a standalone target; it must be linked into the |
| 9 # mojo_system_impl component. | 9 # mojo_system_impl component. |
| 10 mojo_edk_visibility = [ "mojo/edk/system" ] | 10 visibility = [ |
| 11 "//components/nacl:nacl", |
| 12 "//mojo/edk/system", |
| 13 ] |
| 11 | 14 |
| 12 sources = [ | 15 sources = [ |
| 13 "channel_info_forward.h", | |
| 14 "configuration.h", | 16 "configuration.h", |
| 15 "embedder.cc", | 17 "embedder.cc", |
| 16 "embedder.h", | 18 "embedder.h", |
| 17 "embedder_internal.h", | 19 "embedder_internal.h", |
| 18 "entrypoints.cc", | 20 "entrypoints.cc", |
| 19 "system_impl_private_entrypoints.cc", | 21 "system_impl_private_entrypoints.cc", |
| 20 | 22 |
| 21 # Test-only code: | 23 # Test-only code: |
| 22 # TODO(vtl): It's a little unfortunate that these end up in the same | 24 # TODO(vtl): It's a little unfortunate that these end up in the same |
| 23 # component as non-test-only code. In the static build, this code should | 25 # component as non-test-only code. In the static build, this code should |
| 24 # hopefully be dead-stripped. | 26 # hopefully be dead-stripped. |
| 25 "test_embedder.cc", | 27 "test_embedder.cc", |
| 26 "test_embedder.h", | 28 "test_embedder.h", |
| 27 ] | 29 ] |
| 28 | 30 |
| 29 defines = [ | 31 defines = [ |
| 30 "MOJO_SYSTEM_IMPL_IMPLEMENTATION", | 32 "MOJO_SYSTEM_IMPL_IMPLEMENTATION", |
| 31 "MOJO_SYSTEM_IMPLEMENTATION", | 33 "MOJO_SYSTEM_IMPLEMENTATION", |
| 32 ] | 34 ] |
| 33 | 35 |
| 34 mojo_edk_configs = [ "mojo/edk/system:system_config" ] | 36 configs = [ "//mojo/edk/system:system_config" ] |
| 35 | 37 |
| 36 public_deps = [ | 38 public_deps = [ |
| 37 ":delegates", | 39 ":delegates", |
| 38 ":platform", | 40 ":platform", |
| 41 "//third_party/mojo/src/mojo/public/cpp/system", |
| 42 "//third_party/mojo/src/mojo/public/platform/native:system_impl_private_api"
, |
| 39 ] | 43 ] |
| 40 | 44 |
| 41 mojo_sdk_deps = [ "mojo/public/platform/native:system_impl_private_api" ] | |
| 42 | |
| 43 mojo_sdk_public_deps = [ "mojo/public/cpp/system" ] | |
| 44 | |
| 45 deps = [ | 45 deps = [ |
| 46 "//base", | 46 "//base", |
| 47 ] | 47 ] |
| 48 } | 48 } |
| 49 | 49 |
| 50 mojo_edk_source_set("platform") { | 50 mojo_edk_source_set("platform") { |
| 51 # This isn't really a standalone target; it must be linked into the | 51 # This isn't really a standalone target; it must be linked into the |
| 52 # mojo_system_impl component. | 52 # mojo_system_impl component. |
| 53 visibility = [ ":embedder" ] | 53 visibility = [ |
| 54 | 54 ":embedder", |
| 55 mojo_edk_visibility = [ "mojo/edk/system" ] | 55 "//mojo/edk/system", |
| 56 ] |
| 56 | 57 |
| 57 sources = [ | 58 sources = [ |
| 58 "platform_channel_pair.cc", | 59 "platform_channel_pair.cc", |
| 59 "platform_channel_pair.h", | 60 "platform_channel_pair.h", |
| 60 "platform_channel_pair_posix.cc", | 61 "platform_channel_pair_posix.cc", |
| 61 "platform_channel_pair_win.cc", | 62 "platform_channel_pair_win.cc", |
| 62 "platform_channel_utils_posix.cc", | 63 "platform_channel_utils_posix.cc", |
| 63 "platform_channel_utils_posix.h", | 64 "platform_channel_utils_posix.h", |
| 64 "platform_handle.cc", | 65 "platform_handle.cc", |
| 65 "platform_handle.h", | 66 "platform_handle.h", |
| 66 "platform_handle_utils.h", | 67 "platform_handle_utils.h", |
| 67 "platform_handle_utils_posix.cc", | 68 "platform_handle_utils_posix.cc", |
| 68 "platform_handle_utils_win.cc", | 69 "platform_handle_utils_win.cc", |
| 69 "platform_handle_vector.h", | 70 "platform_handle_vector.h", |
| 70 "platform_shared_buffer.h", | 71 "platform_shared_buffer.h", |
| 71 "platform_support.h", | 72 "platform_support.h", |
| 72 "scoped_platform_handle.h", | 73 "scoped_platform_handle.h", |
| 73 "simple_platform_shared_buffer.cc", | 74 "simple_platform_shared_buffer.cc", |
| 74 "simple_platform_shared_buffer.h", | 75 "simple_platform_shared_buffer.h", |
| 75 "simple_platform_shared_buffer_android.cc", | 76 "simple_platform_shared_buffer_android.cc", |
| 76 "simple_platform_shared_buffer_posix.cc", | 77 "simple_platform_shared_buffer_posix.cc", |
| 77 "simple_platform_shared_buffer_win.cc", | 78 "simple_platform_shared_buffer_win.cc", |
| 78 "simple_platform_support.cc", | 79 "simple_platform_support.cc", |
| 79 "simple_platform_support.h", | 80 "simple_platform_support.h", |
| 80 ] | 81 ] |
| 81 | 82 |
| 82 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ] | 83 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ] |
| 83 | 84 |
| 84 mojo_edk_configs = [ "mojo/edk/system:system_config" ] | 85 configs = [ "//mojo/edk/system:system_config" ] |
| 85 | 86 |
| 86 mojo_sdk_public_deps = [ "mojo/public/cpp/system" ] | 87 public_deps = [ |
| 88 "//third_party/mojo/src/mojo/public/cpp/system", |
| 89 ] |
| 87 | 90 |
| 88 deps = [ | 91 deps = [ |
| 89 "//base", | 92 "//base", |
| 93 "//crypto", |
| 90 ] | 94 ] |
| 91 | 95 |
| 92 if (is_android) { | 96 if (is_android) { |
| 93 deps += [ "//third_party/ashmem" ] | 97 deps += [ "//third_party/ashmem" ] |
| 94 } | 98 } |
| 95 } | 99 } |
| 96 | 100 |
| 97 mojo_edk_source_set("delegates") { | 101 mojo_edk_source_set("delegates") { |
| 98 # This isn't really a standalone target; it must be linked into the | 102 # This isn't really a standalone target; it must be linked into the |
| 99 # mojo_system_impl component. | 103 # mojo_system_impl component. |
| 100 visibility = [ ":embedder" ] | 104 visibility = [ |
| 101 | 105 ":embedder", |
| 102 mojo_edk_visibility = [ "mojo/edk/system" ] | 106 "//mojo/edk/system", |
| 107 ] |
| 103 | 108 |
| 104 sources = [ | 109 sources = [ |
| 105 "master_process_delegate.h", | |
| 106 "process_delegate.h", | 110 "process_delegate.h", |
| 107 "process_type.h", | |
| 108 "slave_info.h", | |
| 109 "slave_process_delegate.h", | |
| 110 ] | 111 ] |
| 111 | 112 |
| 112 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ] | 113 defines = [ "MOJO_SYSTEM_IMPL_IMPLEMENTATION" ] |
| 113 | 114 |
| 114 mojo_edk_configs = [ "mojo/edk/system:system_config" ] | 115 configs = [ "//mojo/edk/system:system_config" ] |
| 115 | 116 |
| 116 mojo_sdk_public_deps = [ "mojo/public/cpp/system" ] | 117 public_deps = [ |
| 118 "//third_party/mojo/src/mojo/public/cpp/system", |
| 119 ] |
| 117 } | 120 } |
| 118 | 121 |
| 119 mojo_edk_source_set("embedder_unittests") { | 122 mojo_edk_source_set("embedder_unittests") { |
| 120 testonly = true | 123 testonly = true |
| 121 mojo_edk_visibility = [ "mojo/edk/system:mojo_system_unittests" ] | 124 visibility = [ "//mojo/edk/system:mojo_system_unittests" ] |
| 122 | 125 |
| 123 sources = [ | 126 sources = [ |
| 124 "embedder_unittest.cc", | 127 "embedder_unittest.cc", |
| 125 "platform_channel_pair_posix_unittest.cc", | 128 "platform_channel_pair_posix_unittest.cc", |
| 126 "simple_platform_shared_buffer_unittest.cc", | 129 "simple_platform_shared_buffer_unittest.cc", |
| 127 ] | 130 ] |
| 128 | 131 |
| 129 deps = [ | 132 deps = [ |
| 130 "//base", | 133 "//base", |
| 131 "//base/test:test_support", | 134 "//base/test:test_support", |
| 135 "//mojo/edk/system", |
| 136 "//mojo/edk/system:test_utils", |
| 137 "//mojo/edk/test:test_support", |
| 132 "//testing/gtest", | 138 "//testing/gtest", |
| 133 ] | 139 ] |
| 134 | |
| 135 mojo_edk_deps = [ | |
| 136 "mojo/edk/test:test_support", | |
| 137 "mojo/edk/system", | |
| 138 "mojo/edk/system:test_utils", | |
| 139 ] | |
| 140 } | 140 } |
| OLD | NEW |