OLD | NEW |
---|---|
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chro`ium Authors. All rights reserved. |
Mark Seaborn
2016/06/14 20:43:14
Accidental change here.
Ken Rockot(use gerrit already)
2016/06/14 20:53:07
Done
| |
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 { | 5 { |
6 'includes': { | |
7 'mojo_public.gypi', | |
8 }, | |
9 'variables': { | |
10 'chromium_code': 1, | |
11 }, | |
6 'target_defaults' : { | 12 'target_defaults' : { |
7 'include_dirs': [ | 13 'include_dirs': [ |
8 '..', | 14 '..', |
9 ], | 15 ], |
10 }, | 16 }, |
11 'variables': { | |
12 'chromium_code': 1, | |
13 'mojo_public_test_interfaces_mojom_files': [ | |
14 'public/interfaces/bindings/tests/math_calculator.mojom', | |
15 'public/interfaces/bindings/tests/no_module.mojom', | |
16 'public/interfaces/bindings/tests/ping_service.mojom', | |
17 'public/interfaces/bindings/tests/rect.mojom', | |
18 'public/interfaces/bindings/tests/regression_tests.mojom', | |
19 'public/interfaces/bindings/tests/sample_factory.mojom', | |
20 'public/interfaces/bindings/tests/sample_import.mojom', | |
21 'public/interfaces/bindings/tests/sample_import2.mojom', | |
22 'public/interfaces/bindings/tests/sample_interfaces.mojom', | |
23 'public/interfaces/bindings/tests/sample_service.mojom', | |
24 'public/interfaces/bindings/tests/scoping.mojom', | |
25 'public/interfaces/bindings/tests/serialization_test_structs.mojom', | |
26 'public/interfaces/bindings/tests/test_constants.mojom', | |
27 'public/interfaces/bindings/tests/test_native_types.mojom', | |
28 'public/interfaces/bindings/tests/test_sync_methods.mojom', | |
29 ] | |
30 }, | |
31 'targets': [ | 17 'targets': [ |
32 { | 18 { |
33 'target_name': 'mojo_public', | 19 'target_name': 'mojo_public', |
34 'type': 'none', | 20 'type': 'none', |
35 'dependencies': [ | 21 'dependencies': [ |
36 'mojo_js_bindings', | 22 'mojo_js_bindings', |
37 'mojo_public_system', | 23 'mojo_public_system', |
38 'mojo_public_test_interfaces', | |
39 'mojo_public_test_utils', | |
40 ], | 24 ], |
41 }, | 25 }, |
42 { | 26 { |
43 # GN version: //mojo/public/c/system | 27 # GN version: //mojo/public/c/system |
44 'target_name': 'mojo_public_system', | 28 'target_name': 'mojo_public_system', |
45 'type': '<(component)', | 29 'type': '<(component)', |
46 'sources': [ | 30 'sources': [ |
47 'public/c/system/buffer.h', | 31 '<@(mojo_public_system_sources)', |
48 'public/c/system/core.h', | |
49 'public/c/system/data_pipe.h', | |
50 'public/c/system/functions.h', | |
51 'public/c/system/macros.h', | |
52 'public/c/system/message_pipe.h', | |
53 'public/c/system/platform_handle.h', | |
54 'public/c/system/system_export.h', | |
55 'public/c/system/thunks.cc', | |
56 'public/c/systme/thunks.h', | |
57 'public/c/system/types.h', | |
58 'public/c/system/wait_set.h', | |
59 ], | 32 ], |
60 'defines': [ | 33 'defines': [ |
61 'MOJO_SYSTEM_IMPLEMENTATION', | 34 'MOJO_SYSTEM_IMPLEMENTATION', |
62 ], | 35 ], |
63 }, | 36 }, |
64 { | 37 { |
65 # GN version: //mojo/public/cpp/system | 38 # GN version: //mojo/public/cpp/system |
66 'target_name': 'mojo_cpp_system', | 39 'target_name': 'mojo_cpp_system', |
67 'type': 'static_library', | 40 'type': 'static_library', |
68 'sources': [ | 41 'sources': [ |
69 'public/cpp/system/buffer.cc', | 42 '<@(mojo_cpp_system_sources)', |
70 'public/cpp/system/buffer.h', | |
71 'public/cpp/system/core.h', | |
72 'public/cpp/system/data_pipe.h', | |
73 'public/cpp/system/functions.h', | |
74 'public/cpp/system/handle.h', | |
75 'public/cpp/system/message.h', | |
76 'public/cpp/system/message_pipe.h', | |
77 'public/cpp/system/platform_handle.cc', | |
78 'public/cpp/system/platform_handle.h', | |
79 'public/cpp/system/watcher.cc', | |
80 'public/cpp/system/watcher.h', | |
81 ], | 43 ], |
82 'dependencies': [ | 44 'dependencies': [ |
83 '../base/base.gyp:base', | 45 '../base/base.gyp:base', |
84 'mojo_public_system', | 46 'mojo_public_system', |
85 ], | 47 ], |
86 }, | 48 }, |
87 { | 49 { |
88 # GN version: //mojo/public/cpp/bindings | 50 # GN version: //mojo/public/cpp/bindings |
89 'target_name': 'mojo_cpp_bindings', | 51 'target_name': 'mojo_cpp_bindings', |
90 'type': 'static_library', | 52 'type': 'static_library', |
91 'include_dirs': [ | 53 'include_dirs': [ |
92 '..' | 54 '..' |
93 ], | 55 ], |
94 'sources': [ | 56 'sources': [ |
95 'public/cpp/bindings/array.h', | 57 '<@(mojo_cpp_bindings_sources)', |
96 'public/cpp/bindings/array_traits.h', | 58 |
97 'public/cpp/bindings/array_traits_carray.h', | |
98 'public/cpp/bindings/array_traits_standard.h', | |
99 'public/cpp/bindings/array_traits_stl.h', | |
100 'public/cpp/bindings/associated_binding.h', | |
101 'public/cpp/bindings/associated_group.h', | |
102 'public/cpp/bindings/associated_interface_ptr.h', | |
103 'public/cpp/bindings/associated_interface_ptr_info.h', | |
104 'public/cpp/bindings/associated_interface_request.h', | |
105 'public/cpp/bindings/binding.h', | |
106 'public/cpp/bindings/binding_set.h', | |
107 'public/cpp/bindings/callback.h', | |
108 'public/cpp/bindings/enum_traits.h', | |
109 'public/cpp/bindings/interface_ptr.h', | |
110 'public/cpp/bindings/interface_ptr_set.h', | |
111 'public/cpp/bindings/interface_request.h', | |
112 'public/cpp/bindings/lib/array_internal.cc', | |
113 'public/cpp/bindings/lib/array_internal.h', | |
114 'public/cpp/bindings/lib/array_serialization.h', | |
115 'public/cpp/bindings/lib/associated_group.cc', | |
116 'public/cpp/bindings/lib/associated_interface_ptr_state.h', | |
117 'public/cpp/bindings/lib/binding_state.h', | |
118 'public/cpp/bindings/lib/bindings_internal.h', | |
119 'public/cpp/bindings/lib/bounds_checker.cc', | |
120 'public/cpp/bindings/lib/bounds_checker.h', | |
121 'public/cpp/bindings/lib/buffer.h', | |
122 'public/cpp/bindings/lib/callback_internal.h', | |
123 'public/cpp/bindings/lib/connector.cc', | |
124 'public/cpp/bindings/lib/connector.h', | |
125 'public/cpp/bindings/lib/control_message_handler.cc', | |
126 'public/cpp/bindings/lib/control_message_handler.h', | |
127 'public/cpp/bindings/lib/control_message_proxy.cc', | |
128 'public/cpp/bindings/lib/control_message_proxy.h', | |
129 'public/cpp/bindings/lib/filter_chain.cc', | |
130 'public/cpp/bindings/lib/filter_chain.h', | |
131 'public/cpp/bindings/lib/fixed_buffer.cc', | |
132 'public/cpp/bindings/lib/fixed_buffer.h', | |
133 'public/cpp/bindings/lib/interface_endpoint_client.cc', | |
134 'public/cpp/bindings/lib/interface_endpoint_client.h', | |
135 'public/cpp/bindings/lib/interface_endpoint_controller.h', | |
136 'public/cpp/bindings/lib/interface_id.h', | |
137 'public/cpp/bindings/lib/interface_ptr_state.h', | |
138 'public/cpp/bindings/lib/map_data_internal.h', | |
139 'public/cpp/bindings/lib/map_serialization.h', | |
140 'public/cpp/bindings/lib/message.cc', | |
141 'public/cpp/bindings/lib/message_buffer.cc', | |
142 'public/cpp/bindings/lib/message_buffer.h', | |
143 'public/cpp/bindings/lib/message_builder.cc', | |
144 'public/cpp/bindings/lib/message_builder.h', | |
145 'public/cpp/bindings/lib/message_filter.cc', | |
146 'public/cpp/bindings/lib/message_header_validator.cc', | |
147 'public/cpp/bindings/lib/message_header_validator.h', | |
148 'public/cpp/bindings/lib/message_internal.h', | |
149 'public/cpp/bindings/lib/multiplex_router.cc', | |
150 'public/cpp/bindings/lib/multiplex_router.h', | |
151 'public/cpp/bindings/lib/native_enum_data.h', | |
152 'public/cpp/bindings/lib/native_enum_serialization.h', | |
153 'public/cpp/bindings/lib/native_struct.cc', | |
154 'public/cpp/bindings/lib/native_struct_data.cc', | |
155 'public/cpp/bindings/lib/native_struct_data.h', | |
156 'public/cpp/bindings/lib/native_struct_serialization.cc', | |
157 'public/cpp/bindings/lib/native_struct_serialization.h', | |
158 'public/cpp/bindings/lib/no_interface.cc', | |
159 'public/cpp/bindings/lib/pipe_control_message_handler.cc', | |
160 'public/cpp/bindings/lib/pipe_control_message_handler.h', | |
161 'public/cpp/bindings/lib/pipe_control_message_handler_delegate.h', | |
162 'public/cpp/bindings/lib/pipe_control_message_proxy.cc', | |
163 'public/cpp/bindings/lib/pipe_control_message_proxy.h', | |
164 'public/cpp/bindings/lib/router.cc', | |
165 'public/cpp/bindings/lib/router.h', | |
166 'public/cpp/bindings/lib/scoped_interface_endpoint_handle.cc', | |
167 'public/cpp/bindings/lib/serialization.h', | |
168 'public/cpp/bindings/lib/serialization_context.cc', | |
169 'public/cpp/bindings/lib/serialization_context.h', | |
170 'public/cpp/bindings/lib/serialization_forward.h', | |
171 'public/cpp/bindings/lib/serialization_forward.h', | |
172 'public/cpp/bindings/lib/serialization_util.cc', | |
173 'public/cpp/bindings/lib/serialization_util.h', | |
174 'public/cpp/bindings/lib/shared_data.h', | |
175 'public/cpp/bindings/lib/shared_ptr.h', | |
176 'public/cpp/bindings/lib/string_serialization.h', | |
177 'public/cpp/bindings/lib/string_traits_string16.cc', | |
178 'public/cpp/bindings/lib/sync_handle_registry.cc', | |
179 'public/cpp/bindings/lib/sync_handle_registry.h', | |
180 'public/cpp/bindings/lib/sync_handle_watcher.cc', | |
181 'public/cpp/bindings/lib/sync_handle_watcher.h', | |
182 'public/cpp/bindings/lib/validate_params.h', | |
183 'public/cpp/bindings/lib/validation_errors.cc', | |
184 'public/cpp/bindings/lib/validation_errors.h', | |
185 'public/cpp/bindings/lib/validation_util.cc', | |
186 'public/cpp/bindings/lib/validation_util.h', | |
187 'public/cpp/bindings/map_traits.h', | |
188 'public/cpp/bindings/map_traits_standard.h', | |
189 'public/cpp/bindings/map_traits_stl.h', | |
190 'public/cpp/bindings/message.h', | |
191 'public/cpp/bindings/message_filter.h', | |
192 'public/cpp/bindings/native_enum.h', | |
193 'public/cpp/bindings/native_struct.h', | |
194 'public/cpp/bindings/no_interface.h', | |
195 'public/cpp/bindings/scoped_interface_endpoint_handle.h', | |
196 'public/cpp/bindings/stl_converters.h', | |
197 'public/cpp/bindings/string.h', | |
198 'public/cpp/bindings/string_traits.h', | |
199 'public/cpp/bindings/string_traits_standard.h', | |
200 'public/cpp/bindings/string_traits_stl.h', | |
201 'public/cpp/bindings/string_traits_string16.h', | |
202 'public/cpp/bindings/string_traits_string_piece.h', | |
203 'public/cpp/bindings/strong_binding.h', | |
204 'public/cpp/bindings/struct_ptr.h', | |
205 'public/cpp/bindings/struct_traits.h', | |
206 'public/cpp/bindings/type_converter.h', | |
207 # This comes from the mojo_interface_bindings_cpp_sources dependency. | 59 # This comes from the mojo_interface_bindings_cpp_sources dependency. |
208 '>@(mojom_generated_sources)', | 60 '>@(mojom_generated_sources)', |
209 ], | 61 ], |
210 'dependencies': [ | 62 'dependencies': [ |
211 '../base/base.gyp:base', | 63 '../base/base.gyp:base', |
212 'mojo_cpp_system', | 64 'mojo_cpp_system', |
213 'mojo_interface_bindings_cpp_sources', | 65 'mojo_interface_bindings_cpp_sources', |
214 ], | 66 ], |
215 }, | 67 }, |
216 { | 68 { |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
318 'target_name': 'mojo_public_bindings_test_utils', | 170 'target_name': 'mojo_public_bindings_test_utils', |
319 'type': 'static_library', | 171 'type': 'static_library', |
320 'dependencies': [ | 172 'dependencies': [ |
321 '../base/base.gyp:base', | 173 '../base/base.gyp:base', |
322 ], | 174 ], |
323 'sources': [ | 175 'sources': [ |
324 'public/cpp/bindings/tests/validation_test_input_parser.cc', | 176 'public/cpp/bindings/tests/validation_test_input_parser.cc', |
325 'public/cpp/bindings/tests/validation_test_input_parser.h', | 177 'public/cpp/bindings/tests/validation_test_input_parser.h', |
326 ], | 178 ], |
327 }, | 179 }, |
328 { | |
329 'target_name': 'mojo_public_test_interfaces_mojom', | |
330 'type': 'none', | |
331 'variables': { | |
332 'mojom_files': [ | |
333 'public/interfaces/bindings/tests/test_structs.mojom', | |
334 'public/interfaces/bindings/tests/test_unions.mojom', | |
335 'public/interfaces/bindings/tests/validation_test_interfaces.mojom', | |
336 '<@(mojo_public_test_interfaces_mojom_files)', | |
337 ], | |
338 'mojom_typemaps': [ | |
339 'public/cpp/bindings/tests/rect_chromium.typemap', | |
340 'public/cpp/bindings/tests/test_native_types_chromium.typemap', | |
341 ], | |
342 }, | |
343 'includes': [ 'mojom_bindings_generator_explicit.gypi' ], | |
344 }, | |
345 { | |
346 'target_name': 'mojo_public_test_interfaces_struct_traits', | |
347 'type': 'static_library', | |
348 'variables': { | |
349 'mojom_typemaps': [ | |
350 'public/cpp/bindings/tests/struct_with_traits.typemap', | |
351 ], | |
352 }, | |
353 'sources': [ | |
354 'public/interfaces/bindings/tests/struct_with_traits.mojom', | |
355 'public/cpp/bindings/tests/struct_with_traits_impl_traits.cc', | |
356 ], | |
357 'includes': [ 'mojom_bindings_generator.gypi' ], | |
358 }, | |
359 { | |
360 # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces | |
361 'target_name': 'mojo_public_test_interfaces', | |
362 'type': 'static_library', | |
363 'export_dependent_settings': [ | |
364 'mojo_cpp_bindings', | |
365 ], | |
366 'sources': [ | |
367 'public/cpp/bindings/tests/pickled_types_chromium.cc', | |
368 ], | |
369 'dependencies': [ | |
370 '../ipc/ipc.gyp:ipc', | |
371 'mojo_public_test_interfaces_mojom', | |
372 'mojo_cpp_bindings', | |
373 ], | |
374 }, | |
375 { | |
376 'target_name': 'mojo_public_test_associated_interfaces_mojom', | |
377 'type': 'none', | |
378 'variables': { | |
379 # These files are not included in the mojo_public_test_interfaces_mojom | |
380 # target because associated interfaces are not supported by all bindings | |
381 # languages yet. | |
382 'mojom_files': [ | |
383 'public/interfaces/bindings/tests/test_associated_interfaces.mojom', | |
384 'public/interfaces/bindings/tests/validation_test_associated_interface s.mojom', | |
385 ], | |
386 }, | |
387 'includes': [ 'mojom_bindings_generator_explicit.gypi' ], | |
388 }, | |
389 { | |
390 # GN version: //mojo/public/interfaces/bindings/tests:test_associated_inte rfaces | |
391 'target_name': 'mojo_public_test_associated_interfaces', | |
392 'type': 'static_library', | |
393 'export_dependent_settings': [ | |
394 'mojo_cpp_bindings', | |
395 ], | |
396 'dependencies': [ | |
397 'mojo_public_test_associated_interfaces_mojom', | |
398 'mojo_cpp_bindings', | |
399 ], | |
400 }, | |
401 { | |
402 'target_name': 'mojo_public_test_wtf_types', | |
403 'type': 'static_library', | |
404 'sources': [ | |
405 'public/interfaces/bindings/tests/test_wtf_types.mojom', | |
406 ], | |
407 'includes': [ 'mojom_bindings_generator.gypi' ], | |
408 }, | |
409 ], | 180 ], |
410 'conditions': [ | 181 'conditions': [ |
411 ['OS == "android"', { | 182 ['OS == "android"', { |
412 'targets': [ | 183 'targets': [ |
413 { | 184 { |
414 # GN version: //mojo/public/java:system | 185 # GN version: //mojo/public/java:system |
415 'target_name': 'mojo_public_java', | 186 'target_name': 'mojo_public_java', |
416 'type': 'none', | 187 'type': 'none', |
417 'variables': { | 188 'variables': { |
418 'chromium_code': 0, | 189 'chromium_code': 0, |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
465 'dependencies': [ | 236 'dependencies': [ |
466 'mojo_cpp_bindings', | 237 'mojo_cpp_bindings', |
467 '../third_party/WebKit/Source/config.gyp:config', | 238 '../third_party/WebKit/Source/config.gyp:config', |
468 '../third_party/WebKit/Source/wtf/wtf.gyp:wtf', | 239 '../third_party/WebKit/Source/wtf/wtf.gyp:wtf', |
469 ], | 240 ], |
470 'export_dependent_settings': [ | 241 'export_dependent_settings': [ |
471 'mojo_cpp_bindings', | 242 'mojo_cpp_bindings', |
472 '../third_party/WebKit/Source/config.gyp:config', | 243 '../third_party/WebKit/Source/config.gyp:config', |
473 ], | 244 ], |
474 }, | 245 }, |
246 ], | |
247 }], | |
248 ['OS == "win" and target_arch=="ia32"', { | |
249 'targets': [ | |
475 { | 250 { |
476 'target_name': 'mojo_public_test_interfaces_mojom_blink', | 251 # GN version: //mojo/public/c/system |
477 'type': 'none', | 252 'target_name': 'mojo_public_system_win64', |
478 'variables': { | 253 'type': '<(component)', |
479 'for_blink': 'true', | 254 'sources': [ |
480 'mojom_typemaps': [ | 255 '<@(mojo_public_system_sources)', |
481 'public/cpp/bindings/tests/rect_blink.typemap', | 256 ], |
482 'public/cpp/bindings/tests/test_native_types_blink.typemap', | 257 'defines': [ |
483 ], | 258 'MOJO_SYSTEM_IMPLEMENTATION', |
484 'mojom_files': '<(mojo_public_test_interfaces_mojom_files)', | 259 ], |
260 'configurations': { | |
261 'Common_Base': { | |
262 'msvs_target_platform': 'x64', | |
263 }, | |
485 }, | 264 }, |
486 'includes': [ 'mojom_bindings_generator_explicit.gypi' ], | |
487 }, | 265 }, |
488 { | 266 { |
489 # GN version: //mojo/public/interfaces/bindings/tests:test_interfaces_ blink | 267 # GN version: //mojo/public/cpp/system |
490 'target_name': 'mojo_public_test_interfaces_blink', | 268 'target_name': 'mojo_cpp_system_win64', |
491 'type': 'static_library', | 269 'type': 'static_library', |
492 'export_dependent_settings': [ | 270 'sources': [ |
493 'mojo_public_test_interfaces_mojom_blink', | 271 '<@(mojo_cpp_system_sources)', |
494 'mojo_cpp_bindings', | 272 ], |
273 'dependencies': [ | |
274 '../base/base.gyp:base_win64', | |
275 'mojo_public_system_win64', | |
276 ], | |
277 'configurations': { | |
278 'Common_Base': { | |
279 'msvs_target_platform': 'x64', | |
280 }, | |
281 }, | |
282 }, | |
283 { | |
284 # GN version: //mojo/public/cpp/bindings | |
285 'target_name': 'mojo_cpp_bindings_win64', | |
286 'type': 'static_library', | |
287 'include_dirs': [ | |
288 '..' | |
495 ], | 289 ], |
496 'sources': [ | 290 'sources': [ |
497 'public/cpp/bindings/tests/pickled_types_blink.cc', | 291 '<@(mojo_cpp_bindings_sources)', |
292 | |
293 # This comes from the mojo_interface_bindings_cpp_sources dependency . | |
294 '>@(mojom_generated_sources)', | |
498 ], | 295 ], |
499 'dependencies': [ | 296 'dependencies': [ |
500 '../ipc/ipc.gyp:ipc', | 297 '../base/base.gyp:base_win64', |
501 'mojo_public_test_interfaces_mojom_blink', | 298 'mojo_cpp_system_win64', |
502 'mojo_cpp_bindings', | 299 'mojo_interface_bindings_cpp_sources', |
503 ], | 300 ], |
504 }, | 301 'configurations': { |
505 { | 302 'Common_Base': { |
506 'target_name': 'mojo_public_test_wtf_types_blink', | 303 'msvs_target_platform': 'x64', |
507 'type': 'static_library', | 304 }, |
508 'variables': { | |
509 'for_blink': 'true', | |
510 }, | 305 }, |
511 'sources': [ | |
512 'public/interfaces/bindings/tests/test_wtf_types.mojom', | |
513 ], | |
514 'includes': [ 'mojom_bindings_generator.gypi' ], | |
515 }, | 306 }, |
516 ], | 307 ], |
517 }], | 308 }], |
518 ], | 309 ], |
519 } | 310 } |
OLD | NEW |