Qt: various options in a .pro file based on target architecture in WinRT

Different libraries (and others) should be installed based on the target architecture. Therefore the .pro file includes this code:

contains(QMAKE_TARGET.arch, arm) {
    LIBS += -L$$PWD/arm
}
else {
    contains(QMAKE_TARGET.arch, x86_64) {
        LIBS += -L$$PWD/x64
    }
    else {
        LIBS += -L$$PWD/x86
    }
}

      

Now the problem is that it is contains(QMAKE_TARGET.arch, arm)

never true. Is there any other way to get ARM architecture for WinRT builds?

Hello,

+3
qt qmake


source to share


No one has answered this question yet

See similar questions:

0
How to determine the target iOS architecture in qmake?

or similar:

91
How to specify different debug / release output directories in QMake.pro file
7
How to specify android platform only libraries in .pro file?
3
How do you change kits in Qt for installation on an x86 machine?
2
Multiple configurations in Qt
2
LIBS vs PRE_TARGETDEPS in Qt .pro files
1
QT Creator project file: how to check for android hand vs x86
1
qmake generates one vcxproj for x86 and x64?
0
Multiple programs using the same class
0
How can I skip incompatible libraries in a qmake project?
0
How to determine the target iOS architecture in qmake?



All Articles
Loading...
X
Show
Funny
Dev
Pics