1
0
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:
tianduanrui 2017-11-07 10:52:21 +08:00
parent f843e84dad
commit e311f66f5e
3 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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
}

View File

@ -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) {