Add support for running disabled Telemetry benchmarks
[chromium-blink-merge.git] / mojo / mojo_examples.gypi
blob6787a18db29162b2acf59096ecf3bcd49e43d674
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       'target_name': 'mojo_sample_app',
9       'type': 'shared_library',
10       'dependencies': [
11         # TODO(darin): we should not be linking against these libraries!
12         '../ui/events/events.gyp:events',
13         '../ui/gfx/gfx.gyp:gfx_geometry',
14         'mojo_application',
15         'mojo_cpp_bindings',
16         'mojo_environment_standalone',
17         'mojo_geometry_bindings',
18         'mojo_gles2',
19         'mojo_native_viewport_bindings',
20         'mojo_system',
21         'mojo_utility',
22       ],
23       'sources': [
24         'examples/sample_app/gles2_client_impl.cc',
25         'examples/sample_app/gles2_client_impl.cc',
26         'examples/sample_app/sample_app.cc',
27         'examples/sample_app/spinning_cube.cc',
28         'examples/sample_app/spinning_cube.h',
29         'public/cpp/application/lib/mojo_main_standalone.cc',
30       ],
31     },
32     {
33       'target_name': 'package_mojo_sample_app',
34       'variables': {
35         'app_name': 'mojo_sample_app',
36       },
37       'includes': [ 'build/package_app.gypi' ],
38     },
39     {
40       'target_name': 'mojo_compositor_app',
41       'type': 'shared_library',
42       'dependencies': [
43         '../base/base.gyp:base',
44         '../cc/cc.gyp:cc',
45         '../ui/gfx/gfx.gyp:gfx',
46         '../ui/gfx/gfx.gyp:gfx_geometry',
47         'mojo_application',
48         'mojo_cc_support',
49         'mojo_common_lib',
50         'mojo_environment_chromium',
51         'mojo_geometry_bindings',
52         'mojo_geometry_lib',
53         'mojo_gles2',
54         'mojo_native_viewport_bindings',
55         'mojo_system_impl',
56       ],
57       'sources': [
58         'examples/compositor_app/compositor_app.cc',
59         'examples/compositor_app/compositor_host.cc',
60         'examples/compositor_app/compositor_host.h',
61         'public/cpp/application/lib/mojo_main_chromium.cc',
62       ],
63     },
64     {
65       'target_name': 'package_mojo_compositor_app',
66       'variables': {
67         'app_name': 'mojo_compositor_app',
68       },
69       'includes': [ 'build/package_app.gypi' ],
70     },
71     {
72       'target_name': 'mojo_wget',
73       'type': 'shared_library',
74       'dependencies': [
75         'mojo_application',
76         'mojo_cpp_bindings',
77         'mojo_environment_standalone',
78         'mojo_network_bindings',
79         'mojo_system',
80         'mojo_utility',
81       ],
82       'sources': [
83         'examples/wget/wget.cc',
84         'public/cpp/application/lib/mojo_main_standalone.cc',
85       ],
86     },
87     {
88       'target_name': 'package_mojo_wget',
89       'variables': {
90         'app_name': 'mojo_wget',
91       },
92       'includes': [ 'build/package_app.gypi' ],
93     },
94     {
95       'target_name': 'mojo_html_viewer',
96       'type': 'shared_library',
97       'dependencies': [
98         '../net/net.gyp:net',
99         '../skia/skia.gyp:skia',
100         '../third_party/WebKit/public/blink.gyp:blink',
101         '../ui/native_theme/native_theme.gyp:native_theme',
102         '../url/url.gyp:url_lib',
103         'mojo_application',
104         'mojo_cpp_bindings',
105         'mojo_environment_chromium',
106         'mojo_navigation_bindings',
107         'mojo_network_bindings',
108         'mojo_launcher_bindings',
109         'mojo_system_impl',
110         'mojo_utility',
111         'mojo_view_manager_lib',
112       ],
113       'include_dirs': [
114         'third_party/WebKit'
115       ],
116       'sources': [
117         'examples/html_viewer/blink_input_events_type_converters.cc',
118         'examples/html_viewer/blink_input_events_type_converters.h',
119         'examples/html_viewer/blink_platform_impl.cc',
120         'examples/html_viewer/blink_platform_impl.h',
121         'examples/html_viewer/html_viewer.cc',
122         'examples/html_viewer/html_document_view.cc',
123         'examples/html_viewer/html_document_view.h',
124         'examples/html_viewer/webmimeregistry_impl.cc',
125         'examples/html_viewer/webmimeregistry_impl.h',
126         'examples/html_viewer/webstoragenamespace_impl.cc',
127         'examples/html_viewer/webstoragenamespace_impl.h',
128         'examples/html_viewer/webthemeengine_impl.cc',
129         'examples/html_viewer/webthemeengine_impl.h',
130         'examples/html_viewer/webthread_impl.cc',
131         'examples/html_viewer/webthread_impl.h',
132         'examples/html_viewer/weburlloader_impl.cc',
133         'examples/html_viewer/weburlloader_impl.h',
134         'public/cpp/application/lib/mojo_main_chromium.cc',
135       ],
136     },
137     {
138       'target_name': 'mojo_media_viewer_bindings',
139       'type': 'static_library',
140       'sources': [
141         'examples/media_viewer/media_viewer.mojom',
142       ],
143       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
144       'export_dependent_settings': [
145         'mojo_cpp_bindings',
146       ],
147       'dependencies': [
148         'mojo_cpp_bindings',
149       ],
150     },
151     {
152       'target_name': 'mojo_png_viewer',
153       'type': 'shared_library',
154       'dependencies': [
155         '../skia/skia.gyp:skia',
156         '../ui/gfx/gfx.gyp:gfx',
157         'mojo_application',
158         'mojo_cpp_bindings',
159         'mojo_environment_chromium',
160         'mojo_media_viewer_bindings',
161         'mojo_navigation_bindings',
162         'mojo_network_bindings',
163         'mojo_launcher_bindings',
164         'mojo_system_impl',
165         'mojo_utility',
166         'mojo_view_manager_lib',
167       ],
168       'sources': [
169         'examples/png_viewer/png_viewer.cc',
170         'public/cpp/application/lib/mojo_main_chromium.cc',
171       ],
172     },
173     {
174       'target_name': 'mojo_pepper_container_app',
175       'type': 'shared_library',
176       'dependencies': [
177         '../base/base.gyp:base',
178         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
179         '../gpu/gpu.gyp:command_buffer_common',
180         '../ppapi/ppapi.gyp:ppapi_c',
181         '../ppapi/ppapi_internal.gyp:ppapi_example_gles2_spinning_cube',
182         '../ui/events/events.gyp:events_base',
183         'mojo_application',
184         'mojo_common_lib',
185         'mojo_environment_chromium',
186         'mojo_geometry_bindings',
187         'mojo_gles2',
188         'mojo_native_viewport_bindings',
189         'mojo_system_impl',
190       ],
191       'defines': [
192         # We don't really want to export. We could change how
193         # ppapi_{shared,thunk}_export.h are defined to avoid this.
194         'PPAPI_SHARED_IMPLEMENTATION',
195         'PPAPI_THUNK_IMPLEMENTATION',
196       ],
197       'sources': [
198         # Source files from ppapi/.
199         # An alternative is to depend on
200         # '../ppapi/ppapi_internal.gyp:ppapi_shared', but that target includes
201         # a lot of things that we don't need.
202         # TODO(yzshen): Consider extracting these files into a separate target
203         # which mojo_pepper_container_app and ppapi_shared both depend on.
204         '../ppapi/shared_impl/api_id.h',
205         '../ppapi/shared_impl/callback_tracker.cc',
206         '../ppapi/shared_impl/callback_tracker.h',
207         '../ppapi/shared_impl/host_resource.cc',
208         '../ppapi/shared_impl/host_resource.h',
209         '../ppapi/shared_impl/id_assignment.cc',
210         '../ppapi/shared_impl/id_assignment.h',
211         '../ppapi/shared_impl/ppapi_globals.cc',
212         '../ppapi/shared_impl/ppapi_globals.h',
213         '../ppapi/shared_impl/ppapi_shared_export.h',
214         '../ppapi/shared_impl/ppb_message_loop_shared.cc',
215         '../ppapi/shared_impl/ppb_message_loop_shared.h',
216         '../ppapi/shared_impl/ppb_view_shared.cc',
217         '../ppapi/shared_impl/ppb_view_shared.h',
218         '../ppapi/shared_impl/proxy_lock.cc',
219         '../ppapi/shared_impl/proxy_lock.h',
220         '../ppapi/shared_impl/resource.cc',
221         '../ppapi/shared_impl/resource.h',
222         '../ppapi/shared_impl/resource_tracker.cc',
223         '../ppapi/shared_impl/resource_tracker.h',
224         '../ppapi/shared_impl/scoped_pp_resource.cc',
225         '../ppapi/shared_impl/scoped_pp_resource.h',
226         '../ppapi/shared_impl/singleton_resource_id.h',
227         '../ppapi/shared_impl/tracked_callback.cc',
228         '../ppapi/shared_impl/tracked_callback.h',
229         '../ppapi/thunk/enter.cc',
230         '../ppapi/thunk/enter.h',
231         '../ppapi/thunk/interfaces_ppb_private.h',
232         '../ppapi/thunk/interfaces_ppb_private_flash.h',
233         '../ppapi/thunk/interfaces_ppb_private_no_permissions.h',
234         '../ppapi/thunk/interfaces_ppb_public_dev.h',
235         '../ppapi/thunk/interfaces_ppb_public_dev_channel.h',
236         '../ppapi/thunk/interfaces_ppb_public_stable.h',
237         '../ppapi/thunk/interfaces_preamble.h',
238         '../ppapi/thunk/ppapi_thunk_export.h',
239         '../ppapi/thunk/ppb_graphics_3d_api.h',
240         '../ppapi/thunk/ppb_graphics_3d_thunk.cc',
241         '../ppapi/thunk/ppb_instance_api.h',
242         '../ppapi/thunk/ppb_instance_thunk.cc',
243         '../ppapi/thunk/ppb_message_loop_api.h',
244         '../ppapi/thunk/ppb_view_api.h',
245         '../ppapi/thunk/ppb_view_thunk.cc',
246         '../ppapi/thunk/resource_creation_api.h',
247         '../ppapi/thunk/thunk.h',
249         'examples/pepper_container_app/graphics_3d_resource.cc',
250         'examples/pepper_container_app/graphics_3d_resource.h',
251         'examples/pepper_container_app/interface_list.cc',
252         'examples/pepper_container_app/interface_list.h',
253         'examples/pepper_container_app/mojo_ppapi_globals.cc',
254         'examples/pepper_container_app/mojo_ppapi_globals.h',
255         'examples/pepper_container_app/pepper_container_app.cc',
256         'examples/pepper_container_app/plugin_instance.cc',
257         'examples/pepper_container_app/plugin_instance.h',
258         'examples/pepper_container_app/plugin_module.cc',
259         'examples/pepper_container_app/plugin_module.h',
260         'examples/pepper_container_app/ppb_core_thunk.cc',
261         'examples/pepper_container_app/ppb_opengles2_thunk.cc',
262         'examples/pepper_container_app/resource_creation_impl.cc',
263         'examples/pepper_container_app/resource_creation_impl.h',
264         'examples/pepper_container_app/thunk.h',
265         'examples/pepper_container_app/type_converters.h',
266         'public/cpp/application/lib/mojo_main_chromium.cc',
267       ],
268     },
269   ],
270   'conditions': [
271     ['use_aura==1', {
272       'targets': [
273         {
274           'target_name': 'mojo_aura_demo',
275           'type': 'shared_library',
276           'dependencies': [
277             '../base/base.gyp:base',
278             '../cc/cc.gyp:cc',
279             '../ui/aura/aura.gyp:aura',
280             '../ui/base/ui_base.gyp:ui_base',
281             '../ui/compositor/compositor.gyp:compositor',
282             '../ui/gfx/gfx.gyp:gfx',
283             '../ui/gfx/gfx.gyp:gfx_geometry',
284             'mojo_application',
285             'mojo_aura_support',
286             'mojo_common_lib',
287             'mojo_environment_chromium',
288             'mojo_geometry_bindings',
289             'mojo_geometry_lib',
290             'mojo_system_impl',
291             'mojo_view_manager_lib',
292           ],
293           'sources': [
294             'examples/aura_demo/aura_demo.cc',
295             'public/cpp/application/lib/mojo_main_chromium.cc',
296           ],
297         },
298         {
299           'target_name': 'mojo_aura_demo_init',
300           'type': 'shared_library',
301           'dependencies': [
302             '../base/base.gyp:base',
303             'mojo_application',
304             'mojo_environment_chromium',
305             'mojo_system_impl',
306             'mojo_view_manager_bindings',
307           ],
308           'sources': [
309             'examples/aura_demo/view_manager_init.cc',
310             'public/cpp/application/lib/mojo_main_chromium.cc',
311           ],
312         },
313         {
314           'target_name': 'mojo_browser',
315           'type': 'shared_library',
316           'dependencies': [
317             '../base/base.gyp:base',
318             '../cc/cc.gyp:cc',
319             '../third_party/icu/icu.gyp:icui18n',
320             '../third_party/icu/icu.gyp:icuuc',
321             '../ui/aura/aura.gyp:aura',
322             '../ui/base/ui_base.gyp:ui_base',
323             '../ui/compositor/compositor.gyp:compositor',
324             '../ui/gfx/gfx.gyp:gfx',
325             '../ui/gfx/gfx.gyp:gfx_geometry',
326             '../ui/resources/ui_resources.gyp:ui_resources',
327             '../ui/resources/ui_resources.gyp:ui_test_pak',
328             '../ui/views/views.gyp:views',
329             '../url/url.gyp:url_lib',
330             'mojo_application',
331             'mojo_aura_support',
332             'mojo_common_lib',
333             'mojo_environment_chromium',
334             'mojo_geometry_bindings',
335             'mojo_geometry_lib',
336             'mojo_input_events_lib',
337             'mojo_navigation_bindings',
338             'mojo_system_impl',
339             'mojo_views_support',
340             'mojo_view_manager_bindings',
341             'mojo_view_manager_lib',
342             'mojo_window_manager_bindings',
343           ],
344           'sources': [
345             'examples/browser/browser.cc',
346             'public/cpp/application/lib/mojo_main_chromium.cc',
347           ],
348         },
349         {
350           'target_name': 'package_mojo_aura_demo',
351           'variables': {
352             'app_name': 'mojo_aura_demo',
353           },
354           'includes': [ 'build/package_app.gypi' ],
355         },
356         {
357           'target_name': 'mojo_demo_launcher',
358           'type': 'shared_library',
359           'dependencies': [
360             '../base/base.gyp:base',
361             '../skia/skia.gyp:skia',
362             '../ui/gfx/gfx.gyp:gfx',
363             '../ui/gfx/gfx.gyp:gfx_geometry',
364             '../ui/gl/gl.gyp:gl',
365             'mojo_application',
366             'mojo_cpp_bindings',
367             'mojo_environment_chromium',
368             'mojo_geometry_bindings',
369             'mojo_gles2',
370             'mojo_view_manager_bindings',
371             'mojo_system_impl',
372             'mojo_utility',
373           ],
374           'sources': [
375             'examples/demo_launcher/demo_launcher.cc',
376             'public/cpp/application/lib/mojo_main_chromium.cc',
377           ],
378         },
379         {
380           'target_name': 'mojo_keyboard',
381           'type': 'shared_library',
382           'dependencies': [
383             '../base/base.gyp:base',
384             '../cc/cc.gyp:cc',
385             '../third_party/icu/icu.gyp:icui18n',
386             '../third_party/icu/icu.gyp:icuuc',
387             '../ui/aura/aura.gyp:aura',
388             '../ui/base/ui_base.gyp:ui_base',
389             '../ui/compositor/compositor.gyp:compositor',
390             '../ui/gfx/gfx.gyp:gfx',
391             '../ui/gfx/gfx.gyp:gfx_geometry',
392             '../ui/resources/ui_resources.gyp:ui_resources',
393             '../ui/resources/ui_resources.gyp:ui_test_pak',
394             '../ui/views/views.gyp:views',
395             '../url/url.gyp:url_lib',
396             'mojo_application',
397             'mojo_aura_support',
398             'mojo_common_lib',
399             'mojo_environment_chromium',
400             'mojo_geometry_bindings',
401             'mojo_geometry_lib',
402             'mojo_input_events_lib',
403             'mojo_keyboard_bindings',
404             'mojo_navigation_bindings',
405             'mojo_system_impl',
406             'mojo_views_support',
407             'mojo_view_manager_bindings',
408             'mojo_view_manager_lib',
409           ],
410           'sources': [
411             'examples/keyboard/keyboard_delegate.h',
412             'examples/keyboard/keyboard_view.cc',
413             'examples/keyboard/keyboard_view.h',
414             'examples/keyboard/keyboard.cc',
415             'examples/keyboard/keys.cc',
416             'examples/keyboard/keys.h',
417             'public/cpp/application/lib/mojo_main_chromium.cc',
418           ],
419         },
420         {
421           'target_name': 'mojo_keyboard_bindings',
422           'type': 'static_library',
423           'sources': [
424             'examples/keyboard/keyboard.mojom',
425           ],
426           'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
427           'export_dependent_settings': [
428             'mojo_cpp_bindings',
429           ],
430           'dependencies': [
431             'mojo_cpp_bindings',
432           ],
433         },
434         {
435           'target_name': 'mojo_window_manager_bindings',
436           'type': 'static_library',
437           'sources': [
438             'examples/window_manager/window_manager.mojom',
439           ],
440           'dependencies': [
441             'mojo_cpp_bindings',
442             'mojo_geometry_bindings',
443           ],
444           'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
445           'export_dependent_settings': [
446             'mojo_cpp_bindings',
447           ],
448         },
449         {
450           'target_name': 'mojo_window_manager',
451           'type': 'shared_library',
452           'dependencies': [
453             '../base/base.gyp:base',
454             '../ui/aura/aura.gyp:aura',
455             '../ui/base/ui_base.gyp:ui_base',
456             '../ui/gfx/gfx.gyp:gfx',
457             '../ui/gfx/gfx.gyp:gfx_geometry',
458             '../ui/gl/gl.gyp:gl',
459             '../ui/resources/ui_resources.gyp:ui_resources',
460             '../ui/resources/ui_resources.gyp:ui_test_pak',
461             '../ui/views/views.gyp:views',
462             'mojo_application',
463             'mojo_aura_support',
464             'mojo_cpp_bindings',
465             'mojo_environment_chromium',
466             'mojo_geometry_bindings',
467             'mojo_geometry_lib',
468             'mojo_gles2',
469             'mojo_input_events_lib',
470             'mojo_keyboard_bindings',
471             'mojo_launcher_bindings',
472             'mojo_navigation_bindings',
473             'mojo_view_manager_lib',
474             'mojo_views_support',
475             'mojo_window_manager_bindings',
476             'mojo_system_impl',
477             'mojo_utility',
478           ],
479           'sources': [
480             'examples/window_manager/debug_panel.h',
481             'examples/window_manager/debug_panel.cc',
482             'examples/window_manager/window_manager.cc',
483             'public/cpp/application/lib/mojo_main_chromium.cc',
484           ],
485         },
486         {
487           'target_name': 'mojo_embedded_app',
488           'type': 'shared_library',
489           'dependencies': [
490             '../base/base.gyp:base',
491             '../ui/gfx/gfx.gyp:gfx_geometry',
492             '../ui/gl/gl.gyp:gl',
493             '../url/url.gyp:url_lib',
494             'mojo_application',
495             'mojo_cpp_bindings',
496             'mojo_environment_chromium',
497             'mojo_geometry_bindings',
498             'mojo_gles2',
499             'mojo_navigation_bindings',
500             'mojo_view_manager_lib',
501             'mojo_window_manager_bindings',
502             'mojo_system_impl',
503             'mojo_utility',
504           ],
505           'sources': [
506             'examples/embedded_app/embedded_app.cc',
507             'public/cpp/application/lib/mojo_main_chromium.cc',
508           ],
509         },
510         {
511           'target_name': 'mojo_nesting_app',
512           'type': 'shared_library',
513           'dependencies': [
514             '../base/base.gyp:base',
515             '../ui/gfx/gfx.gyp:gfx_geometry',
516             '../ui/gl/gl.gyp:gl',
517             '../url/url.gyp:url_lib',
518             'mojo_application',
519             'mojo_cpp_bindings',
520             'mojo_environment_chromium',
521             'mojo_geometry_bindings',
522             'mojo_gles2',
523             'mojo_navigation_bindings',
524             'mojo_view_manager_lib',
525             'mojo_window_manager_bindings',
526             'mojo_system_impl',
527             'mojo_utility',
528           ],
529           'sources': [
530             'examples/nesting_app/nesting_app.cc',
531             'public/cpp/application/lib/mojo_main_chromium.cc',
532           ],
533         },
534         {
535           'target_name': 'mojo_media_viewer',
536           'type': 'shared_library',
537           'dependencies': [
538             '../base/base.gyp:base',
539             '../skia/skia.gyp:skia',
540             '../ui/gfx/gfx.gyp:gfx_geometry',
541             '../ui/views/views.gyp:views',
542             'mojo_application',
543             'mojo_environment_chromium',
544             'mojo_input_events_lib',
545             'mojo_media_viewer_bindings',
546             'mojo_navigation_bindings',
547             'mojo_system_impl',
548             'mojo_views_support',
549             'mojo_view_manager_bindings',
550             'mojo_view_manager_lib',
551           ],
552           'sources': [
553             'examples/media_viewer/media_viewer.cc',
554             'public/cpp/application/lib/mojo_main_chromium.cc',
555           ],
556         },
557       ],
558     }],
559     ['OS=="linux"', {
560       'targets': [
561         {
562           'target_name': 'mojo_dbus_echo',
563           'type': 'shared_library',
564           'dependencies': [
565             '../base/base.gyp:base',
566             'mojo_application',
567             'mojo_cpp_bindings',
568             'mojo_environment_standalone',
569             'mojo_echo_bindings',
570             'mojo_system',
571             'mojo_utility',
572           ],
573           'sources': [
574             'examples/dbus_echo/dbus_echo_app.cc',
575             'public/cpp/application/lib/mojo_main_standalone.cc',
576           ],
577         },
578       ],
579     }],
580   ],