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