• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1{
2  'targets': [
3    {
4      'target_name': 'mojo_echo_bindings',
5      'type': 'static_library',
6      'sources': [
7        'services/dbus_echo/echo.mojom',
8      ],
9      'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
10      'export_dependent_settings': [
11        'mojo_cpp_bindings',
12      ],
13      'dependencies': [
14        'mojo_cpp_bindings',
15      ],
16    },
17    {
18      'target_name': 'mojo_input_events_lib',
19      'type': '<(component)',
20      'defines': [
21        'MOJO_INPUT_EVENTS_IMPLEMENTATION',
22      ],
23      'dependencies': [
24        '../base/base.gyp:base',
25        '../ui/events/events.gyp:events',
26        '../ui/gfx/gfx.gyp:gfx_geometry',
27        'mojo_environment_chromium',
28        'mojo_input_events_bindings',
29        'mojo_geometry_bindings',
30        'mojo_geometry_lib',
31        'mojo_system_impl',
32      ],
33      'sources': [
34        'services/public/cpp/input_events/lib/input_events_type_converters.cc',
35        'services/public/cpp/input_events/input_events_type_converters.h',
36        'services/public/cpp/input_events/mojo_input_events_export.h',
37      ],
38    },
39    {
40      'target_name': 'mojo_input_events_bindings',
41      'type': 'static_library',
42      'sources': [
43        'services/public/interfaces/input_events/input_events.mojom',
44      ],
45      'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
46      'export_dependent_settings': [
47        'mojo_cpp_bindings',
48      ],
49      'dependencies': [
50        'mojo_cpp_bindings',
51        'mojo_geometry_bindings',
52      ],
53    },
54    {
55      'target_name': 'mojo_geometry_bindings',
56      'type': 'static_library',
57      'sources': [
58        'services/public/interfaces/geometry/geometry.mojom',
59      ],
60      'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
61      'dependencies': [
62        'mojo_cpp_bindings',
63      ],
64      'export_dependent_settings': [
65        'mojo_cpp_bindings',
66      ],
67    },
68    {
69      'target_name': 'mojo_geometry_lib',
70      'type': '<(component)',
71      'defines': [
72        'MOJO_GEOMETRY_IMPLEMENTATION',
73      ],
74      'dependencies': [
75        '../ui/gfx/gfx.gyp:gfx_geometry',
76        'mojo_environment_chromium',
77        'mojo_geometry_bindings',
78        'mojo_system_impl',
79      ],
80      'sources': [
81        'services/public/cpp/geometry/lib/geometry_type_converters.cc',
82        'services/public/cpp/geometry/geometry_type_converters.h',
83      ],
84    },
85    {
86      'target_name': 'mojo_gles2_bindings',
87      'type': 'static_library',
88      'sources': [
89        'services/gles2/command_buffer.mojom',
90        'services/gles2/command_buffer_type_conversions.cc',
91        'services/gles2/command_buffer_type_conversions.h',
92        'services/gles2/mojo_buffer_backing.cc',
93        'services/gles2/mojo_buffer_backing.h',
94      ],
95      'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
96      'export_dependent_settings': [
97        'mojo_cpp_bindings',
98      ],
99      'dependencies': [
100        '../gpu/gpu.gyp:command_buffer_common',
101        'mojo_cpp_bindings',
102      ],
103    },
104    {
105      'target_name': 'mojo_gles2_service',
106      'type': 'static_library',
107      'dependencies': [
108        '../base/base.gyp:base',
109        '../gpu/gpu.gyp:command_buffer_service',
110        '../ui/gfx/gfx.gyp:gfx',
111        '../ui/gfx/gfx.gyp:gfx_geometry',
112        '../ui/gl/gl.gyp:gl',
113        'mojo_gles2_bindings',
114      ],
115      'export_dependent_settings': [
116        'mojo_gles2_bindings',
117      ],
118      'sources': [
119        'services/gles2/command_buffer_impl.cc',
120        'services/gles2/command_buffer_impl.h',
121      ],
122    },
123    {
124      'target_name': 'mojo_native_viewport_bindings',
125      'type': 'static_library',
126      'sources': [
127        'services/public/interfaces/native_viewport/native_viewport.mojom',
128      ],
129      'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
130      'export_dependent_settings': [
131        'mojo_cpp_bindings',
132      ],
133      'dependencies': [
134        'mojo_geometry_bindings',
135        'mojo_gles2_bindings',
136        'mojo_input_events_bindings',
137        'mojo_cpp_bindings',
138      ],
139    },
140    {
141      'target_name': 'mojo_native_viewport_service',
142      # This is linked directly into the embedder, so we make it a component.
143      'type': '<(component)',
144      'dependencies': [
145        '../base/base.gyp:base',
146        '../ui/events/events.gyp:events',
147        '../ui/gfx/gfx.gyp:gfx',
148        '../ui/gfx/gfx.gyp:gfx_geometry',
149        'mojo_application',
150        'mojo_common_lib',
151        'mojo_environment_chromium',
152        'mojo_geometry_bindings',
153        'mojo_geometry_lib',
154        'mojo_gles2_service',
155        'mojo_input_events_lib',
156        'mojo_native_viewport_bindings',
157        'mojo_system_impl',
158      ],
159      'defines': [
160        'MOJO_NATIVE_VIEWPORT_IMPLEMENTATION',
161      ],
162      'sources': [
163        'services/native_viewport/native_viewport.h',
164        'services/native_viewport/native_viewport_android.cc',
165        'services/native_viewport/native_viewport_mac.mm',
166        'services/native_viewport/native_viewport_service.cc',
167        'services/native_viewport/native_viewport_service.h',
168        'services/native_viewport/native_viewport_stub.cc',
169        'services/native_viewport/native_viewport_win.cc',
170        'services/native_viewport/native_viewport_x11.cc',
171      ],
172      'conditions': [
173        ['OS=="win" or OS=="android" or OS=="linux" or OS=="mac"', {
174          'sources!': [
175            'services/native_viewport/native_viewport_stub.cc',
176          ],
177        }],
178        ['OS=="android"', {
179          'dependencies': [
180            'mojo_jni_headers',
181          ],
182        }],
183      ],
184    },
185    {
186      'target_name': 'mojo_navigation_bindings',
187      'type': 'static_library',
188      'sources': [
189        'services/public/interfaces/navigation/navigation.mojom',
190      ],
191      'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
192      'export_dependent_settings': [
193        'mojo_cpp_bindings',
194      ],
195      'dependencies': [
196        'mojo_cpp_bindings',
197        'mojo_network_bindings',
198      ],
199    },
200    {
201      'target_name': 'mojo_network_bindings',
202      'type': 'static_library',
203      'sources': [
204        'services/public/interfaces/network/network_error.mojom',
205        'services/public/interfaces/network/network_service.mojom',
206        'services/public/interfaces/network/url_loader.mojom',
207      ],
208      'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
209      'export_dependent_settings': [
210        'mojo_cpp_bindings',
211      ],
212      'dependencies': [
213        'mojo_cpp_bindings',
214      ],
215    },
216    {
217      'target_name': 'mojo_network_service',
218      'type': 'shared_library',
219      'dependencies': [
220        '../base/base.gyp:base',
221        '../net/net.gyp:net',
222        '../url/url.gyp:url_lib',
223        'mojo_application',
224        'mojo_common_lib',
225        'mojo_environment_chromium',
226        'mojo_network_bindings',
227        'mojo_system_impl',
228      ],
229      'export_dependent_settings': [
230        'mojo_network_bindings',
231      ],
232      'sources': [
233        'services/network/main.cc',
234        'services/network/network_context.cc',
235        'services/network/network_context.h',
236        'services/network/network_service_impl.cc',
237        'services/network/network_service_impl.h',
238        'services/network/url_loader_impl.cc',
239        'services/network/url_loader_impl.h',
240      ],
241    },
242    {
243      'target_name': 'mojo_view_manager_common',
244      'type': 'static_library',
245      'sources': [
246        'services/public/cpp/view_manager/types.h',
247      ],
248    },
249    {
250      'target_name': 'mojo_launcher_bindings',
251      'type': 'static_library',
252      'sources': [
253        'services/public/interfaces/launcher/launcher.mojom',
254      ],
255      'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
256      'export_dependent_settings': [
257        'mojo_cpp_bindings',
258      ],
259      'dependencies': [
260        'mojo_cpp_bindings',
261        'mojo_navigation_bindings',
262      ],
263    },
264    {
265      'target_name': 'mojo_launcher',
266      'type': 'shared_library',
267      'dependencies': [
268        '../base/base.gyp:base',
269        '../url/url.gyp:url_lib',
270        'mojo_application',
271        'mojo_cpp_bindings',
272        'mojo_environment_chromium',
273        'mojo_launcher_bindings',
274        'mojo_network_bindings',
275        'mojo_system_impl',
276        'mojo_utility',
277      ],
278      'sources': [
279        'services/launcher/launcher.cc',
280        'public/cpp/application/lib/mojo_main_chromium.cc',
281      ],
282    },
283    {
284      'target_name': 'mojo_view_manager_bindings',
285      'type': 'static_library',
286      'sources': [
287        'services/public/interfaces/view_manager/view_manager.mojom',
288        'services/public/interfaces/view_manager/view_manager_constants.mojom',
289      ],
290      'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
291      'export_dependent_settings': [
292        'mojo_cpp_bindings',
293      ],
294      'dependencies': [
295        'mojo_cpp_bindings',
296        'mojo_geometry_bindings',
297        'mojo_input_events_bindings',
298      ],
299    },
300    {
301      'target_name': 'mojo_view_manager_lib',
302      'type': 'static_library',
303      'dependencies': [
304        '../base/base.gyp:base',
305        '../skia/skia.gyp:skia',
306        '../ui/gfx/gfx.gyp:gfx',
307        '../ui/gfx/gfx.gyp:gfx_geometry',
308        'mojo_application',
309        'mojo_geometry_bindings',
310        'mojo_geometry_lib',
311        'mojo_service_provider_bindings',
312        'mojo_view_manager_bindings',
313        'mojo_view_manager_common',
314      ],
315      'sources': [
316        'services/public/cpp/view_manager/lib/node.cc',
317        'services/public/cpp/view_manager/lib/node_observer.cc',
318        'services/public/cpp/view_manager/lib/node_private.cc',
319        'services/public/cpp/view_manager/lib/node_private.h',
320        'services/public/cpp/view_manager/lib/view.cc',
321        'services/public/cpp/view_manager/lib/view_private.cc',
322        'services/public/cpp/view_manager/lib/view_private.h',
323        'services/public/cpp/view_manager/lib/view_manager_client_impl.cc',
324        'services/public/cpp/view_manager/lib/view_manager_client_impl.h',
325        'services/public/cpp/view_manager/node.h',
326        'services/public/cpp/view_manager/node_observer.h',
327        'services/public/cpp/view_manager/view.h',
328        'services/public/cpp/view_manager/view_manager.h',
329        'services/public/cpp/view_manager/view_manager_delegate.h',
330        'services/public/cpp/view_manager/view_observer.h',
331      ],
332    },
333    {
334      'target_name': 'mojo_view_manager_lib_unittests',
335      'type': 'executable',
336      'dependencies': [
337        '../base/base.gyp:base',
338        '../base/base.gyp:test_support_base',
339        '../testing/gtest.gyp:gtest',
340        'mojo_environment_chromium',
341        'mojo_geometry_bindings',
342        'mojo_geometry_lib',
343        'mojo_shell_test_support',
344        'mojo_view_manager_bindings',
345        'mojo_view_manager_lib',
346      ],
347      'sources': [
348        'services/public/cpp/view_manager/tests/node_unittest.cc',
349        'services/public/cpp/view_manager/tests/view_unittest.cc',
350        'services/public/cpp/view_manager/tests/view_manager_unittest.cc',
351      ],
352      'conditions': [
353        ['use_aura==1', {
354          'dependencies': [
355            'mojo_view_manager_run_unittests'
356          ],
357        }, {  # use_aura==0
358          'dependencies': [
359            'mojo_run_all_unittests',
360          ],
361        }]
362      ],
363    },
364    {
365      'target_name': 'mojo_surfaces_bindings',
366      'type': 'static_library',
367      'sources': [
368        'services/public/interfaces/surfaces/surfaces.mojom',
369        'services/public/interfaces/surfaces/surface_id.mojom',
370        'services/public/interfaces/surfaces/quads.mojom',
371      ],
372      'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
373      'export_dependent_settings': [
374        'mojo_cpp_bindings',
375      ],
376      'dependencies': [
377        'mojo_cpp_bindings',
378        'mojo_geometry_bindings',
379      ],
380    },
381    {
382      'target_name': 'mojo_test_service_bindings',
383      'type': 'static_library',
384      'sources': [
385        'services/test_service/test_service.mojom',
386      ],
387      'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
388      'export_dependent_settings': [
389        'mojo_cpp_bindings',
390      ],
391      'dependencies': [
392        'mojo_cpp_bindings',
393      ],
394    },
395    {
396      'target_name': 'mojo_test_service',
397      'type': 'shared_library',
398      'dependencies': [
399        '../base/base.gyp:base',
400        'mojo_application',
401        'mojo_environment_standalone',
402        'mojo_test_service_bindings',
403        'mojo_system',
404        'mojo_utility',
405      ],
406      'sources': [
407        'public/cpp/application/lib/mojo_main_standalone.cc',
408        'services/test_service/test_service_application.cc',
409        'services/test_service/test_service_application.h',
410        'services/test_service/test_service_impl.cc',
411        'services/test_service/test_service_impl.h',
412      ],
413    },
414  ],
415  'conditions': [
416    ['use_aura==1', {
417      'targets': [
418        {
419          'target_name': 'mojo_view_manager',
420          'type': '<(component)',
421          'dependencies': [
422            '../base/base.gyp:base',
423            '../cc/cc.gyp:cc',
424            '../skia/skia.gyp:skia',
425            '../ui/aura/aura.gyp:aura',
426            '../ui/base/ui_base.gyp:ui_base',
427            '../ui/compositor/compositor.gyp:compositor',
428            '../ui/events/events.gyp:events',
429            '../ui/events/events.gyp:events_base',
430            '../ui/gfx/gfx.gyp:gfx',
431            '../ui/gfx/gfx.gyp:gfx_geometry',
432            '../ui/gl/gl.gyp:gl',
433            '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
434            'mojo_application',
435            'mojo_cc_support',
436            'mojo_common_lib',
437            'mojo_environment_chromium',
438            'mojo_geometry_bindings',
439            'mojo_geometry_lib',
440            'mojo_gles2',
441            'mojo_input_events_bindings',
442            'mojo_input_events_lib',
443            'mojo_native_viewport_bindings',
444            'mojo_system_impl',
445            'mojo_view_manager_bindings',
446            'mojo_view_manager_common',
447          ],
448          'sources': [
449            'public/cpp/application/lib/mojo_main_chromium.cc',
450            'services/view_manager/ids.h',
451            'services/view_manager/main.cc',
452            'services/view_manager/node.cc',
453            'services/view_manager/node.h',
454            'services/view_manager/node_delegate.h',
455            'services/view_manager/root_node_manager.cc',
456            'services/view_manager/root_node_manager.h',
457            'services/view_manager/root_view_manager.cc',
458            'services/view_manager/root_view_manager.h',
459            'services/view_manager/root_view_manager_delegate.h',
460            'services/view_manager/screen_impl.cc',
461            'services/view_manager/screen_impl.h',
462            'services/view_manager/view.cc',
463            'services/view_manager/view.h',
464            'services/view_manager/view_manager_export.h',
465            'services/view_manager/view_manager_init_service_impl.cc',
466            'services/view_manager/view_manager_init_service_impl.h',
467            'services/view_manager/view_manager_service_impl.cc',
468            'services/view_manager/view_manager_service_impl.h',
469            'services/view_manager/context_factory_impl.cc',
470            'services/view_manager/context_factory_impl.h',
471            'services/view_manager/window_tree_host_impl.cc',
472            'services/view_manager/window_tree_host_impl.h',
473          ],
474          'defines': [
475            'MOJO_VIEW_MANAGER_IMPLEMENTATION',
476          ],
477        },
478        {
479          'target_name': 'mojo_view_manager_run_unittests',
480          'type': 'static_library',
481          'dependencies': [
482            '../base/base.gyp:base',
483            '../base/base.gyp:test_support_base',
484            '../ui/gl/gl.gyp:gl',
485          ],
486          'sources': [
487            'services/public/cpp/view_manager/lib/view_manager_test_suite.cc',
488            'services/public/cpp/view_manager/lib/view_manager_test_suite.h',
489            'services/public/cpp/view_manager/lib/view_manager_unittests.cc',
490          ],
491        },
492        {
493          'target_name': 'mojo_view_manager_unittests',
494          'type': 'executable',
495          'dependencies': [
496            '../base/base.gyp:base',
497            '../base/base.gyp:test_support_base',
498            '../skia/skia.gyp:skia',
499            '../testing/gtest.gyp:gtest',
500            '../ui/aura/aura.gyp:aura',
501            '../ui/gfx/gfx.gyp:gfx_geometry',
502            '../ui/gl/gl.gyp:gl',
503            'mojo_application',
504            'mojo_environment_chromium',
505            'mojo_geometry_bindings',
506            'mojo_geometry_lib',
507            'mojo_input_events_bindings',
508            'mojo_input_events_lib',
509            'mojo_service_manager',
510            'mojo_shell_test_support',
511            'mojo_system_impl',
512            'mojo_view_manager_bindings',
513            'mojo_view_manager_common',
514            'mojo_view_manager_run_unittests',
515          ],
516          'sources': [
517            'services/view_manager/test_change_tracker.cc',
518            'services/view_manager/test_change_tracker.h',
519            'services/view_manager/view_manager_unittest.cc',
520          ],
521        },
522        {
523          'target_name': 'package_mojo_view_manager',
524          'variables': {
525            'app_name': 'mojo_view_manager',
526          },
527          'includes': [ 'build/package_app.gypi' ],
528        },
529      ],
530    }],
531    ['OS=="linux"', {
532      'targets': [
533        {
534          'target_name': 'mojo_dbus_echo_service',
535          'type': 'executable',
536          'dependencies': [
537            '../base/base.gyp:base',
538            '../build/linux/system.gyp:dbus',
539            '../dbus/dbus.gyp:dbus',
540            'mojo_application',
541            'mojo_common_lib',
542            'mojo_dbus_service',
543            'mojo_echo_bindings',
544            'mojo_environment_chromium',
545            'mojo_system_impl',
546          ],
547          'sources': [
548            'services/dbus_echo/dbus_echo_service.cc',
549          ],
550        },
551      ],
552    }],
553  ],
554}
555