mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
61 lines
1.7 KiB
Plaintext
61 lines
1.7 KiB
Plaintext
#here is all your app common defination and configration
|
|
#you can modify this pri to link qqt_library
|
|
|
|
equals(QMAKE_HOST.os, Darwin) {
|
|
QQT_SOURCE_ROOT = /Users/abel/Develop/a0-develop/a0-qqtfoundation
|
|
} else: equals(QMAKE_HOST.os, Linux) {
|
|
QQT_SOURCE_ROOT = /home/abel/Develop/a0-develop/LibQt
|
|
} else: equals(QMAKE_HOST.os, Windows) {
|
|
QQT_SOURCE_ROOT = C:/Users/Administrator/Develop/a0-develop/LibQt
|
|
}
|
|
|
|
#qqt qkit
|
|
include($${QQT_SOURCE_ROOT}/src/qqt_kit.pri)
|
|
|
|
#qqt version
|
|
include($${QQT_SOURCE_ROOT}/src/qqt_version.pri)
|
|
|
|
#link QQt static library or dynamic library
|
|
equals(QKIT_PRIVATE, iOS) {
|
|
CONFIG += staticlib
|
|
DEFINES += QQT_STATIC_LIBRARY
|
|
} else:equals(QKIT_PRIVATE, WIN32) {
|
|
#when Qt is static by mingw32 building 5.9.1
|
|
equals(QT_VERSION, 5.9.1){
|
|
CONFIG += staticlib
|
|
DEFINES += QQT_STATIC_LIBRARY
|
|
}
|
|
}
|
|
|
|
#qqt header
|
|
include($${QQT_SOURCE_ROOT}/src/qqt_header.pri)
|
|
|
|
#qqt library or qqt source
|
|
#CONFIG += BUILD_SRC
|
|
contains (CONFIG, BUILD_SRC) {
|
|
#if you want to build src but not link QQt in this project
|
|
include($${QQT_SOURCE_ROOT}/src/qqt_source.pri)
|
|
} else {
|
|
#QKIT_PRIVATE from qqt_header.pri
|
|
!contains(QKIT_PRIVATE, WIN32|WIN64) {
|
|
#default
|
|
CONFIG += link_from_sdk
|
|
} else {
|
|
CONFIG += link_from_build
|
|
}
|
|
|
|
contains(CONFIG, link_from_build) {
|
|
equals(QMAKE_HOST.os, Darwin) {
|
|
QQT_BUILD_ROOT = /Users/abel/Develop/c0-buildstation
|
|
} else: equals(QMAKE_HOST.os, Linux) {
|
|
QQT_BUILD_ROOT = /home/abel/Develop/c0-buildstation
|
|
} else: equals(QMAKE_HOST.os, Windows) {
|
|
QQT_BUILD_ROOT = C:/Users/Administrator/Develop/c0-build
|
|
}
|
|
}
|
|
|
|
#if you want to link QQt library
|
|
include($${QQT_SOURCE_ROOT}/src/qqt_library.pri)
|
|
}
|
|
|