Commit 8a3d0caf authored by gdk@chromium.org's avatar gdk@chromium.org

third_party/libusb: vs2010 build fixes and android-conditional build

This patch fixes the libusb vs2010 build break as reported by a few people, as
well as makes the libusb build conditional on not being on the Android
platform.

BUG=none
TEST=none


Review URL: http://codereview.chromium.org/9969185

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132595 0039d316-1c4b-4281-b951-d872f2087c98
parent 7dc8cb44
......@@ -4527,6 +4527,11 @@
['exclude', '^browser/ui/webui/sync_promo'],
],
}],
['OS!="android"', {
'dependencies': [
'../third_party/libusb/libusb.gyp:libusb',
],
}],
['OS=="mac"', {
'sources!': [
'browser/automation/automation_provider_list_generic.cc',
......
......@@ -36,8 +36,9 @@
}],
[ 'OS == "win"', {
'sources': [
'libusb/os/windows_usb.c',
'libusb/os/poll_windows.c',
'libusb/os/threads_windows.c',
'libusb/os/windows_usb.c',
],
'include_dirs!': [
'.',
......
......@@ -101,8 +101,6 @@ const GUID GUID_DEVINTERFACE_USB_DEVICE = { 0xA5DCBF10, 0x6530, 0x11D2, {0x90, 0
#if !defined(GUID_DEVINTERFACE_USB_HUB)
const GUID GUID_DEVINTERFACE_USB_HUB = { 0xF18A0E88, 0xC30C, 0x11D0, {0x88, 0x15, 0x00, 0xA0, 0xC9, 0x06, 0xBE, 0xD8} };
#endif
const GUID GUID_NULL = { 0x00000000, 0x0000, 0x0000, {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00} };
/*
* Multiple USB API backend support
......
......@@ -30,6 +30,19 @@ index fee89f5..27986b8 100644
#endif
+#endif /* LIBUSB_POLL_WINDOWS_H */
diff --git a/libusb/os/windows_usb.h b/libusb/os/windows_usb.h
index b629d18..6dbfaf5 100644
--- a/libusb/os/windows_usb.h
+++ b/libusb/os/windows_usb.h
@@ -101,8 +101,6 @@ const GUID GUID_DEVINTERFACE_USB_DEVICE = { 0xA5DCBF10, 0x6530, 0x11D2, {0x90, 0
#if !defined(GUID_DEVINTERFACE_USB_HUB)
const GUID GUID_DEVINTERFACE_USB_HUB = { 0xF18A0E88, 0xC30C, 0x11D0, {0x88, 0x15, 0x00, 0xA0, 0xC9, 0x06, 0xBE, 0xD8} };
#endif
-const GUID GUID_NULL = { 0x00000000, 0x0000, 0x0000, {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00} };
-
/*
* Multiple USB API backend support
diff --git a/msvc/config.h b/msvc/config.h
index 43b4d4e..9ac6134 100644
--- a/msvc/config.h
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment