Cleanup: Consolidate initialization of Android's SecureRandom class.
[chromium-blink-merge.git] / mojo / mojo_apps.gypi
blob199413064c636a05ed923ef56aacc3b683154545
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         '../base/base.gyp:base_i18n',
16         '../gin/gin.gyp:gin',
17         '../ui/gl/gl.gyp:gl',
18         '../v8/tools/gyp/v8.gyp:v8',
19         'mojo_base.gyp:mojo_common_lib',
20         'mojo_base.gyp:mojo_environment_chromium',
21         'mojo_base.gyp:mojo_js_bindings_lib',
22         'mojo_gles2_lib',
23         'services/public/mojo_services_public.gyp:mojo_native_viewport_bindings',
24       ],
25       'includes': [
26         'mojo_public_gles2_for_loadable_module.gypi',
27       ],
28       'export_dependent_settings': [
29         '../base/base.gyp:base',
30         '../gin/gin.gyp:gin',
31         'mojo_base.gyp:mojo_common_lib',
32         'mojo_gles2_lib',
33         'services/public/mojo_services_public.gyp:mojo_native_viewport_bindings',
34       ],
35       'sources': [
36         'apps/js/mojo_runner_delegate.cc',
37         'apps/js/mojo_runner_delegate.h',
38         'apps/js/bindings/threading.cc',
39         'apps/js/bindings/threading.h',
40         'apps/js/bindings/gl/context.cc',
41         'apps/js/bindings/gl/context.h',
42         'apps/js/bindings/gl/module.cc',
43         'apps/js/bindings/gl/module.h',
44         'apps/js/bindings/monotonic_clock.cc',
45         'apps/js/bindings/monotonic_clock.h',
46       ],
47     },
48     {
49       # GN version: //mojo/apps/js/test:js_to_cpp_bindings
50       'target_name': 'mojo_apps_js_bindings',
51       'type': 'static_library',
52       'sources': [
53         'apps/js/test/js_to_cpp.mojom',
54       ],
55       'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
56       'export_dependent_settings': [
57         'public/mojo_public.gyp:mojo_cpp_bindings',
58       ],
59       'dependencies': [
60         'public/mojo_public.gyp:mojo_cpp_bindings',
61       ],
62     },
63     {
64       # GN version: //mojo/apps/js/test/mojo_apps_js_unittests
65       'target_name': 'mojo_apps_js_unittests',
66       'type': 'executable',
67       'dependencies': [
68         '../gin/gin.gyp:gin_test',
69         'edk/mojo_edk.gyp:mojo_common_test_support',
70         'edk/mojo_edk.gyp:mojo_run_all_unittests',
71         'mojo_apps_js_bindings',
72         'mojo_base.gyp:mojo_common_lib',
73         'mojo_js_lib',
74         'public/mojo_public.gyp:mojo_public_test_interfaces',
75       ],
76       'sources': [
77         'apps/js/test/handle_unittest.cc',
78         'apps/js/test/js_to_cpp_unittest.cc',
79         'apps/js/test/run_apps_js_tests.cc',
80       ],
81     },
82     {
83       # GN version: //mojo/apps/js/test:mojo_js_apps_lib
84       'target_name': 'mojo_js_apps_lib',
85       'type': 'static_library',
86       'export_dependent_settings': [
87         'public/mojo_public.gyp:mojo_cpp_bindings',
88       ],
89       'dependencies': [
90         'mojo_apps_js_bindings',
91         'mojo_base.gyp:mojo_application_chromium',
92         'mojo_js_lib',
93         'public/mojo_public.gyp:mojo_cpp_bindings',
94         'public/mojo_public.gyp:mojo_utility',
95       ],
96       'sources': [
97         'apps/js/application_delegate_impl.cc',
98         'apps/js/js_app.cc',
99         'apps/js/mojo_bridge_module.cc',
100       ],
101     },
102     {
103       # GN version: //mojo/apps/js:mojo_js_content_handler
104       'target_name': 'mojo_js_content_handler',
105       'type': 'loadable_module',
106       'dependencies': [
107         'services/public/mojo_services_public.gyp:mojo_content_handler_bindings',
108         'mojo_js_apps_lib',
109         '<(mojo_system_for_loadable_module)',
110       ],
111       'sources': [
112         'apps/js/content_handler_impl.cc',
113         'apps/js/content_handler_main.cc',
114       ],
115     },
116     {
117       # GN version: //mojo/apps/js:mojo_js_standalone
118       'target_name': 'mojo_js_standalone',
119       'type': 'loadable_module',
120       'dependencies': [
121         'mojo_js_apps_lib',
122         '<(mojo_system_for_loadable_module)',
123       ],
124       'sources': [
125         'apps/js/standalone_main.cc',
126       ],
127     },
128   ],
129   'conditions': [
130     ['test_isolation_mode != "noop"', {
131       'targets': [
132         {
133           'target_name': 'mojo_apps_js_unittests_run',
134           'type': 'none',
135           'dependencies': [
136             'mojo_apps_js_unittests',
137           ],
138           'includes': [
139             '../build/isolate.gypi',
140           ],
141           'sources': [
142             'mojo_apps_js_unittests.isolate',
143           ],
144         },
145       ],
146     }],
147   ],