Seite 1 von 1
Präprozessor-defines in *.pro-files?
Verfasst: 25. September 2011 17:35
von ichbinsisyphos
Code: Alles auswählen
CONFIG += static
static {
DEPENDPATH += ./libzip
INCLUDEPATH += ./libzip
LIBS += -lqsvg -L./libzip -lzip
CONFIG += static
QTPLUGIN += qsvg
DEFINES += STATIC
message("Static build.")
}
else {
LIBS += -lzip
}
Im Moment kommentiere ich CONFIG += ... aus, je nachdem ob ich auf Windows (static build) oder auf Linux (normal dynamisch) bin. Ich hab kürzlich rausgefunden, dass ich im Quellcode sowas wie
verwenden kann. Jetzt frag ich mich ob ich das kombinieren und im .pro-file einsetzten kann?
Re: Präprozessor-defines in *.pro-files?
Verfasst: 25. September 2011 20:47
von ichbinsisyphos
Ich hab in dem check "static" durch "win32" ersetzt und das tut was ich will. Fragts sich noch, wo das herkommt.
Re: Präprozessor-defines in *.pro-files?
Verfasst: 30. September 2011 18:19
von solarix
ichbinsisyphos hat geschrieben: Fragts sich noch, wo das herkommt.
"win32" ist IMHO "built-in" (also vermutlich hartcodiert in qmake)
http://doc.qt.nokia.com/stable/qmake-ad ... ope-values
hth!