mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
update
This commit is contained in:
parent
ab568be3bc
commit
424c6274af
18
src/QQt.pro
18
src/QQt.pro
@ -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()
|
||||
|
@ -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_LIBRARY,build 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_LIBRARY,build and link。
|
||||
##这个宏并不多余,是链接库的必要自有宏。
|
||||
contains(DEFINES, QQT_STATIC_LIBRARY) {
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user