Remove unused parameter.
[chromium-blink-merge.git] / ui / keyboard / keyboard.gyp
blob65709084ade5eecfc6aa1a3ce56b685829828805
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         '../../skia/skia.gyp:skia',
55         '../../url/url.gyp:url_lib',
56         '../aura/aura.gyp:aura',
57         '../base/ime/ui_base_ime.gyp:ui_base_ime',
58         '../base/ui_base.gyp:ui_base',
59         '../compositor/compositor.gyp:compositor',
60         '../events/events.gyp:dom4_keycode_converter',
61         '../events/events.gyp:events',
62         '../gfx/gfx.gyp:gfx',
63         '../gfx/gfx.gyp:gfx_geometry',
64         '../wm/wm.gyp:wm',
65         'keyboard_resources',
66       ],
67       'defines': [
68         'KEYBOARD_IMPLEMENTATION',
69       ],
70       'sources': [
71         'keyboard.cc',
72         'keyboard.h',
73         'keyboard_constants.cc',
74         'keyboard_constants.h',
75         'keyboard_controller.cc',
76         'keyboard_controller.h',
77         'keyboard_controller_observer.h',
78         'keyboard_controller_proxy.cc',
79         'keyboard_controller_proxy.h',
80         'keyboard_export.h',
81         'keyboard_layout_manager.cc',
82         'keyboard_layout_manager.h',
83         'keyboard_switches.cc',
84         'keyboard_switches.h',
85         'keyboard_util.cc',
86         'keyboard_util.h',
87       ]
88     },
89     {
90       'target_name': 'keyboard_unittests',
91       'type': '<(gtest_target_type)',
92       'dependencies': [
93         '../../base/base.gyp:base',
94         '../../base/base.gyp:test_support_base',
95         '../../content/content.gyp:content',
96         '../../skia/skia.gyp:skia',
97         '../../testing/gtest.gyp:gtest',
98         '../../url/url.gyp:url_lib',
99         '../aura/aura.gyp:aura',
100         '../aura/aura.gyp:aura_test_support',
101         '../base/ime/ui_base_ime.gyp:ui_base_ime',
102         '../base/ui_base.gyp:ui_base',
103         '../compositor/compositor.gyp:compositor',
104         '../compositor/compositor.gyp:compositor_test_support',
105         '../gfx/gfx.gyp:gfx',
106         '../gfx/gfx.gyp:gfx_geometry',
107         '../resources/ui_resources.gyp:ui_test_pak',
108         '../wm/wm.gyp:wm',
109         'keyboard',
110       ],
111       'sources': [
112         'keyboard_controller_unittest.cc',
113         'test/run_all_unittests.cc',
114       ],
115       'conditions': [
116         ['OS=="linux" and use_allocator!="none"', {
117           'dependencies': [
118             '<(DEPTH)/base/allocator/allocator.gyp:allocator',
119           ],
120           'link_settings': {
121             'ldflags': ['-rdynamic'],
122           },
123         }],
124         ['OS=="win" and win_use_allocator_shim==1', {
125           'dependencies': [
126             '<(DEPTH)/base/allocator/allocator.gyp:allocator',
127           ],
128         }],
129       ],
130     },
131   ],