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