Standardize usage of virtual/override/final in mojo/
[chromium-blink-merge.git] / mojo / mojo.gyp
blob6fdddf25cdacff85c72d7b6d8d7ace8713cf5749
1 # Copyright 2013 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   'target_defaults': {
7     'conditions': [
8       ['mojo_shell_debug_url != ""', {
9         'defines': [
10           'MOJO_SHELL_DEBUG=1',
11           'MOJO_SHELL_DEBUG_URL="<(mojo_shell_debug_url)"',
12          ],
13       }],
14     ],
15   },
16   'includes': [
17     'mojo_apps.gypi',
18     'mojo_converters.gypi',
19     'mojo_services.gypi',
20     'mojo_variables.gypi',
21   ],
22   'targets': [
23     {
24       # GN version: //mojo
25       'target_name': 'mojo',
26       'type': 'none',
27       'dependencies': [
28         'edk/mojo_edk.gyp:mojo_edk',
29         'mojo_application_manager',
30         'mojo_application_manager_unittests',
31         'mojo_apps_js_unittests',
32         'mojo_base.gyp:mojo_base',
33         'mojo_clipboard',
34         'mojo_clipboard_unittests',
35         'mojo_geometry_lib',
36         'mojo_html_viewer',
37         'mojo_input_events_lib',
38         'mojo_js_content_handler',
39         'mojo_js_standalone',
40         'mojo_js_unittests',
41         'mojo_native_viewport_service',
42         'mojo_network_service',
43         'mojo_shell',
44         'mojo_shell_lib',
45         'mojo_shell_tests',
46         'mojo_surfaces_lib',
47         'mojo_surfaces_lib_unittests',
48         'mojo_surfaces_service',
49         'mojo_test_app',
50         'mojo_test_request_tracker_app',
51         'mojo_view_manager_lib_unittests',
52         'services/public/mojo_services_public.gyp:mojo_services_public',
53         'public/mojo_public.gyp:mojo_public',
54       ],
55       'conditions': [
56         ['use_aura==1', {
57           'dependencies': [
58             'mojo_core_window_manager',
59             'mojo_core_window_manager_unittests',
60             'mojo_view_manager',
61             'mojo_view_manager_unittests',
62           ],
63         }],
64         ['OS == "linux"', {
65           'dependencies': [
66             'mojo_external_application_tests',
67           ],
68         }],
69         ['component != "shared_library" and OS == "linux"', {
70           'dependencies': [
71             'mojo_python_bindings',
72             'mojo_python_embedder',
73             'mojo_python_system',
74             'mojo_python',
75           ],
76         }],
77       ]
78     },
79     {
80       # GN version: //mojo/shell:external_service_bindings
81       'target_name': 'mojo_external_service_bindings',
82       'type': 'static_library',
83       'sources': [
84         'shell/external_service.mojom',
85       ],
86       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
87       'export_dependent_settings': [
88         'public/mojo_public.gyp:mojo_cpp_bindings',
89       ],
90       'dependencies': [
91         'public/mojo_public.gyp:mojo_cpp_bindings',
92       ],
93     },
94     {
95       # GN version: //mojo/spy
96       'target_name': 'mojo_spy',
97       'type': 'static_library',
98       'dependencies': [
99         '../base/base.gyp:base',
100         '../net/net.gyp:http_server',
101         '../url/url.gyp:url_lib',
102         'mojo_application_manager',
103       ],
104       'variables': {
105         'mojom_base_output_dir': 'mojo',
106       },
107       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
108       'sources': [
109         'spy/public/spy.mojom',
110         'spy/common.h',
111         'spy/spy.cc',
112         'spy/spy.h',
113         'spy/spy_server_impl.h',
114         'spy/spy_server_impl.cc',
115         'spy/websocket_server.cc',
116         'spy/websocket_server.h',
117       ],
118     },
119     {
120       # GN version: //mojo/shell:lib
121       'target_name': 'mojo_shell_lib',
122       'type': 'static_library',
123       'dependencies': [
124         '../base/base.gyp:base',
125         '../base/base.gyp:base_static',
126         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
127         'edk/mojo_edk.gyp:mojo_system_impl',
128         'mojo_application_manager',
129         'mojo_base.gyp:mojo_application_chromium',
130         'mojo_base.gyp:mojo_common_lib',
131         'mojo_external_service_bindings',
132         'mojo_gles2_impl',
133         'services/public/mojo_services_public.gyp:mojo_network_bindings',
134         'mojo_spy',
135         'public/mojo_public.gyp:mojo_application_bindings',
136       ],
137       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
138       'sources': [
139         'shell/app_child_process.cc',
140         'shell/app_child_process.h',
141         'shell/app_child_process.mojom',
142         'shell/app_child_process_host.cc',
143         'shell/app_child_process_host.h',
144         'shell/child_process.cc',
145         'shell/child_process.h',
146         'shell/child_process_host.cc',
147         'shell/child_process_host.h',
148         'shell/context.cc',
149         'shell/context.h',
150         'shell/dynamic_application_loader.cc',
151         'shell/dynamic_application_loader.h',
152         'shell/dynamic_service_runner.h',
153         'shell/external_application_listener.h',
154         'shell/external_application_listener_posix.cc',
155         'shell/external_application_listener_win.cc',
156         'shell/external_application_registrar.mojom',
157         'shell/filename_util.cc',
158         'shell/filename_util.h',
159         'shell/in_process_dynamic_service_runner.cc',
160         'shell/in_process_dynamic_service_runner.h',
161         'shell/incoming_connection_listener_posix.cc',
162         'shell/incoming_connection_listener_posix.h',
163         'shell/init.cc',
164         'shell/init.h',
165         'shell/mojo_url_resolver.cc',
166         'shell/mojo_url_resolver.h',
167         'shell/out_of_process_dynamic_service_runner.cc',
168         'shell/out_of_process_dynamic_service_runner.h',
169         'shell/switches.cc',
170         'shell/switches.h',
171         'shell/task_runners.cc',
172         'shell/task_runners.h',
173         'shell/test_child_process.cc',
174         'shell/test_child_process.h',
175         'shell/ui_application_loader_android.cc',
176         'shell/ui_application_loader_android.h',
177       ],
178       'conditions': [
179         ['component=="shared_library"', {
180           'dependencies': [
181             '../ui/gl/gl.gyp:gl',
182           ],
183         }],
184         ['OS=="linux"', {
185           'sources': [
186             'shell/external_application_registrar_connection.cc',
187             'shell/external_application_registrar_connection.h',
188           ],
189         }],
190         ['OS=="android"', {
191           'dependencies': [
192             'mojo_network_service_lib',
193             'mojo_native_viewport_service_lib',
194           ],
195           'sources': [
196             'shell/network_application_loader.cc',
197             'shell/network_application_loader.h',
198           ],
199         }],
200       ],
201     },
202     {
203       # GN version: //mojo/shell:test_support
204       'target_name': 'mojo_shell_test_support',
205       'type': 'static_library',
206       'dependencies': [
207         'edk/mojo_edk.gyp:mojo_system_impl',
208         'mojo_shell_lib',
209       ],
210       'sources': [
211         'shell/shell_test_helper.cc',
212         'shell/shell_test_helper.h',
213       ],
214     },
215     {
216       # GN version: //mojo/shell
217       'target_name': 'mojo_shell',
218       'type': 'executable',
219       'dependencies': [
220         '../base/base.gyp:base',
221         'mojo_base.gyp:mojo_common_lib',
222         'mojo_base.gyp:mojo_environment_chromium',
223         'mojo_shell_lib',
224       ],
225       'sources': [
226         'shell/desktop/mojo_main.cc',
227       ],
228       'conditions': [
229         ['component=="shared_library"', {
230           'dependencies': [
231             '../ui/gfx/gfx.gyp:gfx',
232           ],
233         }],
234       ],
235     },
236     {
237       # GN version: //mojo/shell:mojo_shell_tests
238       'target_name': 'mojo_shell_tests',
239       'type': '<(gtest_target_type)',
240       'dependencies': [
241         '../base/base.gyp:base',
242         '../base/base.gyp:base_i18n',
243         '../base/base.gyp:test_support_base',
244         '../testing/gtest.gyp:gtest',
245         '../net/net.gyp:net_test_support',
246         '../url/url.gyp:url_lib',
247         'edk/mojo_edk.gyp:mojo_system_impl',
248         'mojo_application_manager',
249         'mojo_base.gyp:mojo_common_lib',
250         'mojo_base.gyp:mojo_environment_chromium',
251         'mojo_shell_lib',
252         'mojo_test_app',
253         'mojo_test_request_tracker_app',
254         'mojo_test_service_bindings',
255       ],
256       'sources': [
257         'shell/child_process_host_unittest.cc',
258         'shell/dynamic_application_loader_unittest.cc',
259         'shell/in_process_dynamic_service_runner_unittest.cc',
260         'shell/mojo_url_resolver_unittest.cc',
261         'shell/shell_test_base.cc',
262         'shell/shell_test_base.h',
263         'shell/shell_test_base_unittest.cc',
264         'shell/shell_test_main.cc',
265       ],
266       'conditions': [
267         ['OS == "android"', {
268           'dependencies': [
269             '../testing/android/native_test.gyp:native_test_native_code',
270           ],
271         }],
272       ],
273     },
274     {
275       # GN version: //mojo/application_manager
276       'target_name': 'mojo_application_manager',
277       'type': '<(component)',
278       'defines': [
279         'MOJO_APPLICATION_MANAGER_IMPLEMENTATION',
280       ],
281       'dependencies': [
282         '../base/base.gyp:base',
283         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
284         '../url/url.gyp:url_lib',
285         'services/public/mojo_services_public.gyp:mojo_content_handler_bindings',
286         'services/public/mojo_services_public.gyp:mojo_network_bindings',
287         'mojo_base.gyp:mojo_common_lib',
288         'mojo_base.gyp:mojo_environment_chromium',
289         'public/mojo_public.gyp:mojo_application_bindings',
290         '<(mojo_system_for_component)',
291       ],
292       'sources': [
293         'application_manager/application_loader.cc',
294         'application_manager/application_loader.h',
295         'application_manager/application_manager.cc',
296         'application_manager/application_manager.h',
297         'application_manager/application_manager_export.h',
298         'application_manager/background_shell_application_loader.cc',
299         'application_manager/background_shell_application_loader.h',
300       ],
301       'export_dependent_settings': [
302         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
303         'public/mojo_public.gyp:mojo_application_bindings',
304         'services/public/mojo_services_public.gyp:mojo_network_bindings',
305       ],
306     },
307     {
308       # GN version: //mojo/application_manager:mojo_application_manager_unittests
309       'target_name': 'mojo_application_manager_unittests',
310       'type': 'executable',
311       'dependencies': [
312         '../base/base.gyp:base',
313         '../testing/gtest.gyp:gtest',
314         '../url/url.gyp:url_lib',
315         'edk/mojo_edk.gyp:mojo_run_all_unittests',
316         'mojo_application_manager',
317         'mojo_base.gyp:mojo_application_chromium',
318         'mojo_base.gyp:mojo_common_lib',
319         'mojo_base.gyp:mojo_environment_chromium',
320         'public/mojo_public.gyp:mojo_cpp_bindings',
321       ],
322       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
323       'sources': [
324         'application_manager/application_manager_unittest.cc',
325         'application_manager/background_shell_application_loader_unittest.cc',
326         'application_manager/test.mojom',
327       ],
328     },
329     {
330       # GN version: //mojo/cc
331       'target_name': 'mojo_cc_support',
332       'type': 'static_library',
333       'dependencies': [
334         '../base/base.gyp:base',
335         '../cc/cc.gyp:cc',
336         '../cc/cc.gyp:cc_surfaces',
337         '../skia/skia.gyp:skia',
338         '../gpu/gpu.gyp:gles2_implementation',
339         'mojo_geometry_lib',
340         'mojo_surfaces_lib',
341         'services/public/mojo_services_public.gyp:mojo_surfaces_bindings',
342       ],
343       'includes': [
344         'mojo_public_gles2_for_loadable_module.gypi',
345       ],
346       'export_dependent_settings': [
347         'services/public/mojo_services_public.gyp:mojo_surfaces_bindings',
348       ],
349       'sources': [
350         'cc/context_provider_mojo.cc',
351         'cc/context_provider_mojo.h',
352         'cc/direct_output_surface.cc',
353         'cc/direct_output_surface.h',
354         'cc/output_surface_mojo.cc',
355         'cc/output_surface_mojo.h',
356       ],
357     },
358     {
359       # GN version: //mojo/gles2
360       'target_name': 'mojo_gles2_impl',
361       'type': '<(component)',
362       'dependencies': [
363         '../base/base.gyp:base',
364         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
365         '../gpu/gpu.gyp:command_buffer_client',
366         '../gpu/gpu.gyp:command_buffer_common',
367         '../gpu/gpu.gyp:gles2_cmd_helper',
368         '../gpu/gpu.gyp:gles2_implementation',
369         'mojo_base.gyp:mojo_environment_chromium',
370         'mojo_gles2_lib',
371         'services/public/mojo_services_public.gyp:mojo_gpu_bindings',
372         '<(mojo_system_for_component)',
373       ],
374       'defines': [
375         'GLES2_USE_MOJO',
376         'GL_GLEXT_PROTOTYPES',
377         'MOJO_GLES2_IMPLEMENTATION',
378         'MOJO_GLES2_IMPL_IMPLEMENTATION',
379         'MOJO_USE_GLES2_IMPL'
380       ],
381       'direct_dependent_settings': {
382         'defines': [
383           'GLES2_USE_MOJO',
384         ],
385       },
386       'export_dependent_settings': [
387         'services/public/mojo_services_public.gyp:mojo_gpu_bindings',
388       ],
389       'sources': [
390         'gles2/command_buffer_client_impl.cc',
391         'gles2/command_buffer_client_impl.h',
392         'gles2/gles2_impl_export.h',
393         'gles2/gles2_impl.cc',
394         'gles2/gles2_context.cc',
395         'gles2/gles2_context.h',
396       ],
397       'all_dependent_settings': {
398         # Ensures that dependent projects import the core functions on Windows.
399         'defines': ['MOJO_USE_GLES2_IMPL'],
400       }
401     },
402     {
403       # GN version: //mojo/bindings/js/tests:mojo_js_unittests
404       'target_name': 'mojo_js_unittests',
405       'type': 'executable',
406       'dependencies': [
407         '../gin/gin.gyp:gin_test',
408         'edk/mojo_edk.gyp:mojo_common_test_support',
409         'edk/mojo_edk.gyp:mojo_run_all_unittests',
410         'mojo_base.gyp:mojo_js_bindings_lib',
411         'public/mojo_public.gyp:mojo_environment_standalone',
412         'public/mojo_public.gyp:mojo_public_test_interfaces',
413         'public/mojo_public.gyp:mojo_utility',
414       ],
415       'sources': [
416         'bindings/js/tests/run_js_tests.cc',
417       ],
418     },
419   ],
420   'conditions': [
421     ['OS=="android"', {
422       'targets': [
423         {
424           'target_name': 'mojo_native_viewport_java',
425           'type': 'none',
426           'dependencies': [
427             '../base/base.gyp:base_java',
428           ],
429           'variables': {
430             'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android',
431           },
432           'includes': [ '../build/java.gypi' ],
433         },
434         {
435           'target_name': 'libmojo_shell',
436           'type': 'shared_library',
437           'dependencies': [
438             '../base/base.gyp:base',
439             '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
440             '../ui/gfx/gfx.gyp:gfx',
441             '../ui/gfx/gfx.gyp:gfx_geometry',
442             '../ui/gl/gl.gyp:gl',
443             'mojo_base.gyp:mojo_common_lib',
444             'mojo_base.gyp:mojo_environment_chromium',
445             'mojo_base.gyp:mojo_jni_headers',
446             'mojo_shell_lib',
447             'public/mojo_public.gyp:mojo_application_bindings',
448           ],
449           'sources': [
450             'shell/android/library_loader.cc',
451             'shell/android/mojo_main.cc',
452             'shell/android/mojo_main.h',
453           ],
454         },
455         {
456           'target_name': 'mojo_shell_apk',
457           'type': 'none',
458           'dependencies': [
459             '../base/base.gyp:base_java',
460             '../net/net.gyp:net_java',
461             'mojo_native_viewport_java',
462             'libmojo_shell',
463           ],
464           'variables': {
465             'apk_name': 'MojoShell',
466             'java_in_dir': '<(DEPTH)/mojo/shell/android/apk',
467             'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res',
468             'native_lib_target': 'libmojo_shell',
469           },
470           'includes': [ '../build/java_apk.gypi' ],
471         }
472       ],
473     }],
474     ['OS=="linux"', {
475       'targets': [
476         {
477           # GN version: //mojo/shell:mojo_external_application_tests
478           'target_name': 'mojo_external_application_tests',
479           'type': '<(gtest_target_type)',
480           'dependencies': [
481             '../base/base.gyp:base',
482             '../base/base.gyp:test_support_base',
483             '../testing/gtest.gyp:gtest',
484             '../net/net.gyp:net_test_support',
485             '../url/url.gyp:url_lib',
486             'edk/mojo_edk.gyp:mojo_system_impl',
487             'mojo_application_manager',
488             'mojo_base.gyp:mojo_common_lib',
489             'mojo_base.gyp:mojo_environment_chromium',
490             'mojo_shell_lib',
491           ],
492           'sources': [
493             'shell/incoming_connection_listener_unittest.cc',
494             'shell/external_application_listener_unittest.cc',
495             'shell/external_application_test_main.cc',
496           ],
497         },
498       ],
499     }],
500     ['use_aura==1', {
501       'targets': [
502         {
503           # GN version: //mojo/aura
504           'target_name': 'mojo_aura_support',
505           'type': 'static_library',
506           'dependencies': [
507             '../cc/cc.gyp:cc',
508             '../ui/aura/aura.gyp:aura',
509             '../ui/compositor/compositor.gyp:compositor',
510             '../ui/events/events.gyp:events',
511             '../ui/events/events.gyp:events_base',
512             'mojo_cc_support',
513             'mojo_geometry_lib',
514             'mojo_surfaces_lib',
515             'mojo_view_manager_lib',
516             'public/mojo_public.gyp:mojo_application_base',
517             'public/mojo_public.gyp:mojo_application_bindings',
518             'services/public/mojo_services_public.gyp:mojo_native_viewport_bindings',
519           ],
520           'includes': [
521             'mojo_public_gles2_for_loadable_module.gypi',
522           ],
523           'sources': [
524             'aura/aura_init.cc',
525             'aura/aura_init.h',
526             'aura/screen_mojo.cc',
527             'aura/screen_mojo.h',
528             'aura/surface_binding.cc',
529             'aura/surface_binding.h',
530             'aura/surface_context_factory.cc',
531             'aura/surface_context_factory.h',
532             'aura/window_tree_host_mojo.cc',
533             'aura/window_tree_host_mojo.h',
534           ],
535         },
536         {
537           # GN version: //mojo/views:views
538           'target_name': 'mojo_views_support',
539           'type': 'static_library',
540           'dependencies': [
541             '../base/base.gyp:base',
542             '../base/base.gyp:base_i18n',
543             '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
544             '../skia/skia.gyp:skia',
545             '../third_party/icu/icu.gyp:icui18n',
546             '../third_party/icu/icu.gyp:icuuc',
547             '../ui/aura/aura.gyp:aura',
548             '../ui/base/ui_base.gyp:ui_base',
549             '../ui/gfx/gfx.gyp:gfx',
550             '../ui/views/views.gyp:views',
551             '../ui/wm/wm.gyp:wm',
552             'mojo_aura_support',
553             'mojo_view_manager_lib',
554             'services/public/mojo_services_public.gyp:mojo_view_manager_bindings',
555           ],
556           'sources': [
557             'views/input_method_mojo_linux.cc',
558             'views/input_method_mojo_linux.h',
559             'views/native_widget_view_manager.cc',
560             'views/native_widget_view_manager.h',
561             'views/views_init.cc',
562             'views/views_init.h',
563           ],
564         },
565         {
566           # GN version: //mojo/services/public/cpp/view_manager/lib:run_unittests
567           'target_name': 'mojo_view_manager_run_unittests',
568           'type': 'static_library',
569           'dependencies': [
570             '../base/base.gyp:base',
571             '../base/base.gyp:test_support_base',
572           ],
573           'sources': [
574             'services/public/cpp/view_manager/lib/view_manager_test_suite.cc',
575             'services/public/cpp/view_manager/lib/view_manager_test_suite.h',
576             'services/public/cpp/view_manager/lib/view_manager_unittests.cc',
577           ],
578           'conditions': [
579             ['use_x11==1', {
580               'dependencies': [
581                 '../ui/gfx/x/gfx_x11.gyp:gfx_x11',
582               ],
583             }],
584           ],
585         },
586       ],
587     }],
588     ['component!="shared_library" and OS=="linux"', {
589       'targets': [
590         {
591           # GN version: //mojo/public/python:system
592           'target_name': 'mojo_python_system',
593           'variables': {
594             'python_base_module': 'mojo',
595             'python_cython_module': 'system',
596           },
597           'sources': [
598             'public/python/mojo/c_core.pxd',
599             'public/python/mojo/c_environment.pxd',
600             'public/python/mojo/system.pyx',
601             'public/python/src/python_system_helper.cc',
602             'public/python/src/python_system_helper.h',
603           ],
604           'dependencies': [
605             'public/mojo_public.gyp:mojo_environment_standalone',
606             'public/mojo_public.gyp:mojo_system',
607             'public/mojo_public.gyp:mojo_utility',
608           ],
609           'includes': [ '../third_party/cython/cython_compiler.gypi' ],
610         },
611         {
612           # GN version: //mojo/python:embedder
613           'target_name': 'mojo_python_embedder',
614           'type': 'loadable_module',
615           'variables': {
616             'python_base_module': 'mojo',
617             'python_cython_module': 'embedder',
618           },
619           'sources': [
620             'python/system/mojo/embedder.pyx',
621           ],
622           'dependencies': [
623             'edk/mojo_edk.gyp:mojo_system_impl',
624           ],
625           'includes': [ '../third_party/cython/cython_compiler.gypi' ],
626         },
627         {
628           # GN version: //mojo/public/python:bindings
629           'target_name': 'mojo_python_bindings',
630           'type': 'none',
631           'variables': {
632             'python_base_module': 'mojo/bindings',
633           },
634           'sources': [
635             'public/python/mojo/bindings/__init__.py',
636             'public/python/mojo/bindings/descriptor.py',
637             'public/python/mojo/bindings/messaging.py',
638             'public/python/mojo/bindings/promise.py',
639             'public/python/mojo/bindings/reflection.py',
640             'public/python/mojo/bindings/serialization.py',
641           ],
642           'dependencies': [
643             'mojo_python_system',
644           ],
645           'includes': [ '../third_party/cython/python_module.gypi' ],
646         },
647         {
648           # GN version: //mojo/python
649           'target_name': 'mojo_python',
650           'type': 'none',
651           'variables': {
652             'python_base_module': 'mojo',
653           },
654           'sources': [
655             'public/python/mojo/__init__.py',
656           ],
657           'dependencies': [
658             'mojo_python_bindings',
659             'mojo_python_embedder',
660             'mojo_python_system',
661           ],
662           # The python module need to be copied to their destinations
663           'actions': [
664             {
665               'action_name': 'Copy system module.',
666               'inputs': [
667                 '<(DEPTH)/build/cp.py',
668                 '<(PRODUCT_DIR)/libmojo_python_system.so',
669               ],
670               'outputs': [
671                 '<(PRODUCT_DIR)/python/mojo/system.so',
672               ],
673               'action': [
674                 'python',
675                 '<@(_inputs)',
676                 '<@(_outputs)',
677               ]
678             },
679             {
680               'action_name': 'Copy embedder module.',
681               'inputs': [
682                 '<(DEPTH)/build/cp.py',
683                 '<(PRODUCT_DIR)/libmojo_python_embedder.so',
684               ],
685               'outputs': [
686                 '<(PRODUCT_DIR)/python/mojo/embedder.so',
687               ],
688               'action': [
689                 'python',
690                 '<@(_inputs)',
691                 '<@(_outputs)',
692               ]
693             },
694           ],
695           'includes': [ '../third_party/cython/python_module.gypi' ],
696         },
697       ],
698     }],
699     ['component!="shared_library" and OS=="linux" and test_isolation_mode!="noop"', {
700       'targets': [
701         {
702           'target_name': 'mojo_python_unittests_run',
703           'type': 'none',
704           'dependencies': [
705             'mojo_python',
706             'public/mojo_public.gyp:mojo_public_test_interfaces',
707           ],
708           'includes': [
709             '../build/isolate.gypi',
710           ],
711           'sources': [
712             'mojo_python_unittests.isolate',
713           ],
714         },
715       ],
716     }],
717     ['test_isolation_mode != "noop"', {
718       'targets': [
719         {
720           'target_name': 'mojo_js_unittests_run',
721           'type': 'none',
722           'dependencies': [
723             'mojo_js_unittests',
724           ],
725           'includes': [
726             '../build/isolate.gypi',
727           ],
728           'sources': [
729             'mojo_js_unittests.isolate',
730           ],
731         },
732       ],
733     }],
734   ],