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 { | |
28 'target_name': 'keyboard', | 11 'target_name': 'keyboard', |
29 'type': '<(component)', | 12 'type': '<(component)', |
30 'dependencies': [ | 13 'dependencies': [ |
31 '../../base/base.gyp:base', | 14 '../../base/base.gyp:base', |
32 '../../content/content.gyp:content_browser', | |
33 '../../skia/skia.gyp:skia', | 15 '../../skia/skia.gyp:skia', |
34 '../aura/aura.gyp:aura', | 16 '../aura/aura.gyp:aura', |
35 '../compositor/compositor.gyp:compositor', | 17 '../compositor/compositor.gyp:compositor', |
36 '../ui.gyp:ui', | 18 '../ui.gyp:ui', |
37 'keyboard_resources', | |
38 ], | 19 ], |
39 'defines': [ | 20 'defines': [ |
40 'KEYBOARD_IMPLEMENTATION', | 21 'KEYBOARD_IMPLEMENTATION', |
41 ], | 22 ], |
42 'sources': [ | 23 'sources': [ |
43 'keyboard_constants.cc', | |
44 'keyboard_constants.h', | |
45 'keyboard_controller.cc', | 24 'keyboard_controller.cc', |
46 'keyboard_controller.h', | 25 'keyboard_controller.h', |
47 'keyboard_controller_proxy.h', | 26 'keyboard_controller_proxy.h', |
48 'keyboard_export.h', | 27 'keyboard_export.h', |
49 'keyboard_switches.cc', | 28 'keyboard_switches.cc', |
50 'keyboard_switches.h', | 29 'keyboard_switches.h', |
51 'keyboard_ui_controller.cc', | |
52 'keyboard_ui_controller.h', | |
53 'keyboard_util.cc', | 30 'keyboard_util.cc', |
54 'keyboard_util.h', | 31 'keyboard_util.h', |
55 ] | 32 ] |
56 }, | 33 }, |
57 { | 34 { |
58 'target_name': 'keyboard_unittests', | 35 'target_name': 'keyboard_unittests', |
59 'type': '<(gtest_target_type)', | 36 'type': 'executable', |
60 'dependencies': [ | 37 'dependencies': [ |
61 '../../base/base.gyp:base', | 38 '../../base/base.gyp:base', |
62 '../../base/base.gyp:test_support_base', | 39 '../../base/base.gyp:test_support_base', |
63 '../../content/content.gyp:content_browser', | |
64 '../../skia/skia.gyp:skia', | 40 '../../skia/skia.gyp:skia', |
65 '../../testing/gtest.gyp:gtest', | 41 '../../testing/gtest.gyp:gtest', |
66 '../aura/aura.gyp:aura', | 42 '../aura/aura.gyp:aura', |
67 '../aura/aura.gyp:aura_test_support', | 43 '../aura/aura.gyp:aura_test_support', |
68 '../compositor/compositor.gyp:compositor', | 44 '../compositor/compositor.gyp:compositor', |
69 '../compositor/compositor.gyp:compositor_test_support', | 45 '../compositor/compositor.gyp:compositor_test_support', |
70 '../ui.gyp:run_ui_unittests', | 46 '../ui.gyp:run_ui_unittests', |
71 '../ui.gyp:ui', | 47 '../ui.gyp:ui', |
72 'keyboard', | 48 'keyboard', |
73 ], | 49 ], |
74 'sources': [ | 50 'sources': [ |
75 'keyboard_controller_unittest.cc', | 51 'keyboard_controller_unittest.cc', |
76 'keyboard_test_suite.cc', | 52 'keyboard_test_suite.cc', |
77 ], | 53 ], |
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 ], | |
89 }, | 54 }, |
90 ], | 55 ], |
91 } | 56 } |
OLD | NEW |