diff options
author | Andrew Hsieh <andrewhsieh@google.com> | 2014-05-07 20:21:11 +0800 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2014-09-30 02:24:07 -0700 |
commit | b75d6f1429edf41cd15772a8d9d3a96f84a21862 (patch) | |
tree | 6a81d7c71616d6b45dc5bf62c08d2418ecce8483 /adb/Android.mk | |
parent | 7391575afdd6c27bf444dcde7a140f1b17629b8c (diff) | |
download | system_core-b75d6f1429edf41cd15772a8d9d3a96f84a21862.zip system_core-b75d6f1429edf41cd15772a8d9d3a96f84a21862.tar.gz system_core-b75d6f1429edf41cd15772a8d9d3a96f84a21862.tar.bz2 |
Remove obsolete reference to ddk; Fixes for -Werror
Bug: 14416410
1. The new mingw-w64 toolchain x86_64-w64-mingw32-4.8 has ddk
in x86_64-w64-mingw32/include/ddk
2. Add -Wno-error=cpp to suppress a warning that turns into error
thanks to -Werror:
Please include winsock2.h before windows.h
3. Cast GetLastError() return type DWORD to "int"
4. Include direct.h for _mkdir
5. Include stdint.h for uint8_t on Windows
Change-Id: I4bec0587f6573692f08c760da6c98ae551b8b5eb
Diffstat (limited to 'adb/Android.mk')
-rw-r--r-- | adb/Android.mk | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/adb/Android.mk b/adb/Android.mk index 44c3215..3643aa5 100644 --- a/adb/Android.mk +++ b/adb/Android.mk @@ -39,13 +39,11 @@ ifeq ($(HOST_OS),windows) ifneq ($(strip $(USE_CYGWIN)),) # Pure cygwin case LOCAL_LDLIBS += -lpthread -lgdi32 - LOCAL_C_INCLUDES += /usr/include/w32api/ddk endif ifneq ($(strip $(USE_MINGW)),) # MinGW under Linux case LOCAL_LDLIBS += -lws2_32 -lgdi32 USE_SYSDEPS_WIN32 := 1 - LOCAL_C_INCLUDES += /usr/i586-mingw32msvc/include/ddk endif LOCAL_C_INCLUDES += development/host/windows/usb/api/ endif @@ -74,7 +72,7 @@ else LOCAL_SRC_FILES += fdevent.c endif -LOCAL_CFLAGS += -O2 -g -DADB_HOST=1 -Wall -Wno-unused-parameter -Werror +LOCAL_CFLAGS += -O2 -g -DADB_HOST=1 -Wall -Wno-unused-parameter -Wno-error=cpp -Werror LOCAL_CFLAGS += -D_XOPEN_SOURCE -D_GNU_SOURCE LOCAL_MODULE := adb LOCAL_MODULE_TAGS := debug |