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

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: more cleanup 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 2015 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_impl2',
24 'type': 'static_library',
25 # TODO(use_chrome_edk): this should be a component to match third_party,
26 # but since third_party includes it, we either make it a static library
27 # or we have to change the export macros to be different than third_party.
28 #'type': '<(component)',
29 'dependencies': [
30 '../base/base.gyp:base',
31 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
32 ],
33 'defines': [
34 'MOJO_SYSTEM_IMPL_IMPLEMENTATION',
35 'MOJO_SYSTEM_IMPLEMENTATION',
36 'MOJO_USE_SYSTEM_IMPL',
37 ],
38 'sources': [
39 'edk/embedder/configuration.h',
40 'edk/embedder/channel_info_forward.h',
41 'edk/embedder/embedder.cc',
42 'edk/embedder/embedder.h',
43 'edk/embedder/embedder_internal.h',
44 'edk/embedder/entrypoints.cc',
45 'edk/embedder/platform_channel_pair.cc',
46 'edk/embedder/platform_channel_pair.h',
47 'edk/embedder/platform_channel_pair_posix.cc',
48 'edk/embedder/platform_channel_pair_win.cc',
49 'edk/embedder/platform_channel_utils_posix.cc',
50 'edk/embedder/platform_channel_utils_posix.h',
51 'edk/embedder/platform_handle.cc',
52 'edk/embedder/platform_handle.h',
53 'edk/embedder/platform_handle_utils.h',
54 'edk/embedder/platform_handle_utils_posix.cc',
55 'edk/embedder/platform_handle_utils_win.cc',
56 'edk/embedder/platform_handle_vector.h',
57 'edk/embedder/platform_shared_buffer.h',
58 'edk/embedder/platform_support.h',
59 'edk/embedder/scoped_platform_handle.h',
60 'edk/embedder/simple_platform_shared_buffer.cc',
61 'edk/embedder/simple_platform_shared_buffer.h',
62 'edk/embedder/simple_platform_shared_buffer_android.cc',
63 'edk/embedder/simple_platform_shared_buffer_posix.cc',
64 'edk/embedder/simple_platform_shared_buffer_win.cc',
65 'edk/embedder/simple_platform_support.cc',
66 'edk/embedder/simple_platform_support.h',
67 'edk/system/awakable.h',
68 'edk/system/awakable_list.cc',
69 'edk/system/awakable_list.h',
70 'edk/system/async_waiter.cc',
71 'edk/system/async_waiter.h',
72 'edk/system/configuration.cc',
73 'edk/system/configuration.h',
74 'edk/system/core.cc',
75 'edk/system/core.h',
76 'edk/system/data_pipe.cc',
77 'edk/system/data_pipe.h',
78 'edk/system/data_pipe_consumer_dispatcher.cc',
79 'edk/system/data_pipe_consumer_dispatcher.h',
80 'edk/system/data_pipe_producer_dispatcher.cc',
81 'edk/system/data_pipe_producer_dispatcher.h',
82 'edk/system/dispatcher.cc',
83 'edk/system/dispatcher.h',
84 'edk/system/handle_signals_state.h',
85 'edk/system/handle_table.cc',
86 'edk/system/handle_table.h',
87 'edk/system/mapping_table.cc',
88 'edk/system/mapping_table.h',
89 'edk/system/message_in_transit.cc',
90 'edk/system/message_in_transit.h',
91 'edk/system/message_in_transit_queue.cc',
92 'edk/system/message_in_transit_queue.h',
93 'edk/system/message_pipe_dispatcher.cc',
94 'edk/system/message_pipe_dispatcher.h',
95 'edk/system/options_validation.h',
96 'edk/system/platform_handle_dispatcher.cc',
97 'edk/system/platform_handle_dispatcher.h',
98 'edk/system/raw_channel.cc',
99 'edk/system/raw_channel.h',
100 'edk/system/raw_channel_posix.cc',
101 'edk/system/raw_channel_win.cc',
102 'edk/system/shared_buffer_dispatcher.cc',
103 'edk/system/shared_buffer_dispatcher.h',
104 'edk/system/simple_dispatcher.cc',
105 'edk/system/simple_dispatcher.h',
106 'edk/system/transport_data.cc',
107 'edk/system/transport_data.h',
108 'edk/system/waiter.cc',
109 'edk/system/waiter.h',
110 # Test-only code:
111 # TODO(vtl): It's a little unfortunate that these end up in the same
112 # component as non-test-only code. In the static build, this code
113 # should hopefully be dead-stripped.
114 'edk/embedder/test_embedder.cc',
115 'edk/embedder/test_embedder.h',
116 ],
117 'all_dependent_settings': {
118 # Ensures that dependent projects import the core functions on Windows.
119 'defines': ['MOJO_USE_SYSTEM_IMPL'],
120 },
121 'conditions': [
122 ['OS=="android"', {
123 'dependencies': [
124 '../third_party/ashmem/ashmem.gyp:ashmem',
125 ],
126 }],
127 ['OS=="win"', {
128 # Structure was padded due to __declspec(align()), which is
129 # uninteresting.
130 'msvs_disabled_warnings': [ 4324 ],
131 }],
132 ],
133 },
134 {
135 # GN version: //mojo/edk/js
136 # TODO(use_chrome_edk): remove "2"
137 'target_name': 'mojo_js_lib2',
138 'type': 'static_library',
139 'dependencies': [
140 '../base/base.gyp:base',
141 '../gin/gin.gyp:gin',
142 '../v8/tools/gyp/v8.gyp:v8',
143 ],
144 'export_dependent_settings': [
145 '../base/base.gyp:base',
146 '../gin/gin.gyp:gin',
147 ],
148 'sources': [
149 # Sources list duplicated in GN build.
150 'edk/js/core.cc',
151 'edk/js/core.h',
152 'edk/js/drain_data.cc',
153 'edk/js/drain_data.h',
154 'edk/js/handle.cc',
155 'edk/js/handle.h',
156 'edk/js/handle_close_observer.h',
157 'edk/js/mojo_runner_delegate.cc',
158 'edk/js/mojo_runner_delegate.h',
159 'edk/js/support.cc',
160 'edk/js/support.h',
161 'edk/js/threading.cc',
162 'edk/js/threading.h',
163 'edk/js/waiting_callback.cc',
164 'edk/js/waiting_callback.h',
165 ],
166 },
167 {
168 # GN version: //mojo/edk/test:test_support_impl
169 # TODO(use_chrome_edk): remove "2"
170 'target_name': 'mojo_test_support_impl2',
171 'type': 'static_library',
172 'dependencies': [
173 '../base/base.gyp:base',
174 ],
175 'sources': [
176 'edk/test/test_support_impl.cc',
177 'edk/test/test_support_impl.h',
178 ],
179 },
180 {
181 # GN version: //mojo/edk/test:test_support
182 'target_name': 'mojo_common_test_support2',
183 'type': 'static_library',
184 'dependencies': [
185 '../base/base.gyp:base',
186 '../base/base.gyp:test_support_base',
187 '../testing/gtest.gyp:gtest',
188 'mojo_system_impl2',
189 ],
190 'sources': [
191 'edk/test/multiprocess_test_helper.cc',
192 'edk/test/multiprocess_test_helper.h',
193 'edk/test/scoped_ipc_support.cc',
194 'edk/test/scoped_ipc_support.h',
195 'edk/test/test_utils.h',
196 'edk/test/test_utils_posix.cc',
197 'edk/test/test_utils_win.cc',
198 ],
199 'conditions': [
200 ['OS=="ios"', {
201 'sources!': [
202 'edk/test/multiprocess_test_helper.cc',
203 ],
204 }],
205 ],
206 },
207 {
208 # GN version: //mojo/edk/test:run_all_unittests
209 # TODO(use_chrome_edk): remove "2"
210 'target_name': 'mojo_run_all_unittests2',
211 'type': 'static_library',
212 'dependencies': [
213 '../base/base.gyp:base',
214 '../base/base.gyp:test_support_base',
215 '../testing/gtest.gyp:gtest',
216 '../third_party/mojo/mojo_public.gyp:mojo_public_test_support',
217 'mojo_system_impl2',
218 'mojo_test_support_impl2',
219 ],
220 'sources': [
221 'edk/test/run_all_unittests.cc',
222 ],
223 },
224 ],
225 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698