forked from organicmaps/organicmaps
[android] Build armeabi and armeabi-v7a simultaneously for the project
- Also added Production configuration support
This commit is contained in:
parent
7d0bea4a25
commit
4f28cab5ce
2 changed files with 25 additions and 4 deletions
|
@ -54,10 +54,28 @@ LOCAL_LDLIBS := -llog -lGLESv1_CM \
|
|||
|
||||
LOCAL_LDLIBS += -Wl,--gc-sections
|
||||
|
||||
OMIM_CONFIG := release
|
||||
OMIM_SUBFOLDER := release
|
||||
ifeq ($(NDK_DEBUG),1)
|
||||
LOCAL_LDLIBS += -L../../omim-android-debug/out/debug
|
||||
OMIM_CONFIG := debug
|
||||
OMIM_SUBFOLDER := debug
|
||||
else
|
||||
LOCAL_LDLIBS += -L../../omim-android-release/out/release
|
||||
ifeq ($(PRODUCTION),1)
|
||||
OMIM_CONFIG := production
|
||||
LOCAL_CFLAGS += -O3
|
||||
endif
|
||||
endif
|
||||
|
||||
# empty means armv5
|
||||
OMIM_ABI :=
|
||||
ifeq ($(TARGET_ARCH_ABI),armeabi-v7a)
|
||||
OMIM_ABI := -armv7
|
||||
else
|
||||
ifeq ($(TARGET_ARCH_ABI),x86)
|
||||
OMIM_ABI := -x86
|
||||
endif
|
||||
endif
|
||||
|
||||
LOCAL_LDLIBS += -L../../omim-android-$(OMIM_CONFIG)$(OMIM_ABI)/out/$(OMIM_SUBFOLDER)
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
APP_PLATFORM := android-5
|
||||
APP_ABI := armeabi
|
||||
APP_ABI := armeabi armeabi-v7a
|
||||
APP_STL := gnustl_static
|
||||
APP_CFLAGS += -I../3party/boost
|
||||
|
||||
|
@ -9,4 +9,7 @@ ifeq ($(NDK_DEBUG),1)
|
|||
else
|
||||
APP_OPTIM := release
|
||||
APP_CFLAGS += -DRELEASE -D_RELEASE
|
||||
endif
|
||||
ifeq ($(PRODUCTION),1)
|
||||
APP_CFLAGS += -DOMIM_PRODUCTION
|
||||
endif
|
||||
endif
|
||||
|
|
Loading…
Add table
Reference in a new issue