Cleanup: Consolidate initialization of Android's SecureRandom class.
[chromium-blink-merge.git] / mojo / mojo_services.gypi
blobe26b0d3ecf3587f31db04d93ddfddfb6f03fa075
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_application_chromium',
14         'mojo_base.gyp:mojo_common_lib',
15         'services/public/mojo_services_public.gyp:mojo_clipboard_bindings',
16         'public/mojo_public.gyp:mojo_cpp_bindings',
17         'public/mojo_public.gyp:mojo_utility',
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/clipboard:mojo_clipboard_unittests
28       'target_name': 'mojo_clipboard_unittests',
29       'type': 'executable',
30       'dependencies': [
31         '../base/base.gyp:base',
32         '../base/base.gyp:test_support_base',
33         '../testing/gtest.gyp:gtest',
34         'edk/mojo_edk.gyp:mojo_run_all_unittests',
35         'edk/mojo_edk.gyp:mojo_system_impl',
36         'mojo_application_manager',
37         'mojo_base.gyp:mojo_application_chromium',
38         'services/public/mojo_services_public.gyp:mojo_clipboard_bindings',
39         'mojo_shell_test_support',
40       ],
41       'sources': [
42         'services/clipboard/clipboard_standalone_unittest.cc',
43       ],
44     },
45     {
46       # GN version: //mojo/services/gles2:lib
47       'target_name': 'mojo_gles2_lib',
48       'type': 'static_library',
49       'sources': [
50         'services/gles2/command_buffer_type_conversions.cc',
51         'services/gles2/command_buffer_type_conversions.h',
52         'services/gles2/mojo_buffer_backing.cc',
53         'services/gles2/mojo_buffer_backing.h',
54       ],
55       'dependencies': [
56         '../gpu/gpu.gyp:command_buffer_common',
57         'services/public/mojo_services_public.gyp:mojo_gpu_bindings',
58         'public/mojo_public.gyp:mojo_cpp_bindings',
59       ],
60       'export_dependent_settings': [
61         'services/public/mojo_services_public.gyp:mojo_gpu_bindings',
62         'public/mojo_public.gyp:mojo_cpp_bindings',
63       ],
64     },
65     {
66       # GN version: //mojo/services/html_viewer
67       'target_name': 'mojo_html_viewer',
68       'type': 'loadable_module',
69       'dependencies': [
70         '../cc/blink/cc_blink.gyp:cc_blink',
71         '../cc/cc.gyp:cc',
72         '../cc/cc.gyp:cc_surfaces',
73         '../media/blink/media_blink.gyp:media_blink',
74         '../media/media.gyp:media',
75         '../net/net.gyp:net',
76         '../skia/skia.gyp:skia',
77         '../third_party/WebKit/public/blink.gyp:blink',
78         '../ui/native_theme/native_theme.gyp:native_theme',
79         '../url/url.gyp:url_lib',
80         'mojo_base.gyp:mojo_application_chromium',
81         'mojo_base.gyp:mojo_common_lib',
82         'mojo_cc_support',
83         'services/public/mojo_services_public.gyp:mojo_clipboard_bindings',
84         'services/public/mojo_services_public.gyp:mojo_content_handler_bindings',
85         'services/public/mojo_services_public.gyp:mojo_gpu_bindings',
86         'services/public/mojo_services_public.gyp:mojo_navigation_bindings',
87         'services/public/mojo_services_public.gyp:mojo_network_bindings',
88         'services/public/mojo_services_public.gyp:mojo_surfaces_bindings',
89         'mojo_view_manager_lib',
90         'public/mojo_public.gyp:mojo_cpp_bindings',
91         'public/mojo_public.gyp:mojo_utility',
92         '<(mojo_system_for_loadable_module)',
93       ],
94       'include_dirs': [
95         'third_party/WebKit'
96       ],
97       'includes': [
98         'mojo_public_gles2_for_loadable_module.gypi',
99       ],
100       'sources': [
101         'services/html_viewer/blink_basic_type_converters.cc',
102         'services/html_viewer/blink_basic_type_converters.h',
103         'services/html_viewer/blink_input_events_type_converters.cc',
104         'services/html_viewer/blink_input_events_type_converters.h',
105         'services/html_viewer/blink_platform_impl.cc',
106         'services/html_viewer/blink_platform_impl.h',
107         'services/html_viewer/blink_url_request_type_converters.cc',
108         'services/html_viewer/blink_url_request_type_converters.h',
109         'services/html_viewer/html_viewer.cc',
110         'services/html_viewer/html_document_view.cc',
111         'services/html_viewer/html_document_view.h',
112         'services/html_viewer/webclipboard_impl.cc',
113         'services/html_viewer/webclipboard_impl.h',
114         'services/html_viewer/webcookiejar_impl.cc',
115         'services/html_viewer/webcookiejar_impl.h',
116         'services/html_viewer/webmediaplayer_factory.cc',
117         'services/html_viewer/webmediaplayer_factory.h',
118         'services/html_viewer/webmimeregistry_impl.cc',
119         'services/html_viewer/webmimeregistry_impl.h',
120         'services/html_viewer/websockethandle_impl.cc',
121         'services/html_viewer/websockethandle_impl.h',
122         'services/html_viewer/webstoragenamespace_impl.cc',
123         'services/html_viewer/webstoragenamespace_impl.h',
124         'services/html_viewer/webthemeengine_impl.cc',
125         'services/html_viewer/webthemeengine_impl.h',
126         'services/html_viewer/webthread_impl.cc',
127         'services/html_viewer/webthread_impl.h',
128         'services/html_viewer/weburlloader_impl.cc',
129         'services/html_viewer/weburlloader_impl.h',
130         'services/html_viewer/weblayertreeview_impl.cc',
131         'services/html_viewer/weblayertreeview_impl.h',
132         'services/public/cpp/network/web_socket_read_queue.cc',
133         'services/public/cpp/network/web_socket_read_queue.h',
134         'services/public/cpp/network/web_socket_write_queue.cc',
135         'services/public/cpp/network/web_socket_write_queue.h',
136       ],
137     },
138     {
139       # GN version: //mojo/services/gles2
140       'target_name': 'mojo_gles2_service',
141       'type': 'static_library',
142       'dependencies': [
143         '../base/base.gyp:base',
144         '../gpu/gpu.gyp:command_buffer_service',
145         '../ui/gfx/gfx.gyp:gfx',
146         '../ui/gfx/gfx.gyp:gfx_geometry',
147         '../ui/gl/gl.gyp:gl',
148         'mojo_gles2_lib',
149       ],
150       'export_dependent_settings': [
151         'mojo_gles2_lib',
152       ],
153       'sources': [
154         'services/gles2/command_buffer_impl.cc',
155         'services/gles2/command_buffer_impl.h',
156       ],
157     },
158     {
159       # GN version: //mojo/services/native_viewport
160       'target_name': 'mojo_native_viewport_service_lib',
161       'type': 'static_library',
162       'dependencies': [
163         '../base/base.gyp:base',
164         '../cc/cc.gyp:cc_surfaces',
165         '../skia/skia.gyp:skia',
166         '../ui/events/events.gyp:events',
167         '../ui/gfx/gfx.gyp:gfx',
168         '../ui/gfx/gfx.gyp:gfx_geometry',
169         'mojo_base.gyp:mojo_application_chromium',
170         'mojo_base.gyp:mojo_common_lib',
171         'mojo_geometry_lib',
172         'mojo_gles2_service',
173         'mojo_input_events_lib',
174         'mojo_native_viewport_service_args',
175         'mojo_surfaces_lib',
176         'services/public/mojo_services_public.gyp:mojo_geometry_bindings',
177         'services/public/mojo_services_public.gyp:mojo_gpu_bindings',
178         'services/public/mojo_services_public.gyp:mojo_native_viewport_bindings',
179         'services/public/mojo_services_public.gyp:mojo_surfaces_bindings',
180       ],
181       'export_dependent_settings': [
182         'services/public/mojo_services_public.gyp:mojo_geometry_bindings',
183         'services/public/mojo_services_public.gyp:mojo_gpu_bindings',
184         'services/public/mojo_services_public.gyp:mojo_native_viewport_bindings',
185         'services/public/mojo_services_public.gyp:mojo_surfaces_bindings',
186       ],
187       'sources': [
188         'services/native_viewport/gpu_impl.cc',
189         'services/native_viewport/gpu_impl.h',
190         'services/native_viewport/native_viewport_impl.cc',
191         'services/native_viewport/native_viewport_impl.h',
192         'services/native_viewport/platform_viewport.h',
193         'services/native_viewport/platform_viewport_android.cc',
194         'services/native_viewport/platform_viewport_headless.cc',
195         'services/native_viewport/platform_viewport_headless.h',
196         'services/native_viewport/platform_viewport_mac.mm',
197         'services/native_viewport/platform_viewport_ozone.cc',
198         'services/native_viewport/platform_viewport_stub.cc',
199         'services/native_viewport/platform_viewport_win.cc',
200         'services/native_viewport/platform_viewport_x11.cc',
201         'services/native_viewport/viewport_surface.cc',
202         'services/native_viewport/viewport_surface.h',
203       ],
204       'conditions': [
205         ['OS=="win" or OS=="android" or OS=="linux" or OS=="mac"', {
206           'sources!': [
207             'services/native_viewport/platform_viewport_stub.cc',
208           ],
209         }],
210         ['OS=="android"', {
211           'dependencies': [
212             'mojo_base.gyp:mojo_jni_headers',
213           ],
214         }],
215         ['OS=="win"', {
216           'dependencies': [
217             '../ui/platform_window/win/win_window.gyp:win_window',
218           ],
219         }],
220         ['use_x11==1', {
221           'dependencies': [
222             '../ui/platform_window/x11/x11_window.gyp:x11_window',
223             '../ui/events/platform/x11/x11_events_platform.gyp:x11_events_platform',
224           ],
225         }],
226         ['use_ozone==1', {
227           'dependencies': [
228             '../ui/ozone/ozone.gyp:ozone',
229           ],
230         }],
231       ],
232     },
233     {
234       'target_name': 'mojo_native_viewport_service',
235       'type': 'loadable_module',
236       'dependencies': [
237         'services/public/mojo_services_public.gyp:mojo_native_viewport_bindings',
238         'mojo_native_viewport_service_lib',
239         '<(mojo_system_for_loadable_module)',
240       ],
241       'export_dependent_settings': [
242         'services/public/mojo_services_public.gyp:mojo_native_viewport_bindings',
243       ],
244       'sources': [
245         'services/native_viewport/main.cc',
246       ],
247     },
248     {
249       # GN version: //mojo/services/network:lib
250       'target_name': 'mojo_network_service_lib',
251       'type': 'static_library',
252       'dependencies': [
253         '../base/base.gyp:base',
254         '../net/net.gyp:net',
255         '../url/url.gyp:url_lib',
256         'mojo_base.gyp:mojo_common_lib',
257         'mojo_base.gyp:mojo_application_chromium',
258         'services/public/mojo_services_public.gyp:mojo_network_bindings',
259       ],
260       'export_dependent_settings': [
261         'services/public/mojo_services_public.gyp:mojo_network_bindings',
262       ],
263       'sources': [
264         'services/network/cookie_store_impl.cc',
265         'services/network/cookie_store_impl.h',
266         'services/network/net_adapters.cc',
267         'services/network/net_adapters.h',
268         'services/network/net_address_type_converters.cc',
269         'services/network/net_address_type_converters.h',
270         'services/network/network_context.cc',
271         'services/network/network_context.h',
272         'services/network/network_service_impl.cc',
273         'services/network/network_service_impl.h',
274         'services/network/tcp_bound_socket_impl.cc',
275         'services/network/tcp_bound_socket_impl.h',
276         'services/network/tcp_connected_socket_impl.cc',
277         'services/network/tcp_connected_socket_impl.h',
278         'services/network/tcp_server_socket_impl.cc',
279         'services/network/tcp_server_socket_impl.h',
280         'services/network/udp_socket_impl.cc',
281         'services/network/udp_socket_impl.h',
282         'services/network/url_loader_impl.cc',
283         'services/network/url_loader_impl.h',
284         'services/network/web_socket_impl.cc',
285         'services/network/web_socket_impl.h',
286         'services/public/cpp/network/web_socket_read_queue.cc',
287         'services/public/cpp/network/web_socket_read_queue.h',
288         'services/public/cpp/network/web_socket_write_queue.cc',
289         'services/public/cpp/network/web_socket_write_queue.h',
290       ],
291     },
292     {
293       # GN version: //mojo/services/network
294       'target_name': 'mojo_network_service',
295       'type': 'loadable_module',
296       'dependencies': [
297         'services/public/mojo_services_public.gyp:mojo_network_bindings',
298         'mojo_network_service_lib',
299         '<(mojo_system_for_loadable_module)',
300       ],
301       'export_dependent_settings': [
302         'services/public/mojo_services_public.gyp:mojo_network_bindings',
303       ],
304       'sources': [
305         'services/network/main.cc',
306       ],
307     },
308     {
309       # GN version: //mojo/services/network:unittests
310       'target_name': 'mojo_network_service_unittests',
311       'type': 'executable',
312       'dependencies': [
313         '../base/base.gyp:base',
314         '../base/base.gyp:test_support_base',
315         '../testing/gtest.gyp:gtest',
316         'edk/mojo_edk.gyp:mojo_run_all_unittests',
317         'edk/mojo_edk.gyp:mojo_system_impl',
318         'mojo_application_manager',
319         'mojo_base.gyp:mojo_environment_chromium',
320         'mojo_network_service',
321         'mojo_shell_test_support',
322         'services/public/mojo_services_public.gyp:mojo_network_bindings',
323       ],
324       'sources': [
325         'services/network/udp_socket_unittest.cc',
326       ],
327     },
328     {
329       # GN version: //mojo/services/surfaces
330       'target_name': 'mojo_surfaces_service',
331       'type': 'loadable_module',
332       'dependencies': [
333         '../base/base.gyp:base',
334         '../cc/cc.gyp:cc',
335         '../cc/cc.gyp:cc_surfaces',
336         '../ui/gfx/gfx.gyp:gfx_geometry',
337         'mojo_base.gyp:mojo_application_chromium',
338         'mojo_cc_support',
339         'mojo_geometry_lib',
340         'mojo_surfaces_lib',
341         'services/public/mojo_services_public.gyp:mojo_geometry_bindings',
342         'services/public/mojo_services_public.gyp:mojo_gpu_bindings',
343         'services/public/mojo_services_public.gyp:mojo_surfaces_bindings',
344         '<(mojo_system_for_loadable_module)',
345       ],
346       'includes': [
347         'mojo_public_gles2_for_loadable_module.gypi',
348       ],
349       'sources': [
350         'services/surfaces/surfaces_impl.cc',
351         'services/surfaces/surfaces_impl.h',
352         'services/surfaces/surfaces_service_application.cc',
353         'services/surfaces/surfaces_service_application.h',
354         'services/surfaces/surfaces_service_impl.cc',
355         'services/surfaces/surfaces_service_impl.h',
356       ],
357     },
358     {
359       # GN version: //mojo/services/public/cpp/view_manager/tests:mojo_view_manager_lib_unittests
360       'target_name': 'mojo_view_manager_lib_unittests',
361       'type': 'executable',
362       'dependencies': [
363         '../base/base.gyp:base',
364         '../base/base.gyp:test_support_base',
365         '../testing/gtest.gyp:gtest',
366         '../ui/gfx/gfx.gyp:gfx',
367         '../ui/gfx/gfx.gyp:gfx_test_support',
368         'mojo.gyp:mojo_shell_test_support',
369         'mojo_base.gyp:mojo_environment_chromium',
370         'mojo_geometry_lib',
371         'mojo_view_manager_lib',
372         'services/public/mojo_services_public.gyp:mojo_geometry_bindings',
373         'services/public/mojo_services_public.gyp:mojo_view_manager_bindings',
374       ],
375       'sources': [
376         'services/public/cpp/view_manager/tests/view_unittest.cc',
377         'services/public/cpp/view_manager/tests/view_manager_unittest.cc',
378       ],
379       'conditions': [
380         ['use_aura==1', {
381           'dependencies': [
382             'mojo_view_manager_run_unittests'
383           ],
384         }, {  # use_aura==0
385           'dependencies': [
386             'edk/mojo_edk.gyp:mojo_run_all_unittests',
387           ],
388         }],
389       ],
390     },
391     {
392       # GN version: //mojo/services/public/cpp/view_manager
393       'target_name': 'mojo_view_manager_lib',
394       'type': 'static_library',
395       'dependencies': [
396         '../base/base.gyp:base',
397         '../ui/gfx/gfx.gyp:gfx_geometry',
398         'mojo_base.gyp:mojo_application_chromium',
399         'mojo_geometry_lib',
400         'public/mojo_public.gyp:mojo_application_base',
401         'public/mojo_public.gyp:mojo_application_bindings',
402         'public/mojo_public.gyp:mojo_cpp_bindings',
403         'services/public/mojo_services_public.gyp:mojo_core_window_manager_bindings',
404         'services/public/mojo_services_public.gyp:mojo_geometry_bindings',
405         'services/public/mojo_services_public.gyp:mojo_input_events_bindings',
406         'services/public/mojo_services_public.gyp:mojo_surface_id_bindings',
407         'services/public/mojo_services_public.gyp:mojo_view_manager_bindings',
408         'services/public/mojo_services_public.gyp:mojo_view_manager_common',
409       ],
410       'includes': [
411         'mojo_public_gles2_for_loadable_module.gypi',
412       ],
413       'sources': [
414         'services/public/cpp/view_manager/lib/view.cc',
415         'services/public/cpp/view_manager/lib/view_manager_client_factory.cc',
416         'services/public/cpp/view_manager/lib/view_manager_client_impl.cc',
417         'services/public/cpp/view_manager/lib/view_manager_client_impl.h',
418         'services/public/cpp/view_manager/lib/view_manager_context.cc',
419         'services/public/cpp/view_manager/lib/view_observer.cc',
420         'services/public/cpp/view_manager/lib/view_private.cc',
421         'services/public/cpp/view_manager/lib/view_private.h',
422         'services/public/cpp/view_manager/view.h',
423         'services/public/cpp/view_manager/view_manager.h',
424         'services/public/cpp/view_manager/view_manager_client_factory.h',
425         'services/public/cpp/view_manager/view_manager_context.h',
426         'services/public/cpp/view_manager/view_manager_delegate.h',
427         'services/public/cpp/view_manager/view_observer.h',
428       ],
429       'export_dependent_settings': [
430         'services/public/mojo_services_public.gyp:mojo_view_manager_bindings',
431       ],
432     },
433     {
434       # GN version: //mojo/services/test_service:bindings
435       'target_name': 'mojo_test_service_bindings',
436       'type': 'static_library',
437       'sources': [
438          # TODO(tim): Move to services/public/interfaces?
439         'services/test_service/test_request_tracker.mojom',
440         'services/test_service/test_service.mojom',
441       ],
442       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
443       'export_dependent_settings': [
444         'public/mojo_public.gyp:mojo_cpp_bindings',
445       ],
446       'dependencies': [
447         'public/mojo_public.gyp:mojo_cpp_bindings',
448       ],
449     },
450     {
451       # GN version: //mojo/services/test_service
452       'target_name': 'mojo_test_app',
453       'type': 'loadable_module',
454       'dependencies': [
455         '../base/base.gyp:base',
456         'mojo_test_service_bindings',
457         'public/mojo_public.gyp:mojo_application_standalone',
458         'public/mojo_public.gyp:mojo_utility',
459         '<(mojo_system_for_loadable_module)',
460       ],
461       'sources': [
462         'services/test_service/test_request_tracker_client_impl.cc',
463         'services/test_service/test_request_tracker_client_impl.h',
464         'services/test_service/test_service_application.cc',
465         'services/test_service/test_service_application.h',
466         'services/test_service/test_service_impl.cc',
467         'services/test_service/test_service_impl.h',
468         'services/test_service/test_time_service_impl.cc',
469         'services/test_service/test_time_service_impl.h',
470       ],
471     },
472     {
473       # GN version: //mojo/services/test_service:request_tracker
474       'target_name': 'mojo_test_request_tracker_app',
475       'type': 'loadable_module',
476       'dependencies': [
477         '../base/base.gyp:base',
478         'mojo_test_service_bindings',
479         'public/mojo_public.gyp:mojo_application_standalone',
480         'public/mojo_public.gyp:mojo_utility',
481         '<(mojo_system_for_loadable_module)',
482       ],
483       'sources': [
484         'services/test_service/test_request_tracker_client_impl.cc',
485         'services/test_service/test_request_tracker_client_impl.h',
486         'services/test_service/test_request_tracker_application.cc',
487         'services/test_service/test_request_tracker_application.h',
488         'services/test_service/test_time_service_impl.cc',
489         'services/test_service/test_time_service_impl.h',
490         'services/test_service/test_request_tracker_impl.cc',
491         'services/test_service/test_request_tracker_impl.h',
492       ],
493     },
494     {
495       # GN version: //mojo/services/public/cpp/native_viewport:args
496       'target_name': 'mojo_native_viewport_service_args',
497       'type': 'static_library',
498       'sources': [
499         'services/public/cpp/native_viewport/lib/args.cc',
500         'services/public/cpp/native_viewport/args.h',
501       ],
502       'include_dirs': [
503         '..'
504       ],
505     },
506   ],
507   'conditions': [
508     ['use_aura==1', {
509       'targets': [
510         {
511           # GN version: //mojo/services/view_manager
512           'target_name': 'mojo_view_manager',
513           'type': 'loadable_module',
514           'dependencies': [
515             '../base/base.gyp:base',
516             '../cc/cc.gyp:cc_surfaces',
517             '../skia/skia.gyp:skia',
518             '../ui/base/ui_base.gyp:ui_base',
519             '../ui/events/events.gyp:events',
520             '../ui/events/events.gyp:events_base',
521             '../ui/gfx/gfx.gyp:gfx',
522             '../ui/gfx/gfx.gyp:gfx_geometry',
523             'mojo_base.gyp:mojo_application_chromium',
524             'mojo_base.gyp:mojo_common_lib',
525             'mojo_geometry_lib',
526             'mojo_input_events_lib',
527             'mojo_surfaces_lib',
528             'services/public/mojo_services_public.gyp:mojo_geometry_bindings',
529             'services/public/mojo_services_public.gyp:mojo_gpu_bindings',
530             'services/public/mojo_services_public.gyp:mojo_input_events_bindings',
531             'services/public/mojo_services_public.gyp:mojo_native_viewport_bindings',
532             'services/public/mojo_services_public.gyp:mojo_surfaces_bindings',
533             'services/public/mojo_services_public.gyp:mojo_view_manager_bindings',
534             'services/public/mojo_services_public.gyp:mojo_view_manager_common',
535             'services/public/mojo_services_public.gyp:mojo_window_manager_bindings',
536             '<(mojo_system_for_loadable_module)',
537           ],
538           'sources': [
539             'services/view_manager/access_policy.h',
540             'services/view_manager/access_policy_delegate.h',
541             'services/view_manager/connection_manager.cc',
542             'services/view_manager/connection_manager.h',
543             'services/view_manager/default_access_policy.cc',
544             'services/view_manager/default_access_policy.h',
545             'services/view_manager/display_manager.cc',
546             'services/view_manager/display_manager.h',
547             'services/view_manager/ids.h',
548             'services/view_manager/main.cc',
549             'services/view_manager/server_view.cc',
550             'services/view_manager/server_view.h',
551             'services/view_manager/server_view_delegate.h',
552             'services/view_manager/view_manager_export.h',
553             'services/view_manager/view_manager_init_service_context.cc',
554             'services/view_manager/view_manager_init_service_context.h',
555             'services/view_manager/view_manager_init_service_impl.cc',
556             'services/view_manager/view_manager_init_service_impl.h',
557             'services/view_manager/view_manager_service_impl.cc',
558             'services/view_manager/view_manager_service_impl.h',
559             'services/view_manager/window_manager_access_policy.cc',
560             'services/view_manager/window_manager_access_policy.h',
561             'services/view_manager/window_manager_client_impl.cc',
562             'services/view_manager/window_manager_client_impl.h',
563           ],
564           'includes': [
565             'mojo_public_gles2_for_loadable_module.gypi',
566           ],
567           'defines': [
568             'MOJO_VIEW_MANAGER_IMPLEMENTATION',
569           ],
570         },
571         {
572           # GN version: //mojo/services/view_manager:mojo_view_manager_unittests
573           'target_name': 'mojo_view_manager_unittests',
574           'type': 'executable',
575           'dependencies': [
576             '../base/base.gyp:base',
577             '../base/base.gyp:test_support_base',
578             '../skia/skia.gyp:skia',
579             '../testing/gtest.gyp:gtest',
580             '../ui/aura/aura.gyp:aura',
581             '../ui/gfx/gfx.gyp:gfx_geometry',
582             'edk/mojo_edk.gyp:mojo_system_impl',
583             'mojo_application_manager',
584             'mojo_base.gyp:mojo_application_chromium',
585             'mojo_geometry_lib',
586             'mojo_input_events_lib',
587             'mojo_native_viewport_service_args',
588             'mojo_shell_test_support',
589             'mojo_view_manager_run_unittests',
590             'services/public/mojo_services_public.gyp:mojo_geometry_bindings',
591             'services/public/mojo_services_public.gyp:mojo_input_events_bindings',
592             'services/public/mojo_services_public.gyp:mojo_view_manager_bindings',
593             'services/public/mojo_services_public.gyp:mojo_view_manager_common',
594             'services/public/mojo_services_public.gyp:mojo_window_manager_bindings',
595             # Included only to force deps for bots.
596             'mojo_native_viewport_service',
597             'mojo_surfaces_service',
598             'mojo_view_manager',
599           ],
600           'sources': [
601             'services/view_manager/test_change_tracker.cc',
602             'services/view_manager/test_change_tracker.h',
603             'services/view_manager/view_manager_unittest.cc',
604           ],
605           'conditions': [
606              ['OS=="win"', {
607                'dependencies': [
608                  '../ui/gfx/gfx.gyp:gfx',
609                ],
610              }],
611            ],
612         },
613         {
614           'target_name': 'package_mojo_view_manager',
615           'variables': {
616             'app_name': 'mojo_view_manager',
617           },
618           'includes': [ 'build/package_app.gypi' ],
619         },
620         {
621           # GN version: //mojo/services/window_manager:lib
622           'target_name': 'mojo_core_window_manager_lib',
623           'type': 'static_library',
624           'dependencies': [
625             '../base/base.gyp:base',
626             '../ui/base/ui_base.gyp:ui_base',
627             '../ui/gfx/gfx.gyp:gfx',
628             '../ui/gfx/gfx.gyp:gfx_geometry',
629             '../ui/wm/wm.gyp:wm',
630             'mojo_aura_support',
631             'mojo_base.gyp:mojo_application_chromium',
632             'mojo_base.gyp:mojo_common_lib',
633             'mojo_input_events_lib',
634             'mojo_view_manager_lib',
635             'public/mojo_public.gyp:mojo_application_bindings',
636             'services/public/mojo_services_public.gyp:mojo_core_window_manager_bindings',
637             'services/public/mojo_services_public.gyp:mojo_window_manager_bindings',
638           ],
639           'sources': [
640             'services/window_manager/window_manager_app.cc',
641             'services/window_manager/window_manager_app.h',
642             'services/window_manager/window_manager_delegate.h',
643             'services/window_manager/window_manager_service_impl.cc',
644             'services/window_manager/window_manager_service_impl.h',
645             'services/window_manager/window_manager_service2_impl.cc',
646             'services/window_manager/window_manager_service2_impl.h',
647           ],
648         },
649         {
650           # GN version: //mojo/services/window_manager
651           'target_name': 'mojo_core_window_manager',
652           'type': 'loadable_module',
653           'dependencies': [
654             'mojo_core_window_manager_lib',
655             '<(mojo_system_for_loadable_module)',
656           ],
657           'sources': [
658             'services/window_manager/main.cc',
659           ],
660         },
661         {
662           # GN version: //mojo/services/window_manager:mojo_core_window_manager_unittests
663           'target_name': 'mojo_core_window_manager_unittests',
664           'type': 'executable',
665           'dependencies': [
666             '../base/base.gyp:test_support_base',
667             '../testing/gtest.gyp:gtest',
668             'edk/mojo_edk.gyp:mojo_system_impl',
669             'mojo_application_manager',
670             'mojo_base.gyp:mojo_environment_chromium',
671             'services/public/mojo_services_public.gyp:mojo_core_window_manager_bindings',
672             'mojo_shell_test_support',
673             'services/public/mojo_services_public.gyp:mojo_view_manager_bindings',
674             'mojo_view_manager_lib',
675           ],
676           'sources': [
677             'services/window_manager/window_manager_api_unittest.cc',
678             'services/window_manager/window_manager_unittests.cc',
679           ],
680           'conditions': [
681             ['OS=="linux"', {
682               'dependencies': [
683                 '../third_party/mesa/mesa.gyp:osmesa',
684                 'mojo_native_viewport_service_lib',
685               ],
686             }],
687             ['use_x11==1', {
688               'dependencies': [
689                 '../ui/gfx/x/gfx_x11.gyp:gfx_x11',
690               ],
691             }],
692           ],
693         },
694       ],
695     }],
696   ],