nuliknol
17th August 2016, 15:04
Hi all.
I am compiling my app for 2 platforms, Destop and Android. The app uses a library. Right now I specify double library paths like this:
LIBS += -L/home/niko/wrkgr/intel/wrklib -L/home/niko/wrkgr/android/wrklib
How would I mofify the config file so the library path is included depending on the build architecture ?
something like:
IF (INTEL) {
LIBS += -L/home/niko/wrkgr/intel/wrklib
ENDIF
IF (ANDROID_ARM) {
LIBS += -L/home/niko/wrkgr/intel/wrklib
}
IF (ANDROID_X86 {
LIBS += -L/home/niko/wrkgr/intel/wrklib
}
What is the correct syntax?
I am compiling my app for 2 platforms, Destop and Android. The app uses a library. Right now I specify double library paths like this:
LIBS += -L/home/niko/wrkgr/intel/wrklib -L/home/niko/wrkgr/android/wrklib
How would I mofify the config file so the library path is included depending on the build architecture ?
something like:
IF (INTEL) {
LIBS += -L/home/niko/wrkgr/intel/wrklib
ENDIF
IF (ANDROID_ARM) {
LIBS += -L/home/niko/wrkgr/intel/wrklib
}
IF (ANDROID_X86 {
LIBS += -L/home/niko/wrkgr/intel/wrklib
}
What is the correct syntax?