1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00

add link from build

This commit is contained in:
tianduanrui 2017-11-07 10:08:55 +08:00
parent f2b5c6959a
commit 826ef60f35
2 changed files with 18 additions and 5 deletions

View File

@ -19,11 +19,19 @@ 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 {
contains(QKIT_PRIVATE, WIN32|WIN64) {
} else {
#if you want to link QQt library
include($${QQT_SOURCE_ROOT}/src/qqt_library.pri)
#default CONFIG += link_from_sdk
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)
}
############

View File

@ -11,7 +11,12 @@ message(Link QQt to $${TARGET} $${QKIT_PRIVATE} \
at $${QT_VERSION} $${SYSNAME} $${BUILD} \
on $${QMAKE_HOST.os})
isEmpty(QQT_LIB_PWD) {
contains(CONFIG, link_from_build) {
#this configration need Qt Creator set default build directory
#%{CurrentProject:Name}/%{Qt:Version}/%{CurrentKit:FileSystemName}/%{CurrentBuild:Name}")}
QQT_BUILD_OUT_PWD = QQt/$${QT_VERSION}/$${SYSNAME}/$${BUILD}/src/$${DESTDIR}
QQT_LIB_PWD = $${QQT_BUILD_ROOT}/$${QQT_BUILD_OUT_PWD}
} else {
QQT_LIB_PWD = $$PWD/../sdk/lib
}
message (Link QQt from: $$QQT_LIB_PWD)