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