qt5base-lts/mkspecs/unsupported/linux-android-x86-g++/qmake.conf
Robin Burchell ddf7233125 Add mkspecs for android cross compilation.
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>
2012-06-29 21:15:46 +02:00

16 lines
466 B
Plaintext

#
# qmake configuration for building with android-g++ for x86
#
ANDROID_TARGET_ARCH = x86
ANDROID_ARCHITECTURE = x86
ANDROID_NDK_TOOLCHAIN_PREFIX = x86
ANDROID_NDK_TOOLS_PREFIX = i686-android-linux
include(../../common/linux-android.conf)
QMAKE_CFLAGS = -ffunction-sections -funwind-tables -O2 -fomit-frame-pointer -fstrict-aliasing -funswitch-loops -finline-limit=300 -DANDROID -Wa,--noexecstack
QMAKE_CFLAGS_RELEASE = -g -O2
QMAKE_CFLAGS_DEBUG = -g