OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 { | 5 { |
6 'variables': { | 6 'variables': { |
7 'chromium_code': 1, | 7 'chromium_code': 1, |
8 }, | 8 }, |
9 'targets': [ | 9 'targets': [ |
10 { | 10 { |
| 11 'target_name': 'keyboard_resources', |
| 12 'type': 'none', |
| 13 'variables': { |
| 14 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/ui/keyboard', |
| 15 }, |
| 16 'actions': [ |
| 17 { |
| 18 'action_name': 'keyboard_resources', |
| 19 'variables': { |
| 20 'grit_grd_file': 'keyboard_resources.grd', |
| 21 }, |
| 22 'includes': [ '../../build/grit_action.gypi' ], |
| 23 }, |
| 24 ], |
| 25 'includes': [ '../../build/grit_target.gypi' ], |
| 26 }, |
| 27 { |
11 'target_name': 'keyboard', | 28 'target_name': 'keyboard', |
12 'type': '<(component)', | 29 'type': '<(component)', |
13 'dependencies': [ | 30 'dependencies': [ |
14 '../../base/base.gyp:base', | 31 '../../base/base.gyp:base', |
| 32 '../../content/content.gyp:content_browser', |
15 '../../skia/skia.gyp:skia', | 33 '../../skia/skia.gyp:skia', |
16 '../aura/aura.gyp:aura', | 34 '../aura/aura.gyp:aura', |
17 '../compositor/compositor.gyp:compositor', | 35 '../compositor/compositor.gyp:compositor', |
18 '../ui.gyp:ui', | 36 '../ui.gyp:ui', |
| 37 'keyboard_resources', |
19 ], | 38 ], |
20 'defines': [ | 39 'defines': [ |
21 'KEYBOARD_IMPLEMENTATION', | 40 'KEYBOARD_IMPLEMENTATION', |
22 ], | 41 ], |
23 'sources': [ | 42 'sources': [ |
| 43 'keyboard_constants.cc', |
| 44 'keyboard_constants.h', |
24 'keyboard_controller.cc', | 45 'keyboard_controller.cc', |
25 'keyboard_controller.h', | 46 'keyboard_controller.h', |
26 'keyboard_controller_proxy.h', | 47 'keyboard_controller_proxy.h', |
27 'keyboard_export.h', | 48 'keyboard_export.h', |
28 'keyboard_switches.cc', | 49 'keyboard_switches.cc', |
29 'keyboard_switches.h', | 50 'keyboard_switches.h', |
| 51 'keyboard_ui_controller.cc', |
| 52 'keyboard_ui_controller.h', |
30 'keyboard_util.cc', | 53 'keyboard_util.cc', |
31 'keyboard_util.h', | 54 'keyboard_util.h', |
32 ] | 55 ] |
33 }, | 56 }, |
34 { | 57 { |
35 'target_name': 'keyboard_unittests', | 58 'target_name': 'keyboard_unittests', |
36 'type': 'executable', | 59 'type': '<(gtest_target_type)', |
37 'dependencies': [ | 60 'dependencies': [ |
38 '../../base/base.gyp:base', | 61 '../../base/base.gyp:base', |
39 '../../base/base.gyp:test_support_base', | 62 '../../base/base.gyp:test_support_base', |
| 63 '../../content/content.gyp:content_browser', |
40 '../../skia/skia.gyp:skia', | 64 '../../skia/skia.gyp:skia', |
41 '../../testing/gtest.gyp:gtest', | 65 '../../testing/gtest.gyp:gtest', |
42 '../aura/aura.gyp:aura', | 66 '../aura/aura.gyp:aura', |
43 '../aura/aura.gyp:aura_test_support', | 67 '../aura/aura.gyp:aura_test_support', |
44 '../compositor/compositor.gyp:compositor', | 68 '../compositor/compositor.gyp:compositor', |
45 '../compositor/compositor.gyp:compositor_test_support', | 69 '../compositor/compositor.gyp:compositor_test_support', |
46 '../ui.gyp:run_ui_unittests', | 70 '../ui.gyp:run_ui_unittests', |
47 '../ui.gyp:ui', | 71 '../ui.gyp:ui', |
48 'keyboard', | 72 'keyboard', |
49 ], | 73 ], |
50 'sources': [ | 74 'sources': [ |
51 'keyboard_controller_unittest.cc', | 75 'keyboard_controller_unittest.cc', |
52 'keyboard_test_suite.cc', | 76 'keyboard_test_suite.cc', |
53 ], | 77 ], |
| 78 'conditions': [ |
| 79 [ 'os_posix == 1 and OS != "mac" and OS != "android" and OS != "ios"', { |
| 80 'conditions': [ |
| 81 ['linux_use_tcmalloc==1', { |
| 82 'dependencies': [ |
| 83 '../../base/allocator/allocator.gyp:allocator', |
| 84 ], |
| 85 }], |
| 86 ], |
| 87 }], |
| 88 ], |
54 }, | 89 }, |
55 ], | 90 ], |
56 } | 91 } |
OLD | NEW |