aboutsummaryrefslogtreecommitdiffstats
path: root/fastboot
diff options
context:
space:
mode:
authorRaphael <raphael@google.com>2010-04-13 15:25:50 -0700
committerRaphael <raphael@google.com>2010-04-23 13:07:17 -0700
commitb419c35c660d7421e18a9efef38eca11966b44c7 (patch)
tree2139b1ae960b534cce0e59cd45435a73b6c7ea3a /fastboot
parentf54e0a4be3e7a49e1b3f53de6b9542bc146c36fe (diff)
downloadsystem_core-b419c35c660d7421e18a9efef38eca11966b44c7.zip
system_core-b419c35c660d7421e18a9efef38eca11966b44c7.tar.gz
system_core-b419c35c660d7421e18a9efef38eca11966b44c7.tar.bz2
Fix adb, fastboot to compile in Windows SDK under Linux.
(Merged from master Change I3d0e4cab) Change-Id: Ib3fd566bdaf09d5893a6b0c66168c76c6b0d92eb
Diffstat (limited to 'fastboot')
-rw-r--r--fastboot/Android.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/fastboot/Android.mk b/fastboot/Android.mk
index 7a9d35f..34380ec 100644
--- a/fastboot/Android.mk
+++ b/fastboot/Android.mk
@@ -33,11 +33,18 @@ endif
ifeq ($(HOST_OS),windows)
LOCAL_SRC_FILES += usb_windows.c util_windows.c
EXTRA_STATIC_LIBS := AdbWinApi
- LOCAL_C_INCLUDES += /usr/include/w32api/ddk development/host/windows/usb/api
- ifeq ($(strip $(USE_CYGWIN)),)
+ ifneq ($(strip $(USE_CYGWIN)),)
+ # Pure cygwin case
+ LOCAL_LDLIBS += -lpthread
+ LOCAL_C_INCLUDES += /usr/include/w32api/ddk
+ endif
+ ifneq ($(strip $(USE_MINGW)),)
+ # MinGW under Linux case
LOCAL_LDLIBS += -lws2_32
USE_SYSDEPS_WIN32 := 1
+ LOCAL_C_INCLUDES += /usr/i586-mingw32msvc/include/ddk
endif
+ LOCAL_C_INCLUDES += development/host/windows/usb/api
endif
LOCAL_STATIC_LIBRARIES := $(EXTRA_STATIC_LIBS) libzipfile libunz