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