2017-11-07 10:33:42 +08:00
|
|
|
|
#here is all your app common defination and configration
|
|
|
|
|
#you can modify this pri to link qqt_library
|
|
|
|
|
|
|
|
|
|
equals(QMAKE_HOST.os, Darwin) {
|
2017-11-19 13:40:31 +08:00
|
|
|
|
QQT_SOURCE_ROOT = $$PWD/../../
|
2017-11-07 10:33:42 +08:00
|
|
|
|
} else: equals(QMAKE_HOST.os, Linux) {
|
2017-11-19 13:40:31 +08:00
|
|
|
|
QQT_SOURCE_ROOT = $$PWD/../../
|
2017-11-07 10:33:42 +08:00
|
|
|
|
} else: equals(QMAKE_HOST.os, Windows) {
|
2017-11-19 13:40:31 +08:00
|
|
|
|
QQT_SOURCE_ROOT = $$PWD/../../
|
2017-11-07 10:33:42 +08:00
|
|
|
|
}
|
|
|
|
|
|
2017-11-07 12:04:43 +08:00
|
|
|
|
#qqt qkit
|
|
|
|
|
include($${QQT_SOURCE_ROOT}/src/qqt_kit.pri)
|
|
|
|
|
|
2017-11-07 10:33:42 +08:00
|
|
|
|
#qqt version
|
|
|
|
|
include($${QQT_SOURCE_ROOT}/src/qqt_version.pri)
|
|
|
|
|
|
2017-11-07 12:52:20 +08:00
|
|
|
|
#link QQt static library in some occation
|
|
|
|
|
equals(QKIT_PRIVATE, WIN32) {
|
2017-11-07 12:04:43 +08:00
|
|
|
|
#when Qt is static by mingw32 building 5.9.1
|
|
|
|
|
equals(QT_VERSION, 5.9.1){
|
|
|
|
|
DEFINES += QQT_STATIC_LIBRARY
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-11-07 10:33:42 +08:00
|
|
|
|
#qqt header
|
|
|
|
|
include($${QQT_SOURCE_ROOT}/src/qqt_header.pri)
|
|
|
|
|
|
|
|
|
|
#qqt library or qqt source
|
|
|
|
|
#CONFIG += BUILD_SRC
|
|
|
|
|
contains (CONFIG, BUILD_SRC) {
|
2017-11-19 13:40:31 +08:00
|
|
|
|
#if you want to build src but not link QQt in your project
|
2017-11-07 10:33:42 +08:00
|
|
|
|
include($${QQT_SOURCE_ROOT}/src/qqt_source.pri)
|
|
|
|
|
} else {
|
|
|
|
|
#QKIT_PRIVATE from qqt_header.pri
|
2017-11-13 10:00:48 +08:00
|
|
|
|
contains(QKIT_PRIVATE, WIN32|WIN64) {
|
2017-11-07 10:33:42 +08:00
|
|
|
|
CONFIG += link_from_build
|
2017-11-13 10:00:48 +08:00
|
|
|
|
} else:contains(QKIT_PRIVATE, iOS|iOSSimulator) {
|
|
|
|
|
#mac ios .framework .a 里面的快捷方式必须使用里面的相对路径,不能使用绝对路径
|
|
|
|
|
#但是qtcreator生成framework的时候用了绝对路径,所以导致拷贝后链接失败,库不可用。
|
|
|
|
|
#qqt_install.pri 里面解决了framework的拷贝问题,但是对于ios里.a的没做,而.a被拷贝了竟然也不能用!
|
|
|
|
|
#在build的地方link就可以了
|
2017-11-13 09:47:37 +08:00
|
|
|
|
CONFIG += link_from_build
|
2017-11-13 10:00:48 +08:00
|
|
|
|
} else{
|
|
|
|
|
#default
|
|
|
|
|
CONFIG += link_from_sdk
|
2017-11-13 09:47:37 +08:00
|
|
|
|
}
|
2017-11-07 10:33:42 +08:00
|
|
|
|
|
|
|
|
|
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)
|
|
|
|
|
}
|