Roll ANGLE.
[chromium-blink-merge.git] / mojo / mojo_apps.gypi
bloba66206a68a40e1273b5a319204eaa61b3b78aa6a
1 # Copyright 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/apps/js
9       #             //mojo/apps/js/bindings
10       #             //mojo/apps/js/bindings/gl
11       'target_name': 'mojo_js_lib',
12       'type': 'static_library',
13       'dependencies': [
14         '../base/base.gyp:base',
15         '../gin/gin.gyp:gin',
16         '../ui/gl/gl.gyp:gl',
17         '../v8/tools/gyp/v8.gyp:v8',
18         'mojo_base.gyp:mojo_common_lib',
19         'mojo_base.gyp:mojo_environment_chromium',
20         'mojo_base.gyp:mojo_gles2_bindings',
21         'mojo_base.gyp:mojo_js_bindings_lib',
22         'mojo_native_viewport_bindings',
23       ],
24       'includes': [
25         'mojo_public_gles2_for_loadable_module.gypi',
26       ],
27       'export_dependent_settings': [
28         '../base/base.gyp:base',
29         '../gin/gin.gyp:gin',
30         'mojo_base.gyp:mojo_common_lib',
31         'mojo_base.gyp:mojo_gles2_bindings',
32         'mojo_native_viewport_bindings',
33       ],
34       'sources': [
35         'apps/js/mojo_runner_delegate.cc',
36         'apps/js/mojo_runner_delegate.h',
37         'apps/js/bindings/threading.cc',
38         'apps/js/bindings/threading.h',
39         'apps/js/bindings/gl/context.cc',
40         'apps/js/bindings/gl/context.h',
41         'apps/js/bindings/gl/module.cc',
42         'apps/js/bindings/gl/module.h',
43         'apps/js/bindings/monotonic_clock.cc',
44         'apps/js/bindings/monotonic_clock.h',
45       ],
46     },
47     {
48       'target_name': 'mojo_apps_js_bindings',
49       'type': 'static_library',
50       'sources': [
51         'apps/js/test/js_to_cpp.mojom',
52       ],
53       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
54       'export_dependent_settings': [
55         'mojo_base.gyp:mojo_cpp_bindings',
56       ],
57       'dependencies': [
58         'mojo_base.gyp:mojo_cpp_bindings',
59       ],
60     },
61     {
62       # GN version: //mojo/apps/js/test/mojo_apps_js_unittests
63       'target_name': 'mojo_apps_js_unittests',
64       'type': 'executable',
65       'dependencies': [
66         '../gin/gin.gyp:gin_test',
67         'mojo_base.gyp:mojo_common_lib',
68         'mojo_base.gyp:mojo_common_test_support',
69         'mojo_base.gyp:mojo_public_test_interfaces',
70         'mojo_base.gyp:mojo_run_all_unittests',
71         'mojo_apps_js_bindings',
72         'mojo_js_lib',
73       ],
74       'sources': [
75         'apps/js/test/js_to_cpp_unittest.cc',
76         'apps/js/test/run_apps_js_tests.cc',
77       ],
78     },
79     {
80       'target_name': 'mojo_js',
81       'type': 'loadable_module',
82       'dependencies': [
83         'mojo_js_lib',
84         '<(mojo_system_for_loadable_module)',
85       ],
86       'sources': [
87         'apps/js/main.cc',
88       ],
89     },
90   ],
91   'conditions': [
92     ['test_isolation_mode != "noop"', {
93       'targets': [
94         {
95           'target_name': 'mojo_apps_js_unittests_run',
96           'type': 'none',
97           'dependencies': [
98             'mojo_apps_js_unittests',
99           ],
100           'includes': [
101             '../build/isolate.gypi',
102             'mojo_apps_js_unittests.isolate',
103           ],
104           'sources': [
105             'mojo_apps_js_unittests.isolate',
106           ],
107         },
108       ],
109     }],
110   ],