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

Side by Side Diff: third_party/libusb/libusb.gyp

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 | « third_party/libusb/README.chromium ('k') | third_party/libusb/linux-udev.patch » ('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) 2012 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2012 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 { 5 {
6 'targets': [ 6 'targets': [
7 { 7 {
8 'target_name': 'libusb', 8 'target_name': 'libusb',
9 'type': 'static_library', 9 'type': 'static_library',
10 'sources': [ 10 'sources': [
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 'src/libusb/os/linux_usbfs.c', 56 'src/libusb/os/linux_usbfs.c',
57 'src/libusb/os/linux_usbfs.h', 57 'src/libusb/os/linux_usbfs.h',
58 ], 58 ],
59 'defines': [ 59 'defines': [
60 'OS_LINUX=1', 60 'OS_LINUX=1',
61 '_GNU_SOURCE=1', 61 '_GNU_SOURCE=1',
62 ], 62 ],
63 }], 63 }],
64 ['use_udev==1', { 64 ['use_udev==1', {
65 'sources': [ 65 'sources': [
66 'src/libusb/os/linux_udev.c', 66 'src/libusb/os/linux_udev.cc',
67 ], 67 ],
68 'defines': [ 68 'defines': [
69 'HAVE_LIBUDEV=1', 69 'HAVE_LIBUDEV=1',
70 'USE_UDEV=1', 70 'USE_UDEV=1',
71 ], 71 ],
72 'dependencies': [
73 '../../device/udev_linux/udev.gyp:udev_linux',
74 ],
75 'include_dirs': [
76 '../..',
77 ],
72 }], 78 }],
73 ['OS=="linux" and use_udev==0', { 79 ['OS=="linux" and use_udev==0', {
74 'sources': [ 80 'sources': [
75 'src/libusb/os/linux_netlink.c', 81 'src/libusb/os/linux_netlink.c',
76 ], 82 ],
77 'defines': [ 83 'defines': [
78 'HAVE_LINUX_NETLINK_H', 84 'HAVE_LINUX_NETLINK_H',
79 ], 85 ],
80 'conditions': [ 86 'conditions': [
81 ['clang==1', { 87 ['clang==1', {
(...skipping 30 matching lines...) Expand all
112 ], 118 ],
113 'include_dirs': [ 119 'include_dirs': [
114 'src/msvc', 120 'src/msvc',
115 ], 121 ],
116 'msvs_disabled_warnings': [ 4267 ], 122 'msvs_disabled_warnings': [ 4267 ],
117 }], 123 }],
118 ], 124 ],
119 }, 125 },
120 ], 126 ],
121 } 127 }
OLDNEW
« no previous file with comments | « third_party/libusb/README.chromium ('k') | third_party/libusb/linux-udev.patch » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698