Disable PrintPreviewTest.TaskManagerNewPrintPreview.
[chromium-blink-merge.git] / mojo / mojo_services.gypi
blob1cbad216da503e6951bdb0ee5f16fc55fe11c5b1
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_headless.cc',
368         'services/native_viewport/platform_viewport_headless.h',
369         'services/native_viewport/platform_viewport_mac.mm',
370         'services/native_viewport/platform_viewport_ozone.cc',
371         'services/native_viewport/platform_viewport_stub.cc',
372         'services/native_viewport/platform_viewport_win.cc',
373         'services/native_viewport/platform_viewport_x11.cc',
374         'services/native_viewport/viewport_surface.cc',
375         'services/native_viewport/viewport_surface.h',
376       ],
377       'conditions': [
378         ['OS=="win" or OS=="android" or OS=="linux" or OS=="mac"', {
379           'sources!': [
380             'services/native_viewport/platform_viewport_stub.cc',
381           ],
382         }],
383         ['OS=="android"', {
384           'dependencies': [
385             'mojo_base.gyp:mojo_jni_headers',
386           ],
387         }],
388         ['OS=="win"', {
389           'dependencies': [
390             '../ui/platform_window/win/win_window.gyp:win_window',
391           ],
392         }],
393         ['use_x11==1', {
394           'dependencies': [
395             '../ui/platform_window/x11/x11_window.gyp:x11_window',
396             '../ui/events/platform/x11/x11_events_platform.gyp:x11_events_platform',
397           ],
398         }],
399         ['use_ozone==1', {
400           'dependencies': [
401             '../ui/ozone/ozone.gyp:ozone',
402           ],
403         }],
404       ],
405     },
406     {
407       'target_name': 'mojo_native_viewport_service',
408       'type': 'loadable_module',
409       'dependencies': [
410         'mojo_native_viewport_bindings',
411         'mojo_native_viewport_service_lib',
412         '<(mojo_system_for_loadable_module)',
413       ],
414       'export_dependent_settings': [
415         'mojo_native_viewport_bindings',
416       ],
417       'sources': [
418         'services/native_viewport/main.cc',
419       ],
420     },
421     {
422       # GN version: //mojo/services/public/interfaces/navigation
423       'target_name': 'mojo_navigation_bindings',
424       'type': 'static_library',
425       'sources': [
426         'services/public/interfaces/navigation/navigation.mojom',
427       ],
428       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
429       'export_dependent_settings': [
430         'mojo_base.gyp:mojo_cpp_bindings',
431       ],
432       'dependencies': [
433         'mojo_base.gyp:mojo_cpp_bindings',
434         'mojo_network_bindings',
435       ],
436     },
437     {
438       # GN version: //mojo/services/public/interfaces/content_handler
439       'target_name': 'mojo_content_handler_bindings',
440       'type': 'static_library',
441       'sources': [
442         'services/public/interfaces/content_handler/content_handler.mojom',
443       ],
444       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
445       'export_dependent_settings': [
446         'mojo_base.gyp:mojo_cpp_bindings',
447       ],
448       'dependencies': [
449         'mojo_base.gyp:mojo_application_bindings',
450         'mojo_base.gyp:mojo_cpp_bindings',
451         'mojo_network_bindings',
452       ],
453     },
454     {
455       # GN version: //mojo/services/public/interfaces/network
456       'target_name': 'mojo_network_bindings',
457       'type': 'static_library',
458       'sources': [
459         'services/public/interfaces/network/cookie_store.mojom',
460         'services/public/interfaces/network/net_address.mojom',
461         'services/public/interfaces/network/network_error.mojom',
462         'services/public/interfaces/network/network_service.mojom',
463         'services/public/interfaces/network/udp_socket.mojom',
464         'services/public/interfaces/network/url_loader.mojom',
465         'services/public/interfaces/network/web_socket.mojom',
466       ],
467       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
468       'export_dependent_settings': [
469         'mojo_base.gyp:mojo_cpp_bindings',
470       ],
471       'dependencies': [
472         'mojo_base.gyp:mojo_cpp_bindings',
473       ],
474     },
475     {
476       # GN version: //mojo/services/network:lib
477       'target_name': 'mojo_network_service_lib',
478       'type': 'static_library',
479       'dependencies': [
480         '../base/base.gyp:base',
481         '../net/net.gyp:net',
482         '../url/url.gyp:url_lib',
483         'mojo_base.gyp:mojo_common_lib',
484         'mojo_base.gyp:mojo_application_chromium',
485         'mojo_network_bindings',
486       ],
487       'export_dependent_settings': [
488         'mojo_network_bindings',
489       ],
490       'sources': [
491         'services/network/cookie_store_impl.cc',
492         'services/network/cookie_store_impl.h',
493         'services/network/network_context.cc',
494         'services/network/network_context.h',
495         'services/network/network_service_impl.cc',
496         'services/network/network_service_impl.h',
497         'services/network/url_loader_impl.cc',
498         'services/network/url_loader_impl.h',
499         'services/network/web_socket_impl.cc',
500         'services/network/web_socket_impl.h',
501         'services/public/cpp/network/web_socket_read_queue.cc',
502         'services/public/cpp/network/web_socket_read_queue.h',
503         'services/public/cpp/network/web_socket_write_queue.cc',
504         'services/public/cpp/network/web_socket_write_queue.h',
505       ],
506     },
507     {
508       # GN version: //mojo/services/network
509       'target_name': 'mojo_network_service',
510       'type': 'loadable_module',
511       'dependencies': [
512         'mojo_network_bindings',
513         'mojo_network_service_lib',
514         '<(mojo_system_for_loadable_module)',
515       ],
516       'export_dependent_settings': [
517         'mojo_network_bindings',
518       ],
519       'sources': [
520         'services/network/main.cc',
521       ],
522     },
523     {
524       # GN version: //mojo/services/surfaces
525       'target_name': 'mojo_surfaces_service',
526       'type': 'loadable_module',
527       'dependencies': [
528         '../base/base.gyp:base',
529         '../cc/cc.gyp:cc',
530         '../cc/cc.gyp:cc_surfaces',
531         '../ui/gfx/gfx.gyp:gfx_geometry',
532         'mojo_base.gyp:mojo_application_chromium',
533         'mojo_cc_support',
534         'mojo_geometry_bindings',
535         'mojo_geometry_lib',
536         'mojo_gpu_bindings',
537         'mojo_surfaces_bindings',
538         'mojo_surfaces_lib',
539         '<(mojo_system_for_loadable_module)',
540       ],
541       'includes': [
542         'mojo_public_gles2_for_loadable_module.gypi',
543       ],
544       'sources': [
545         'services/surfaces/surfaces_impl.cc',
546         'services/surfaces/surfaces_impl.h',
547         'services/surfaces/surfaces_service_application.cc',
548         'services/surfaces/surfaces_service_application.h',
549         'services/surfaces/surfaces_service_impl.cc',
550         'services/surfaces/surfaces_service_impl.h',
551       ],
552     },
553     {
554       # GN version: //mojo/services/public/cpp/view_manager:common
555       'target_name': 'mojo_view_manager_common',
556       'type': 'static_library',
557       'sources': [
558         'services/public/cpp/view_manager/types.h',
559       ],
560     },
561     {
562       # GN version: //mojo/services/public/interfaces/view_manager
563       'target_name': 'mojo_view_manager_bindings',
564       'type': 'static_library',
565       'sources': [
566         'services/public/interfaces/view_manager/view_manager.mojom',
567         'services/public/interfaces/view_manager/view_manager_constants.mojom',
568       ],
569       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
570       'dependencies': [
571         'mojo_base.gyp:mojo_application_bindings',
572         'mojo_base.gyp:mojo_cpp_bindings',
573         'mojo_geometry_bindings',
574         'mojo_input_events_bindings',
575         'mojo_surface_id_bindings',
576       ],
577       'export_dependent_settings': [
578         'mojo_base.gyp:mojo_application_bindings',
579         'mojo_base.gyp:mojo_cpp_bindings',
580         'mojo_geometry_bindings',
581         'mojo_input_events_bindings',
582         'mojo_surface_id_bindings',
583       ],
584     },
585     {
586       # GN version: //mojo/services/public/cpp/view_manager
587       'target_name': 'mojo_view_manager_lib',
588       'type': 'static_library',
589       'dependencies': [
590         '../base/base.gyp:base',
591         '../cc/cc.gyp:cc_surfaces',
592         '../gpu/gpu.gyp:gpu',
593         '../skia/skia.gyp:skia',
594         '../ui/events/events.gyp:events',
595         '../ui/gfx/gfx.gyp:gfx',
596         '../ui/gfx/gfx.gyp:gfx_geometry',
597         '../third_party/khronos/khronos.gyp:khronos_headers',
598         'mojo_base.gyp:mojo_application_chromium',
599         'mojo_base.gyp:mojo_application_bindings',
600         'mojo_core_window_manager_bindings',
601         'mojo_geometry_bindings',
602         'mojo_geometry_lib',
603         'mojo_surfaces_bindings',
604         'mojo_surfaces_lib',
605         'mojo_view_manager_bindings',
606         'mojo_view_manager_common',
607         'mojo_gpu_bindings',
608       ],
609       'includes': [
610         'mojo_public_gles2_for_loadable_module.gypi',
611       ],
612       'sources': [
613         'services/public/cpp/view_manager/lib/bitmap_uploader.cc',
614         'services/public/cpp/view_manager/lib/bitmap_uploader.h',
615         'services/public/cpp/view_manager/lib/view.cc',
616         'services/public/cpp/view_manager/lib/view_manager_client_factory.cc',
617         'services/public/cpp/view_manager/lib/view_manager_client_impl.cc',
618         'services/public/cpp/view_manager/lib/view_manager_client_impl.h',
619         'services/public/cpp/view_manager/lib/view_manager_context.cc',
620         'services/public/cpp/view_manager/lib/view_observer.cc',
621         'services/public/cpp/view_manager/lib/view_private.cc',
622         'services/public/cpp/view_manager/lib/view_private.h',
623         'services/public/cpp/view_manager/view.h',
624         'services/public/cpp/view_manager/view_manager.h',
625         'services/public/cpp/view_manager/view_manager_client_factory.h',
626         'services/public/cpp/view_manager/view_manager_context.h',
627         'services/public/cpp/view_manager/view_manager_delegate.h',
628         'services/public/cpp/view_manager/view_observer.h',
629         'services/public/cpp/view_manager/window_manager_delegate.h',
630       ],
631       'export_dependent_settings': [
632         'mojo_gpu_bindings',
633         'mojo_surfaces_bindings',
634         'mojo_view_manager_bindings',
635       ],
636     },
637     {
638       # GN version: //mojo/services/public/cpp/view_manager/tests:mojo_view_manager_lib_unittests
639       'target_name': 'mojo_view_manager_lib_unittests',
640       'type': 'executable',
641       'dependencies': [
642         '../base/base.gyp:base',
643         '../base/base.gyp:test_support_base',
644         '../testing/gtest.gyp:gtest',
645         '../ui/gfx/gfx.gyp:gfx',
646         '../ui/gfx/gfx.gyp:gfx_test_support',
647         'mojo_base.gyp:mojo_environment_chromium',
648         'mojo_geometry_bindings',
649         'mojo_geometry_lib',
650         'mojo_shell_test_support',
651         'mojo_view_manager_bindings',
652         'mojo_view_manager_lib',
653       ],
654       'sources': [
655         'services/public/cpp/view_manager/tests/view_unittest.cc',
656         'services/public/cpp/view_manager/tests/view_manager_unittest.cc',
657       ],
658       'conditions': [
659         ['use_aura==1', {
660           'dependencies': [
661             'mojo_view_manager_run_unittests'
662           ],
663         }, {  # use_aura==0
664           'dependencies': [
665             'mojo_base.gyp:mojo_run_all_unittests',
666           ],
667         }],
668       ],
669     },
670     {
671       # GN version: //mojo/services/public/interfaces/surfaces
672       'target_name': 'mojo_surfaces_bindings',
673       'type': 'static_library',
674       'sources': [
675         'services/public/interfaces/surfaces/surfaces.mojom',
676         'services/public/interfaces/surfaces/surfaces_service.mojom',
677         'services/public/interfaces/surfaces/quads.mojom',
678       ],
679       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
680       'dependencies': [
681         'mojo_base.gyp:mojo_cpp_bindings',
682         'mojo_base.gyp:mojo_gles2_bindings',
683         'mojo_geometry_bindings',
684         'mojo_surface_id_bindings',
685       ],
686       'export_dependent_settings': [
687         'mojo_base.gyp:mojo_cpp_bindings',
688         'mojo_base.gyp:mojo_gles2_bindings',
689         'mojo_geometry_bindings',
690         'mojo_surface_id_bindings',
691       ],
692     },
693     {
694       # GN version: //mojo/services/public/interfaces/surfaces:surface_id
695       'target_name': 'mojo_surface_id_bindings',
696       'type': 'static_library',
697       'sources': [
698         'services/public/interfaces/surfaces/surface_id.mojom',
699       ],
700       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
701       'dependencies': [
702         'mojo_base.gyp:mojo_cpp_bindings',
703       ],
704       'export_dependent_settings': [
705         'mojo_base.gyp:mojo_cpp_bindings',
706       ],
707     },
708     {
709       # GN version: //mojo/services/test_service:bindings
710       'target_name': 'mojo_test_service_bindings',
711       'type': 'static_library',
712       'sources': [
713          # TODO(tim): Move to services/public/interfaces?
714         'services/test_service/test_request_tracker.mojom',
715         'services/test_service/test_service.mojom',
716       ],
717       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
718       'export_dependent_settings': [
719         'mojo_base.gyp:mojo_cpp_bindings',
720       ],
721       'dependencies': [
722         'mojo_base.gyp:mojo_cpp_bindings',
723       ],
724     },
725     {
726       # GN version: //mojo/services/test_service
727       'target_name': 'mojo_test_app',
728       'type': 'loadable_module',
729       'dependencies': [
730         '../base/base.gyp:base',
731         'mojo_base.gyp:mojo_utility',
732         'mojo_base.gyp:mojo_application_standalone',
733         'mojo_test_service_bindings',
734         '<(mojo_system_for_loadable_module)',
735       ],
736       'sources': [
737         'services/test_service/test_request_tracker_client_impl.cc',
738         'services/test_service/test_request_tracker_client_impl.h',
739         'services/test_service/test_service_application.cc',
740         'services/test_service/test_service_application.h',
741         'services/test_service/test_service_impl.cc',
742         'services/test_service/test_service_impl.h',
743         'services/test_service/test_time_service_impl.cc',
744         'services/test_service/test_time_service_impl.h',
745       ],
746     },
747     {
748       # GN version: //mojo/services/test_service:request_tracker
749       'target_name': 'mojo_test_request_tracker_app',
750       'type': 'loadable_module',
751       'dependencies': [
752         '../base/base.gyp:base',
753         'mojo_base.gyp:mojo_utility',
754         'mojo_base.gyp:mojo_application_standalone',
755         'mojo_test_service_bindings',
756         '<(mojo_system_for_loadable_module)',
757       ],
758       'sources': [
759         'services/test_service/test_request_tracker_client_impl.cc',
760         'services/test_service/test_request_tracker_client_impl.h',
761         'services/test_service/test_request_tracker_application.cc',
762         'services/test_service/test_request_tracker_application.h',
763         'services/test_service/test_time_service_impl.cc',
764         'services/test_service/test_time_service_impl.h',
765         'services/test_service/test_request_tracker_impl.cc',
766         'services/test_service/test_request_tracker_impl.h',
767       ],
768     },
769     {
770       # GN version: //mojo/services/public/interfaces/window_manager
771       'target_name': 'mojo_core_window_manager_bindings',
772       'type': 'static_library',
773       'sources': [
774         'services/public/interfaces/window_manager/window_manager.mojom',
775       ],
776       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
777       'export_dependent_settings': [
778         'mojo_base.gyp:mojo_cpp_bindings',
779       ],
780       'dependencies': [
781         'mojo_base.gyp:mojo_cpp_bindings',
782       ],
783     },
784   ],
785   'conditions': [
786     ['use_aura==1', {
787       'targets': [
788         {
789           # GN version: //mojo/services/view_manager
790           'target_name': 'mojo_view_manager',
791           'type': 'loadable_module',
792           'dependencies': [
793             '../base/base.gyp:base',
794             '../cc/cc.gyp:cc_surfaces',
795             '../skia/skia.gyp:skia',
796             '../ui/base/ui_base.gyp:ui_base',
797             '../ui/events/events.gyp:events',
798             '../ui/events/events.gyp:events_base',
799             '../ui/gfx/gfx.gyp:gfx',
800             '../ui/gfx/gfx.gyp:gfx_geometry',
801             'mojo_base.gyp:mojo_common_lib',
802             'mojo_base.gyp:mojo_application_chromium',
803             'mojo_base.gyp:mojo_common_lib',
804             'mojo_geometry_bindings',
805             'mojo_geometry_lib',
806             'mojo_gpu_bindings',
807             'mojo_input_events_bindings',
808             'mojo_input_events_lib',
809             'mojo_native_viewport_bindings',
810             'mojo_surfaces_bindings',
811             'mojo_surfaces_lib',
812             'mojo_view_manager_bindings',
813             'mojo_view_manager_common',
814             'mojo_gpu_bindings',
815             '<(mojo_system_for_loadable_module)',
816           ],
817           'sources': [
818             'services/view_manager/access_policy.h',
819             'services/view_manager/access_policy_delegate.h',
820             'services/view_manager/connection_manager.cc',
821             'services/view_manager/connection_manager.h',
822             'services/view_manager/default_access_policy.cc',
823             'services/view_manager/default_access_policy.h',
824             'services/view_manager/display_manager.cc',
825             'services/view_manager/display_manager.h',
826             'services/view_manager/ids.h',
827             'services/view_manager/main.cc',
828             'services/view_manager/server_view.cc',
829             'services/view_manager/server_view.h',
830             'services/view_manager/server_view_delegate.h',
831             'services/view_manager/view_manager_export.h',
832             'services/view_manager/view_manager_init_service_context.cc',
833             'services/view_manager/view_manager_init_service_context.h',
834             'services/view_manager/view_manager_init_service_impl.cc',
835             'services/view_manager/view_manager_init_service_impl.h',
836             'services/view_manager/view_manager_service_impl.cc',
837             'services/view_manager/view_manager_service_impl.h',
838             'services/view_manager/window_manager_access_policy.cc',
839             'services/view_manager/window_manager_access_policy.h',
840           ],
841           'includes': [
842             'mojo_public_gles2_for_loadable_module.gypi',
843           ],
844           'defines': [
845             'MOJO_VIEW_MANAGER_IMPLEMENTATION',
846           ],
847         },
848         {
849           # GN version: //mojo/services/public/cpp/view_manager/lib:run_unittests
850           'target_name': 'mojo_view_manager_run_unittests',
851           'type': 'static_library',
852           'dependencies': [
853             '../base/base.gyp:base',
854             '../base/base.gyp:test_support_base',
855           ],
856           'sources': [
857             'services/public/cpp/view_manager/lib/view_manager_test_suite.cc',
858             'services/public/cpp/view_manager/lib/view_manager_test_suite.h',
859             'services/public/cpp/view_manager/lib/view_manager_unittests.cc',
860           ],
861           'conditions': [
862             ['use_x11==1', {
863               'dependencies': [
864                 '../ui/gfx/x/gfx_x11.gyp:gfx_x11',
865               ],
866             }],
867           ],
868         },
869         {
870           # GN version: //mojo/services/view_manager:mojo_view_manager_unittests
871           'target_name': 'mojo_view_manager_unittests',
872           'type': 'executable',
873           'dependencies': [
874             '../base/base.gyp:base',
875             '../base/base.gyp:test_support_base',
876             '../skia/skia.gyp:skia',
877             '../testing/gtest.gyp:gtest',
878             '../ui/aura/aura.gyp:aura',
879             '../ui/gfx/gfx.gyp:gfx_geometry',
880             'mojo_application_manager',
881             'mojo_base.gyp:mojo_system_impl',
882             'mojo_base.gyp:mojo_application_chromium',
883             'mojo_geometry_bindings',
884             'mojo_geometry_lib',
885             'mojo_input_events_bindings',
886             'mojo_input_events_lib',
887             'mojo_shell_test_support',
888             'mojo_view_manager_bindings',
889             'mojo_view_manager_common',
890             'mojo_view_manager_run_unittests',
891             # Included only to force deps for bots.
892             'mojo_native_viewport_service',
893             'mojo_surfaces_service',
894             'mojo_view_manager',
895           ],
896           'sources': [
897             'services/view_manager/test_change_tracker.cc',
898             'services/view_manager/test_change_tracker.h',
899             'services/view_manager/view_manager_unittest.cc',
900           ],
901           'conditions': [
902              ['OS=="win"', {
903                'dependencies': [
904                  '../ui/gfx/gfx.gyp:gfx',
905                ],
906              }],
907            ],
908         },
909         {
910           'target_name': 'package_mojo_view_manager',
911           'variables': {
912             'app_name': 'mojo_view_manager',
913           },
914           'includes': [ 'build/package_app.gypi' ],
915         },
916         {
917           # GN version: //mojo/services/window_manager:lib
918           'target_name': 'mojo_core_window_manager_lib',
919           'type': 'static_library',
920           'dependencies': [
921             '../base/base.gyp:base',
922             '../ui/base/ui_base.gyp:ui_base',
923             '../ui/gfx/gfx.gyp:gfx',
924             '../ui/gfx/gfx.gyp:gfx_geometry',
925             '../ui/wm/wm.gyp:wm',
926             'mojo_base.gyp:mojo_common_lib',
927             'mojo_base.gyp:mojo_application_chromium',
928             'mojo_aura_support',
929             'mojo_core_window_manager_bindings',
930             'mojo_input_events_lib',
931             'mojo_view_manager_lib',
932           ],
933           'sources': [
934             'services/window_manager/window_manager_app.cc',
935             'services/window_manager/window_manager_app.h',
936             'services/window_manager/window_manager_service_impl.cc',
937             'services/window_manager/window_manager_service_impl.h',
938           ],
939         },
940         {
941           # GN version: //mojo/services/window_manager
942           'target_name': 'mojo_core_window_manager',
943           'type': 'loadable_module',
944           'dependencies': [
945             'mojo_core_window_manager_lib',
946             '<(mojo_system_for_loadable_module)',
947           ],
948           'sources': [
949             'services/window_manager/main.cc',
950           ],
951         },
952         {
953           # GN version: //mojo/services/window_manager:mojo_core_window_manager_unittests
954           'target_name': 'mojo_core_window_manager_unittests',
955           'type': 'executable',
956           'dependencies': [
957             '../base/base.gyp:test_support_base',
958             '../testing/gtest.gyp:gtest',
959             'mojo_application_manager',
960             'mojo_base.gyp:mojo_system_impl',
961             'mojo_base.gyp:mojo_environment_chromium',
962             'mojo_core_window_manager_bindings',
963             'mojo_shell_test_support',
964             'mojo_view_manager_bindings',
965             'mojo_view_manager_lib',
966           ],
967           'sources': [
968             'services/window_manager/window_manager_api_unittest.cc',
969             'services/window_manager/window_manager_unittests.cc',
970           ],
971           'conditions': [
972             ['OS=="linux"', {
973               'dependencies': [
974                 '../third_party/mesa/mesa.gyp:osmesa',
975                 'mojo_native_viewport_service_lib',
976               ],
977             }],
978             ['use_x11==1', {
979               'dependencies': [
980                 '../ui/gfx/x/gfx_x11.gyp:gfx_x11',
981               ],
982             }],
983           ],
984         },
985       ],
986     }],
987   ],