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

Side by Side Diff: mojo/public/mojo_public.gyp

Issue 632853002: Define gyp targets for mojo/public/* in mojo/public/mojo_public.gyp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ios fixes Created 6 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
« no previous file with comments | « mojo/public/interfaces/application/BUILD.gn ('k') | mojo/public/platform/native/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 '../mojo_variables.gypi',
8 ],
9 'targets': [
10 {
11 'target_name': 'mojo_public',
12 'type': 'none',
13 'dependencies': [
14 'mojo_js_bindings',
15 'mojo_public_test_interfaces',
16 'mojo_public_test_utils',
17 'mojo_system',
18 'mojo_utility',
19 ],
20 },
21 {
22 'target_name': 'mojo_none',
23 'type': 'none',
24 },
25 {
26 # GN version: //mojo/public/c/system
27 'target_name': 'mojo_system',
28 'type': 'static_library',
29 'defines': [
30 'MOJO_SYSTEM_IMPLEMENTATION',
31 ],
32 'include_dirs': [
33 '../..',
34 ],
35 'direct_dependent_settings': {
36 'include_dirs': [
37 '../..',
38 ],
39 },
40 'all_dependent_settings': {
41 'conditions': [
42 # We need to be able to call the MojoSetSystemThunks() function in
43 # system_thunks.cc
44 ['OS=="android"', {
45 'ldflags!': [
46 '-Wl,--exclude-libs=ALL',
47 ],
48 }],
49 ],
50 },
51 'sources': [
52 'c/system/buffer.h',
53 'c/system/core.h',
54 'c/system/data_pipe.h',
55 'c/system/functions.h',
56 'c/system/macros.h',
57 'c/system/message_pipe.h',
58 'c/system/system_export.h',
59 'c/system/types.h',
60 'platform/native/system_thunks.cc',
61 'platform/native/system_thunks.h',
62 ],
63 },
64 {
65 # GN version: //mojo/public/cpp/bindings
66 'target_name': 'mojo_cpp_bindings',
67 'type': 'static_library',
68 'include_dirs': [
69 '../..'
70 ],
71 'sources': [
72 'cpp/bindings/array.h',
73 'cpp/bindings/callback.h',
74 'cpp/bindings/error_handler.h',
75 'cpp/bindings/interface_impl.h',
76 'cpp/bindings/interface_ptr.h',
77 'cpp/bindings/interface_request.h',
78 'cpp/bindings/message.h',
79 'cpp/bindings/message_filter.h',
80 'cpp/bindings/no_interface.h',
81 'cpp/bindings/string.h',
82 'cpp/bindings/type_converter.h',
83 'cpp/bindings/lib/array_internal.h',
84 'cpp/bindings/lib/array_internal.cc',
85 'cpp/bindings/lib/array_serialization.h',
86 'cpp/bindings/lib/bindings_internal.h',
87 'cpp/bindings/lib/bindings_serialization.cc',
88 'cpp/bindings/lib/bindings_serialization.h',
89 'cpp/bindings/lib/bounds_checker.cc',
90 'cpp/bindings/lib/bounds_checker.h',
91 'cpp/bindings/lib/buffer.h',
92 'cpp/bindings/lib/callback_internal.h',
93 'cpp/bindings/lib/connector.cc',
94 'cpp/bindings/lib/connector.h',
95 'cpp/bindings/lib/filter_chain.cc',
96 'cpp/bindings/lib/filter_chain.h',
97 'cpp/bindings/lib/fixed_buffer.cc',
98 'cpp/bindings/lib/fixed_buffer.h',
99 'cpp/bindings/lib/interface_impl_internal.h',
100 'cpp/bindings/lib/interface_ptr_internal.h',
101 'cpp/bindings/lib/message.cc',
102 'cpp/bindings/lib/message_builder.cc',
103 'cpp/bindings/lib/message_builder.h',
104 'cpp/bindings/lib/message_filter.cc',
105 'cpp/bindings/lib/message_header_validator.cc',
106 'cpp/bindings/lib/message_header_validator.h',
107 'cpp/bindings/lib/message_internal.h',
108 'cpp/bindings/lib/message_queue.cc',
109 'cpp/bindings/lib/message_queue.h',
110 'cpp/bindings/lib/no_interface.cc',
111 'cpp/bindings/lib/router.cc',
112 'cpp/bindings/lib/router.h',
113 'cpp/bindings/lib/shared_data.h',
114 'cpp/bindings/lib/shared_ptr.h',
115 'cpp/bindings/lib/string_serialization.h',
116 'cpp/bindings/lib/string_serialization.cc',
117 'cpp/bindings/lib/validation_errors.cc',
118 'cpp/bindings/lib/validation_errors.h',
119 ],
120 },
121 {
122 # GN version: //mojo/public/js/bindings
123 'target_name': 'mojo_js_bindings',
124 'type': 'static_library',
125 'include_dirs': [
126 '../..'
127 ],
128 'sources': [
129 'js/bindings/constants.cc',
130 'js/bindings/constants.h',
131 ],
132 },
133 {
134 # GN version: //mojo/public/cpp/environment:standalone
135 'target_name': 'mojo_environment_standalone',
136 'type': 'static_library',
137 'sources': [
138 'c/environment/async_waiter.h',
139 'c/environment/logger.h',
140 'cpp/environment/environment.h',
141 'cpp/environment/lib/default_async_waiter.cc',
142 'cpp/environment/lib/default_async_waiter.h',
143 'cpp/environment/lib/default_logger.cc',
144 'cpp/environment/lib/default_logger.h',
145 'cpp/environment/lib/environment.cc',
146 'cpp/environment/lib/logging.cc',
147 'cpp/environment/logging.h',
148 ],
149 'include_dirs': [
150 '../..',
151 ],
152 },
153 {
154 # GN version: //mojo/public/cpp/utility
155 'target_name': 'mojo_utility',
156 'type': 'static_library',
157 'sources': [
158 'cpp/utility/mutex.h',
159 'cpp/utility/run_loop.h',
160 'cpp/utility/run_loop_handler.h',
161 'cpp/utility/thread.h',
162 'cpp/utility/lib/mutex.cc',
163 'cpp/utility/lib/run_loop.cc',
164 'cpp/utility/lib/thread.cc',
165 'cpp/utility/lib/thread_local.h',
166 'cpp/utility/lib/thread_local_posix.cc',
167 'cpp/utility/lib/thread_local_win.cc',
168 ],
169 'conditions': [
170 # See crbug.com/342893:
171 ['OS=="win"', {
172 'sources!': [
173 'cpp/utility/mutex.h',
174 'cpp/utility/thread.h',
175 'cpp/utility/lib/mutex.cc',
176 'cpp/utility/lib/thread.cc',
177 ],
178 }],
179 ],
180 'include_dirs': [
181 '../..',
182 ],
183 },
184 {
185 # GN version: //mojo/public/interfaces/application:application
186 'target_name': 'mojo_application_bindings',
187 'type': 'static_library',
188 'sources': [
189 'interfaces/application/application.mojom',
190 'interfaces/application/service_provider.mojom',
191 'interfaces/application/shell.mojom',
192 ],
193 'includes': [ 'tools/bindings/mojom_bindings_generator.gypi' ],
194 'dependencies': [
195 'mojo_cpp_bindings',
196 ],
197 'export_dependent_settings': [
198 'mojo_cpp_bindings',
199 ],
200 },
201 {
202 # GN version: //mojo/public/cpp/application
203 'target_name': 'mojo_application_base',
204 'type': 'static_library',
205 'sources': [
206 'cpp/application/application_connection.h',
207 'cpp/application/application_delegate.h',
208 'cpp/application/application_impl.h',
209 'cpp/application/connect.h',
210 'cpp/application/service_provider_impl.h',
211 'cpp/application/interface_factory.h',
212 'cpp/application/interface_factory_impl.h',
213 'cpp/application/lib/application_connection.cc',
214 'cpp/application/lib/application_delegate.cc',
215 'cpp/application/lib/application_impl.cc',
216 'cpp/application/lib/service_provider_impl.cc',
217 'cpp/application/lib/service_connector.cc',
218 'cpp/application/lib/service_connector.h',
219 'cpp/application/lib/service_registry.cc',
220 'cpp/application/lib/service_registry.h',
221 'cpp/application/lib/weak_service_provider.cc',
222 'cpp/application/lib/weak_service_provider.h',
223 ],
224 'dependencies': [
225 'mojo_application_bindings',
226 ],
227 'export_dependent_settings': [
228 'mojo_application_bindings',
229 ],
230 },
231 {
232 # GN version: //mojo/public/cpp/application:standalone"
233 'target_name': 'mojo_application_standalone',
234 'type': 'static_library',
235 'sources': [
236 'cpp/application/lib/application_runner.cc',
237 'cpp/application/application_runner.h',
238 ],
239 'dependencies': [
240 'mojo_application_base',
241 'mojo_environment_standalone',
242 ],
243 'export_dependent_settings': [
244 'mojo_application_base',
245 ],
246 },
247 {
248 # GN version: //mojo/public/c/test_support
249 'target_name': 'mojo_test_support',
250 'defines': [
251 'MOJO_TEST_SUPPORT_IMPLEMENTATION',
252 ],
253 'include_dirs': [
254 '../..',
255 ],
256 'direct_dependent_settings': {
257 'include_dirs': [
258 '../..',
259 ],
260 },
261 'sources': [
262 'c/test_support/test_support.h',
263 'c/test_support/test_support_export.h',
264 # TODO(vtl): Convert this to thunks http://crbug.com/386799
265 'tests/test_support_private.cc',
266 'tests/test_support_private.h',
267 ],
268 'conditions': [
269 ['OS=="ios"', {
270 'type': 'static_library',
271 }, {
272 'type': 'shared_library',
273 }],
274 ['OS=="mac"', {
275 'xcode_settings': {
276 # Make it a run-path dependent library.
277 'DYLIB_INSTALL_NAME_BASE': '@loader_path',
278 },
279 }],
280 ],
281 },
282 {
283 # GN version: //mojo/public/cpp/test_support:test_utils
284 'target_name': 'mojo_public_test_utils',
285 'type': 'static_library',
286 'dependencies': [
287 '../../base/base.gyp:base',
288 '../../testing/gtest.gyp:gtest',
289 'mojo_test_support',
290 ],
291 'sources': [
292 'cpp/test_support/lib/test_support.cc',
293 'cpp/test_support/lib/test_utils.cc',
294 'cpp/test_support/test_utils.h',
295 ],
296 },
297 {
298 # GN version: //mojo/public/cpp/bindings/tests:mojo_public_bindings_test_u tils
299 'target_name': 'mojo_public_bindings_test_utils',
300 'type': 'static_library',
301 'dependencies': [
302 '../../base/base.gyp:base',
303 ],
304 'sources': [
305 'cpp/bindings/tests/validation_test_input_parser.cc',
306 'cpp/bindings/tests/validation_test_input_parser.h',
307 ],
308 },
309 {
310 # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces
311 'target_name': 'mojo_public_test_interfaces',
312 'type': 'static_library',
313 'sources': [
314 'interfaces/bindings/tests/math_calculator.mojom',
315 'interfaces/bindings/tests/no_module.mojom',
316 'interfaces/bindings/tests/rect.mojom',
317 'interfaces/bindings/tests/regression_tests.mojom',
318 'interfaces/bindings/tests/sample_factory.mojom',
319 'interfaces/bindings/tests/sample_import.mojom',
320 'interfaces/bindings/tests/sample_import2.mojom',
321 'interfaces/bindings/tests/sample_interfaces.mojom',
322 'interfaces/bindings/tests/sample_service.mojom',
323 'interfaces/bindings/tests/serialization_test_structs.mojom',
324 'interfaces/bindings/tests/test_structs.mojom',
325 'interfaces/bindings/tests/validation_test_interfaces.mojom',
326 ],
327 'includes': [ 'tools/bindings/mojom_bindings_generator.gypi' ],
328 'export_dependent_settings': [
329 'mojo_cpp_bindings',
330 ],
331 'dependencies': [
332 'mojo_cpp_bindings',
333 ],
334 },
335 ],
336 'conditions': [
337 ['OS == "android"', {
338 'targets': [
339 {
340 # GN version: //mojo/public/java_system
341 'target_name': 'mojo_public_java',
342 'type': 'none',
343 'variables': {
344 'java_in_dir': 'java/system',
345 },
346 'includes': [ '../../build/java.gypi' ],
347 },
348 {
349 # GN version: //mojo/public/java_bindings
350 'target_name': 'mojo_bindings_java',
351 'type': 'none',
352 'variables': {
353 'java_in_dir': 'java/bindings',
354 },
355 'dependencies': [
356 'mojo_public_java',
357 ],
358 'includes': [ '../../build/java.gypi' ],
359 },
360 ],
361 }],
362 ],
363 }
OLDNEW
« no previous file with comments | « mojo/public/interfaces/application/BUILD.gn ('k') | mojo/public/platform/native/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698