Merge "Remove USE_MINGW, whitelist modules for windows"

This commit is contained in:
Dan Willemsen
2015-08-31 19:26:19 +00:00
committed by Gerrit Code Review
2 changed files with 7 additions and 9 deletions

View File

@@ -7,6 +7,7 @@ LOCAL_MODULE_CLASS := STATIC_LIBRARIES
LOCAL_SRC_FILES_x86 := AdbWinApi.a
LOCAL_MODULE_SUFFIX := .a
LOCAL_MULTILIB := 32
LOCAL_MODULE_HOST_OS := windows
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
@@ -16,6 +17,7 @@ LOCAL_MODULE_CLASS := EXECUTABLES
LOCAL_SRC_FILES_x86 := AdbWinApi.dll
LOCAL_MODULE_SUFFIX := .dll
LOCAL_MULTILIB := 32
LOCAL_MODULE_HOST_OS := windows
include $(BUILD_PREBUILT)
include $(CLEAR_VARS)
@@ -25,4 +27,5 @@ LOCAL_MODULE_CLASS := EXECUTABLES
LOCAL_SRC_FILES_x86 := AdbWinUsbApi.dll
LOCAL_MODULE_SUFFIX := .dll
LOCAL_MULTILIB := 32
LOCAL_MODULE_HOST_OS := windows
include $(BUILD_PREBUILT)

View File

@@ -21,18 +21,13 @@ LOCAL_STATIC_LIBRARIES := \
libpng \
libETC1
ifeq ($(HOST_OS),linux)
LOCAL_LDLIBS += -lrt
endif
# Statically link libz for MinGW (Win SDK under Linux),
# and dynamically link for all others.
ifneq ($(strip $(USE_MINGW)),)
LOCAL_STATIC_LIBRARIES += libz
else
LOCAL_LDLIBS += -lz
endif
LOCAL_STATIC_LIBRARIES_windows := libz
LOCAL_LDLIBS_darwin := -lz
LOCAL_LDLIBS_linux := -lrt -lz
LOCAL_MODULE := etc1tool
LOCAL_MODULE_HOST_OS := darwin linux windows
include $(BUILD_HOST_EXECUTABLE)