PDA

View Full Version : Android ARM vs Android x86 in qmake .pro file



sedi
12th May 2014, 01:21
Hi,
in my pro file I use the usual scopes for OS-specific parts (like external libraries):


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

danipellex
12th May 2014, 09:48
Easy, in this way:


android {

equals(ANDROID_TARGET_ARCH, armeabi-v7a) {
[doAndroidArmStuff]
}
equals(ANDROID_TARGET_ARCH, armeabi) {
[doAndroidArmeabiStuff]
}
equals(ANDROID_TARGET_ARCH, x86) {
[doAndroidx86Stuff]
}
}

regards
dani