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