1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/examples/qqtframe2/link_qqt_library.pri
2017-11-26 09:47:57 +08:00

72 lines
2.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#here is all your app common defination and configration
#you can modify this pri to link qqt_library
#this link need Qt Creator set default build directory, replace
#%{JS: Util.asciify("/your/local/path/to/build/root/%{CurrentProject:Name}/%{Qt:Version}/%{CurrentKit:FileSystemName}/%{CurrentBuild:Name}")}
equals(QMAKE_HOST.os, Darwin) {
QQT_SOURCE_ROOT = $$PWD/../../
} else: equals(QMAKE_HOST.os, Linux) {
QQT_SOURCE_ROOT = $$PWD/../../
} else: equals(QMAKE_HOST.os, Windows) {
QQT_SOURCE_ROOT = $$PWD/../../
}
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
}
#qqt qkit
include($${QQT_SOURCE_ROOT}/src/qqt_kit.pri)
#qqt version
include($${QQT_SOURCE_ROOT}/src/qqt_version.pri)
#link QQt static library in some occation on windows
equals(QKIT_PRIVATE, WIN32) {
#Qt is static by mingw32 building
mingw{
DEFINES += QQT_STATIC_LIBRARY
}
contains(DEFINES, QQT_STATIC_LIBRARY) {
DEFINES += QCUSTOMPLOT_STATIC_LIBRARY
DEFINES += QZXING_STATIC_LIBRARY
DEFINES += QT_QTSOAP_STATIC_LIBRARY
DEFINES += BUILD_QDEVICEWATCHER_STATIC
DEFINES += QT_QTMMLWIDGET_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 your project
#if you don't want to modify Qt Creator's default build directory, this maybe a choice.
include($${QQT_SOURCE_ROOT}/src/qqt_source.pri)
} else {
#QKIT_PRIVATE from qqt_header.pri
#MOD: QQT_BUILD_ROOT
contains(QKIT_PRIVATE, WIN32|WIN64) {
CONFIG += link_from_build
} else:contains(QKIT_PRIVATE, iOS|iOSSimulator) {
#mac ios .framework .a 里面的快捷方式必须使用里面的相对路径,不能使用绝对路径
#但是qtcreator生成framework的时候用了绝对路径所以导致拷贝后链接失败库不可用。
#qqt_install.pri 里面解决了framework的拷贝问题但是对于ios里.a的没做而.a被拷贝了竟然也不能用
#在build的地方link就可以了
CONFIG += link_from_build
} else{
#default
CONFIG += link_from_sdk
}
#if you want to link QQt library
include($${QQT_SOURCE_ROOT}/src/qqt_library.pri)
}