Specific code and libraries for android x86
Hi,
I have to supply platform-dependend 3rd-party libraries with my application.
I already use this code for distinguishing between windows and android in general:
In my .pro file:
Code:
win32: {
INCLUDEPATH += ../[folder of the app]/3rdparty/[path to win32 include]
LIBS += -L../../[folder of the app]/3rdparty/[path to win32 lib] \
-lxls
}
android: {
INCLUDEPATH += ../[folder of the app]/3rdparty/[path to android include]
LIBS += -L../../[folder of the app]/3rdparty/[path to android lib] \
-lxls
}
In my .cpp files I use this syntax:
Code:
#ifdef Q_OS_ANDROID
[do android-specific stuff]
#else
[do windows-specific stuff]
#endif
Having installed Qt 5.3.0 beta I'd like to also target the emerging android x86. The toolchain is ready - how can I
- set up the pro file to include the library for android x86? (Is there a list with usable OSes like "win32:" and "android:" as seen above?)
- use platform-specific code for x86 architecture? (Is there a list with usable #ifdef targets?)
Any help on one or both of of these questian is highly appreciated.
Sebastian