Test files for skip network check for offline enabled app.
[chromium-blink-merge.git] / mojo / mojo_examples.gypi
blobf723e674ccb6d6432a1e6f2e8eaee65a6b460dd1
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/gfx/gfx.gyp:gfx',
13         '../ui/gfx/gfx.gyp:gfx_geometry',
14         '../ui/gl/gl.gyp:gl',
15         'mojo_environment_standalone',
16         'mojo_gles2',
17         'mojo_native_viewport_bindings',
18         'mojo_shell_bindings',
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_support',
39       'type': 'static_library',
40       'dependencies': [
41         '../base/base.gyp:base',
42         '../cc/cc.gyp:cc',
43         '../skia/skia.gyp:skia',
44         '../gpu/gpu.gyp:gles2_implementation',
45         'mojo_gles2',
46         'mojo_system',
47       ],
48       'sources': [
49         'examples/compositor_app/mojo_context_provider.cc',
50         'examples/compositor_app/mojo_context_provider.h',
51       ],
52     },
53     {
54       'target_name': 'mojo_compositor_app',
55       'type': 'shared_library',
56       'dependencies': [
57         '../base/base.gyp:base',
58         '../cc/cc.gyp:cc',
59         '../ui/gfx/gfx.gyp:gfx',
60         '../ui/gfx/gfx.gyp:gfx_geometry',
61         'mojo_common_lib',
62         'mojo_compositor_support',
63         'mojo_environment_chromium',
64         'mojo_gles2',
65         'mojo_native_viewport_bindings',
66         'mojo_shell_bindings',
67         'mojo_system',
68       ],
69       'sources': [
70         'examples/compositor_app/compositor_app.cc',
71         'examples/compositor_app/compositor_host.cc',
72         'examples/compositor_app/compositor_host.h',
73       ],
74     },
75     {
76       'target_name': 'package_mojo_compositor_app',
77       'variables': {
78         'app_name': 'mojo_compositor_app',
79       },
80       'includes': [ 'build/package_app.gypi' ],
81     },
82   ],
83   'conditions': [
84     ['use_aura==1', {
85       'targets': [
86         {
87           'target_name': 'mojo_aura_demo_support',
88           'type': 'static_library',
89           'dependencies': [
90             '../cc/cc.gyp:cc',
91             '../ui/aura/aura.gyp:aura',
92             '../ui/events/events.gyp:events',
93             '../ui/events/events.gyp:events_base',
94             '../ui/compositor/compositor.gyp:compositor',
95             '../ui/gl/gl.gyp:gl',
96             '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
97             'mojo_compositor_support',
98             'mojo_gles2',
99             'mojo_native_viewport_bindings',
100           ],
101           'sources': [
102             'examples/aura_demo/demo_context_factory.cc',
103             'examples/aura_demo/demo_context_factory.h',
104             'examples/aura_demo/demo_screen.cc',
105             'examples/aura_demo/demo_screen.h',
106             'examples/aura_demo/root_window_host_mojo.cc',
107             'examples/aura_demo/root_window_host_mojo.h',
108           ],
109         },
110         {
111           'target_name': 'mojo_aura_demo',
112           'type': 'shared_library',
113           'dependencies': [
114             '../base/base.gyp:base',
115             '../ui/aura/aura.gyp:aura',
116             '../ui/gfx/gfx.gyp:gfx',
117             '../ui/gfx/gfx.gyp:gfx_geometry',
118             '../ui/ui.gyp:ui',
119             'mojo_aura_demo_support',
120             'mojo_common_lib',
121             'mojo_environment_chromium',
122             'mojo_gles2',
123             'mojo_shell_bindings',
124             'mojo_system',
125           ],
126           'sources': [
127             'examples/aura_demo/aura_demo.cc',
128           ],
129         },
130         {
131           'target_name': 'package_mojo_aura_demo',
132           'variables': {
133             'app_name': 'mojo_aura_demo',
134           },
135           'includes': [ 'build/package_app.gypi' ],
136         },
137         {
138           'target_name': 'mojo_launcher_bindings',
139           'type': 'static_library',
140           'sources': [
141             'examples/launcher/launcher.mojom',
142           ],
143           'includes': [ 'public/bindings/mojom_bindings_generator.gypi' ],
144           'export_dependent_settings': [
145             'mojo_bindings',
146             'mojo_system',
147           ],
148         },
149         {
150           'target_name': 'mojo_launcher',
151           'type': 'shared_library',
152           'dependencies': [
153             '../base/base.gyp:base',
154             '../base/base.gyp:base_i18n',
155             '../ui/aura/aura.gyp:aura',
156             '../ui/aura/aura.gyp:aura_test_support',
157             '../ui/gfx/gfx.gyp:gfx',
158             '../ui/gfx/gfx.gyp:gfx_geometry',
159             '../ui/ui.gyp:ui',
160             '../ui/views/views.gyp:views',
161             '../url/url.gyp:url_lib',
162             'mojo_aura_demo_support',
163             'mojo_common_lib',
164             'mojo_environment_chromium',
165             'mojo_gles2',
166             'mojo_launcher_bindings',
167             'mojo_shell_bindings',
168             'mojo_system',
169           ],
170           'sources': [
171             'examples/launcher/launcher.cc',
172           ],
173         },
174         {
175           'target_name': 'package_mojo_launcher',
176           'variables': {
177             'app_name': 'mojo_launcher',
178           },
179           'includes': [ 'build/package_app.gypi' ],
180         },
181         {
182           'target_name': 'mojo_view_manager_bindings',
183           'type': 'static_library',
184           'sources': [
185             'examples/view_manager/view_manager.mojom',
186           ],
187           'includes': [ 'public/bindings/mojom_bindings_generator.gypi' ],
188           'export_dependent_settings': [
189             'mojo_bindings',
190             'mojo_system',
191           ],
192         },
193         {
194           'target_name': 'mojo_view_manager',
195           'type': 'shared_library',
196           'dependencies': [
197             '../base/base.gyp:base',
198             '../ui/gfx/gfx.gyp:gfx_geometry',
199             'mojo_common_lib',
200             'mojo_environment_chromium',
201             'mojo_launcher_bindings',
202             'mojo_native_viewport_bindings',
203             'mojo_shell_bindings',
204             'mojo_system',
205             'mojo_view_manager_bindings',
206           ],
207           'sources': [
208             'examples/view_manager/view_manager.cc',
209           ],
210         },
211         {
212           'target_name': 'package_mojo_view_manager',
213           'variables': {
214             'app_name': 'mojo_view_manager',
215           },
216           'includes': [ 'build/package_app.gypi' ],
217         },
218       ],
219     }],
220   ],