move build flags into chrome's SkUserConfig
[chromium-blink-merge.git] / mojo / mojo_examples.gypi
blobb46514944928f6a23e15523f19eca15701ed278a
1 # Copyright 2013 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.
6   'targets': [
7     {
8       # GN version: //mojo/examples/echo:client
9       'target_name': 'mojo_echo_client',
10       'type': 'loadable_module',
11       'dependencies': [
12         'mojo_base.gyp:mojo_application_standalone',
13         'mojo_base.gyp:mojo_cpp_bindings',
14         'mojo_base.gyp:mojo_utility',
15         'mojo_echo_service_bindings',
16         '<(mojo_system_for_loadable_module)',
17       ],
18       'sources': [
19         'examples/echo/echo_client.cc',
20       ],
21     },
22     {
23       'target_name': 'package_mojo_echo_client',
24       'variables': {
25         'app_name': 'mojo_echo_client',
26       },
27       'includes': [ 'build/package_app.gypi' ],
28     },
29     {
30       # GN version: //mojo/examples/echo:bindings
31       'target_name': 'mojo_echo_service_bindings',
32       'type': 'static_library',
33       'sources': [
34         'examples/echo/echo_service.mojom',
35       ],
36       'dependencies': [
37         'mojo_base.gyp:mojo_cpp_bindings',
38       ],
39       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
40       'export_dependent_settings': [
41         'mojo_base.gyp:mojo_cpp_bindings',
42       ],
43     },
44     {
45       # GN version: //mojo/examples/echo:service
46       'target_name': 'mojo_echo_service',
47       'type': 'loadable_module',
48       'dependencies': [
49         'mojo_base.gyp:mojo_application_standalone',
50         'mojo_base.gyp:mojo_cpp_bindings',
51         'mojo_base.gyp:mojo_utility',
52         'mojo_echo_service_bindings',
53         '<(mojo_system_for_loadable_module)',
54       ],
55       'sources': [
56         'examples/echo/echo_service.cc',
57       ],
58     },
59     {
60       'target_name': 'package_mojo_echo_service',
61       'variables': {
62         'app_name': 'mojo_echo_service',
63       },
64       'includes': [ 'build/package_app.gypi' ],
65     },
66     {
67       # GN version: //mojo/examples/sample_app
68       'target_name': 'mojo_sample_app',
69       'type': 'loadable_module',
70       'dependencies': [
71         'mojo_base.gyp:mojo_application_standalone',
72         'mojo_base.gyp:mojo_cpp_bindings',
73         'mojo_base.gyp:mojo_utility',
74         'mojo_geometry_bindings',
75         'mojo_gpu_bindings',
76         'mojo_native_viewport_bindings',
77         '<(mojo_system_for_loadable_module)',
78       ],
79       'includes': [
80         'mojo_public_gles2_for_loadable_module.gypi',
81       ],
82       'sources': [
83         'examples/sample_app/gles2_client_impl.cc',
84         'examples/sample_app/gles2_client_impl.h',
85         'examples/sample_app/sample_app.cc',
86         'examples/sample_app/spinning_cube.cc',
87         'examples/sample_app/spinning_cube.h',
88       ],
89     },
90     {
91       'target_name': 'package_mojo_sample_app',
92       'variables': {
93         'app_name': 'mojo_sample_app',
94       },
95       'includes': [ 'build/package_app.gypi' ],
96     },
97     {
98       # GN version: //mojo/examples/apptest:bindings
99       'target_name': 'mojo_example_service_bindings',
100       'type': 'static_library',
101       'sources': [
102         'examples/apptest/example_service.mojom',
103       ],
104       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
105       'export_dependent_settings': [
106         'mojo_base.gyp:mojo_cpp_bindings',
107       ],
108       'dependencies': [
109         'mojo_base.gyp:mojo_cpp_bindings',
110       ],
111     },
112     {
113       # GN version: //mojo/examples/apptest:service
114       'target_name': 'mojo_example_service',
115       'type': 'loadable_module',
116       'dependencies': [
117         'mojo_base.gyp:mojo_application_standalone', # For ApplicationDelegate.
118         'mojo_base.gyp:mojo_cpp_bindings',           # For *.mojom.h
119         'mojo_example_service_bindings',
120         'mojo_base.gyp:mojo_utility',                # For RunLoop.
121         '<(mojo_system_for_loadable_module)',
122       ],
123       'sources': [
124         'examples/apptest/example_service_application.cc',
125         'examples/apptest/example_service_application.h',
126         'examples/apptest/example_service_impl.cc',
127         'examples/apptest/example_service_impl.h',
128       ],
129     },
130     {
131       # GN version: //mojo/examples/apptest:apptests
132       'target_name': 'mojo_example_apptests',
133       'type': 'loadable_module',
134       'dependencies': [
135         '../testing/gtest.gyp:gtest',
136         'mojo_base.gyp:mojo_application_standalone', # For ApplicationDelegate.
137         'mojo_example_service',
138         'mojo_example_service_bindings',
139         'mojo_base.gyp:mojo_utility',                # For RunLoop.
140         '<(mojo_system_for_loadable_module)',
141       ],
142       'sources': [
143         'examples/apptest/example_apptest.cc',
144         'examples/apptest/example_client_application.cc',
145         'examples/apptest/example_client_application.h',
146         'examples/apptest/example_client_impl.cc',
147         'examples/apptest/example_client_impl.h',
148       ],
149     },
150     {
151       'target_name': 'package_mojo_example_apptests',
152       'variables': {
153         'app_name': 'mojo_example_apptests',
154       },
155       'includes': [ 'build/package_app.gypi' ],
156     },
157     {
158       # GN version: //mojo/examples/compositor_app
159       'target_name': 'mojo_compositor_app',
160       'type': 'loadable_module',
161       'dependencies': [
162         '../base/base.gyp:base',
163         '../cc/cc.gyp:cc',
164         '../ui/gfx/gfx.gyp:gfx',
165         '../ui/gfx/gfx.gyp:gfx_geometry',
166         'mojo_base.gyp:mojo_application_chromium',
167         'mojo_base.gyp:mojo_common_lib',
168         'mojo_cc_support',
169         'mojo_geometry_bindings',
170         'mojo_geometry_lib',
171         'mojo_gpu_bindings',
172         'mojo_native_viewport_bindings',
173         '<(mojo_system_for_loadable_module)',
174       ],
175       'includes': [
176         'mojo_public_gles2_for_loadable_module.gypi',
177       ],
178       'sources': [
179         'examples/compositor_app/compositor_app.cc',
180         'examples/compositor_app/compositor_host.cc',
181         'examples/compositor_app/compositor_host.h',
182       ],
183     },
184     {
185       'target_name': 'package_mojo_compositor_app',
186       'variables': {
187         'app_name': 'mojo_compositor_app',
188       },
189       'includes': [ 'build/package_app.gypi' ],
190     },
191     {
192       # GN version: //mojo/examples/wget
193       'target_name': 'mojo_wget',
194       'type': 'loadable_module',
195       'dependencies': [
196         'mojo_base.gyp:mojo_application_standalone',
197         'mojo_base.gyp:mojo_cpp_bindings',
198         'mojo_base.gyp:mojo_utility',
199         'mojo_network_bindings',
200         '<(mojo_system_for_loadable_module)',
201       ],
202       'sources': [
203         'examples/wget/wget.cc',
204       ],
205     },
206     {
207       # GN version: //mojo/examples/content_handler_demo
208       'target_name': 'mojo_content_handler_demo',
209       'type': 'loadable_module',
210       'dependencies': [
211         'mojo_base.gyp:mojo_application_standalone',
212         'mojo_base.gyp:mojo_cpp_bindings',
213         'mojo_base.gyp:mojo_utility',
214         'mojo_content_handler_bindings',
215         '<(mojo_system_for_loadable_module)',
216       ],
217       'sources': [
218         'examples/content_handler_demo/content_handler_demo.cc',
219       ],
220     },
221     {
222       'target_name': 'package_mojo_wget',
223       'variables': {
224         'app_name': 'mojo_wget',
225       },
226       'includes': [ 'build/package_app.gypi' ],
227     },
228     {
229       # GN version: //mojo/examples/media_viewer:bindings
230       'target_name': 'mojo_media_viewer_bindings',
231       'type': 'static_library',
232       'sources': [
233         'examples/media_viewer/media_viewer.mojom',
234       ],
235       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
236       'export_dependent_settings': [
237         'mojo_base.gyp:mojo_cpp_bindings',
238       ],
239       'dependencies': [
240         'mojo_base.gyp:mojo_cpp_bindings',
241       ],
242     },
243     {
244       # GN version: //mojo/examples/png_viewer
245       'target_name': 'mojo_png_viewer',
246       'type': 'loadable_module',
247       'dependencies': [
248         '../skia/skia.gyp:skia',
249         '../ui/gfx/gfx.gyp:gfx',
250         'mojo_base.gyp:mojo_application_chromium',
251         'mojo_base.gyp:mojo_cpp_bindings',
252         'mojo_base.gyp:mojo_utility',
253         'mojo_content_handler_bindings',
254         'mojo_media_viewer_bindings',
255         'mojo_network_bindings',
256         'mojo_view_manager_lib',
257         '<(mojo_system_for_loadable_module)',
258       ],
259       'sources': [
260         'examples/png_viewer/png_viewer.cc',
261       ],
262     },
263     {
264       # GN version: //mojo/examples/pepper_container_app
265       'target_name': 'mojo_pepper_container_app',
266       'type': 'loadable_module',
267       'dependencies': [
268         '../base/base.gyp:base',
269         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
270         '../gpu/gpu.gyp:command_buffer_common',
271         '../ppapi/ppapi.gyp:ppapi_c',
272         '../ppapi/ppapi_internal.gyp:ppapi_example_gles2_spinning_cube',
273         '../ui/events/events.gyp:events_base',
274         'mojo_base.gyp:mojo_application_chromium',
275         'mojo_base.gyp:mojo_common_lib',
276         'mojo_geometry_bindings',
277         'mojo_gpu_bindings',
278         'mojo_native_viewport_bindings',
279         '<(mojo_system_for_loadable_module)',
280       ],
281       'includes': [
282         'mojo_public_gles2_for_loadable_module.gypi',
283       ],
284       'defines': [
285         # We don't really want to export. We could change how
286         # ppapi_{shared,thunk}_export.h are defined to avoid this.
287         'PPAPI_SHARED_IMPLEMENTATION',
288         'PPAPI_THUNK_IMPLEMENTATION',
289       ],
290       'sources': [
291         # Source files from ppapi/.
292         # An alternative is to depend on
293         # '../ppapi/ppapi_internal.gyp:ppapi_shared', but that target includes
294         # a lot of things that we don't need.
295         # TODO(yzshen): Consider extracting these files into a separate target
296         # which mojo_pepper_container_app and ppapi_shared both depend on.
297         '../ppapi/shared_impl/api_id.h',
298         '../ppapi/shared_impl/callback_tracker.cc',
299         '../ppapi/shared_impl/callback_tracker.h',
300         '../ppapi/shared_impl/host_resource.cc',
301         '../ppapi/shared_impl/host_resource.h',
302         '../ppapi/shared_impl/id_assignment.cc',
303         '../ppapi/shared_impl/id_assignment.h',
304         '../ppapi/shared_impl/ppapi_globals.cc',
305         '../ppapi/shared_impl/ppapi_globals.h',
306         '../ppapi/shared_impl/ppapi_shared_export.h',
307         '../ppapi/shared_impl/ppb_message_loop_shared.cc',
308         '../ppapi/shared_impl/ppb_message_loop_shared.h',
309         '../ppapi/shared_impl/ppb_view_shared.cc',
310         '../ppapi/shared_impl/ppb_view_shared.h',
311         '../ppapi/shared_impl/proxy_lock.cc',
312         '../ppapi/shared_impl/proxy_lock.h',
313         '../ppapi/shared_impl/resource.cc',
314         '../ppapi/shared_impl/resource.h',
315         '../ppapi/shared_impl/resource_tracker.cc',
316         '../ppapi/shared_impl/resource_tracker.h',
317         '../ppapi/shared_impl/scoped_pp_resource.cc',
318         '../ppapi/shared_impl/scoped_pp_resource.h',
319         '../ppapi/shared_impl/singleton_resource_id.h',
320         '../ppapi/shared_impl/tracked_callback.cc',
321         '../ppapi/shared_impl/tracked_callback.h',
322         '../ppapi/thunk/enter.cc',
323         '../ppapi/thunk/enter.h',
324         '../ppapi/thunk/interfaces_ppb_private.h',
325         '../ppapi/thunk/interfaces_ppb_private_flash.h',
326         '../ppapi/thunk/interfaces_ppb_private_no_permissions.h',
327         '../ppapi/thunk/interfaces_ppb_public_dev.h',
328         '../ppapi/thunk/interfaces_ppb_public_dev_channel.h',
329         '../ppapi/thunk/interfaces_ppb_public_stable.h',
330         '../ppapi/thunk/interfaces_preamble.h',
331         '../ppapi/thunk/ppapi_thunk_export.h',
332         '../ppapi/thunk/ppb_graphics_3d_api.h',
333         '../ppapi/thunk/ppb_graphics_3d_thunk.cc',
334         '../ppapi/thunk/ppb_instance_api.h',
335         '../ppapi/thunk/ppb_instance_thunk.cc',
336         '../ppapi/thunk/ppb_message_loop_api.h',
337         '../ppapi/thunk/ppb_view_api.h',
338         '../ppapi/thunk/ppb_view_thunk.cc',
339         '../ppapi/thunk/resource_creation_api.h',
340         '../ppapi/thunk/thunk.h',
342         'examples/pepper_container_app/graphics_3d_resource.cc',
343         'examples/pepper_container_app/graphics_3d_resource.h',
344         'examples/pepper_container_app/interface_list.cc',
345         'examples/pepper_container_app/interface_list.h',
346         'examples/pepper_container_app/mojo_ppapi_globals.cc',
347         'examples/pepper_container_app/mojo_ppapi_globals.h',
348         'examples/pepper_container_app/pepper_container_app.cc',
349         'examples/pepper_container_app/plugin_instance.cc',
350         'examples/pepper_container_app/plugin_instance.h',
351         'examples/pepper_container_app/plugin_module.cc',
352         'examples/pepper_container_app/plugin_module.h',
353         'examples/pepper_container_app/ppb_core_thunk.cc',
354         'examples/pepper_container_app/ppb_opengles2_thunk.cc',
355         'examples/pepper_container_app/resource_creation_impl.cc',
356         'examples/pepper_container_app/resource_creation_impl.h',
357         'examples/pepper_container_app/thunk.h',
358         'examples/pepper_container_app/type_converters.h',
359       ],
360     },
361     {
362       # GN version: //mojo/examples/surfaces_app:parent_app
363       'target_name': 'mojo_surfaces_app',
364       'type': 'loadable_module',
365       'dependencies': [
366         '../base/base.gyp:base',
367         '../cc/cc.gyp:cc',
368         '../cc/cc.gyp:cc_surfaces',
369         '../skia/skia.gyp:skia',
370         '../ui/gfx/gfx.gyp:gfx',
371         '../ui/gfx/gfx.gyp:gfx_geometry',
372         'mojo_base.gyp:mojo_application_chromium',
373         'mojo_base.gyp:mojo_common_lib',
374         'mojo_geometry_bindings',
375         'mojo_geometry_lib',
376         'mojo_gpu_bindings',
377         'mojo_native_viewport_bindings',
378         'mojo_surfaces_bindings',
379         'mojo_surfaces_app_bindings',
380         'mojo_surfaces_lib',
381         '<(mojo_system_for_loadable_module)',
382       ],
383       'sources': [
384         'examples/surfaces_app/embedder.cc',
385         'examples/surfaces_app/embedder.h',
386         'examples/surfaces_app/surfaces_app.cc',
387         'examples/surfaces_app/surfaces_util.cc',
388         'examples/surfaces_app/surfaces_util.h',
389       ],
390     },
391     {
392       # GN version: //mojo/examples/surfaces_app:bindings
393       'target_name': 'mojo_surfaces_app_bindings',
394       'type': 'static_library',
395       'sources': [
396         'examples/surfaces_app/child.mojom',
397       ],
398       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
399       'export_dependent_settings': [
400         'mojo_base.gyp:mojo_cpp_bindings',
401       ],
402       'dependencies': [
403         'mojo_base.gyp:mojo_cpp_bindings',
404         'mojo_geometry_bindings',
405         'mojo_surfaces_bindings',
406       ],
407     },
408     {
409       'target_name': 'package_mojo_surfaces_app',
410       'variables': {
411         'app_name': 'mojo_surfaces_app',
412       },
413       'includes': [ 'build/package_app.gypi' ],
414     },
415     {
416       # GN version: //mojo/examples/surfaces_app:child_app
417       'target_name': 'mojo_surfaces_child_app',
418       'type': 'loadable_module',
419       'dependencies': [
420         '../base/base.gyp:base',
421         '../cc/cc.gyp:cc',
422         '../cc/cc.gyp:cc_surfaces',
423         '../skia/skia.gyp:skia',
424         '../ui/gfx/gfx.gyp:gfx',
425         '../ui/gfx/gfx.gyp:gfx_geometry',
426         'mojo_base.gyp:mojo_application_chromium',
427         'mojo_base.gyp:mojo_common_lib',
428         'mojo_geometry_bindings',
429         'mojo_geometry_lib',
430         'mojo_surfaces_app_bindings',
431         'mojo_surfaces_bindings',
432         'mojo_surfaces_lib',
433         '<(mojo_system_for_loadable_module)',
434       ],
435       'sources': [
436         'examples/surfaces_app/child_app.cc',
437         'examples/surfaces_app/child_impl.cc',
438         'examples/surfaces_app/child_impl.h',
439         'examples/surfaces_app/surfaces_util.cc',
440         'examples/surfaces_app/surfaces_util.h',
441       ],
442     },
443     {
444       # GN version: //mojo/examples/surfaces_app:child_gl_app
445       'target_name': 'mojo_surfaces_child_gl_app',
446       'type': 'loadable_module',
447       'dependencies': [
448         '../base/base.gyp:base',
449         '../cc/cc.gyp:cc',
450         '../cc/cc.gyp:cc_surfaces',
451         '../skia/skia.gyp:skia',
452         '../ui/gfx/gfx.gyp:gfx',
453         '../ui/gfx/gfx.gyp:gfx_geometry',
454         'mojo_base.gyp:mojo_application_chromium',
455         'mojo_base.gyp:mojo_common_lib',
456         'mojo_geometry_bindings',
457         'mojo_geometry_lib',
458         'mojo_gpu_bindings',
459         'mojo_surfaces_app_bindings',
460         'mojo_surfaces_bindings',
461         'mojo_surfaces_lib',
462         '<(mojo_system_for_loadable_module)',
463       ],
464       'includes': [
465         'mojo_public_gles2_for_loadable_module.gypi',
466       ],
467       'sources': [
468         'examples/surfaces_app/child_gl_app.cc',
469         'examples/surfaces_app/child_gl_impl.cc',
470         'examples/surfaces_app/child_gl_impl.h',
471         'examples/surfaces_app/surfaces_util.cc',
472         'examples/surfaces_app/surfaces_util.h',
473         'examples/sample_app/spinning_cube.cc',
474         'examples/sample_app/spinning_cube.h',
475       ],
476     }
477   ],
478   'conditions': [
479     ['use_aura==1', {
480       'targets': [
481         {
482           # GN version: //mojo/examples/aura_demo:mojo_aura_demo
483           'target_name': 'mojo_aura_demo',
484           'type': 'loadable_module',
485           'dependencies': [
486             '../base/base.gyp:base',
487             '../cc/cc.gyp:cc',
488             '../ui/aura/aura.gyp:aura',
489             '../ui/base/ui_base.gyp:ui_base',
490             '../ui/compositor/compositor.gyp:compositor',
491             '../ui/gfx/gfx.gyp:gfx',
492             '../ui/gfx/gfx.gyp:gfx_geometry',
493             'mojo_base.gyp:mojo_application_chromium',
494             'mojo_base.gyp:mojo_common_lib',
495             'mojo_aura_support',
496             'mojo_geometry_bindings',
497             'mojo_geometry_lib',
498             'mojo_view_manager_lib',
499             '<(mojo_system_for_loadable_module)',
500           ],
501           'sources': [
502             'examples/aura_demo/aura_demo.cc',
503           ],
504         },
505         {
506           # GN version: //mojo/examples/aura_demo:init
507           'target_name': 'mojo_aura_demo_init',
508           'type': 'loadable_module',
509           'dependencies': [
510             '../base/base.gyp:base',
511             'mojo_base.gyp:mojo_application_chromium',
512             'mojo_view_manager_bindings',
513             '<(mojo_system_for_loadable_module)',
514           ],
515           'sources': [
516             'examples/aura_demo/view_manager_init.cc',
517           ],
518         },
519         {
520           # GN version: //mojo/examples/browser
521           'target_name': 'mojo_browser',
522           'type': 'loadable_module',
523           'dependencies': [
524             '../base/base.gyp:base',
525             '../cc/cc.gyp:cc',
526             '../third_party/icu/icu.gyp:icui18n',
527             '../third_party/icu/icu.gyp:icuuc',
528             '../ui/aura/aura.gyp:aura',
529             '../ui/base/ui_base.gyp:ui_base',
530             '../ui/compositor/compositor.gyp:compositor',
531             '../ui/gfx/gfx.gyp:gfx',
532             '../ui/gfx/gfx.gyp:gfx_geometry',
533             '../ui/resources/ui_resources.gyp:ui_resources',
534             '../ui/resources/ui_resources.gyp:ui_test_pak',
535             '../ui/views/views.gyp:views',
536             '../url/url.gyp:url_lib',
537             'mojo_base.gyp:mojo_application_chromium',
538             'mojo_base.gyp:mojo_common_lib',
539             'mojo_aura_support',
540             'mojo_geometry_bindings',
541             'mojo_geometry_lib',
542             'mojo_input_events_lib',
543             'mojo_navigation_bindings',
544             'mojo_views_support',
545             'mojo_view_manager_bindings',
546             'mojo_view_manager_lib',
547             'mojo_window_manager_bindings',
548             '<(mojo_system_for_loadable_module)',
549           ],
550           'sources': [
551             'examples/browser/browser.cc',
552           ],
553         },
554         {
555           'target_name': 'package_mojo_aura_demo',
556           'variables': {
557             'app_name': 'mojo_aura_demo',
558           },
559           'includes': [ 'build/package_app.gypi' ],
560         },
561         {
562           # GYP version: //mojo/examples/demo_launcher
563           'target_name': 'mojo_demo_launcher',
564           'type': 'loadable_module',
565           'dependencies': [
566             '../base/base.gyp:base',
567             '../skia/skia.gyp:skia',
568             '../ui/gfx/gfx.gyp:gfx',
569             '../ui/gfx/gfx.gyp:gfx_geometry',
570             'mojo_base.gyp:mojo_application_chromium',
571             'mojo_base.gyp:mojo_cpp_bindings',
572             'mojo_base.gyp:mojo_utility',
573             'mojo_geometry_bindings',
574             'mojo_view_manager_bindings',
575             '<(mojo_system_for_loadable_module)',
576           ],
577           'includes': [
578             'mojo_public_gles2_for_loadable_module.gypi',
579           ],
580           'sources': [
581             'examples/demo_launcher/demo_launcher.cc',
582           ],
583         },
584         {
585           # GYP version: //mojo/examples/keyboard
586           'target_name': 'mojo_keyboard',
587           'type': 'loadable_module',
588           'dependencies': [
589             '../base/base.gyp:base',
590             '../cc/cc.gyp:cc',
591             '../third_party/icu/icu.gyp:icui18n',
592             '../third_party/icu/icu.gyp:icuuc',
593             '../ui/aura/aura.gyp:aura',
594             '../ui/base/ui_base.gyp:ui_base',
595             '../ui/compositor/compositor.gyp:compositor',
596             '../ui/gfx/gfx.gyp:gfx',
597             '../ui/gfx/gfx.gyp:gfx_geometry',
598             '../ui/resources/ui_resources.gyp:ui_resources',
599             '../ui/resources/ui_resources.gyp:ui_test_pak',
600             '../ui/views/views.gyp:views',
601             '../url/url.gyp:url_lib',
602             'mojo_base.gyp:mojo_application_chromium',
603             'mojo_base.gyp:mojo_common_lib',
604             'mojo_aura_support',
605             'mojo_geometry_bindings',
606             'mojo_geometry_lib',
607             'mojo_input_events_lib',
608             'mojo_keyboard_bindings',
609             'mojo_navigation_bindings',
610             'mojo_views_support',
611             'mojo_view_manager_bindings',
612             'mojo_view_manager_lib',
613             '<(mojo_system_for_loadable_module)',
614           ],
615           'sources': [
616             'examples/keyboard/keyboard_delegate.h',
617             'examples/keyboard/keyboard_view.cc',
618             'examples/keyboard/keyboard_view.h',
619             'examples/keyboard/keyboard.cc',
620             'examples/keyboard/keys.cc',
621             'examples/keyboard/keys.h',
622           ],
623         },
624         {
625           # GYP version: //mojo/examples/keyboard:bindings
626           'target_name': 'mojo_keyboard_bindings',
627           'type': 'static_library',
628           'sources': [
629             'examples/keyboard/keyboard.mojom',
630           ],
631           'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
632           'export_dependent_settings': [
633             'mojo_base.gyp:mojo_cpp_bindings',
634           ],
635           'dependencies': [
636             'mojo_base.gyp:mojo_cpp_bindings',
637           ],
638         },
639         {
640           # GN version: //mojo/examples/window_manager:bindings
641           'target_name': 'mojo_window_manager_bindings',
642           'type': 'static_library',
643           'sources': [
644             'examples/window_manager/window_manager.mojom',
645           ],
646           'dependencies': [
647             'mojo_base.gyp:mojo_cpp_bindings',
648             'mojo_geometry_bindings',
649           ],
650           'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
651           'export_dependent_settings': [
652             'mojo_base.gyp:mojo_cpp_bindings',
653           ],
654         },
655         {
656           # GN version: //mojo/examples/window_manager
657           'target_name': 'mojo_window_manager',
658           'type': 'loadable_module',
659           'dependencies': [
660             '../base/base.gyp:base',
661             '../ui/aura/aura.gyp:aura',
662             '../ui/base/ui_base.gyp:ui_base',
663             '../ui/gfx/gfx.gyp:gfx',
664             '../ui/gfx/gfx.gyp:gfx_geometry',
665             '../ui/resources/ui_resources.gyp:ui_resources',
666             '../ui/resources/ui_resources.gyp:ui_test_pak',
667             '../ui/views/views.gyp:views',
668             'mojo_base.gyp:mojo_application_chromium',
669             'mojo_base.gyp:mojo_cpp_bindings',
670             'mojo_base.gyp:mojo_utility',
671             'mojo_aura_support',
672             'mojo_core_window_manager_lib',
673             'mojo_geometry_bindings',
674             'mojo_geometry_lib',
675             'mojo_input_events_lib',
676             'mojo_keyboard_bindings',
677             'mojo_navigation_bindings',
678             'mojo_view_manager_lib',
679             'mojo_views_support',
680             'mojo_window_manager_bindings',
681             '<(mojo_system_for_loadable_module)',
682           ],
683           'includes': [
684             'mojo_public_gles2_for_loadable_module.gypi',
685           ],
686           'sources': [
687             'examples/window_manager/debug_panel.h',
688             'examples/window_manager/debug_panel.cc',
689             'examples/window_manager/window_manager.cc',
690           ],
691         },
692         {
693           # GN version: //mojo/examples/embedded_app
694           'target_name': 'mojo_embedded_app',
695           'type': 'loadable_module',
696           'dependencies': [
697             '../base/base.gyp:base',
698             '../ui/gfx/gfx.gyp:gfx_geometry',
699             '../url/url.gyp:url_lib',
700             'mojo_base.gyp:mojo_application_chromium',
701             'mojo_base.gyp:mojo_cpp_bindings',
702             'mojo_base.gyp:mojo_utility',
703             'mojo_geometry_bindings',
704             'mojo_navigation_bindings',
705             'mojo_view_manager_lib',
706             'mojo_window_manager_bindings',
707             '<(mojo_system_for_loadable_module)',
708           ],
709           'includes': [
710             'mojo_public_gles2_for_loadable_module.gypi',
711           ],
712           'sources': [
713             'examples/embedded_app/embedded_app.cc',
714           ],
715         },
716         {
717           # GN version: //mojo/examples/nesting_app
718           'target_name': 'mojo_nesting_app',
719           'type': 'loadable_module',
720           'dependencies': [
721             '../base/base.gyp:base',
722             '../ui/gfx/gfx.gyp:gfx_geometry',
723             '../url/url.gyp:url_lib',
724             'mojo_base.gyp:mojo_application_chromium',
725             'mojo_base.gyp:mojo_cpp_bindings',
726             'mojo_base.gyp:mojo_utility',
727             'mojo_geometry_bindings',
728             'mojo_navigation_bindings',
729             'mojo_view_manager_lib',
730             'mojo_window_manager_bindings',
731             '<(mojo_system_for_loadable_module)',
732           ],
733           'includes': [
734             'mojo_public_gles2_for_loadable_module.gypi',
735           ],
736           'sources': [
737             'examples/nesting_app/nesting_app.cc',
738           ],
739         },
740         {
741           # GN version: //mojo/examples/media_viewer
742           'target_name': 'mojo_media_viewer',
743           'type': 'loadable_module',
744           'dependencies': [
745             '../base/base.gyp:base',
746             '../skia/skia.gyp:skia',
747             '../ui/gfx/gfx.gyp:gfx_geometry',
748             '../ui/views/views.gyp:views',
749             'mojo_base.gyp:mojo_application_chromium',
750             'mojo_input_events_lib',
751             'mojo_media_viewer_bindings',
752             'mojo_navigation_bindings',
753             'mojo_views_support',
754             'mojo_view_manager_bindings',
755             'mojo_view_manager_lib',
756             '<(mojo_system_for_loadable_module)',
757           ],
758           'sources': [
759             'examples/media_viewer/media_viewer.cc',
760           ],
761         },
762         {
763           # GN version: //mojo/examples/wm_flow
764           'target_name': 'mojo_wm_flow_wm',
765           'type': 'loadable_module',
766           'dependencies': [
767             '../base/base.gyp:base',
768             '../skia/skia.gyp:skia',
769             '../ui/views/views.gyp:views',
770             'mojo_base.gyp:mojo_application_chromium',
771             'mojo_core_window_manager_lib',
772             'mojo_view_manager_lib',
773             'mojo_views_support',
774             '<(mojo_system_for_loadable_module)',
775           ],
776           'sources': [
777             'examples/wm_flow/wm/frame_controller.cc',
778             'examples/wm_flow/wm/frame_controller.h',
779             'examples/wm_flow/wm/wm.cc',
780           ],
781         },
782         {
783           # GN version: //mojo/examples/wm_flow:init
784           'target_name': 'mojo_wm_flow_init',
785           'type': 'loadable_module',
786           'dependencies': [
787             '../base/base.gyp:base',
788             'mojo_base.gyp:mojo_application_chromium',
789             'mojo_view_manager_bindings',
790             '<(mojo_system_for_loadable_module)',
791           ],
792           'sources': [
793             'examples/wm_flow/init/init.cc',
794           ],
795         },
796         {
797           # GN version: //mojo/examples/wm_flow:embedder_bindings
798           'target_name': 'mojo_wm_flow_embedder_bindings',
799           'type': 'static_library',
800           'sources': [
801             'examples/wm_flow/app/embedder.mojom',
802           ],
803           'dependencies': [
804             'mojo_base.gyp:mojo_cpp_bindings',
805           ],
806           'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
807           'export_dependent_settings': [
808             'mojo_base.gyp:mojo_cpp_bindings',
809           ],
810         },
811         {
812           # GN version: //mojo/examples/wm_flow:embeddee_bindings
813           'target_name': 'mojo_wm_flow_embeddee_bindings',
814           'type': 'static_library',
815           'sources': [
816             'examples/wm_flow/embedded/embeddee.mojom',
817           ],
818           'dependencies': [
819             'mojo_base.gyp:mojo_cpp_bindings',
820           ],
821           'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
822           'export_dependent_settings': [
823             'mojo_base.gyp:mojo_cpp_bindings',
824           ],
825         },
826         {
827           # GN version: //mojo/examples/wm_flow:app
828           'target_name': 'mojo_wm_flow_app',
829           'type': 'loadable_module',
830           'dependencies': [
831             '../base/base.gyp:base',
832             'mojo_base.gyp:mojo_application_chromium',
833             'mojo_core_window_manager_bindings',
834             'mojo_view_manager_lib',
835             'mojo_wm_flow_embeddee_bindings',
836             'mojo_wm_flow_embedder_bindings',
837             '<(mojo_system_for_loadable_module)',
838           ],
839           'sources': [
840             'examples/wm_flow/app/app.cc',
841           ],
842         },
843         {
844           # GN version: //mojo/examples/wm_flow:embedded
845           'target_name': 'mojo_wm_flow_embedded',
846           'type': 'loadable_module',
847           'dependencies': [
848             '../base/base.gyp:base',
849             'mojo_base.gyp:mojo_application_chromium',
850             'mojo_core_window_manager_bindings',
851             'mojo_view_manager_lib',
852             'mojo_wm_flow_embeddee_bindings',
853             'mojo_wm_flow_embedder_bindings',
854             '<(mojo_system_for_loadable_module)',
855           ],
856           'sources': [
857             'examples/wm_flow/embedded/embedded.cc',
858           ],
859         },
860       ],
861     }],
862     ['OS=="linux"', {
863       'targets': [
864         {
865           # GN version: //mojo/examples/dbus_echo:dbus_echo_app
866           'target_name': 'mojo_dbus_echo',
867           'type': 'loadable_module',
868           'dependencies': [
869             '../base/base.gyp:base',
870             'mojo_base.gyp:mojo_application_standalone',
871             'mojo_base.gyp:mojo_cpp_bindings',
872             'mojo_base.gyp:mojo_utility',
873             'mojo_echo_service_bindings',
874             '<(mojo_system_for_loadable_module)',
875           ],
876           'sources': [
877             'examples/dbus_echo/dbus_echo_app.cc',
878           ],
879         },
880         {
881           # GN version: //mojo/examples/dbus_echo:dbus_echo_service
882           'target_name': 'mojo_dbus_echo_service',
883           'type': 'executable',
884           'dependencies': [
885             '../base/base.gyp:base',
886             '../build/linux/system.gyp:dbus',
887             '../dbus/dbus.gyp:dbus',
888             'mojo_base.gyp:mojo_common_lib',
889             'mojo_base.gyp:mojo_system_impl',
890             'mojo_base.gyp:mojo_application_chromium',
891             'mojo_dbus_service',
892             'mojo_echo_service_bindings',
893           ],
894           'sources': [
895             'examples/dbus_echo/dbus_echo_service.cc',
896           ],
897         },
898       ],
900     }],
901   ],