Note that promise is settled on reject. Add test coverage for Resolver.
[chromium-blink-merge.git] / ui / keyboard / keyboard.gyp
blob681d0075452e6e650468b8b78c52816691384661
1 # Copyright (c) 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   'variables': {
7     'chromium_code': 1,
8     'keyboard_mojom_gen_js': '<(SHARED_INTERMEDIATE_DIR)/ui/keyboard/webui/keyboard.mojom.js',
9     'inputview_dir': '../../third_party/google_input_tools/src/chrome/os/inputview',
10     'inputview_gen_js': '<(SHARED_INTERMEDIATE_DIR)/ui/keyboard/resources/inputview.js',
11   },
12   'targets': [
13     {
14       'target_name': 'keyboard_mojom_bindings',
15       'type': 'none',
16       'sources': [
17         'webui/keyboard.mojom',
18       ],
19       'includes': [ '../../third_party/mojo/mojom_bindings_generator.gypi' ],
20     },
21     {
22       # GN version: //ui/keyboard:resources
23       'target_name': 'keyboard_resources',
24       'dependencies': [
25         'keyboard_mojom_bindings',
26         '../../third_party/google_input_tools/inputview.gyp:inputview',
27        ],
28       'type': 'none',
29       'variables': {
30         'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/ui/keyboard',
31       },
32       'actions': [
33         {
34           'action_name': 'keyboard_resources',
35           'variables': {
36             'grit_grd_file': 'keyboard_resources.grd',
37             'grit_additional_defines': [
38               '-E', 'keyboard_mojom_gen_js=<(keyboard_mojom_gen_js)',
39               '-E', 'inputview_dir=<(inputview_dir)',
40               '-E', 'inputview_gen_js=<(inputview_gen_js)',
41             ],
42           },
43           'includes': [ '../../build/grit_action.gypi' ],
44         },
45       ],
46       'includes': [ '../../build/grit_target.gypi' ],
47       'copies': [
48         {
49           'destination': '<(PRODUCT_DIR)',
50           'files': [
51             '<(SHARED_INTERMEDIATE_DIR)/ui/keyboard/keyboard_resources.pak',
52           ],
53         },
54       ],
55     },
56     {
57       # GN version: //ui/keyboard
58       'target_name': 'keyboard',
59       'type': '<(component)',
60       'dependencies': [
61         '../../base/base.gyp:base',
62         '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
63         '../../content/content.gyp:content_browser',
64         '../../ipc/ipc.gyp:ipc',
65         '../../mojo/mojo_base.gyp:mojo_environment_chromium',
66         '../../skia/skia.gyp:skia',
67         '../../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
68         '../../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
69         '../../third_party/mojo/mojo_public.gyp:mojo_js_bindings',
70         '../../url/url.gyp:url_lib',
71         '../aura/aura.gyp:aura',
72         '../base/ui_base.gyp:ui_base',
73         '../compositor/compositor.gyp:compositor',
74         '../events/events.gyp:dom4_keycode_converter',
75         '../events/events.gyp:events',
76         '../gfx/gfx.gyp:gfx',
77         '../gfx/gfx.gyp:gfx_geometry',
78         '../wm/wm.gyp:wm',
79         'keyboard_mojom_bindings',
80         'keyboard_resources',
81       ],
82       'defines': [
83         'KEYBOARD_IMPLEMENTATION',
84       ],
85       'sources': [
86         'keyboard.cc',
87         'keyboard.h',
88         'keyboard_constants.cc',
89         'keyboard_constants.h',
90         'keyboard_controller.cc',
91         'keyboard_controller.h',
92         'keyboard_controller_observer.h',
93         'keyboard_controller_proxy.cc',
94         'keyboard_controller_proxy.h',
95         'keyboard_layout_manager.h',
96         'keyboard_layout_manager.cc',
97         'keyboard_export.h',
98         'keyboard_switches.cc',
99         'keyboard_switches.h',
100         'keyboard_util.cc',
101         'keyboard_util.h',
102         'webui/vk_mojo_handler.cc',
103         'webui/vk_mojo_handler.h',
104         'webui/vk_webui_controller.cc',
105         'webui/vk_webui_controller.h',
106         '<(SHARED_INTERMEDIATE_DIR)/ui/keyboard/webui/keyboard.mojom.cc',
107       ]
108     },
109     {
110       'target_name': 'keyboard_unittests',
111       'type': '<(gtest_target_type)',
112       'dependencies': [
113         '../../base/base.gyp:base',
114         '../../base/base.gyp:test_support_base',
115         '../../content/content.gyp:content',
116         '../../skia/skia.gyp:skia',
117         '../../testing/gtest.gyp:gtest',
118         '../../url/url.gyp:url_lib',
119         '../aura/aura.gyp:aura',
120         '../aura/aura.gyp:aura_test_support',
121         '../base/ui_base.gyp:ui_base',
122         '../compositor/compositor.gyp:compositor',
123         '../compositor/compositor.gyp:compositor_test_support',
124         '../gfx/gfx.gyp:gfx',
125         '../gfx/gfx.gyp:gfx_geometry',
126         '../resources/ui_resources.gyp:ui_test_pak',
127         '../wm/wm.gyp:wm',
128         'keyboard',
129       ],
130       'sources': [
131         'test/run_all_unittests.cc',
132         'keyboard_controller_unittest.cc',
133       ],
134       'conditions': [
135         ['OS=="linux" and use_allocator!="none"', {
136           'dependencies': [
137             '<(DEPTH)/base/allocator/allocator.gyp:allocator',
138           ],
139           'link_settings': {
140             'ldflags': ['-rdynamic'],
141           },
142         }],
143         ['OS=="win" and win_use_allocator_shim==1', {
144           'dependencies': [
145             '<(DEPTH)/base/allocator/allocator.gyp:allocator',
146           ],
147         }],
148       ],
149     },
150   ],