Explicitly add python-numpy dependency to install-build-deps.
[chromium-blink-merge.git] / ui / keyboard / keyboard.gyp
blob32ccabe08908a69db870ac7347f0e67efd753478
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': [ '../../mojo/public/tools/bindings/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/edk/mojo_edk.gyp:mojo_system_impl',
66         '../../mojo/mojo_base.gyp:mojo_environment_chromium',
67         '../../mojo/public/mojo_public.gyp:mojo_cpp_bindings',
68         '../../mojo/public/mojo_public.gyp:mojo_js_bindings',
69         '../../skia/skia.gyp:skia',
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:events',
75         '../gfx/gfx.gyp:gfx',
76         '../gfx/gfx.gyp:gfx_geometry',
77         '../wm/wm.gyp:wm',
78         'keyboard_mojom_bindings',
79         'keyboard_resources',
80       ],
81       'defines': [
82         'KEYBOARD_IMPLEMENTATION',
83       ],
84       'sources': [
85         'keyboard.cc',
86         'keyboard.h',
87         'keyboard_constants.cc',
88         'keyboard_constants.h',
89         'keyboard_controller.cc',
90         'keyboard_controller.h',
91         'keyboard_controller_observer.h',
92         'keyboard_controller_proxy.cc',
93         'keyboard_controller_proxy.h',
94         'keyboard_layout_manager.h',
95         'keyboard_layout_manager.cc',
96         'keyboard_export.h',
97         'keyboard_switches.cc',
98         'keyboard_switches.h',
99         'keyboard_util.cc',
100         'keyboard_util.h',
101         'webui/vk_mojo_handler.cc',
102         'webui/vk_mojo_handler.h',
103         'webui/vk_webui_controller.cc',
104         'webui/vk_webui_controller.h',
105         '<(SHARED_INTERMEDIATE_DIR)/ui/keyboard/webui/keyboard.mojom.cc',
106       ]
107     },
108     {
109       'target_name': 'keyboard_unittests',
110       'type': '<(gtest_target_type)',
111       'dependencies': [
112         '../../base/base.gyp:base',
113         '../../base/base.gyp:test_support_base',
114         '../../content/content.gyp:content',
115         '../../skia/skia.gyp:skia',
116         '../../testing/gtest.gyp:gtest',
117         '../../url/url.gyp:url_lib',
118         '../aura/aura.gyp:aura',
119         '../aura/aura.gyp:aura_test_support',
120         '../base/ui_base.gyp:ui_base',
121         '../compositor/compositor.gyp:compositor',
122         '../compositor/compositor.gyp:compositor_test_support',
123         '../gfx/gfx.gyp:gfx',
124         '../gfx/gfx.gyp:gfx_geometry',
125         '../resources/ui_resources.gyp:ui_test_pak',
126         '../wm/wm.gyp:wm',
127         'keyboard',
128       ],
129       'sources': [
130         'test/run_all_unittests.cc',
131         'keyboard_controller_unittest.cc',
132       ],
133       'conditions': [
134         ['OS=="linux" and use_allocator!="none"', {
135           'dependencies': [
136             '<(DEPTH)/base/allocator/allocator.gyp:allocator',
137           ],
138           'link_settings': {
139             'ldflags': ['-rdynamic'],
140           },
141         }],
142         ['OS=="win" and win_use_allocator_shim==1', {
143           'dependencies': [
144             '<(DEPTH)/base/allocator/allocator.gyp:allocator',
145           ],
146         }],
147       ],
148     },
149   ],