Android ARM vs Android x86 in qmake .pro file
Hi,
in my pro file I use the usual scopes for OS-specific parts (like external libraries):
Code:
win32: {
[doWin32Stuff]
}
android: {
[doAndroidStuff]
}
How is it possible to react to the targeted processor architecture (ARM vs x86 on Android)?
In .cpp I can use the predefined compiler macros - but what can I do in the .pro file?
(I need to deploy 3rd party libs - prefereably compiled for the right prozessor :-))
Best regards,
Sebastian
Re: Android ARM vs Android x86 in qmake .pro file
Easy, in this way:
Code:
android {
equals(ANDROID_TARGET_ARCH, armeabi-v7a) {
[doAndroidArmStuff]
}
equals(ANDROID_TARGET_ARCH, armeabi) {
[doAndroidArmeabiStuff]
}
equals(ANDROID_TARGET_ARCH, x86) {
[doAndroidx86Stuff]
}
}
regards
dani