OLD | NEW |
| (Empty) |
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. | |
4 | |
5 { | |
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/inputv
iew.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:dyna
mic_annotations', | |
52 '../../media/media.gyp:media', | |
53 '../../skia/skia.gyp:skia', | |
54 '../aura/aura.gyp:aura', | |
55 '../base/ime/ui_base_ime.gyp:ui_base_ime', | |
56 '../base/ui_base.gyp:ui_base', | |
57 '../compositor/compositor.gyp:compositor', | |
58 '../events/events.gyp:dom_keycode_converter', | |
59 '../events/events.gyp:events', | |
60 '../events/events.gyp:events_base', | |
61 '../gfx/gfx.gyp:gfx', | |
62 '../gfx/gfx.gyp:gfx_geometry', | |
63 'keyboard_resources', | |
64 ], | |
65 'defines': [ | |
66 'KEYBOARD_IMPLEMENTATION', | |
67 ], | |
68 'sources': [ | |
69 'keyboard_controller.cc', | |
70 'keyboard_controller.h', | |
71 'keyboard_controller_observer.h', | |
72 'keyboard_export.h', | |
73 'keyboard_layout_manager.cc', | |
74 'keyboard_layout_manager.h', | |
75 'keyboard_switches.cc', | |
76 'keyboard_switches.h', | |
77 'keyboard_ui.cc', | |
78 'keyboard_ui.h', | |
79 'keyboard_util.cc', | |
80 'keyboard_util.h', | |
81 ], | |
82 'conditions': [ | |
83 ['use_ozone==1', { | |
84 'dependencies': [ | |
85 '../ozone/ozone.gyp:ozone', | |
86 ], | |
87 }], | |
88 ], | |
89 }, | |
90 { | |
91 # GN version: //ui/keyboard:keyboard_with_content | |
92 'target_name': 'keyboard_with_content', | |
93 'type': '<(component)', | |
94 'dependencies': [ | |
95 'keyboard', | |
96 '../../base/base.gyp:base', | |
97 '../../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyna
mic_annotations', | |
98 '../../content/content.gyp:content_browser', | |
99 '../../ipc/ipc.gyp:ipc', | |
100 '../../skia/skia.gyp:skia', | |
101 '../../url/url.gyp:url_lib', | |
102 '../aura/aura.gyp:aura', | |
103 '../base/ime/ui_base_ime.gyp:ui_base_ime', | |
104 '../base/ui_base.gyp:ui_base', | |
105 '../compositor/compositor.gyp:compositor', | |
106 '../events/events.gyp:dom_keycode_converter', | |
107 '../events/events.gyp:events', | |
108 '../events/events.gyp:events_base', | |
109 '../gfx/gfx.gyp:gfx', | |
110 '../gfx/gfx.gyp:gfx_geometry', | |
111 '../wm/wm.gyp:wm', | |
112 'keyboard_resources', | |
113 ], | |
114 'defines': [ | |
115 'KEYBOARD_IMPLEMENTATION', | |
116 ], | |
117 'sources': [ | |
118 'content/keyboard.cc', | |
119 'content/keyboard.h', | |
120 'content/keyboard_constants.cc', | |
121 'content/keyboard_constants.h', | |
122 'content/keyboard_content_util.cc', | |
123 'content/keyboard_content_util.h', | |
124 'content/keyboard_ui_content.cc', | |
125 'content/keyboard_ui_content.h', | |
126 ], | |
127 }, | |
128 { | |
129 'target_name': 'keyboard_unittests', | |
130 'type': '<(gtest_target_type)', | |
131 'dependencies': [ | |
132 '../../base/base.gyp:base', | |
133 '../../base/base.gyp:test_support_base', | |
134 '../../skia/skia.gyp:skia', | |
135 '../../testing/gtest.gyp:gtest', | |
136 '../aura/aura.gyp:aura', | |
137 '../aura/aura.gyp:aura_test_support', | |
138 '../base/ime/ui_base_ime.gyp:ui_base_ime', | |
139 '../base/ui_base.gyp:ui_base', | |
140 '../compositor/compositor.gyp:compositor', | |
141 '../compositor/compositor.gyp:compositor_test_support', | |
142 '../gfx/gfx.gyp:gfx', | |
143 '../gfx/gfx.gyp:gfx_geometry', | |
144 '../wm/wm.gyp:wm', | |
145 'keyboard', | |
146 ], | |
147 'sources': [ | |
148 'keyboard_controller_unittest.cc', | |
149 'keyboard_util_unittest.cc', | |
150 'test/run_all_unittests.cc', | |
151 ], | |
152 }, | |
153 ], | |
154 } | |
OLD | NEW |