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

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

Issue 807773002: Move mojo gypfiles to toplevel mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 '../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/binding.h',
74 'cpp/bindings/callback.h',
75 'cpp/bindings/error_handler.h',
76 'cpp/bindings/interface_impl.h',
77 'cpp/bindings/interface_ptr.h',
78 'cpp/bindings/interface_request.h',
79 'cpp/bindings/message.h',
80 'cpp/bindings/message_filter.h',
81 'cpp/bindings/no_interface.h',
82 'cpp/bindings/string.h',
83 'cpp/bindings/strong_binding.h',
84 'cpp/bindings/type_converter.h',
85 'cpp/bindings/lib/array_internal.h',
86 'cpp/bindings/lib/array_internal.cc',
87 'cpp/bindings/lib/array_serialization.h',
88 'cpp/bindings/lib/bindings_internal.h',
89 'cpp/bindings/lib/bindings_serialization.cc',
90 'cpp/bindings/lib/bindings_serialization.h',
91 'cpp/bindings/lib/bounds_checker.cc',
92 'cpp/bindings/lib/bounds_checker.h',
93 'cpp/bindings/lib/buffer.h',
94 'cpp/bindings/lib/callback_internal.h',
95 'cpp/bindings/lib/connector.cc',
96 'cpp/bindings/lib/connector.h',
97 'cpp/bindings/lib/filter_chain.cc',
98 'cpp/bindings/lib/filter_chain.h',
99 'cpp/bindings/lib/fixed_buffer.cc',
100 'cpp/bindings/lib/fixed_buffer.h',
101 'cpp/bindings/lib/interface_ptr_internal.h',
102 'cpp/bindings/lib/map_data_internal.h',
103 'cpp/bindings/lib/map_internal.h',
104 'cpp/bindings/lib/map_serialization.h',
105 'cpp/bindings/lib/message.cc',
106 'cpp/bindings/lib/message_builder.cc',
107 'cpp/bindings/lib/message_builder.h',
108 'cpp/bindings/lib/message_filter.cc',
109 'cpp/bindings/lib/message_header_validator.cc',
110 'cpp/bindings/lib/message_header_validator.h',
111 'cpp/bindings/lib/message_internal.h',
112 'cpp/bindings/lib/message_queue.cc',
113 'cpp/bindings/lib/message_queue.h',
114 'cpp/bindings/lib/no_interface.cc',
115 'cpp/bindings/lib/router.cc',
116 'cpp/bindings/lib/router.h',
117 'cpp/bindings/lib/shared_data.h',
118 'cpp/bindings/lib/shared_ptr.h',
119 'cpp/bindings/lib/string_serialization.h',
120 'cpp/bindings/lib/string_serialization.cc',
121 'cpp/bindings/lib/validate_params.h',
122 'cpp/bindings/lib/validation_errors.cc',
123 'cpp/bindings/lib/validation_errors.h',
124 ],
125 },
126 {
127 # GN version: //mojo/public/js
128 'target_name': 'mojo_js_bindings',
129 'type': 'static_library',
130 'include_dirs': [
131 '../..'
132 ],
133 'sources': [
134 'js/constants.cc',
135 'js/constants.h',
136 ],
137 },
138 {
139 # GN version: //mojo/public/cpp/environment:standalone
140 'target_name': 'mojo_environment_standalone',
141 'type': 'static_library',
142 'sources': [
143 'c/environment/async_waiter.h',
144 'c/environment/logger.h',
145 'cpp/environment/async_waiter.h',
146 'cpp/environment/environment.h',
147 'cpp/environment/lib/async_waiter.cc',
148 'cpp/environment/lib/default_async_waiter.cc',
149 'cpp/environment/lib/default_async_waiter.h',
150 'cpp/environment/lib/default_logger.cc',
151 'cpp/environment/lib/default_logger.h',
152 'cpp/environment/lib/environment.cc',
153 'cpp/environment/lib/logging.cc',
154 'cpp/environment/logging.h',
155 ],
156 'include_dirs': [
157 '../..',
158 ],
159 },
160 {
161 # GN version: //mojo/public/cpp/utility
162 'target_name': 'mojo_utility',
163 'type': 'static_library',
164 'sources': [
165 'cpp/utility/mutex.h',
166 'cpp/utility/run_loop.h',
167 'cpp/utility/run_loop_handler.h',
168 'cpp/utility/thread.h',
169 'cpp/utility/lib/mutex.cc',
170 'cpp/utility/lib/run_loop.cc',
171 'cpp/utility/lib/thread.cc',
172 'cpp/utility/lib/thread_local.h',
173 'cpp/utility/lib/thread_local_posix.cc',
174 'cpp/utility/lib/thread_local_win.cc',
175 ],
176 'conditions': [
177 # See crbug.com/342893:
178 ['OS=="win"', {
179 'sources!': [
180 'cpp/utility/mutex.h',
181 'cpp/utility/thread.h',
182 'cpp/utility/lib/mutex.cc',
183 'cpp/utility/lib/thread.cc',
184 ],
185 }],
186 ],
187 'include_dirs': [
188 '../..',
189 ],
190 },
191 {
192 'target_name': 'mojo_application_bindings_mojom',
193 'type': 'none',
194 'variables': {
195 'mojom_files': [
196 'interfaces/application/application.mojom',
197 'interfaces/application/service_provider.mojom',
198 'interfaces/application/shell.mojom',
199 ],
200 },
201 'includes': [ 'tools/bindings/mojom_bindings_generator_explicit.gypi' ],
202 },
203 {
204 # GN version: //mojo/public/interfaces/application:application
205 'target_name': 'mojo_application_bindings',
206 'type': 'static_library',
207 'dependencies': [
208 'mojo_application_bindings_mojom',
209 'mojo_cpp_bindings',
210 ],
211 'export_dependent_settings': [
212 'mojo_cpp_bindings',
213 ],
214 },
215 {
216 # GN version: //mojo/public/cpp/application
217 'target_name': 'mojo_application_base',
218 'type': 'static_library',
219 'sources': [
220 'cpp/application/application_connection.h',
221 'cpp/application/application_delegate.h',
222 'cpp/application/application_impl.h',
223 'cpp/application/connect.h',
224 'cpp/application/interface_factory.h',
225 'cpp/application/interface_factory_impl.h',
226 'cpp/application/lib/application_connection.cc',
227 'cpp/application/lib/application_delegate.cc',
228 'cpp/application/lib/application_impl.cc',
229 'cpp/application/lib/service_provider_impl.cc',
230 'cpp/application/lib/service_connector.cc',
231 'cpp/application/lib/service_connector.h',
232 'cpp/application/lib/service_registry.cc',
233 'cpp/application/lib/service_registry.h',
234 'cpp/application/lib/weak_service_provider.cc',
235 'cpp/application/lib/weak_service_provider.h',
236 'cpp/application/service_provider_impl.h',
237 ],
238 'dependencies': [
239 'mojo_application_bindings',
240 ],
241 'export_dependent_settings': [
242 'mojo_application_bindings',
243 ],
244 },
245 {
246 # GN version: //mojo/public/cpp/application:standalone"
247 'target_name': 'mojo_application_standalone',
248 'type': 'static_library',
249 'sources': [
250 'cpp/application/lib/application_runner.cc',
251 'cpp/application/application_runner.h',
252 ],
253 'dependencies': [
254 'mojo_application_base',
255 'mojo_environment_standalone',
256 ],
257 'export_dependent_settings': [
258 'mojo_application_base',
259 ],
260 },
261 {
262 # GN version: //mojo/public/c/test_support
263 'target_name': 'mojo_test_support',
264 'defines': [
265 'MOJO_TEST_SUPPORT_IMPLEMENTATION',
266 ],
267 'include_dirs': [
268 '../..',
269 ],
270 'direct_dependent_settings': {
271 'include_dirs': [
272 '../..',
273 ],
274 },
275 'sources': [
276 'c/test_support/test_support.h',
277 'c/test_support/test_support_export.h',
278 # TODO(vtl): Convert this to thunks http://crbug.com/386799
279 'tests/test_support_private.cc',
280 'tests/test_support_private.h',
281 ],
282 'conditions': [
283 ['OS=="ios"', {
284 'type': 'static_library',
285 }, {
286 'type': 'shared_library',
287 }],
288 ['OS=="mac"', {
289 'xcode_settings': {
290 # Make it a run-path dependent library.
291 'DYLIB_INSTALL_NAME_BASE': '@loader_path',
292 },
293 }],
294 ],
295 },
296 {
297 # GN version: //mojo/public/cpp/test_support:test_utils
298 'target_name': 'mojo_public_test_utils',
299 'type': 'static_library',
300 'dependencies': [
301 '../../base/base.gyp:base',
302 '../../testing/gtest.gyp:gtest',
303 'mojo_test_support',
304 ],
305 'sources': [
306 'cpp/test_support/lib/test_support.cc',
307 'cpp/test_support/lib/test_utils.cc',
308 'cpp/test_support/test_utils.h',
309 ],
310 },
311 {
312 # GN version: //mojo/public/cpp/bindings/tests:mojo_public_bindings_test_u tils
313 'target_name': 'mojo_public_bindings_test_utils',
314 'type': 'static_library',
315 'dependencies': [
316 '../../base/base.gyp:base',
317 ],
318 'sources': [
319 'cpp/bindings/tests/validation_test_input_parser.cc',
320 'cpp/bindings/tests/validation_test_input_parser.h',
321 ],
322 },
323 {
324 'target_name': 'mojo_public_test_interfaces_mojom',
325 'type': 'none',
326 'variables': {
327 'mojom_files': [
328 'interfaces/bindings/tests/math_calculator.mojom',
329 'interfaces/bindings/tests/no_module.mojom',
330 'interfaces/bindings/tests/rect.mojom',
331 'interfaces/bindings/tests/regression_tests.mojom',
332 'interfaces/bindings/tests/regression_tests_import.mojom',
333 'interfaces/bindings/tests/sample_factory.mojom',
334 'interfaces/bindings/tests/sample_import.mojom',
335 'interfaces/bindings/tests/sample_import2.mojom',
336 'interfaces/bindings/tests/sample_interfaces.mojom',
337 'interfaces/bindings/tests/sample_service.mojom',
338 'interfaces/bindings/tests/serialization_test_structs.mojom',
339 'interfaces/bindings/tests/test_structs.mojom',
340 'interfaces/bindings/tests/validation_test_interfaces.mojom',
341 ],
342 },
343 'includes': [ 'tools/bindings/mojom_bindings_generator_explicit.gypi' ],
344 },
345 {
346 # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces
347 'target_name': 'mojo_public_test_interfaces',
348 'type': 'static_library',
349 'export_dependent_settings': [
350 'mojo_cpp_bindings',
351 ],
352 'dependencies': [
353 'mojo_public_test_interfaces_mojom',
354 'mojo_cpp_bindings',
355 ],
356 },
357 ],
358 'conditions': [
359 ['OS == "android"', {
360 'targets': [
361 {
362 # GN version: //mojo/public/java_system
363 'target_name': 'mojo_public_java',
364 'type': 'none',
365 'variables': {
366 'java_in_dir': 'java/system',
367 },
368 'includes': [ '../../build/java.gypi' ],
369 },
370 {
371 # GN version: //mojo/public/java_bindings
372 'target_name': 'mojo_bindings_java',
373 'type': 'none',
374 'variables': {
375 'java_in_dir': 'java/bindings',
376 },
377 'dependencies': [
378 'mojo_public_java',
379 ],
380 'includes': [ '../../build/java.gypi' ],
381 },
382 ],
383 }],
384 ],
385 }
OLDNEW
« no previous file with comments | « mojo/mojom_bindings_generator_variables.gypi ('k') | mojo/public/tools/bindings/mojom_bindings_generator.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698