Creating canvas dynamically in webrtc video quality tests
[chromium-blink-merge.git] / mojo / mojo_examples.gypi
blob6b4947499da40342c92007ca07f4ac2abfca6890
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_cpp_bindings',
15         'mojo_environment_standalone',
16         'mojo_gles2',
17         'mojo_native_viewport_bindings',
18         'mojo_shell_client',
19         'mojo_system',
20         'mojo_utility',
21       ],
22       'sources': [
23         'examples/sample_app/gles2_client_impl.cc',
24         'examples/sample_app/gles2_client_impl.cc',
25         'examples/sample_app/sample_app.cc',
26         'examples/sample_app/spinning_cube.cc',
27         'examples/sample_app/spinning_cube.h',
28       ],
29     },
30     {
31       'target_name': 'package_mojo_sample_app',
32       'variables': {
33         'app_name': 'mojo_sample_app',
34       },
35       'includes': [ 'build/package_app.gypi' ],
36     },
37     {
38       'target_name': 'mojo_compositor_app',
39       'type': 'shared_library',
40       'dependencies': [
41         '../base/base.gyp:base',
42         '../cc/cc.gyp:cc',
43         '../ui/gfx/gfx.gyp:gfx',
44         '../ui/gfx/gfx.gyp:gfx_geometry',
45         'mojo_cc_support',
46         'mojo_common_lib',
47         'mojo_environment_chromium',
48         'mojo_gles2',
49         'mojo_native_viewport_bindings',
50         'mojo_shell_client',
51         'mojo_system_impl',
52       ],
53       'sources': [
54         'examples/compositor_app/compositor_app.cc',
55         'examples/compositor_app/compositor_host.cc',
56         'examples/compositor_app/compositor_host.h',
57       ],
58     },
59     {
60       'target_name': 'package_mojo_compositor_app',
61       'variables': {
62         'app_name': 'mojo_compositor_app',
63       },
64       'includes': [ 'build/package_app.gypi' ],
65     },
66     {
67       'target_name': 'mojo_pepper_container_app',
68       'type': 'shared_library',
69       'dependencies': [
70         '../base/base.gyp:base',
71         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
72         '../gpu/gpu.gyp:command_buffer_common',
73         '../ppapi/ppapi.gyp:ppapi_c',
74         '../ppapi/ppapi_internal.gyp:ppapi_example_gles2_spinning_cube',
75         'mojo_common_lib',
76         'mojo_environment_chromium',
77         'mojo_gles2',
78         'mojo_native_viewport_bindings',
79         'mojo_shell_client',
80         'mojo_system_impl',
81       ],
82       'defines': [
83         # We don't really want to export. We could change how
84         # ppapi_{shared,thunk}_export.h are defined to avoid this.
85         'PPAPI_SHARED_IMPLEMENTATION',
86         'PPAPI_THUNK_IMPLEMENTATION',
87       ],
88       'sources': [
89         # Source files from ppapi/.
90         # An alternative is to depend on
91         # '../ppapi/ppapi_internal.gyp:ppapi_shared', but that target includes
92         # a lot of things that we don't need.
93         # TODO(yzshen): Consider extracting these files into a separate target
94         # which mojo_pepper_container_app and ppapi_shared both depend on.
95         '../ppapi/shared_impl/api_id.h',
96         '../ppapi/shared_impl/callback_tracker.cc',
97         '../ppapi/shared_impl/callback_tracker.h',
98         '../ppapi/shared_impl/host_resource.cc',
99         '../ppapi/shared_impl/host_resource.h',
100         '../ppapi/shared_impl/id_assignment.cc',
101         '../ppapi/shared_impl/id_assignment.h',
102         '../ppapi/shared_impl/ppapi_globals.cc',
103         '../ppapi/shared_impl/ppapi_globals.h',
104         '../ppapi/shared_impl/ppapi_shared_export.h',
105         '../ppapi/shared_impl/ppb_message_loop_shared.cc',
106         '../ppapi/shared_impl/ppb_message_loop_shared.h',
107         '../ppapi/shared_impl/ppb_view_shared.cc',
108         '../ppapi/shared_impl/ppb_view_shared.h',
109         '../ppapi/shared_impl/proxy_lock.cc',
110         '../ppapi/shared_impl/proxy_lock.h',
111         '../ppapi/shared_impl/resource.cc',
112         '../ppapi/shared_impl/resource.h',
113         '../ppapi/shared_impl/resource_tracker.cc',
114         '../ppapi/shared_impl/resource_tracker.h',
115         '../ppapi/shared_impl/scoped_pp_resource.cc',
116         '../ppapi/shared_impl/scoped_pp_resource.h',
117         '../ppapi/shared_impl/singleton_resource_id.h',
118         '../ppapi/shared_impl/tracked_callback.cc',
119         '../ppapi/shared_impl/tracked_callback.h',
120         '../ppapi/thunk/enter.cc',
121         '../ppapi/thunk/enter.h',
122         '../ppapi/thunk/interfaces_ppb_private.h',
123         '../ppapi/thunk/interfaces_ppb_private_flash.h',
124         '../ppapi/thunk/interfaces_ppb_private_no_permissions.h',
125         '../ppapi/thunk/interfaces_ppb_public_dev.h',
126         '../ppapi/thunk/interfaces_ppb_public_dev_channel.h',
127         '../ppapi/thunk/interfaces_ppb_public_stable.h',
128         '../ppapi/thunk/interfaces_preamble.h',
129         '../ppapi/thunk/ppapi_thunk_export.h',
130         '../ppapi/thunk/ppb_graphics_3d_api.h',
131         '../ppapi/thunk/ppb_graphics_3d_thunk.cc',
132         '../ppapi/thunk/ppb_instance_api.h',
133         '../ppapi/thunk/ppb_instance_thunk.cc',
134         '../ppapi/thunk/ppb_message_loop_api.h',
135         '../ppapi/thunk/ppb_view_api.h',
136         '../ppapi/thunk/ppb_view_thunk.cc',
137         '../ppapi/thunk/resource_creation_api.h',
138         '../ppapi/thunk/thunk.h',
140         'examples/pepper_container_app/graphics_3d_resource.cc',
141         'examples/pepper_container_app/graphics_3d_resource.h',
142         'examples/pepper_container_app/interface_list.cc',
143         'examples/pepper_container_app/interface_list.h',
144         'examples/pepper_container_app/mojo_ppapi_globals.cc',
145         'examples/pepper_container_app/mojo_ppapi_globals.h',
146         'examples/pepper_container_app/pepper_container_app.cc',
147         'examples/pepper_container_app/plugin_instance.cc',
148         'examples/pepper_container_app/plugin_instance.h',
149         'examples/pepper_container_app/plugin_module.cc',
150         'examples/pepper_container_app/plugin_module.h',
151         'examples/pepper_container_app/ppb_core_thunk.cc',
152         'examples/pepper_container_app/ppb_opengles2_thunk.cc',
153         'examples/pepper_container_app/resource_creation_impl.cc',
154         'examples/pepper_container_app/resource_creation_impl.h',
155         'examples/pepper_container_app/thunk.h',
156         'examples/pepper_container_app/type_converters.h',
157       ],
158     },
159   ],
160   'conditions': [
161     ['use_aura==1', {
162       'targets': [
163         {
164           'target_name': 'mojo_aura_demo',
165           'type': 'shared_library',
166           'dependencies': [
167             '../base/base.gyp:base',
168             '../ui/aura/aura.gyp:aura',
169             '../ui/base/ui_base.gyp:ui_base',
170             '../ui/gfx/gfx.gyp:gfx',
171             '../ui/gfx/gfx.gyp:gfx_geometry',
172             'mojo_aura_support',
173             'mojo_cc_support',
174             'mojo_common_lib',
175             'mojo_environment_chromium',
176             'mojo_gles2',
177             'mojo_shell_client',
178             'mojo_system_impl'
179           ],
180           'sources': [
181             'examples/aura_demo/aura_demo.cc',
182           ],
183         },
184         {
185           'target_name': 'package_mojo_aura_demo',
186           'variables': {
187             'app_name': 'mojo_aura_demo',
188           },
189           'includes': [ 'build/package_app.gypi' ],
190         },
191         {
192           'target_name': 'mojo_launcher_bindings',
193           'type': 'static_library',
194           'sources': [
195             'examples/launcher/launcher.mojom',
196           ],
197           'variables': {
198             'mojom_base_output_dir': 'mojo',
199           },
200           'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
201           'export_dependent_settings': [
202             'mojo_cpp_bindings',
203           ],
204           'dependencies': [
205             'mojo_cpp_bindings',
206           ],
207         },
208         {
209           'target_name': 'mojo_launcher',
210           'type': 'shared_library',
211           'dependencies': [
212             '../base/base.gyp:base',
213             '../base/base.gyp:base_i18n',
214             '../base/base.gyp:test_support_base',
215             '../ui/aura/aura.gyp:aura',
216             '../ui/aura/aura.gyp:aura_test_support',
217             '../ui/base/ui_base.gyp:ui_base',
218             '../ui/gfx/gfx.gyp:gfx',
219             '../ui/gfx/gfx.gyp:gfx_geometry',
220             '../ui/views/views.gyp:views',
221             '../ui/wm/wm.gyp:wm',
222             '../url/url.gyp:url_lib',
223             'mojo_aura_support',
224             'mojo_common_lib',
225             'mojo_environment_chromium',
226             'mojo_gles2',
227             'mojo_launcher_bindings',
228             'mojo_shell_client',
229             'mojo_system_impl',
230           ],
231           'sources': [
232             'examples/launcher/launcher.cc',
233           ],
234         },
235         {
236           'target_name': 'package_mojo_launcher',
237           'variables': {
238             'app_name': 'mojo_launcher',
239           },
240           'includes': [ 'build/package_app.gypi' ],
241         },
242         {
243           'target_name': 'mojo_sample_view_manager_app',
244           'type': 'shared_library',
245           'dependencies': [
246             '../base/base.gyp:base',
247             '../skia/skia.gyp:skia',
248             '../ui/gfx/gfx.gyp:gfx',
249             '../ui/gfx/gfx.gyp:gfx_geometry',
250             '../ui/gl/gl.gyp:gl',
251             'mojo_cpp_bindings',
252             'mojo_environment_chromium',
253             'mojo_gles2',
254             'mojo_view_manager_lib',
255             'mojo_shell_client',
256             'mojo_system_impl',
257             'mojo_utility',
258           ],
259           'sources': [
260             'examples/sample_view_manager_app/sample_view_manager_app.cc',
261           ],
262         },
263       ],
264     }],
265     ['OS=="linux"', {
266       'targets': [
267         {
268           'target_name': 'mojo_dbus_echo',
269           'type': 'shared_library',
270           'dependencies': [
271             '../base/base.gyp:base',
272             'mojo_cpp_bindings',
273             'mojo_environment_standalone',
274             'mojo_echo_bindings',
275             'mojo_shell_client',
276             'mojo_system',
277             'mojo_utility',
278           ],
279           'sources': [
280             'examples/dbus_echo/dbus_echo_app.cc',
281           ],
282         },
283       ],
284     }],
285   ],