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

Unified Diff: third_party/libusb/libusb.gyp

Issue 9826025: Import libusb 1.0.9-rc3 into third_party (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleaning up import instructions Created 8 years, 8 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
« no previous file with comments | « third_party/libusb/examples/lsusb.c ('k') | third_party/libusb/libusb-1.0.pc.in » ('j') | 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
new file mode 100644
index 0000000000000000000000000000000000000000..45a0b1bd48eabeff7f749f7b8ee83a3741c98202
--- /dev/null
+++ b/third_party/libusb/libusb.gyp
@@ -0,0 +1,67 @@
+# Copyright (c) 2012 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+{
+ 'targets': [
+ {
+ 'target_name': 'libusb',
+ 'type': '<(library)',
+ 'sources': [
+ 'libusb/core.c',
+ 'libusb/descriptor.c',
+ 'libusb/io.c',
+ 'libusb/sync.c',
+ ],
+ 'include_dirs': [
+ '.',
+ 'libusb',
+ 'libusb/os',
+ ],
+ 'conditions': [
+ [ 'OS == "linux"', {
+ 'sources': [
+ 'libusb/os/linux_usbfs.c',
+ '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 == "win"', {
+ 'sources': [
+ 'libusb/os/windows_usb.c',
+ 'libusb/os/threads_windows.c',
+ ],
+ 'include_dirs!': [
+ '.',
+ ],
+ 'include_dirs': [
+ 'msvc',
+ ],
+ }],
+ [ 'OS == "mac"', {
+ 'sources': [
+ 'libusb/os/darwin_usb.c',
+ 'libusb/os/threads_posix.c',
+ ],
+ 'defines': [
+ 'DEFAULT_VISIBILITY=',
+ 'HAVE_POLL_H=1',
+ 'HAVE_SYS_TIME_H=1',
+ 'OS_DARWIN=1',
+ 'POLL_NFDS_TYPE=nfds_t',
+ 'THREADS_POSIX=1',
+ '_GNU_SOURCE=1',
+ ],
+ }],
+ ],
+ },
+ ],
+}
« no previous file with comments | « third_party/libusb/examples/lsusb.c ('k') | third_party/libusb/libusb-1.0.pc.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698