1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
This commit is contained in:
tianduanrui 2019-03-25 20:42:55 +08:00
parent ab568be3bc
commit 424c6274af
3 changed files with 18 additions and 17 deletions

0
PR.md Normal file
View File

View File

@ -47,17 +47,17 @@ include ($${PWD}/../multi-link/add_base_manager.pri)
#如果,用户把 LibQQt 编译为静态库,为用户提供 build_link_QQt 配置和 QQT_STATIC_LIBRARY Multi-link也为使用者提供链接QQt用的静态配置和宏
#add_static_library_project()
#如果,用户动态编译 LibQQt,为用户提供 build_QQt 配置和 QQT_LIBRARY
add_dynamic_library_project()
#add_dynamic_library_project()
#Multi-link 提供以上函数替代以下代码
#Multi-link 提供以上函数替代以下代码我喜欢使用以下代码
#动态链接添加我自己的QQt的宏定义
#contains(DEFINES, LIB_LIBRARY) {
# DEFINES += QQT_LIBRARY
# message(Build $${TARGET} QQT_LIBRARY is defined. build)
#} else:contains(DEFINES, LIB_STATIC_LIBRARY) {
# DEFINES += QQT_STATIC_LIBRARY
# message(Build $${TARGET} QQT_STATIC_LIBRARY is defined. build and link)
#}
contains(DEFINES, LIB_LIBRARY) {
DEFINES += QQT_LIBRARY
message(Build $${TARGET} QQT_LIBRARY is defined. build)
} else:contains(DEFINES, LIB_STATIC_LIBRARY) {
DEFINES += QQT_STATIC_LIBRARY
message(Build $${TARGET} QQT_STATIC_LIBRARY is defined. build and link)
}
#clean_target()
#clean_sdk()

View File

@ -159,14 +159,15 @@ defineTest(add_defines_QQt){
#link QQt static library in some occation on windows
#when link QQt static library, if no this macro, headers can't be linked on windows.
#Qt is static by mingw32 building ?
ios{
#on my computer, Qt library are all static library?
DEFINES += QQT_STATIC_LIBRARY
message(Build $${TARGET} QQT_STATIC_LIBRARY is defined. build and link)
}
#link and build all need this macro
#现在Multi-link v2里面已经有LIB_STATIC_LIBRARY这个宏多余了可是由于内部逻辑复杂更改也不简单所以留着了。用户静态编译LibQQt记得定义QQT_STATIC_LIBRARYbuild and link。
#ios{
# #on my computer, Qt library are all static library?
# DEFINES += QQT_STATIC_LIBRARY
# message(Build $${TARGET} QQT_STATIC_LIBRARY is defined. build and link)
#}
#
##link and build all need this macro
##现在Multi-link v2里面已经有LIB_STATIC_LIBRARY这个宏多余了可是由于内部逻辑复杂更改也不简单所以留着了。用户静态编译LibQQt记得定义QQT_STATIC_LIBRARYbuild and link。
##这个宏并不多余,是链接库的必要自有宏。
contains(DEFINES, QQT_STATIC_LIBRARY) {
}