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