Creating canvas dynamically in webrtc video quality tests
[chromium-blink-merge.git] / mojo / mojo_services.gypi
blobf3433ab570d2b5cb9c13f8086c407382c9fc9106
2   'targets': [
3     {
4       'target_name': 'mojo_echo_bindings',
5       'type': 'static_library',
6       'sources': [
7         'services/dbus_echo/echo.mojom',
8       ],
9       'variables': {
10         'mojom_base_output_dir': 'mojo',
11       },
12       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
13       'export_dependent_settings': [
14         'mojo_cpp_bindings',
15       ],
16       'dependencies': [
17         'mojo_cpp_bindings',
18       ],
19     },
20     {
21       'target_name': 'mojo_gles2_bindings',
22       'type': 'static_library',
23       'sources': [
24         'services/gles2/command_buffer.mojom',
25         'services/gles2/command_buffer_type_conversions.cc',
26         'services/gles2/command_buffer_type_conversions.h',
27         'services/gles2/mojo_buffer_backing.cc',
28         'services/gles2/mojo_buffer_backing.h',
29       ],
30       'variables': {
31         'mojom_base_output_dir': 'mojo',
32       },
33       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
34       'export_dependent_settings': [
35         'mojo_cpp_bindings',
36       ],
37       'dependencies': [
38         '../gpu/gpu.gyp:command_buffer_common',
39         'mojo_cpp_bindings',
40       ],
41     },
42     {
43       'target_name': 'mojo_gles2_service',
44       'type': 'static_library',
45       'dependencies': [
46         '../base/base.gyp:base',
47         '../gpu/gpu.gyp:command_buffer_service',
48         '../ui/gfx/gfx.gyp:gfx',
49         '../ui/gfx/gfx.gyp:gfx_geometry',
50         '../ui/gl/gl.gyp:gl',
51         'mojo_gles2_bindings',
52       ],
53       'export_dependent_settings': [
54         'mojo_gles2_bindings',
55       ],
56       'sources': [
57         'services/gles2/command_buffer_impl.cc',
58         'services/gles2/command_buffer_impl.h',
59       ],
60     },
61     {
62       'target_name': 'mojo_native_viewport_bindings',
63       'type': 'static_library',
64       'sources': [
65         'services/native_viewport/native_viewport.mojom',
66       ],
67       'variables': {
68         'mojom_base_output_dir': 'mojo',
69       },
70       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
71       'export_dependent_settings': [
72         'mojo_cpp_bindings',
73       ],
74       'dependencies': [
75         'mojo_cpp_bindings',
76       ],
77     },
78     {
79       'target_name': 'mojo_native_viewport_service',
80       # This is linked directly into the embedder, so we make it a component.
81       'type': '<(component)',
82       'dependencies': [
83         '../base/base.gyp:base',
84         '../ui/events/events.gyp:events',
85         '../ui/gfx/gfx.gyp:gfx',
86         '../ui/gfx/gfx.gyp:gfx_geometry',
87         'mojo_common_lib',
88         'mojo_environment_chromium',
89         'mojo_gles2_service',
90         'mojo_native_viewport_bindings',
91         'mojo_shell_client',
92         'mojo_system_impl',
93       ],
94       'defines': [
95         'MOJO_NATIVE_VIEWPORT_IMPLEMENTATION',
96       ],
97       'sources': [
98         'services/native_viewport/geometry_conversions.h',
99         'services/native_viewport/native_viewport.h',
100         'services/native_viewport/native_viewport_android.cc',
101         'services/native_viewport/native_viewport_mac.mm',
102         'services/native_viewport/native_viewport_service.cc',
103         'services/native_viewport/native_viewport_service.h',
104         'services/native_viewport/native_viewport_stub.cc',
105         'services/native_viewport/native_viewport_win.cc',
106         'services/native_viewport/native_viewport_x11.cc',
107       ],
108       'conditions': [
109         ['OS=="win" or OS=="android" or OS=="linux" or OS=="mac"', {
110           'sources!': [
111             'services/native_viewport/native_viewport_stub.cc',
112           ],
113         }],
114         ['OS=="android"', {
115           'dependencies': [
116             'mojo_jni_headers',
117           ],
118         }],
119       ],
120     },
121     {
122       'target_name': 'mojo_view_manager_common',
123       'type': 'static_library',
124       'sources': [
125         'services/public/cpp/view_manager/view_manager_types.h',
126       ],
127     },
128     {
129       'target_name': 'mojo_view_manager_bindings',
130       'type': 'static_library',
131       'sources': [
132         'services/public/interfaces/view_manager/view_manager.mojom',
133       ],
134       'variables': {
135         'mojom_base_output_dir': 'mojo',
136       },
137       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
138       'export_dependent_settings': [
139         'mojo_cpp_bindings',
140       ],
141       'dependencies': [
142         'mojo_cpp_bindings',
143       ],
144     },
145     {
146       'target_name': 'mojo_view_manager_lib',
147       'type': 'static_library',
148       'dependencies': [
149         '../base/base.gyp:base',
150         'mojo_shell_bindings',
151         'mojo_view_manager_bindings',
152         'mojo_view_manager_common',
153       ],
154       'sources': [
155         'services/public/cpp/view_manager/lib/view.cc',
156         'services/public/cpp/view_manager/lib/view_private.cc',
157         'services/public/cpp/view_manager/lib/view_private.h',
158         'services/public/cpp/view_manager/lib/view_manager.cc',
159         'services/public/cpp/view_manager/lib/view_manager_private.cc',
160         'services/public/cpp/view_manager/lib/view_manager_private.h',
161         'services/public/cpp/view_manager/lib/view_manager_synchronizer.cc',
162         'services/public/cpp/view_manager/lib/view_manager_synchronizer.h',
163         'services/public/cpp/view_manager/lib/view_tree_host.cc',
164         'services/public/cpp/view_manager/lib/view_tree_node.cc',
165         'services/public/cpp/view_manager/lib/view_tree_node_observer.cc',
166         'services/public/cpp/view_manager/lib/view_tree_node_private.cc',
167         'services/public/cpp/view_manager/lib/view_tree_node_private.h',
168         'services/public/cpp/view_manager/view.h',
169         'services/public/cpp/view_manager/view_manager.h',
170         'services/public/cpp/view_manager/view_manager_types.h',
171         'services/public/cpp/view_manager/view_observer.h',
172         'services/public/cpp/view_manager/view_tree_host.h',
173         'services/public/cpp/view_manager/view_tree_node.h',
174         'services/public/cpp/view_manager/view_tree_node_observer.h',
175       ],
176     },
177     {
178       'target_name': 'mojo_view_manager_lib_unittests',
179       'type': 'executable',
180       'dependencies': [
181         '../base/base.gyp:base',
182         '../base/base.gyp:test_support_base',
183         '../testing/gtest.gyp:gtest',
184         'mojo_environment_chromium',
185         'mojo_shell_test_support',
186         'mojo_view_manager_bindings',
187         'mojo_view_manager_lib',
188       ],
189       'sources': [
190         'services/public/cpp/view_manager/tests/view_unittest.cc',
191         'services/public/cpp/view_manager/tests/view_manager_unittest.cc',
192         'services/public/cpp/view_manager/tests/view_tree_host_unittest.cc',
193         'services/public/cpp/view_manager/tests/view_tree_node_unittest.cc',
194       ],
195       'conditions': [
196         ['use_aura==1', {
197           'dependencies': [
198             'mojo_view_manager_run_unittests'
199           ],
200         }, {  # use_aura==0
201           'dependencies': [
202             'mojo_run_all_unittests',
203           ],
204         }]
205       ],
206     },
207   ],
208   'conditions': [
209     ['use_aura==1', {
210       'targets': [
211         {
212           'target_name': 'mojo_view_manager',
213           'type': '<(component)',
214           'dependencies': [
215             '../base/base.gyp:base',
216             '../skia/skia.gyp:skia',
217             '../ui/aura/aura.gyp:aura',
218             '../ui/base/ui_base.gyp:ui_base',
219             '../ui/gfx/gfx.gyp:gfx',
220             '../ui/gfx/gfx.gyp:gfx_geometry',
221             'mojo_aura_support',
222             'mojo_common_lib',
223             'mojo_environment_chromium',
224             'mojo_gles2',
225             'mojo_launcher_bindings',
226             'mojo_native_viewport_bindings',
227             'mojo_shell_client',
228             'mojo_system_impl',
229             'mojo_view_manager_bindings',
230             'mojo_view_manager_common',
231           ],
232           'sources': [
233             'services/view_manager/ids.h',
234             'services/view_manager/main.cc',
235             'services/view_manager/node.cc',
236             'services/view_manager/node.h',
237             'services/view_manager/node_delegate.h',
238             'services/view_manager/root_node_manager.cc',
239             'services/view_manager/root_node_manager.h',
240             'services/view_manager/root_view_manager.cc',
241             'services/view_manager/root_view_manager.h',
242             'services/view_manager/view.cc',
243             'services/view_manager/view.h',
244             'services/view_manager/view_manager_connection.cc',
245             'services/view_manager/view_manager_connection.h',
246             'services/view_manager/view_manager_export.h',
247           ],
248           'defines': [
249             'MOJO_VIEW_MANAGER_IMPLEMENTATION',
250           ],
251         },
252         {
253           'target_name': 'mojo_view_manager_run_unittests',
254           'type': 'static_library',
255           'dependencies': [
256             '../base/base.gyp:base',
257             '../base/base.gyp:test_support_base',
258             '../ui/gl/gl.gyp:gl',
259           ],
260           'sources': [
261             'services/public/cpp/view_manager/lib/view_manager_test_suite.cc',
262             'services/public/cpp/view_manager/lib/view_manager_test_suite.h',
263             'services/public/cpp/view_manager/lib/view_manager_unittests.cc',
264           ],
265         },
266         {
267           'target_name': 'mojo_view_manager_unittests',
268           'type': 'executable',
269           'dependencies': [
270             '../base/base.gyp:base',
271             '../base/base.gyp:test_support_base',
272             '../skia/skia.gyp:skia',
273             '../testing/gtest.gyp:gtest',
274             '../ui/aura/aura.gyp:aura',
275             '../ui/gl/gl.gyp:gl',
276             'mojo_environment_chromium',
277             'mojo_shell_client',
278             'mojo_shell_test_support',
279             'mojo_system_impl',
280             'mojo_view_manager_bindings',
281             'mojo_view_manager_common',
282             'mojo_view_manager_run_unittests',
283           ],
284           'sources': [
285             'services/view_manager/view_manager_connection_unittest.cc',
286           ],
287         },
288         {
289           'target_name': 'package_mojo_view_manager',
290           'variables': {
291             'app_name': 'mojo_view_manager',
292           },
293           'includes': [ 'build/package_app.gypi' ],
294         },
295       ],
296     }],
297     ['OS=="linux"', {
298       'targets': [
299         {
300           'target_name': 'mojo_dbus_echo_service',
301           'type': 'executable',
302           'dependencies': [
303             '../base/base.gyp:base',
304             '../build/linux/system.gyp:dbus',
305             '../dbus/dbus.gyp:dbus',
306             'mojo_common_lib',
307             'mojo_dbus_service',
308             'mojo_echo_bindings',
309             'mojo_environment_chromium',
310             'mojo_shell_client',
311             'mojo_system_impl',
312           ],
313           'sources': [
314             'services/dbus_echo/dbus_echo_service.cc',
315           ],
316         },
317       ],
318     }],
319   ],