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