ddf7233125
Using these requires setting two environment variables, e.g, for me: export ANDROID_NDK_ROOT=/Users/burchr/android-ndk-r7c export ANDROID_NDK_HOST=darwin-x86 ./configure -opensource -confirm-license -xplatform unsupported/linux-android-armeabi-v7a-g++ -nomake examples -nomake demos -nomake tests -v These mkspecs are somewhat based on the work of the Necessitas crew, kudos to them for their work in getting the NDK integration into qmake. Change-Id: I591e423ed8dc70616009f681c81890c696110e62 Reviewed-by: Girish Ramakrishnan <girish.1.ramakrishnan@nokia.com>
16 lines
615 B
Plaintext
16 lines
615 B
Plaintext
#
|
|
# qmake configuration for building with android-g++ for ARMv7
|
|
#
|
|
|
|
ANDROID_TARGET_ARCH = armeabi-v7a
|
|
ANDROID_ARCHITECTURE = arm
|
|
ANDROID_NDK_TOOLCHAIN_PREFIX = arm-linux-androideabi
|
|
ANDROID_NDK_TOOLS_PREFIX = arm-linux-androideabi
|
|
|
|
include(../../common/linux-android.conf)
|
|
|
|
QMAKE_CFLAGS = -Wno-psabi -march=armv7-a -mfloat-abi=softfp -mfpu=vfp -fpic -ffunction-sections -funwind-tables -fstack-protector -fno-short-enums -DANDROID -Wa,--noexecstack
|
|
QMAKE_CFLAGS_RELEASE = -g -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64
|
|
QMAKE_CFLAGS_DEBUG = -g -marm -O0 -fno-omit-frame-pointer
|
|
|