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

Side by Side Diff: third_party/libevdev/BUILD.gn

Issue 2583223003: third_party: Add libevdev and gestures. (Closed)
Patch Set: ChromeOS -> Chrome OS Created 3 years, 11 months 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 | « third_party/gestures/include/gestures/gestures.h ('k') | third_party/libevdev/LICENSE » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2016 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 import("//build/config/linux/pkg_config.gni")
6
7 assert(is_linux)
8
9 declare_args() {
10 # Controls whether the build should use the version of libevdev
11 # library shipped with the system. In release builds of Chrome OS we
12 # use the system version, but when building on dev workstations we
13 # bundle it because Ubuntu doesn't ship a usable version.
14 use_system_libevdev = true
15 }
16
17 if (!use_system_libevdev) {
18 config("libevdev_config") {
19 include_dirs = [ "src/include" ]
20 }
21
22 static_library("libevdev") {
23 sources = [
24 "src/src/libevdev.c",
25 "src/src/libevdev_event.c",
26 "src/src/libevdev_mt.c",
27 ]
28
29 configs -= [ "//build/config/compiler:chromium_code" ]
30 configs += [ "//build/config/compiler:no_chromium_code" ]
31
32 public_configs = [ ":libevdev_config" ]
33 }
34 }
35
36 if (use_system_libevdev) {
37 pkg_config("libevdev-cros") {
38 packages = [ "libevdev-cros" ]
39 }
40
41 group("libevdev") {
42 public_configs = [ ":libevdev-cros" ]
43 }
44 }
OLDNEW
« no previous file with comments | « third_party/gestures/include/gestures/gestures.h ('k') | third_party/libevdev/LICENSE » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698