Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Side by Side Diff: mojo/mojo_edk.gyp

Issue 1350023003: Add a Mojo EDK for Chrome that uses one OS pipe per message pipe. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: some review comments Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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
3 # found in the LICENSE file.
4
5 {
6 'includes': [
7 '../third_party/mojo/mojo_variables.gypi',
8 ],
9 'target_defaults' : {
10 'include_dirs': [
11 '..',
12 '../third_party/mojo/src',
13 ],
14 'direct_dependent_settings': {
15 'include_dirs': [
16 '..',
17 ],
18 },
19 },
20 'targets': [
21 {
22 # GN version: //mojo/edk/system
23 'target_name': 'mojo_system_impl',
24 'type': '<(component)',
25 'dependencies': [
26 '../base/base.gyp:base',
27 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
28 ],
29 'defines': [
30 'MOJO_SYSTEM_IMPL_IMPLEMENTATION',
31 'MOJO_SYSTEM_IMPLEMENTATION',
32 'MOJO_USE_SYSTEM_IMPL',
33 ],
34 'sources': [
35 'edk/embedder/configuration.h',
36 'edk/embedder/channel_info_forward.h',
37 'edk/embedder/embedder.cc',
38 'edk/embedder/embedder.h',
39 'edk/embedder/embedder_internal.h',
40 'edk/embedder/entrypoints.cc',
41 'edk/embedder/platform_channel_pair.cc',
42 'edk/embedder/platform_channel_pair.h',
43 'edk/embedder/platform_channel_pair_posix.cc',
44 'edk/embedder/platform_channel_pair_win.cc',
45 'edk/embedder/platform_channel_utils_posix.cc',
46 'edk/embedder/platform_channel_utils_posix.h',
47 'edk/embedder/platform_handle.cc',
48 'edk/embedder/platform_handle.h',
49 'edk/embedder/platform_handle_utils.h',
50 'edk/embedder/platform_handle_utils_posix.cc',
51 'edk/embedder/platform_handle_utils_win.cc',
52 'edk/embedder/platform_handle_vector.h',
53 'edk/embedder/platform_shared_buffer.h',
54 'edk/embedder/platform_support.h',
55 'edk/embedder/scoped_platform_handle.h',
56 'edk/embedder/simple_platform_shared_buffer.cc',
57 'edk/embedder/simple_platform_shared_buffer.h',
58 'edk/embedder/simple_platform_shared_buffer_android.cc',
59 'edk/embedder/simple_platform_shared_buffer_posix.cc',
60 'edk/embedder/simple_platform_shared_buffer_win.cc',
61 'edk/embedder/simple_platform_support.cc',
62 'edk/embedder/simple_platform_support.h',
63 'edk/system/awakable.h',
64 'edk/system/awakable_list.cc',
65 'edk/system/awakable_list.h',
66 'edk/system/async_waiter.cc',
67 'edk/system/async_waiter.h',
68 'edk/system/configuration.cc',
69 'edk/system/configuration.h',
70 'edk/system/core.cc',
71 'edk/system/core.h',
72 'edk/system/data_pipe.cc',
73 'edk/system/data_pipe.h',
74 'edk/system/data_pipe_consumer_dispatcher.cc',
75 'edk/system/data_pipe_consumer_dispatcher.h',
76 'edk/system/data_pipe_producer_dispatcher.cc',
77 'edk/system/data_pipe_producer_dispatcher.h',
78 'edk/system/dispatcher.cc',
79 'edk/system/dispatcher.h',
80 'edk/system/handle_signals_state.h',
81 'edk/system/handle_table.cc',
82 'edk/system/handle_table.h',
83 'edk/system/mapping_table.cc',
84 'edk/system/mapping_table.h',
85 'edk/system/message_in_transit.cc',
86 'edk/system/message_in_transit.h',
87 'edk/system/message_in_transit_queue.cc',
88 'edk/system/message_in_transit_queue.h',
89 'edk/system/message_pipe_dispatcher.cc',
90 'edk/system/message_pipe_dispatcher.h',
91 'edk/system/options_validation.h',
92 'edk/system/platform_handle_dispatcher.cc',
93 'edk/system/platform_handle_dispatcher.h',
94 'edk/system/process_identifier.h',
95 'edk/system/raw_channel.cc',
96 'edk/system/raw_channel.h',
97 'edk/system/raw_channel_posix.cc',
98 'edk/system/raw_channel_win.cc',
99 'edk/system/shared_buffer_dispatcher.cc',
100 'edk/system/shared_buffer_dispatcher.h',
101 'edk/system/simple_dispatcher.cc',
102 'edk/system/simple_dispatcher.h',
103 'edk/system/transport_data.cc',
104 'edk/system/transport_data.h',
105 'edk/system/waiter.cc',
106 'edk/system/waiter.h',
107 # Test-only code:
108 # TODO(vtl): It's a little unfortunate that these end up in the same
109 # component as non-test-only code. In the static build, this code
110 # should hopefully be dead-stripped.
111 'edk/embedder/test_embedder.cc',
112 'edk/embedder/test_embedder.h',
113 ],
114 'all_dependent_settings': {
115 # Ensures that dependent projects import the core functions on Windows.
116 'defines': ['MOJO_USE_SYSTEM_IMPL'],
117 },
118 'conditions': [
119 ['OS=="android"', {
120 'dependencies': [
121 '../third_party/ashmem/ashmem.gyp:ashmem',
122 ],
123 }],
124 ['OS=="win"', {
125 # Structure was padded due to __declspec(align()), which is
126 # uninteresting.
127 'msvs_disabled_warnings': [ 4324 ],
128 }],
129 ],
130 },
131 {
132 # GN version: //mojo/edk/js
133 'target_name': 'mojo_js_lib',
134 'type': 'static_library',
135 'dependencies': [
136 '../base/base.gyp:base',
137 '../gin/gin.gyp:gin',
138 '../v8/tools/gyp/v8.gyp:v8',
139 ],
140 'export_dependent_settings': [
141 '../base/base.gyp:base',
142 '../gin/gin.gyp:gin',
143 ],
144 'sources': [
145 # Sources list duplicated in GN build.
146 'edk/js/core.cc',
147 'edk/js/core.h',
148 'edk/js/drain_data.cc',
149 'edk/js/drain_data.h',
150 'edk/js/handle.cc',
151 'edk/js/handle.h',
152 'edk/js/handle_close_observer.h',
153 'edk/js/mojo_runner_delegate.cc',
154 'edk/js/mojo_runner_delegate.h',
155 'edk/js/support.cc',
156 'edk/js/support.h',
157 'edk/js/threading.cc',
158 'edk/js/threading.h',
159 'edk/js/waiting_callback.cc',
160 'edk/js/waiting_callback.h',
161 ],
162 },
163 {
164 # GN version: //mojo/edk/test:test_support_impl
165 'target_name': 'mojo_test_support_impl',
166 'type': 'static_library',
167 'dependencies': [
168 '../base/base.gyp:base',
169 ],
170 'sources': [
171 'edk/test/test_support_impl.cc',
172 'edk/test/test_support_impl.h',
173 ],
174 },
175 {
176 # GN version: //mojo/edk/test:test_support
177 'target_name': 'mojo_common_test_support',
178 'type': 'static_library',
179 'dependencies': [
180 '../base/base.gyp:base',
181 '../base/base.gyp:test_support_base',
182 '../testing/gtest.gyp:gtest',
183 'mojo_system_impl',
184 ],
185 'sources': [
186 'edk/test/multiprocess_test_helper.cc',
187 'edk/test/multiprocess_test_helper.h',
188 'edk/test/scoped_ipc_support.cc',
189 'edk/test/scoped_ipc_support.h',
190 'edk/test/test_utils.h',
191 'edk/test/test_utils_posix.cc',
192 'edk/test/test_utils_win.cc',
193 ],
194 'conditions': [
195 ['OS=="ios"', {
196 'sources!': [
197 'edk/test/multiprocess_test_helper.cc',
198 ],
199 }],
200 ],
201 },
202 {
203 # GN version: //mojo/edk/test:run_all_unittests
204 'target_name': 'mojo_run_all_unittests',
205 'type': 'static_library',
206 'dependencies': [
207 '../base/base.gyp:base',
208 '../base/base.gyp:test_support_base',
209 '../testing/gtest.gyp:gtest',
210 '../third_party/mojo/mojo_public.gyp:mojo_public_test_support',
211 'mojo_system_impl',
212 'mojo_test_support_impl',
213 ],
214 'sources': [
215 'edk/test/run_all_unittests.cc',
216 ],
217 },
218 {
219 # GN version: //mojo/edk/test:run_all_perftests
220 'target_name': 'mojo_run_all_perftests',
221 'type': 'static_library',
222 'dependencies': [
223 '../base/base.gyp:test_support_base',
224 '../third_party/mojo/mojo_public.gyp:mojo_public_test_support',
225 'mojo_system_impl',
226 'mojo_test_support_impl',
227 ],
228 'sources': [
229 'edk/test/run_all_perftests.cc',
230 ],
231 },
232 ],
233 }
OLDNEW
« mojo/edk/embedder/BUILD.gn ('K') | « mojo/fetcher/BUILD.gn ('k') | mojo/mojo_edk_tests.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698