Attempt at android build fix on the build server (old ndk?)

This commit is contained in:
Henrik Rydgard 2013-03-21 22:50:24 +01:00
parent 4fef50245d
commit c4b6067eeb
2 changed files with 8 additions and 1 deletions

View File

@ -59,17 +59,23 @@ LOCAL_SRC_FILES :=\
util/random/perlin.cpp \
util/text/utf8.cpp
LOCAL_CFLAGS := -O2 -DGL_GLEXT_PROTOTYPES -DARM -DUSING_GLES2 -fsigned-char -fno-strict-aliasing
LOCAL_CFLAGS := -O3 -DGL_GLEXT_PROTOTYPES -DUSING_GLES2 -fsigned-char -fno-strict-aliasing
LOCAL_CPPFLAGS := -fno-exceptions -fno-rtti -std=gnu++0x
LOCAL_LDLIBS := -lz
LOCAL_C_INCLUDES := $(LOCAL_PATH)/ext/libzip
#Portable native and separate code on android in future is easy you needs add files
#by ($(target_arch_ABI),arquitecture (armeabi-v7a , armeabi , x86 , MIPS)
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
LOCAL_SRC_FILES += math/math_util.cpp
LOCAL_CFLAGS := $(LOCAL_CFLAGS) -DARM
else ifeq ($(TARGET_ARCH_ABI),armeabi)
LOCAL_SRC_FILES += math/math_utilarmv6.cpp
LOCAL_CFLAGS := $(LOCAL_CFLAGS) -DARM
else ifeq ($(TARGET_ARCH_ABI),x86)
LOCAL_SRC_FILES += math/math_util.cpp
LOCAL_CFLAGS := $(LOCAL_CFLAGS) -D_M_IX86
endif
include $(BUILD_STATIC_LIBRARY)

View File

@ -3,6 +3,7 @@
#ifndef _WIN32
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/endian.h>
#include <unistd.h>
#define closesocket close
#else