OLD | NEW |
---|---|
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 import("//build/config/ui.gni") | 5 import("//build/config/ui.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 source_set("text_input_types") { | |
sadrul
2016/01/26 17:50:38
I think you want group() here, instead of source_s
kylechar
2016/01/26 17:58:34
Discussed in person. Will leave it as source_set.
spang
2016/01/26 18:00:09
group() doesn't have have sources = [...]
I think
| |
9 sources = [ | |
10 "text_input_flags.h", | |
11 "text_input_mode.h", | |
12 "text_input_type.h", | |
13 ] | |
14 } | |
15 | |
8 component("ime") { | 16 component("ime") { |
9 output_name = "ui_base_ime" | 17 output_name = "ui_base_ime" |
10 sources = [ | 18 sources = [ |
11 "candidate_window.cc", | 19 "candidate_window.cc", |
12 "candidate_window.h", | 20 "candidate_window.h", |
13 "chromeos/character_composer.cc", | 21 "chromeos/character_composer.cc", |
14 "chromeos/character_composer.h", | 22 "chromeos/character_composer.h", |
15 "chromeos/component_extension_ime_manager.cc", | 23 "chromeos/component_extension_ime_manager.cc", |
16 "chromeos/component_extension_ime_manager.h", | 24 "chromeos/component_extension_ime_manager.h", |
17 "chromeos/extension_ime_util.cc", | 25 "chromeos/extension_ime_util.cc", |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
78 "linux/fake_input_method_context.h", | 86 "linux/fake_input_method_context.h", |
79 "linux/fake_input_method_context_factory.cc", | 87 "linux/fake_input_method_context_factory.cc", |
80 "linux/fake_input_method_context_factory.h", | 88 "linux/fake_input_method_context_factory.h", |
81 "linux/linux_input_method_context.h", | 89 "linux/linux_input_method_context.h", |
82 "linux/linux_input_method_context_factory.cc", | 90 "linux/linux_input_method_context_factory.cc", |
83 "linux/linux_input_method_context_factory.h", | 91 "linux/linux_input_method_context_factory.h", |
84 "mock_input_method.cc", | 92 "mock_input_method.cc", |
85 "mock_input_method.h", | 93 "mock_input_method.h", |
86 "text_input_client.cc", | 94 "text_input_client.cc", |
87 "text_input_client.h", | 95 "text_input_client.h", |
88 "text_input_type.h", | |
89 "ui_base_ime_export.h", | 96 "ui_base_ime_export.h", |
90 "win/imm32_manager.cc", | 97 "win/imm32_manager.cc", |
91 "win/imm32_manager.h", | 98 "win/imm32_manager.h", |
92 "win/tsf_input_scope.cc", | 99 "win/tsf_input_scope.cc", |
93 "win/tsf_input_scope.h", | 100 "win/tsf_input_scope.h", |
94 ] | 101 ] |
95 | 102 |
96 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 103 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
97 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] | 104 configs += [ "//build/config/compiler:no_size_t_to_int_warning" ] |
98 | 105 |
99 defines = [ "UI_BASE_IME_IMPLEMENTATION" ] | 106 defines = [ "UI_BASE_IME_IMPLEMENTATION" ] |
100 | 107 |
101 deps = [ | 108 deps = [ |
102 "//base", | 109 "//base", |
103 "//base:i18n", | 110 "//base:i18n", |
104 "//base/third_party/dynamic_annotations", | 111 "//base/third_party/dynamic_annotations", |
105 "//net", | 112 "//net", |
106 "//third_party/icu", | 113 "//third_party/icu", |
107 "//ui/base", | 114 "//ui/base", |
108 "//ui/events", | 115 "//ui/events", |
109 "//ui/gfx", | 116 "//ui/gfx", |
110 "//ui/gfx/geometry", | 117 "//ui/gfx/geometry", |
111 "//url", | 118 "//url", |
112 ] | 119 ] |
113 | 120 |
121 public_deps = [ | |
122 ":text_input_types", | |
123 ] | |
124 | |
114 if (!use_aura || (!is_linux && !use_ozone)) { | 125 if (!use_aura || (!is_linux && !use_ozone)) { |
115 sources -= [ | 126 sources -= [ |
116 "input_method_auralinux.cc", | 127 "input_method_auralinux.cc", |
117 "input_method_auralinux.h", | 128 "input_method_auralinux.h", |
118 ] | 129 ] |
119 } | 130 } |
120 | 131 |
121 if (use_aura && is_android) { | 132 if (use_aura && is_android) { |
122 sources += [ | 133 sources += [ |
123 "input_method_android.cc", | 134 "input_method_android.cc", |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
174 libs = [ "imm32.lib" ] | 185 libs = [ "imm32.lib" ] |
175 } | 186 } |
176 | 187 |
177 if (use_ozone) { | 188 if (use_ozone) { |
178 deps += [ | 189 deps += [ |
179 "//ui/events/ozone:events_ozone_layout", | 190 "//ui/events/ozone:events_ozone_layout", |
180 "//ui/ozone", | 191 "//ui/ozone", |
181 ] | 192 ] |
182 } | 193 } |
183 } | 194 } |
OLD | NEW |