Valgrind: Suppress a couple more leaks in layout tests.
[chromium-blink-merge.git] / mojo / mojo_services.gypi
blob8599a62c5a01ab51c014600c4d6101c48ef58dbc
1 # Copyright (c) 2014 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       # GN version: //mojo/services/clipboard/
9       'target_name': 'mojo_clipboard',
10       'type': 'loadable_module',
11       'dependencies': [
12         '../base/base.gyp:base',
13         'mojo_base.gyp:mojo_common_lib',
14         'mojo_base.gyp:mojo_cpp_bindings',
15         'mojo_base.gyp:mojo_utility',
16         'mojo_base.gyp:mojo_application_chromium',
17         'mojo_clipboard_bindings',
18         '<(mojo_system_for_loadable_module)',
19       ],
20       'sources': [
21         'services/clipboard/clipboard_standalone_impl.cc',
22         'services/clipboard/clipboard_standalone_impl.h',
23         'services/clipboard/main.cc',
24       ],
25     },
26     {
27       # GN version: //mojo/services/public/interfaces/clipboard
28       'target_name': 'mojo_clipboard_bindings',
29       'type': 'static_library',
30       'sources': [
31         'services/public/interfaces/clipboard/clipboard.mojom',
32       ],
33       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
34       'dependencies': [
35         'mojo_base.gyp:mojo_cpp_bindings',
36       ],
37       'export_dependent_settings': [
38         'mojo_base.gyp:mojo_cpp_bindings',
39       ],
40     },
41     {
42       # GN version: //mojo/services/clipboard:mojo_clipboard_unittests
43       'target_name': 'mojo_clipboard_unittests',
44       'type': 'executable',
45       'dependencies': [
46         '../base/base.gyp:base',
47         '../base/base.gyp:test_support_base',
48         '../testing/gtest.gyp:gtest',
49         'mojo_application_manager',
50         'mojo_base.gyp:mojo_application_chromium',
51         'mojo_base.gyp:mojo_run_all_unittests',
52         'mojo_base.gyp:mojo_system_impl',
53         'mojo_clipboard_bindings',
54         'mojo_shell_test_support',
55       ],
56       'sources': [
57         'services/clipboard/clipboard_standalone_unittest.cc',
58       ],
59     },
60     {
61       # GN version: //mojo/services/html_viewer
62       'target_name': 'mojo_html_viewer',
63       'type': 'loadable_module',
64       'dependencies': [
65         '../cc/blink/cc_blink.gyp:cc_blink',
66         '../cc/cc.gyp:cc',
67         '../cc/cc.gyp:cc_surfaces',
68         '../media/blink/media_blink.gyp:media_blink',
69         '../media/media.gyp:media',
70         '../net/net.gyp:net',
71         '../skia/skia.gyp:skia',
72         '../third_party/WebKit/public/blink.gyp:blink',
73         '../ui/native_theme/native_theme.gyp:native_theme',
74         '../url/url.gyp:url_lib',
75         'mojo_base.gyp:mojo_application_chromium',
76         'mojo_base.gyp:mojo_common_lib',
77         'mojo_base.gyp:mojo_cpp_bindings',
78         'mojo_base.gyp:mojo_utility',
79         'mojo_clipboard_bindings',
80         'mojo_cc_support',
81         'mojo_content_handler_bindings',
82         'mojo_gpu_bindings',
83         'mojo_navigation_bindings',
84         'mojo_network_bindings',
85         'mojo_surfaces_bindings',
86         'mojo_view_manager_lib',
87         '<(mojo_system_for_loadable_module)',
88       ],
89       'include_dirs': [
90         'third_party/WebKit'
91       ],
92       'sources': [
93         'services/html_viewer/blink_basic_type_converters.cc',
94         'services/html_viewer/blink_basic_type_converters.h',
95         'services/html_viewer/blink_input_events_type_converters.cc',
96         'services/html_viewer/blink_input_events_type_converters.h',
97         'services/html_viewer/blink_platform_impl.cc',
98         'services/html_viewer/blink_platform_impl.h',
99         'services/html_viewer/blink_url_request_type_converters.cc',
100         'services/html_viewer/blink_url_request_type_converters.h',
101         'services/html_viewer/html_viewer.cc',
102         'services/html_viewer/html_document_view.cc',
103         'services/html_viewer/html_document_view.h',
104         'services/html_viewer/webclipboard_impl.cc',
105         'services/html_viewer/webclipboard_impl.h',
106         'services/html_viewer/webcookiejar_impl.cc',
107         'services/html_viewer/webcookiejar_impl.h',
108         'services/html_viewer/webmediaplayer_factory.cc',
109         'services/html_viewer/webmediaplayer_factory.h',
110         'services/html_viewer/webmimeregistry_impl.cc',
111         'services/html_viewer/webmimeregistry_impl.h',
112         'services/html_viewer/websockethandle_impl.cc',
113         'services/html_viewer/websockethandle_impl.h',
114         'services/html_viewer/webstoragenamespace_impl.cc',
115         'services/html_viewer/webstoragenamespace_impl.h',
116         'services/html_viewer/webthemeengine_impl.cc',
117         'services/html_viewer/webthemeengine_impl.h',
118         'services/html_viewer/webthread_impl.cc',
119         'services/html_viewer/webthread_impl.h',
120         'services/html_viewer/weburlloader_impl.cc',
121         'services/html_viewer/weburlloader_impl.h',
122         'services/html_viewer/weblayertreeview_impl.cc',
123         'services/html_viewer/weblayertreeview_impl.h',
124         'services/public/cpp/network/web_socket_read_queue.cc',
125         'services/public/cpp/network/web_socket_read_queue.h',
126         'services/public/cpp/network/web_socket_write_queue.cc',
127         'services/public/cpp/network/web_socket_write_queue.h',
128       ],
129     },
130     {
131       # GN version: //mojo/services/public/cpp/input_events
132       'target_name': 'mojo_input_events_lib',
133       'type': '<(component)',
134       'defines': [
135         'MOJO_INPUT_EVENTS_IMPLEMENTATION',
136       ],
137       'dependencies': [
138         '../base/base.gyp:base',
139         '../ui/events/events.gyp:events',
140         '../ui/gfx/gfx.gyp:gfx_geometry',
141         'mojo_base.gyp:mojo_environment_chromium',
142         'mojo_input_events_bindings',
143         'mojo_geometry_bindings',
144         'mojo_geometry_lib',
145         '<(mojo_system_for_component)',
146       ],
147       'sources': [
148         'services/public/cpp/input_events/lib/input_events_type_converters.cc',
149         'services/public/cpp/input_events/lib/mojo_extended_key_event_data.cc',
150         'services/public/cpp/input_events/lib/mojo_extended_key_event_data.h',
151         'services/public/cpp/input_events/input_events_type_converters.h',
152         'services/public/cpp/input_events/mojo_input_events_export.h',
153       ],
154     },
155     {
156       # GN version: //mojo/services/public/interfaces/input_events
157       'target_name': 'mojo_input_events_bindings',
158       'type': 'static_library',
159       'sources': [
160         'services/public/interfaces/input_events/input_event_constants.mojom',
161         'services/public/interfaces/input_events/input_events.mojom',
162         'services/public/interfaces/input_events/input_key_codes.mojom',
163       ],
164       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
165       'dependencies': [
166         'mojo_base.gyp:mojo_cpp_bindings',
167         'mojo_geometry_bindings',
168       ],
169       'export_dependent_settings': [
170         'mojo_base.gyp:mojo_cpp_bindings',
171         'mojo_geometry_bindings',
172       ],
173     },
174     {
175       # GN version: //mojo/services/public/interfaces/geometry
176       'target_name': 'mojo_geometry_bindings',
177       'type': 'static_library',
178       'sources': [
179         'services/public/interfaces/geometry/geometry.mojom',
180       ],
181       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
182       'dependencies': [
183         'mojo_base.gyp:mojo_cpp_bindings',
184       ],
185       'export_dependent_settings': [
186         'mojo_base.gyp:mojo_cpp_bindings',
187       ],
188     },
189     {
190       # GN version: //mojo/services/public/cpp/geometry
191       'target_name': 'mojo_geometry_lib',
192       'type': '<(component)',
193       'defines': [
194         'MOJO_GEOMETRY_IMPLEMENTATION',
195       ],
196       'dependencies': [
197         '../skia/skia.gyp:skia',
198         '../ui/gfx/gfx.gyp:gfx',
199         '../ui/gfx/gfx.gyp:gfx_geometry',
200         'mojo_base.gyp:mojo_environment_chromium',
201         'mojo_geometry_bindings',
202         '<(mojo_system_for_component)',
203       ],
204       'export_dependent_settings': [
205         '../ui/gfx/gfx.gyp:gfx',
206       ],
207       'sources': [
208         'services/public/cpp/geometry/lib/geometry_type_converters.cc',
209         'services/public/cpp/geometry/geometry_type_converters.h',
210         'services/public/cpp/geometry/mojo_geometry_export.h',
211       ],
212     },
213     {
214       # GN version: //mojo/services/public/cpp/surfaces
215       'target_name': 'mojo_surfaces_lib',
216       'type': '<(component)',
217       'defines': [
218         'MOJO_SURFACES_IMPLEMENTATION',
219       ],
220       'dependencies': [
221         '../base/base.gyp:base',
222         '../cc/cc.gyp:cc',
223         '../cc/cc.gyp:cc_surfaces',
224         '../skia/skia.gyp:skia',
225         '../gpu/gpu.gyp:gpu',
226         '../ui/gfx/gfx.gyp:gfx',
227         '../ui/gfx/gfx.gyp:gfx_geometry',
228         'mojo_base.gyp:mojo_environment_chromium',
229         'mojo_geometry_lib',
230         'mojo_surfaces_bindings',
231         '<(mojo_system_for_component)',
232       ],
233       'export_dependent_settings': [
234         'mojo_geometry_lib',
235         'mojo_surfaces_bindings',
236       ],
237       'sources': [
238         'services/public/cpp/surfaces/lib/surfaces_type_converters.cc',
239         'services/public/cpp/surfaces/lib/surfaces_utils.cc',
240         'services/public/cpp/surfaces/surfaces_type_converters.h',
241         'services/public/cpp/surfaces/surfaces_utils.h',
242         'services/public/cpp/surfaces/mojo_surfaces_export.h',
243       ],
244     },
245     {
246       # GN version: //mojo/services/public/cpp/surfaces/tests
247       'target_name': 'mojo_surfaces_lib_unittests',
248       'type': 'executable',
249       'dependencies': [
250         '../base/base.gyp:base',
251         '../base/base.gyp:test_support_base',
252         '../cc/cc.gyp:cc',
253         '../cc/cc.gyp:cc_surfaces',
254         '../gpu/gpu.gyp:gpu',
255         '../skia/skia.gyp:skia',
256         '../testing/gtest.gyp:gtest',
257         '../ui/gfx/gfx.gyp:gfx',
258         '../ui/gfx/gfx.gyp:gfx_geometry',
259         '../ui/gfx/gfx.gyp:gfx_test_support',
260         'mojo_base.gyp:mojo_environment_chromium',
261         'mojo_base.gyp:mojo_run_all_unittests',
262         'mojo_geometry_lib',
263         'mojo_surfaces_bindings',
264         'mojo_surfaces_lib',
265       ],
266       'sources': [
267         'services/public/cpp/surfaces/tests/surface_unittest.cc',
268       ],
269     },
270     {
271       # GN version: //mojo/services/gles2
272       'target_name': 'mojo_gles2_service',
273       'type': 'static_library',
274       'dependencies': [
275         '../base/base.gyp:base',
276         '../gpu/gpu.gyp:command_buffer_service',
277         '../ui/gfx/gfx.gyp:gfx',
278         '../ui/gfx/gfx.gyp:gfx_geometry',
279         '../ui/gl/gl.gyp:gl',
280         'mojo_base.gyp:mojo_gles2_bindings',
281       ],
282       'export_dependent_settings': [
283         'mojo_base.gyp:mojo_gles2_bindings',
284       ],
285       'sources': [
286         'services/gles2/command_buffer_impl.cc',
287         'services/gles2/command_buffer_impl.h',
288       ],
289     },
290     {
291       # GN version: //mojo/services/public/interfaces/gpu
292       'target_name': 'mojo_gpu_bindings',
293       'type': 'static_library',
294       'sources': [
295         'services/public/interfaces/gpu/gpu.mojom',
296       ],
297       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
298       'dependencies': [
299         'mojo_base.gyp:mojo_cpp_bindings',
300         'mojo_base.gyp:mojo_gles2_bindings',
301         'mojo_geometry_bindings',
302       ],
303       'export_dependent_settings': [
304         'mojo_base.gyp:mojo_cpp_bindings',
305         'mojo_base.gyp:mojo_gles2_bindings',
306         'mojo_geometry_bindings',
307       ],
308     },
309     {
310       # GN version: //mojo/services/public/interfaces/native_viewport
311       'target_name': 'mojo_native_viewport_bindings',
312       'type': 'static_library',
313       'sources': [
314         'services/public/interfaces/native_viewport/native_viewport.mojom',
315       ],
316       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
317       'dependencies': [
318         'mojo_base.gyp:mojo_cpp_bindings',
319         'mojo_base.gyp:mojo_gles2_bindings',
320         'mojo_geometry_bindings',
321         'mojo_input_events_bindings',
322         'mojo_surface_id_bindings',
323       ],
324       'export_dependent_settings': [
325         'mojo_base.gyp:mojo_cpp_bindings',
326         'mojo_base.gyp:mojo_gles2_bindings',
327         'mojo_geometry_bindings',
328         'mojo_input_events_bindings',
329         'mojo_surface_id_bindings',
330       ],
331     },
332     {
333       # GN version: //mojo/services/native_viewport
334       'target_name': 'mojo_native_viewport_service_lib',
335       'type': 'static_library',
336       'dependencies': [
337         '../base/base.gyp:base',
338         '../cc/cc.gyp:cc_surfaces',
339         '../skia/skia.gyp:skia',
340         '../ui/events/events.gyp:events',
341         '../ui/gfx/gfx.gyp:gfx',
342         '../ui/gfx/gfx.gyp:gfx_geometry',
343         'mojo_base.gyp:mojo_application_chromium',
344         'mojo_base.gyp:mojo_common_lib',
345         'mojo_geometry_bindings',
346         'mojo_geometry_lib',
347         'mojo_gles2_service',
348         'mojo_gpu_bindings',
349         'mojo_input_events_lib',
350         'mojo_native_viewport_bindings',
351         'mojo_surfaces_bindings',
352         'mojo_surfaces_lib',
353       ],
354       'export_dependent_settings': [
355         'mojo_geometry_bindings',
356         'mojo_gpu_bindings',
357         'mojo_native_viewport_bindings',
358         'mojo_surfaces_bindings',
359       ],
360       'sources': [
361         'services/native_viewport/gpu_impl.cc',
362         'services/native_viewport/gpu_impl.h',
363         'services/native_viewport/native_viewport_impl.cc',
364         'services/native_viewport/native_viewport_impl.h',
365         'services/native_viewport/platform_viewport.h',
366         'services/native_viewport/platform_viewport_android.cc',
367         'services/native_viewport/platform_viewport_mac.mm',
368         'services/native_viewport/platform_viewport_ozone.cc',
369         'services/native_viewport/platform_viewport_stub.cc',
370         'services/native_viewport/platform_viewport_win.cc',
371         'services/native_viewport/platform_viewport_x11.cc',
372         'services/native_viewport/viewport_surface.cc',
373         'services/native_viewport/viewport_surface.h',
374       ],
375       'conditions': [
376         ['OS=="win" or OS=="android" or OS=="linux" or OS=="mac"', {
377           'sources!': [
378             'services/native_viewport/platform_viewport_stub.cc',
379           ],
380         }],
381         ['OS=="android"', {
382           'dependencies': [
383             'mojo_base.gyp:mojo_jni_headers',
384           ],
385         }],
386         ['OS=="win"', {
387           'dependencies': [
388             '../ui/platform_window/win/win_window.gyp:win_window',
389           ],
390         }],
391         ['use_x11==1', {
392           'dependencies': [
393             '../ui/platform_window/x11/x11_window.gyp:x11_window',
394             '../ui/events/platform/x11/x11_events_platform.gyp:x11_events_platform',
395           ],
396         }],
397         ['use_ozone==1', {
398           'dependencies': [
399             '../ui/ozone/ozone.gyp:ozone',
400           ],
401         }],
402       ],
403     },
404     {
405       'target_name': 'mojo_native_viewport_service',
406       'type': 'loadable_module',
407       'dependencies': [
408         'mojo_native_viewport_bindings',
409         'mojo_native_viewport_service_lib',
410         '<(mojo_system_for_loadable_module)',
411       ],
412       'export_dependent_settings': [
413         'mojo_native_viewport_bindings',
414       ],
415       'sources': [
416         'services/native_viewport/main.cc',
417       ],
418     },
419     {
420       # GN version: //mojo/services/public/interfaces/navigation
421       'target_name': 'mojo_navigation_bindings',
422       'type': 'static_library',
423       'sources': [
424         'services/public/interfaces/navigation/navigation.mojom',
425       ],
426       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
427       'export_dependent_settings': [
428         'mojo_base.gyp:mojo_cpp_bindings',
429       ],
430       'dependencies': [
431         'mojo_base.gyp:mojo_cpp_bindings',
432         'mojo_network_bindings',
433       ],
434     },
435     {
436       # GN version: //mojo/services/public/interfaces/content_handler
437       'target_name': 'mojo_content_handler_bindings',
438       'type': 'static_library',
439       'sources': [
440         'services/public/interfaces/content_handler/content_handler.mojom',
441       ],
442       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
443       'export_dependent_settings': [
444         'mojo_base.gyp:mojo_cpp_bindings',
445       ],
446       'dependencies': [
447         'mojo_base.gyp:mojo_application_bindings',
448         'mojo_base.gyp:mojo_cpp_bindings',
449         'mojo_network_bindings',
450       ],
451     },
452     {
453       # GN version: //mojo/services/public/interfaces/network
454       'target_name': 'mojo_network_bindings',
455       'type': 'static_library',
456       'sources': [
457         'services/public/interfaces/network/cookie_store.mojom',
458         'services/public/interfaces/network/network_error.mojom',
459         'services/public/interfaces/network/network_service.mojom',
460         'services/public/interfaces/network/url_loader.mojom',
461         'services/public/interfaces/network/web_socket.mojom',
462       ],
463       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
464       'export_dependent_settings': [
465         'mojo_base.gyp:mojo_cpp_bindings',
466       ],
467       'dependencies': [
468         'mojo_base.gyp:mojo_cpp_bindings',
469       ],
470     },
471     {
472       # GN version: //mojo/services/network:lib
473       'target_name': 'mojo_network_service_lib',
474       'type': 'static_library',
475       'dependencies': [
476         '../base/base.gyp:base',
477         '../net/net.gyp:net',
478         '../url/url.gyp:url_lib',
479         'mojo_base.gyp:mojo_common_lib',
480         'mojo_base.gyp:mojo_application_chromium',
481         'mojo_network_bindings',
482       ],
483       'export_dependent_settings': [
484         'mojo_network_bindings',
485       ],
486       'sources': [
487         'services/network/cookie_store_impl.cc',
488         'services/network/cookie_store_impl.h',
489         'services/network/network_context.cc',
490         'services/network/network_context.h',
491         'services/network/network_service_impl.cc',
492         'services/network/network_service_impl.h',
493         'services/network/url_loader_impl.cc',
494         'services/network/url_loader_impl.h',
495         'services/network/web_socket_impl.cc',
496         'services/network/web_socket_impl.h',
497         'services/public/cpp/network/web_socket_read_queue.cc',
498         'services/public/cpp/network/web_socket_read_queue.h',
499         'services/public/cpp/network/web_socket_write_queue.cc',
500         'services/public/cpp/network/web_socket_write_queue.h',
501       ],
502     },
503     {
504       # GN version: //mojo/services/network
505       'target_name': 'mojo_network_service',
506       'type': 'loadable_module',
507       'dependencies': [
508         'mojo_network_bindings',
509         'mojo_network_service_lib',
510         '<(mojo_system_for_loadable_module)',
511       ],
512       'export_dependent_settings': [
513         'mojo_network_bindings',
514       ],
515       'sources': [
516         'services/network/main.cc',
517       ],
518     },
519     {
520       # GN version: //mojo/services/surfaces
521       'target_name': 'mojo_surfaces_service',
522       'type': 'loadable_module',
523       'dependencies': [
524         '../base/base.gyp:base',
525         '../cc/cc.gyp:cc',
526         '../cc/cc.gyp:cc_surfaces',
527         '../ui/gfx/gfx.gyp:gfx_geometry',
528         'mojo_base.gyp:mojo_application_chromium',
529         'mojo_cc_support',
530         'mojo_geometry_bindings',
531         'mojo_geometry_lib',
532         'mojo_gpu_bindings',
533         'mojo_surfaces_bindings',
534         'mojo_surfaces_lib',
535         '<(mojo_system_for_loadable_module)',
536       ],
537       'includes': [
538         'mojo_public_gles2_for_loadable_module.gypi',
539       ],
540       'sources': [
541         'services/surfaces/surfaces_impl.cc',
542         'services/surfaces/surfaces_impl.h',
543         'services/surfaces/surfaces_service_application.cc',
544         'services/surfaces/surfaces_service_application.h',
545         'services/surfaces/surfaces_service_impl.cc',
546         'services/surfaces/surfaces_service_impl.h',
547       ],
548     },
549     {
550       # GN version: //mojo/services/public/cpp/view_manager:common
551       'target_name': 'mojo_view_manager_common',
552       'type': 'static_library',
553       'sources': [
554         'services/public/cpp/view_manager/types.h',
555       ],
556     },
557     {
558       # GN version: //mojo/services/public/interfaces/view_manager
559       'target_name': 'mojo_view_manager_bindings',
560       'type': 'static_library',
561       'sources': [
562         'services/public/interfaces/view_manager/view_manager.mojom',
563         'services/public/interfaces/view_manager/view_manager_constants.mojom',
564       ],
565       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
566       'dependencies': [
567         'mojo_base.gyp:mojo_application_bindings',
568         'mojo_base.gyp:mojo_cpp_bindings',
569         'mojo_geometry_bindings',
570         'mojo_input_events_bindings',
571         'mojo_surface_id_bindings',
572       ],
573       'export_dependent_settings': [
574         'mojo_base.gyp:mojo_application_bindings',
575         'mojo_base.gyp:mojo_cpp_bindings',
576         'mojo_geometry_bindings',
577         'mojo_input_events_bindings',
578         'mojo_surface_id_bindings',
579       ],
580     },
581     {
582       # GN version: //mojo/services/public/cpp/view_manager
583       'target_name': 'mojo_view_manager_lib',
584       'type': 'static_library',
585       'dependencies': [
586         '../base/base.gyp:base',
587         '../cc/cc.gyp:cc_surfaces',
588         '../gpu/gpu.gyp:gpu',
589         '../skia/skia.gyp:skia',
590         '../ui/events/events.gyp:events',
591         '../ui/gfx/gfx.gyp:gfx',
592         '../ui/gfx/gfx.gyp:gfx_geometry',
593         '../third_party/khronos/khronos.gyp:khronos_headers',
594         'mojo_base.gyp:mojo_application_chromium',
595         'mojo_base.gyp:mojo_application_bindings',
596         'mojo_core_window_manager_bindings',
597         'mojo_geometry_bindings',
598         'mojo_geometry_lib',
599         'mojo_surfaces_bindings',
600         'mojo_surfaces_lib',
601         'mojo_view_manager_bindings',
602         'mojo_view_manager_common',
603         'mojo_gpu_bindings',
604       ],
605       'includes': [
606         'mojo_public_gles2_for_loadable_module.gypi',
607       ],
608       'sources': [
609         'services/public/cpp/view_manager/lib/bitmap_uploader.cc',
610         'services/public/cpp/view_manager/lib/bitmap_uploader.h',
611         'services/public/cpp/view_manager/lib/view.cc',
612         'services/public/cpp/view_manager/lib/view_manager_client_factory.cc',
613         'services/public/cpp/view_manager/lib/view_manager_client_impl.cc',
614         'services/public/cpp/view_manager/lib/view_manager_client_impl.h',
615         'services/public/cpp/view_manager/lib/view_manager_context.cc',
616         'services/public/cpp/view_manager/lib/view_observer.cc',
617         'services/public/cpp/view_manager/lib/view_private.cc',
618         'services/public/cpp/view_manager/lib/view_private.h',
619         'services/public/cpp/view_manager/view.h',
620         'services/public/cpp/view_manager/view_manager.h',
621         'services/public/cpp/view_manager/view_manager_client_factory.h',
622         'services/public/cpp/view_manager/view_manager_context.h',
623         'services/public/cpp/view_manager/view_manager_delegate.h',
624         'services/public/cpp/view_manager/view_observer.h',
625         'services/public/cpp/view_manager/window_manager_delegate.h',
626       ],
627       'export_dependent_settings': [
628         'mojo_gpu_bindings',
629         'mojo_surfaces_bindings',
630         'mojo_view_manager_bindings',
631       ],
632     },
633     {
634       # GN version: //mojo/services/public/cpp/view_manager/tests:mojo_view_manager_lib_unittests
635       'target_name': 'mojo_view_manager_lib_unittests',
636       'type': 'executable',
637       'dependencies': [
638         '../base/base.gyp:base',
639         '../base/base.gyp:test_support_base',
640         '../testing/gtest.gyp:gtest',
641         '../ui/gfx/gfx.gyp:gfx',
642         '../ui/gfx/gfx.gyp:gfx_test_support',
643         'mojo_base.gyp:mojo_environment_chromium',
644         'mojo_geometry_bindings',
645         'mojo_geometry_lib',
646         'mojo_shell_test_support',
647         'mojo_view_manager_bindings',
648         'mojo_view_manager_lib',
649       ],
650       'sources': [
651         'services/public/cpp/view_manager/tests/view_unittest.cc',
652         'services/public/cpp/view_manager/tests/view_manager_unittest.cc',
653       ],
654       'conditions': [
655         ['use_aura==1', {
656           'dependencies': [
657             'mojo_view_manager_run_unittests'
658           ],
659         }, {  # use_aura==0
660           'dependencies': [
661             'mojo_base.gyp:mojo_run_all_unittests',
662           ],
663         }],
664       ],
665     },
666     {
667       # GN version: //mojo/services/public/interfaces/surfaces
668       'target_name': 'mojo_surfaces_bindings',
669       'type': 'static_library',
670       'sources': [
671         'services/public/interfaces/surfaces/surfaces.mojom',
672         'services/public/interfaces/surfaces/surfaces_service.mojom',
673         'services/public/interfaces/surfaces/quads.mojom',
674       ],
675       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
676       'dependencies': [
677         'mojo_base.gyp:mojo_cpp_bindings',
678         'mojo_base.gyp:mojo_gles2_bindings',
679         'mojo_geometry_bindings',
680         'mojo_surface_id_bindings',
681       ],
682       'export_dependent_settings': [
683         'mojo_base.gyp:mojo_cpp_bindings',
684         'mojo_base.gyp:mojo_gles2_bindings',
685         'mojo_geometry_bindings',
686         'mojo_surface_id_bindings',
687       ],
688     },
689     {
690       # GN version: //mojo/services/public/interfaces/surfaces:surface_id
691       'target_name': 'mojo_surface_id_bindings',
692       'type': 'static_library',
693       'sources': [
694         'services/public/interfaces/surfaces/surface_id.mojom',
695       ],
696       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
697       'dependencies': [
698         'mojo_base.gyp:mojo_cpp_bindings',
699       ],
700       'export_dependent_settings': [
701         'mojo_base.gyp:mojo_cpp_bindings',
702       ],
703     },
704     {
705       # GN version: //mojo/services/test_service:bindings
706       'target_name': 'mojo_test_service_bindings',
707       'type': 'static_library',
708       'sources': [
709          # TODO(tim): Move to services/public/interfaces?
710         'services/test_service/test_request_tracker.mojom',
711         'services/test_service/test_service.mojom',
712       ],
713       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
714       'export_dependent_settings': [
715         'mojo_base.gyp:mojo_cpp_bindings',
716       ],
717       'dependencies': [
718         'mojo_base.gyp:mojo_cpp_bindings',
719       ],
720     },
721     {
722       # GN version: //mojo/services/test_service
723       'target_name': 'mojo_test_app',
724       'type': 'loadable_module',
725       'dependencies': [
726         '../base/base.gyp:base',
727         'mojo_base.gyp:mojo_utility',
728         'mojo_base.gyp:mojo_application_standalone',
729         'mojo_test_service_bindings',
730         '<(mojo_system_for_loadable_module)',
731       ],
732       'sources': [
733         'services/test_service/test_request_tracker_client_impl.cc',
734         'services/test_service/test_request_tracker_client_impl.h',
735         'services/test_service/test_service_application.cc',
736         'services/test_service/test_service_application.h',
737         'services/test_service/test_service_impl.cc',
738         'services/test_service/test_service_impl.h',
739         'services/test_service/test_time_service_impl.cc',
740         'services/test_service/test_time_service_impl.h',
741       ],
742     },
743     {
744       # GN version: //mojo/services/test_service:request_tracker
745       'target_name': 'mojo_test_request_tracker_app',
746       'type': 'loadable_module',
747       'dependencies': [
748         '../base/base.gyp:base',
749         'mojo_base.gyp:mojo_utility',
750         'mojo_base.gyp:mojo_application_standalone',
751         'mojo_test_service_bindings',
752         '<(mojo_system_for_loadable_module)',
753       ],
754       'sources': [
755         'services/test_service/test_request_tracker_client_impl.cc',
756         'services/test_service/test_request_tracker_client_impl.h',
757         'services/test_service/test_request_tracker_application.cc',
758         'services/test_service/test_request_tracker_application.h',
759         'services/test_service/test_time_service_impl.cc',
760         'services/test_service/test_time_service_impl.h',
761         'services/test_service/test_request_tracker_impl.cc',
762         'services/test_service/test_request_tracker_impl.h',
763       ],
764     },
765     {
766       # GN version: //mojo/services/public/interfaces/window_manager
767       'target_name': 'mojo_core_window_manager_bindings',
768       'type': 'static_library',
769       'sources': [
770         'services/public/interfaces/window_manager/window_manager.mojom',
771       ],
772       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
773       'export_dependent_settings': [
774         'mojo_base.gyp:mojo_cpp_bindings',
775       ],
776       'dependencies': [
777         'mojo_base.gyp:mojo_cpp_bindings',
778       ],
779     },
780   ],
781   'conditions': [
782     ['use_aura==1', {
783       'targets': [
784         {
785           # GN version: //mojo/services/view_manager
786           'target_name': 'mojo_view_manager',
787           'type': 'loadable_module',
788           'dependencies': [
789             '../base/base.gyp:base',
790             '../cc/cc.gyp:cc_surfaces',
791             '../skia/skia.gyp:skia',
792             '../ui/base/ui_base.gyp:ui_base',
793             '../ui/events/events.gyp:events',
794             '../ui/events/events.gyp:events_base',
795             '../ui/gfx/gfx.gyp:gfx',
796             '../ui/gfx/gfx.gyp:gfx_geometry',
797             'mojo_base.gyp:mojo_common_lib',
798             'mojo_base.gyp:mojo_application_chromium',
799             'mojo_base.gyp:mojo_common_lib',
800             'mojo_geometry_bindings',
801             'mojo_geometry_lib',
802             'mojo_gpu_bindings',
803             'mojo_input_events_bindings',
804             'mojo_input_events_lib',
805             'mojo_native_viewport_bindings',
806             'mojo_surfaces_bindings',
807             'mojo_surfaces_lib',
808             'mojo_view_manager_bindings',
809             'mojo_view_manager_common',
810             'mojo_gpu_bindings',
811             '<(mojo_system_for_loadable_module)',
812           ],
813           'sources': [
814             'services/view_manager/access_policy.h',
815             'services/view_manager/access_policy_delegate.h',
816             'services/view_manager/connection_manager.cc',
817             'services/view_manager/connection_manager.h',
818             'services/view_manager/default_access_policy.cc',
819             'services/view_manager/default_access_policy.h',
820             'services/view_manager/display_manager.cc',
821             'services/view_manager/display_manager.h',
822             'services/view_manager/ids.h',
823             'services/view_manager/main.cc',
824             'services/view_manager/server_view.cc',
825             'services/view_manager/server_view.h',
826             'services/view_manager/server_view_delegate.h',
827             'services/view_manager/view_manager_export.h',
828             'services/view_manager/view_manager_init_service_context.cc',
829             'services/view_manager/view_manager_init_service_context.h',
830             'services/view_manager/view_manager_init_service_impl.cc',
831             'services/view_manager/view_manager_init_service_impl.h',
832             'services/view_manager/view_manager_service_impl.cc',
833             'services/view_manager/view_manager_service_impl.h',
834             'services/view_manager/window_manager_access_policy.cc',
835             'services/view_manager/window_manager_access_policy.h',
836           ],
837           'includes': [
838             'mojo_public_gles2_for_loadable_module.gypi',
839           ],
840           'defines': [
841             'MOJO_VIEW_MANAGER_IMPLEMENTATION',
842           ],
843         },
844         {
845           # GN version: //mojo/services/public/cpp/view_manager/lib:run_unittests
846           'target_name': 'mojo_view_manager_run_unittests',
847           'type': 'static_library',
848           'dependencies': [
849             '../base/base.gyp:base',
850             '../base/base.gyp:test_support_base',
851           ],
852           'sources': [
853             'services/public/cpp/view_manager/lib/view_manager_test_suite.cc',
854             'services/public/cpp/view_manager/lib/view_manager_test_suite.h',
855             'services/public/cpp/view_manager/lib/view_manager_unittests.cc',
856           ],
857           'conditions': [
858             ['use_x11==1', {
859               'dependencies': [
860                 '../ui/gfx/x/gfx_x11.gyp:gfx_x11',
861               ],
862             }],
863           ],
864         },
865         {
866           # GN version: //mojo/services/view_manager:mojo_view_manager_unittests
867           'target_name': 'mojo_view_manager_unittests',
868           'type': 'executable',
869           'dependencies': [
870             '../base/base.gyp:base',
871             '../base/base.gyp:test_support_base',
872             '../skia/skia.gyp:skia',
873             '../testing/gtest.gyp:gtest',
874             '../ui/aura/aura.gyp:aura',
875             '../ui/gfx/gfx.gyp:gfx_geometry',
876             'mojo_application_manager',
877             'mojo_base.gyp:mojo_system_impl',
878             'mojo_base.gyp:mojo_application_chromium',
879             'mojo_geometry_bindings',
880             'mojo_geometry_lib',
881             'mojo_input_events_bindings',
882             'mojo_input_events_lib',
883             'mojo_shell_test_support',
884             'mojo_view_manager_bindings',
885             'mojo_view_manager_common',
886             'mojo_view_manager_run_unittests',
887             # Included only to force deps for bots.
888             'mojo_native_viewport_service',
889             'mojo_surfaces_service',
890             'mojo_view_manager',
891           ],
892           'sources': [
893             'services/view_manager/test_change_tracker.cc',
894             'services/view_manager/test_change_tracker.h',
895             'services/view_manager/view_manager_unittest.cc',
896           ],
897           'conditions': [
898              ['OS=="win"', {
899                'dependencies': [
900                  '../ui/gfx/gfx.gyp:gfx',
901                ],
902              }],
903            ],
904         },
905         {
906           'target_name': 'package_mojo_view_manager',
907           'variables': {
908             'app_name': 'mojo_view_manager',
909           },
910           'includes': [ 'build/package_app.gypi' ],
911         },
912         {
913           # GN version: //mojo/services/window_manager:lib
914           'target_name': 'mojo_core_window_manager_lib',
915           'type': 'static_library',
916           'dependencies': [
917             '../base/base.gyp:base',
918             '../ui/base/ui_base.gyp:ui_base',
919             '../ui/gfx/gfx.gyp:gfx',
920             '../ui/gfx/gfx.gyp:gfx_geometry',
921             '../ui/wm/wm.gyp:wm',
922             'mojo_base.gyp:mojo_common_lib',
923             'mojo_base.gyp:mojo_application_chromium',
924             'mojo_aura_support',
925             'mojo_core_window_manager_bindings',
926             'mojo_input_events_lib',
927             'mojo_view_manager_lib',
928           ],
929           'sources': [
930             'services/window_manager/window_manager_app.cc',
931             'services/window_manager/window_manager_app.h',
932             'services/window_manager/window_manager_service_impl.cc',
933             'services/window_manager/window_manager_service_impl.h',
934           ],
935         },
936         {
937           # GN version: //mojo/services/window_manager
938           'target_name': 'mojo_core_window_manager',
939           'type': 'loadable_module',
940           'dependencies': [
941             'mojo_core_window_manager_lib',
942             '<(mojo_system_for_loadable_module)',
943           ],
944           'sources': [
945             'services/window_manager/main.cc',
946           ],
947         },
948         {
949           # GN version: //mojo/services/window_manager:mojo_core_window_manager_unittests
950           'target_name': 'mojo_core_window_manager_unittests',
951           'type': 'executable',
952           'dependencies': [
953             '../base/base.gyp:test_support_base',
954             '../testing/gtest.gyp:gtest',
955             'mojo_application_manager',
956             'mojo_base.gyp:mojo_system_impl',
957             'mojo_base.gyp:mojo_environment_chromium',
958             'mojo_core_window_manager_bindings',
959             'mojo_shell_test_support',
960             'mojo_view_manager_bindings',
961             'mojo_view_manager_lib',
962           ],
963           'sources': [
964             'services/window_manager/window_manager_api_unittest.cc',
965             'services/window_manager/window_manager_unittests.cc',
966           ],
967           'conditions': [
968             ['OS=="linux"', {
969               'dependencies': [
970                 '../third_party/mesa/mesa.gyp:osmesa',
971                 'mojo_native_viewport_service_lib',
972               ],
973             }],
974             ['use_x11==1', {
975               'dependencies': [
976                 '../ui/gfx/x/gfx_x11.gyp:gfx_x11',
977               ],
978             }],
979           ],
980         },
981       ],
982     }],
983   ],