[android] ndk-r7 build fixes

This commit is contained in:
Alex Zolotarev 2011-11-14 14:08:10 +03:00 committed by Alex Zolotarev
parent 4e1f6cfc8a
commit adcdfad294
5 changed files with 17 additions and 5 deletions

View file

@ -2,6 +2,8 @@ LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
#LOCAL_CPP_FEATURES += exceptions rtti
LOCAL_MODULE := mapswithme
#LOCAL_CFLAGS := -DANDROID_NDK \
@ -9,6 +11,7 @@ LOCAL_MODULE := mapswithme
LOCAL_CFLAGS := -ffunction-sections -fdata-sections
TARGET_PLATFORM := android-5
LOCAL_HEADER_FILES := \
com/mapswithme/core/jni_helper.hpp \
@ -38,7 +41,7 @@ LOCAL_SRC_FILES := \
LOCAL_LDLIBS := -llog -lGLESv1_CM \
-lwords -lmap -lversion -lsearch -lstorage -lindexer -lyg -lplatform \
-lgeometry -lcoding -lbase -lexpat -lfreetype -lfribidi -lzlib -lbzip2 \
-ljansson -ltomcrypt ./obj/local/armeabi/libstdc++.a
-ljansson -ltomcrypt -lprotobuf ./obj/local/armeabi/libstdc++.a
LOCAL_LDLIBS += -L../../omim-android-debug/out/debug
#LOCAL_LDLIBS += -L../../omim-android-release/out/release

View file

@ -1,7 +1,10 @@
APP_PLATFORM := android-5
APP_ABI := armeabi
APP_STL := gnustl_static
APP_CFLAGS += -I../3party/boost
APP_CPPFLAGS += -fexceptions -frtti
# comment this to enable release build
# comment/uncomment this to enable release build
APP_OPTIM := debug
APP_CFLAGS += -DDEBUG -D_DEBUG
APP_CFLAGS += -DDEBUG -D_DEBUG
#APP_OPTIM := release
#APP_CFLAGS += -DRELEASE -D_RELEASE

View file

@ -135,3 +135,8 @@ bool Platform::GetFileSize(string const & file, uint64_t & size) const
return false;
}
}
string Platform::UniqueClientId() const
{
return "@TODO";
}

View file

@ -12,7 +12,7 @@ include(qws.conf)
NDK_TOOLCHAIN_PREFIX = arm-linux-androideabi
NDK_TOOLCHAIN_VERSION = 4.4.3
ANDROID_PLATFORM = android-9
ANDROID_PLATFORM = android-5
ANDROID_TARGET_ARCH = armeabi
NDK_TOOLCHAIN = $$NDK_TOOLCHAIN_PREFIX-$$NDK_TOOLCHAIN_VERSION

View file

@ -24,6 +24,7 @@
#elif defined(OMIM_OS_ANDROID)
#include <GLES/gl.h>
#define GL_GLEXT_PROTOTYPES
#include <GLES/glext.h>
#define OMIM_GL_ES