Load the default favicon as a native image, rather than as a Skia image.
[chromium-blink-merge.git] / mojo / mojo_services.gypi
blobee73af16c7e2426005095ea358e9f0f6a2546658
2   'targets': [
3     {
4       'target_name': 'mojo_echo_bindings',
5       'type': 'static_library',
6       'sources': [
7         'services/dbus_echo/echo.mojom',
8       ],
9       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
10       'export_dependent_settings': [
11         'mojo_cpp_bindings',
12       ],
13       'dependencies': [
14         'mojo_cpp_bindings',
15       ],
16     },
17     {
18       'target_name': 'mojo_input_events_lib',
19       'type': '<(component)',
20       'defines': [
21         'MOJO_INPUT_EVENTS_IMPLEMENTATION',
22       ],
23       'dependencies': [
24         '../base/base.gyp:base',
25         '../ui/events/events.gyp:events',
26         '../ui/gfx/gfx.gyp:gfx_geometry',
27         'mojo_environment_chromium',
28         'mojo_input_events_bindings',
29         'mojo_geometry_bindings',
30         'mojo_geometry_lib',
31         'mojo_system_impl',
32       ],
33       'sources': [
34         'services/public/cpp/input_events/lib/input_events_type_converters.cc',
35         'services/public/cpp/input_events/input_events_type_converters.h',
36         'services/public/cpp/input_events/mojo_input_events_export.h',
37       ],
38     },
39     {
40       'target_name': 'mojo_input_events_bindings',
41       'type': 'static_library',
42       'sources': [
43         'services/public/interfaces/input_events/input_events.mojom',
44       ],
45       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
46       'export_dependent_settings': [
47         'mojo_cpp_bindings',
48       ],
49       'dependencies': [
50         'mojo_cpp_bindings',
51         'mojo_geometry_bindings',
52       ],
53     },
54     {
55       'target_name': 'mojo_geometry_bindings',
56       'type': 'static_library',
57       'sources': [
58         'services/public/interfaces/geometry/geometry.mojom',
59       ],
60       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
61       'dependencies': [
62         'mojo_cpp_bindings',
63       ],
64       'export_dependent_settings': [
65         'mojo_cpp_bindings',
66       ],
67     },
68     {
69       'target_name': 'mojo_geometry_lib',
70       'type': '<(component)',
71       'defines': [
72         'MOJO_GEOMETRY_IMPLEMENTATION',
73       ],
74       'dependencies': [
75         '../ui/gfx/gfx.gyp:gfx_geometry',
76         'mojo_environment_chromium',
77         'mojo_geometry_bindings',
78         'mojo_system_impl',
79       ],
80       'sources': [
81         'services/public/cpp/geometry/lib/geometry_type_converters.cc',
82         'services/public/cpp/geometry/geometry_type_converters.h',
83       ],
84     },
85     {
86       'target_name': 'mojo_gles2_bindings',
87       'type': 'static_library',
88       'sources': [
89         'services/gles2/command_buffer.mojom',
90         'services/gles2/command_buffer_type_conversions.cc',
91         'services/gles2/command_buffer_type_conversions.h',
92         'services/gles2/mojo_buffer_backing.cc',
93         'services/gles2/mojo_buffer_backing.h',
94       ],
95       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
96       'export_dependent_settings': [
97         'mojo_cpp_bindings',
98       ],
99       'dependencies': [
100         '../gpu/gpu.gyp:command_buffer_common',
101         'mojo_cpp_bindings',
102       ],
103     },
104     {
105       'target_name': 'mojo_gles2_service',
106       'type': 'static_library',
107       'dependencies': [
108         '../base/base.gyp:base',
109         '../gpu/gpu.gyp:command_buffer_service',
110         '../ui/gfx/gfx.gyp:gfx',
111         '../ui/gfx/gfx.gyp:gfx_geometry',
112         '../ui/gl/gl.gyp:gl',
113         'mojo_gles2_bindings',
114       ],
115       'export_dependent_settings': [
116         'mojo_gles2_bindings',
117       ],
118       'sources': [
119         'services/gles2/command_buffer_impl.cc',
120         'services/gles2/command_buffer_impl.h',
121       ],
122     },
123     {
124       'target_name': 'mojo_native_viewport_bindings',
125       'type': 'static_library',
126       'sources': [
127         'services/native_viewport/native_viewport.mojom',
128       ],
129       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
130       'export_dependent_settings': [
131         'mojo_cpp_bindings',
132       ],
133       'dependencies': [
134         'mojo_geometry_bindings',
135         'mojo_gles2_bindings',
136         'mojo_input_events_bindings',
137         'mojo_cpp_bindings',
138       ],
139     },
140     {
141       'target_name': 'mojo_native_viewport_service',
142       # This is linked directly into the embedder, so we make it a component.
143       'type': '<(component)',
144       'dependencies': [
145         '../base/base.gyp:base',
146         '../ui/events/events.gyp:events',
147         '../ui/gfx/gfx.gyp:gfx',
148         '../ui/gfx/gfx.gyp:gfx_geometry',
149         'mojo_application',
150         'mojo_common_lib',
151         'mojo_environment_chromium',
152         'mojo_geometry_bindings',
153         'mojo_geometry_lib',
154         'mojo_gles2_service',
155         'mojo_input_events_lib',
156         'mojo_native_viewport_bindings',
157         'mojo_system_impl',
158       ],
159       'defines': [
160         'MOJO_NATIVE_VIEWPORT_IMPLEMENTATION',
161       ],
162       'sources': [
163         'services/native_viewport/native_viewport.h',
164         'services/native_viewport/native_viewport_android.cc',
165         'services/native_viewport/native_viewport_mac.mm',
166         'services/native_viewport/native_viewport_service.cc',
167         'services/native_viewport/native_viewport_service.h',
168         'services/native_viewport/native_viewport_stub.cc',
169         'services/native_viewport/native_viewport_win.cc',
170         'services/native_viewport/native_viewport_x11.cc',
171       ],
172       'conditions': [
173         ['OS=="win" or OS=="android" or OS=="linux" or OS=="mac"', {
174           'sources!': [
175             'services/native_viewport/native_viewport_stub.cc',
176           ],
177         }],
178         ['OS=="android"', {
179           'dependencies': [
180             'mojo_jni_headers',
181           ],
182         }],
183       ],
184     },
185     {
186       'target_name': 'mojo_navigation_bindings',
187       'type': 'static_library',
188       'sources': [
189         'services/navigation/navigation.mojom',
190       ],
191       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
192       'export_dependent_settings': [
193         'mojo_cpp_bindings',
194       ],
195       'dependencies': [
196         'mojo_cpp_bindings',
197       ],
198     },
199     {
200       'target_name': 'mojo_network_bindings',
201       'type': 'static_library',
202       'sources': [
203         'services/public/interfaces/network/network_error.mojom',
204         'services/public/interfaces/network/network_service.mojom',
205         'services/public/interfaces/network/url_loader.mojom',
206       ],
207       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
208       'export_dependent_settings': [
209         'mojo_cpp_bindings',
210       ],
211       'dependencies': [
212         'mojo_cpp_bindings',
213       ],
214     },
215     {
216       'target_name': 'mojo_network_service',
217       'type': 'shared_library',
218       'dependencies': [
219         '../base/base.gyp:base',
220         '../net/net.gyp:net',
221         '../url/url.gyp:url_lib',
222         'mojo_application',
223         'mojo_common_lib',
224         'mojo_environment_chromium',
225         'mojo_network_bindings',
226         'mojo_system_impl',
227       ],
228       'export_dependent_settings': [
229         'mojo_network_bindings',
230       ],
231       'sources': [
232         'services/network/main.cc',
233         'services/network/network_context.cc',
234         'services/network/network_context.h',
235         'services/network/network_service_impl.cc',
236         'services/network/network_service_impl.h',
237         'services/network/url_loader_impl.cc',
238         'services/network/url_loader_impl.h',
239       ],
240     },
241     {
242       'target_name': 'mojo_view_manager_common',
243       'type': 'static_library',
244       'sources': [
245         'services/public/cpp/view_manager/view_manager_types.h',
246       ],
247     },
248     {
249       'target_name': 'mojo_view_manager_bindings',
250       'type': 'static_library',
251       'sources': [
252         'services/public/interfaces/view_manager/view_manager.mojom',
253         'services/public/interfaces/view_manager/view_manager_constants.mojom',
254       ],
255       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
256       'export_dependent_settings': [
257         'mojo_cpp_bindings',
258       ],
259       'dependencies': [
260         'mojo_cpp_bindings',
261         'mojo_geometry_bindings',
262         'mojo_input_events_bindings',
263       ],
264     },
265     {
266       'target_name': 'mojo_view_manager_lib',
267       'type': 'static_library',
268       'dependencies': [
269         '../base/base.gyp:base',
270         '../skia/skia.gyp:skia',
271         '../ui/gfx/gfx.gyp:gfx',
272         '../ui/gfx/gfx.gyp:gfx_geometry',
273         'mojo_application',
274         'mojo_geometry_bindings',
275         'mojo_geometry_lib',
276         'mojo_service_provider_bindings',
277         'mojo_view_manager_bindings',
278         'mojo_view_manager_common',
279       ],
280       'sources': [
281         'services/public/cpp/view_manager/lib/view.cc',
282         'services/public/cpp/view_manager/lib/view_private.cc',
283         'services/public/cpp/view_manager/lib/view_private.h',
284         'services/public/cpp/view_manager/lib/view_manager_synchronizer.cc',
285         'services/public/cpp/view_manager/lib/view_manager_synchronizer.h',
286         'services/public/cpp/view_manager/lib/view_tree_host.cc',
287         'services/public/cpp/view_manager/lib/view_tree_node.cc',
288         'services/public/cpp/view_manager/lib/view_tree_node_observer.cc',
289         'services/public/cpp/view_manager/lib/view_tree_node_private.cc',
290         'services/public/cpp/view_manager/lib/view_tree_node_private.h',
291         'services/public/cpp/view_manager/view.h',
292         'services/public/cpp/view_manager/view_manager.h',
293         'services/public/cpp/view_manager/view_manager_delegate.h',
294         'services/public/cpp/view_manager/view_manager_types.h',
295         'services/public/cpp/view_manager/view_observer.h',
296         'services/public/cpp/view_manager/view_tree_host.h',
297         'services/public/cpp/view_manager/view_tree_node.h',
298         'services/public/cpp/view_manager/view_tree_node_observer.h',
299       ],
300     },
301     {
302       'target_name': 'mojo_view_manager_lib_unittests',
303       'type': 'executable',
304       'dependencies': [
305         '../base/base.gyp:base',
306         '../base/base.gyp:test_support_base',
307         '../testing/gtest.gyp:gtest',
308         'mojo_environment_chromium',
309         'mojo_geometry_bindings',
310         'mojo_geometry_lib',
311         'mojo_shell_test_support',
312         'mojo_view_manager_bindings',
313         'mojo_view_manager_lib',
314       ],
315       'sources': [
316         'services/public/cpp/view_manager/tests/view_unittest.cc',
317         'services/public/cpp/view_manager/tests/view_manager_unittest.cc',
318         'services/public/cpp/view_manager/tests/view_tree_host_unittest.cc',
319         'services/public/cpp/view_manager/tests/view_tree_node_unittest.cc',
320       ],
321       'conditions': [
322         ['use_aura==1', {
323           'dependencies': [
324             'mojo_view_manager_run_unittests'
325           ],
326         }, {  # use_aura==0
327           'dependencies': [
328             'mojo_run_all_unittests',
329           ],
330         }]
331       ],
332     },
333     {
334       'target_name': 'mojo_test_service_bindings',
335       'type': 'static_library',
336       'sources': [
337         'services/test_service/test_service.mojom',
338       ],
339       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
340       'export_dependent_settings': [
341         'mojo_cpp_bindings',
342       ],
343       'dependencies': [
344         'mojo_cpp_bindings',
345       ],
346     },
347     {
348       'target_name': 'mojo_test_service',
349       'type': 'shared_library',
350       'dependencies': [
351         '../base/base.gyp:base',
352         'mojo_application',
353         'mojo_environment_standalone',
354         'mojo_test_service_bindings',
355         'mojo_system',
356         'mojo_utility',
357       ],
358       'sources': [
359         'public/cpp/application/lib/mojo_main_standalone.cc',
360         'services/test_service/test_service_application.cc',
361         'services/test_service/test_service_impl.cc',
362         'services/test_service/test_service_impl.h',
363       ],
364     },
365   ],
366   'conditions': [
367     ['use_aura==1', {
368       'targets': [
369         {
370           'target_name': 'mojo_view_manager',
371           'type': '<(component)',
372           'dependencies': [
373             '../base/base.gyp:base',
374             '../cc/cc.gyp:cc',
375             '../skia/skia.gyp:skia',
376             '../ui/aura/aura.gyp:aura',
377             '../ui/base/ui_base.gyp:ui_base',
378             '../ui/compositor/compositor.gyp:compositor',
379             '../ui/events/events.gyp:events',
380             '../ui/events/events.gyp:events_base',
381             '../ui/gfx/gfx.gyp:gfx',
382             '../ui/gfx/gfx.gyp:gfx_geometry',
383             '../ui/gl/gl.gyp:gl',
384             '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
385             'mojo_application',
386             'mojo_aura_support',
387             'mojo_common_lib',
388             'mojo_environment_chromium',
389             'mojo_geometry_bindings',
390             'mojo_geometry_lib',
391             'mojo_gles2',
392             'mojo_input_events_bindings',
393             'mojo_input_events_lib',
394             'mojo_native_viewport_bindings',
395             'mojo_system_impl',
396             'mojo_view_manager_bindings',
397             'mojo_view_manager_common',
398           ],
399           'sources': [
400             'public/cpp/application/lib/mojo_main_chromium.cc',
401             'services/view_manager/ids.h',
402             'services/view_manager/main.cc',
403             'services/view_manager/node.cc',
404             'services/view_manager/node.h',
405             'services/view_manager/node_delegate.h',
406             'services/view_manager/root_node_manager.cc',
407             'services/view_manager/root_node_manager.h',
408             'services/view_manager/root_view_manager.cc',
409             'services/view_manager/root_view_manager.h',
410             'services/view_manager/root_view_manager_delegate.h',
411             'services/view_manager/view.cc',
412             'services/view_manager/view.h',
413             'services/view_manager/view_manager_connection.cc',
414             'services/view_manager/view_manager_connection.h',
415             'services/view_manager/view_manager_init_connection.cc',
416             'services/view_manager/view_manager_init_connection.h',
417             'services/view_manager/view_manager_export.h',
418             'services/view_manager/context_factory_impl.cc',
419             'services/view_manager/context_factory_impl.h',
420             'services/view_manager/window_tree_host_impl.cc',
421             'services/view_manager/window_tree_host_impl.h',
422           ],
423           'defines': [
424             'MOJO_VIEW_MANAGER_IMPLEMENTATION',
425           ],
426         },
427         {
428           'target_name': 'mojo_view_manager_run_unittests',
429           'type': 'static_library',
430           'dependencies': [
431             '../base/base.gyp:base',
432             '../base/base.gyp:test_support_base',
433             '../ui/gl/gl.gyp:gl',
434           ],
435           'sources': [
436             'services/public/cpp/view_manager/lib/view_manager_test_suite.cc',
437             'services/public/cpp/view_manager/lib/view_manager_test_suite.h',
438             'services/public/cpp/view_manager/lib/view_manager_unittests.cc',
439           ],
440         },
441         {
442           'target_name': 'mojo_view_manager_unittests',
443           'type': 'executable',
444           'dependencies': [
445             '../base/base.gyp:base',
446             '../base/base.gyp:test_support_base',
447             '../skia/skia.gyp:skia',
448             '../testing/gtest.gyp:gtest',
449             '../ui/aura/aura.gyp:aura',
450             '../ui/gfx/gfx.gyp:gfx_geometry',
451             '../ui/gl/gl.gyp:gl',
452             'mojo_application',
453             'mojo_environment_chromium',
454             'mojo_geometry_bindings',
455             'mojo_geometry_lib',
456             'mojo_input_events_bindings',
457             'mojo_input_events_lib',
458             'mojo_service_manager',
459             'mojo_shell_test_support',
460             'mojo_system_impl',
461             'mojo_view_manager_bindings',
462             'mojo_view_manager_common',
463             'mojo_view_manager_run_unittests',
464           ],
465           'sources': [
466             'services/view_manager/test_change_tracker.cc',
467             'services/view_manager/test_change_tracker.h',
468             'services/view_manager/view_manager_connection_unittest.cc',
469           ],
470         },
471         {
472           'target_name': 'package_mojo_view_manager',
473           'variables': {
474             'app_name': 'mojo_view_manager',
475           },
476           'includes': [ 'build/package_app.gypi' ],
477         },
478       ],
479     }],
480     ['OS=="linux"', {
481       'targets': [
482         {
483           'target_name': 'mojo_dbus_echo_service',
484           'type': 'executable',
485           'dependencies': [
486             '../base/base.gyp:base',
487             '../build/linux/system.gyp:dbus',
488             '../dbus/dbus.gyp:dbus',
489             'mojo_application',
490             'mojo_common_lib',
491             'mojo_dbus_service',
492             'mojo_echo_bindings',
493             'mojo_environment_chromium',
494             'mojo_system_impl',
495           ],
496           'sources': [
497             'services/dbus_echo/dbus_echo_service.cc',
498           ],
499         },
500       ],
501     }],
502   ],