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

Side by Side Diff: device/usb/BUILD.gn

Issue 674703002: Linux: Dynamically load libudev. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scoped_udev
Patch Set: rebase to head, which includes third_party/libudev already Created 6 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 | « device/udev_linux/udev_loader.cc ('k') | device/usb/usb.gyp » ('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 (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 assert(!is_android && !is_ios) 5 assert(!is_android && !is_ios)
6 6
7 source_ids = "//third_party/usb_ids/usb.ids" 7 source_ids = "//third_party/usb_ids/usb.ids"
8 generated_ids = "$target_gen_dir/usb_ids_gen.cc" 8 generated_ids = "$target_gen_dir/usb_ids_gen.cc"
9 9
10 source_set("usb") { 10 source_set("usb") {
(...skipping 21 matching lines...) Expand all
32 32
33 deps = [ 33 deps = [
34 ":usb_device_ids", 34 ":usb_device_ids",
35 "//base", 35 "//base",
36 "//base/third_party/dynamic_annotations", 36 "//base/third_party/dynamic_annotations",
37 "//net", 37 "//net",
38 "//third_party/libusb", 38 "//third_party/libusb",
39 ] 39 ]
40 40
41 if (is_linux) { 41 if (is_linux) {
42 configs += [ "//build/config/linux:udev" ] 42 deps += [ "//device/udev_linux" ]
43 } 43 }
44 } 44 }
45 45
46 action("usb_device_ids") { 46 action("usb_device_ids") {
47 script = "//device/usb/tools/usb_ids.py" 47 script = "//device/usb/tools/usb_ids.py"
48 inputs = [ source_ids ] 48 inputs = [ source_ids ]
49 outputs = [ generated_ids ] 49 outputs = [ generated_ids ]
50 args = [ 50 args = [
51 "-i", rebase_path(source_ids, root_build_dir), 51 "-i", rebase_path(source_ids, root_build_dir),
52 "-o", rebase_path(generated_ids, root_build_dir), 52 "-o", rebase_path(generated_ids, root_build_dir),
53 ] 53 ]
54 54
55 # Only the device_usb target can depend on us. 55 # Only the device_usb target can depend on us.
56 visibility = [ ":usb" ] 56 visibility = [ ":usb" ]
57 } 57 }
OLDNEW
« no previous file with comments | « device/udev_linux/udev_loader.cc ('k') | device/usb/usb.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698