mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
add QQT_STATIC_LIBRARY support
This commit is contained in:
parent
f843e84dad
commit
e311f66f5e
@ -6,6 +6,8 @@
|
||||
|
||||
#if defined(QQT_LIBRARY)
|
||||
# define QQTSHARED_EXPORT Q_DECL_EXPORT
|
||||
#elif defined(QQT_STATIC_LIBRARY)
|
||||
# define QQTSHARED_EXPORT
|
||||
#else
|
||||
# define QQTSHARED_EXPORT Q_DECL_IMPORT
|
||||
#endif
|
||||
|
@ -28,7 +28,7 @@ equals(QKIT_PRIVATE, macOS) {
|
||||
} else:equals(QKIT_PRIVATE, WIN32) {
|
||||
#when Qt is static by mingw32 building 5.9.1
|
||||
equals(QT_VERSION, 5.9.1){
|
||||
#DEFINES -= QQT_LIBRARY
|
||||
DEFINES += QQT_STATIC_LIBRARY
|
||||
CONFIG -= dll
|
||||
CONFIG += staticlib
|
||||
}
|
||||
|
@ -29,7 +29,8 @@ contains(DEFINES, __DARWIN__) {
|
||||
LIBS += -framework QQt
|
||||
} else {
|
||||
LIBS += -L$${QQT_LIB_PWD}
|
||||
LIBS += -l QQt
|
||||
#win can't with the blank! error: -l QQt
|
||||
LIBS += -lQQt
|
||||
}
|
||||
|
||||
equals(QKIT_PRIVATE, macOS) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user