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

Unified Diff: third_party/libusb/libusb.gyp

Issue 10519005: Fix libusb dependecy for Chromium with Android OS. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« chrome/chrome_browser.gypi ('K') | « chrome/chrome_browser.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/libusb/libusb.gyp
diff --git a/third_party/libusb/libusb.gyp b/third_party/libusb/libusb.gyp
index 4fc0c7e6b9061108b2bff63121ecc54948e48b70..65923e987a2bf4fab7e7516d7589faa61f5b108b 100644
--- a/third_party/libusb/libusb.gyp
+++ b/third_party/libusb/libusb.gyp
@@ -10,6 +10,21 @@
{
'target_name': 'libusb',
'conditions': [
+ ['OS == "android"', {
Lei Zhang 2012/06/05 18:22:53 Why is this in a separate section by itself, and n
Paweł Hajdan Jr. 2012/06/06 08:20:00 Please do what Lei said. It makes no sense to dupl
felipeg 2012/06/06 09:48:31 Done.
+ 'sources': [
+ 'src/libusb/os/linux_usbfs.c',
+ 'src/libusb/os/threads_posix.c',
+ ],
+ 'defines': [
+ 'DEFAULT_VISIBILITY=',
+ 'HAVE_POLL_H=1',
+ 'HAVE_SYS_TIME_H=1',
+ 'OS_LINUX=1',
+ 'POLL_NFDS_TYPE=nfds_t',
+ 'THREADS_POSIX=1',
+ '_GNU_SOURCE=1',
+ ],
+ }],
['OS == "linux" and use_system_libusb', {
'type': 'none',
'direct_dependent_settings': {
« chrome/chrome_browser.gypi ('K') | « chrome/chrome_browser.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698