Skip to content

Commit

Permalink
am b419c35: Fix adb, fastboot to compile in Windows SDK under Linux.
Browse files Browse the repository at this point in the history
Merge commit 'b419c35c660d7421e18a9efef38eca11966b44c7' into froyo-plus-aosp

* commit 'b419c35c660d7421e18a9efef38eca11966b44c7':
  Fix adb, fastboot to compile in Windows SDK under Linux.
  • Loading branch information
Raphael authored and Android Git Automerger committed Apr 24, 2010
2 parents 775a8df + b419c35 commit a00a69e
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 5 deletions.
9 changes: 7 additions & 2 deletions adb/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,18 @@ ifeq ($(HOST_OS),windows)
USB_SRCS := usb_windows.c
EXTRA_SRCS := get_my_path_windows.c
EXTRA_STATIC_LIBS := AdbWinApi
LOCAL_C_INCLUDES += /usr/include/w32api/ddk development/host/windows/usb/api/
ifneq ($(strip $(USE_CYGWIN)),)
# Pure cygwin case
LOCAL_LDLIBS += -lpthread
else
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_SRC_FILES := \
Expand Down
11 changes: 9 additions & 2 deletions fastboot/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion include/arch/windows/AndroidConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@
*/
#ifdef USE_MINGW
#define S_IRGRP 0
#define sleep _sleep
#endif

/*
Expand Down

0 comments on commit a00a69e

Please sign in to comment.