Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Side by Side Diff: ui/events/ozone/BUILD.gn

Issue 2510193002: Move use_xkbcommon from build to ui/base (Closed)
Patch Set: Typo Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/events/keycodes/xkb_keysym.h ('k') | ui/ozone/platform/drm/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/linux/pkg_config.gni") 6 import("//build/config/linux/pkg_config.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 import("//ui/base/ui_features.gni")
8 9
9 declare_args() { 10 declare_args() {
10 # Support ChromeOS touchpad gestures with ozone. 11 # Support ChromeOS touchpad gestures with ozone.
11 use_evdev_gestures = false 12 use_evdev_gestures = false
12 } 13 }
13 14
14 if (use_xkbcommon) { 15 if (use_xkbcommon) {
15 pkg_config("xkbcommon") { 16 pkg_config("xkbcommon") {
16 packages = [ "xkbcommon" ] 17 packages = [ "xkbcommon" ]
17 } 18 }
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 public_configs += [ ":evdev_gestures" ] 165 public_configs += [ ":evdev_gestures" ]
165 166
166 configs += [ 167 configs += [
167 ":libevdev-cros", 168 ":libevdev-cros",
168 ":libgestures", 169 ":libgestures",
169 ] 170 ]
170 } 171 }
171 } 172 }
172 } 173 }
173 174
174 config("events_ozone_layout_config") {
175 if (use_xkbcommon) {
176 defines = [ "USE_XKBCOMMON" ]
177 }
178 }
179
180 component("events_ozone_layout") { 175 component("events_ozone_layout") {
181 sources = [ 176 sources = [
182 "layout/events_ozone_layout_export.h", 177 "layout/events_ozone_layout_export.h",
183 "layout/keyboard_layout_engine.h", 178 "layout/keyboard_layout_engine.h",
184 "layout/keyboard_layout_engine_manager.cc", 179 "layout/keyboard_layout_engine_manager.cc",
185 "layout/keyboard_layout_engine_manager.h", 180 "layout/keyboard_layout_engine_manager.h",
186 "layout/layout_util.cc", 181 "layout/layout_util.cc",
187 "layout/layout_util.h", 182 "layout/layout_util.h",
188 "layout/no/no_keyboard_layout_engine.cc", 183 "layout/no/no_keyboard_layout_engine.cc",
189 "layout/no/no_keyboard_layout_engine.h", 184 "layout/no/no_keyboard_layout_engine.h",
190 "layout/stub/stub_keyboard_layout_engine.cc", 185 "layout/stub/stub_keyboard_layout_engine.cc",
191 "layout/stub/stub_keyboard_layout_engine.h", 186 "layout/stub/stub_keyboard_layout_engine.h",
192 ] 187 ]
193 188
194 defines = [ "EVENTS_OZONE_LAYOUT_IMPLEMENTATION" ] 189 defines = [ "EVENTS_OZONE_LAYOUT_IMPLEMENTATION" ]
195 190
196 deps = [ 191 deps = [
197 "//base", 192 "//base",
198 "//ui/events:dom_keycode_converter", 193 "//ui/events:dom_keycode_converter",
199 "//ui/events:events_base", 194 "//ui/events:events_base",
200 ] 195 ]
201 196
202 public_configs = [ ":events_ozone_layout_config" ]
203
204 if (use_xkbcommon) { 197 if (use_xkbcommon) {
205 configs += [ ":xkbcommon" ] 198 configs += [ ":xkbcommon" ]
206 199
207 sources += [ 200 sources += [
208 "layout/xkb/xkb_evdev_codes.cc", 201 "layout/xkb/xkb_evdev_codes.cc",
209 "layout/xkb/xkb_evdev_codes.h", 202 "layout/xkb/xkb_evdev_codes.h",
210 "layout/xkb/xkb_key_code_converter.h", 203 "layout/xkb/xkb_key_code_converter.h",
211 "layout/xkb/xkb_keyboard_layout_engine.cc", 204 "layout/xkb/xkb_keyboard_layout_engine.cc",
212 "layout/xkb/xkb_keyboard_layout_engine.h", 205 "layout/xkb/xkb_keyboard_layout_engine.h",
213 ] 206 ]
214 207
215 deps += [ "//ui/events/keycodes:xkb" ] 208 deps += [ "//ui/events/keycodes:xkb" ]
216 } 209 }
217 } 210 }
OLDNEW
« no previous file with comments | « ui/events/keycodes/xkb_keysym.h ('k') | ui/ozone/platform/drm/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698