mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
add sdk no need major version
This commit is contained in:
parent
d6887262f9
commit
262a81e417
@ -22,7 +22,6 @@ defineReplace(get_add_mac_sdk_fix_building_framework) {
|
||||
libname = $$TARGET
|
||||
libname_temp = $${libname}_Temp
|
||||
libname_lower = $$lower($${libname})
|
||||
libmajorver = $$APP_MAJOR_VERSION
|
||||
|
||||
command =
|
||||
command += chmod +x $${THIS_PRI_PWD}/linux_cur_path.sh &&
|
||||
@ -93,7 +92,9 @@ defineReplace(get_add_mac_sdk){
|
||||
#need cd framework root
|
||||
#LIB_BUILD_PWD libname libmajorver
|
||||
libname = $$TARGET
|
||||
libmajorver = $$APP_MAJOR_VERSION
|
||||
libmajorver = $$system(readlink $${LIB_BUILD_PWD}/$${libname}.framework/Versions/Current)
|
||||
isEmpty(libmajorver):libmajorver = 1
|
||||
#message($$TARGET major version $$libmajor)
|
||||
|
||||
LIB_BUNDLE_VER_DIR = Versions/$${libmajorver}
|
||||
LIB_BUNDLE_CUR_DIR = Versions/Current
|
||||
@ -189,7 +190,6 @@ defineReplace(get_add_sdk_work_flow){
|
||||
|
||||
libname = $$TARGET
|
||||
libname_lower = $$lower($${libname})
|
||||
libmajorver = $$APP_MAJOR_VERSION
|
||||
|
||||
command =
|
||||
contains(QSYS_PRIVATE, macOS) {
|
||||
@ -239,7 +239,6 @@ defineReplace(get_add_sdk_work_flow){
|
||||
defineReplace(get_add_sdk_private){
|
||||
libname = $$TARGET
|
||||
libname_lower = $$lower($${libname})
|
||||
libmajorver = $$APP_MAJOR_VERSION
|
||||
|
||||
#qqt defined these dir struct, used from qt library
|
||||
LIB_INC_DIR = include/$${libname}
|
||||
@ -283,7 +282,7 @@ defineReplace(get_add_sdk_private){
|
||||
################################################
|
||||
##用户调用的函数
|
||||
################################################
|
||||
#依赖 libname libsrcdir libdstdir libmajorversion
|
||||
#依赖 libname libsrcdir libdstdir
|
||||
defineTest(add_sdk){
|
||||
#isEmpty(1):error(add_sdk(libname, libsrcdir, libdstdir) need at last one argument)
|
||||
|
||||
@ -306,9 +305,6 @@ defineTest(add_sdk){
|
||||
LIB_SRC_PWD=$$2
|
||||
isEmpty(2):LIB_SRC_PWD=$${PWD}
|
||||
|
||||
#lib major version
|
||||
libmajorver = $$APP_MAJOR_VERSION
|
||||
|
||||
#need use qqt subdir proj
|
||||
LIB_BUILD_PWD=$${APP_BUILD_ROOT}/$${LIB_STD_DIR}
|
||||
!isEmpty(LIB_DST_DIR):LIB_BUILD_PWD=$${LIB_BUILD_PWD}/$${LIB_DST_DIR}
|
||||
|
@ -166,12 +166,11 @@ contains(CONFIG, continued_build){
|
||||
##这个作用比较大,lib工程需要,app工程也需要。
|
||||
#################################################################
|
||||
#包含lib的header.pri用于公开给用户头文件。
|
||||
#
|
||||
include (qqt_header.pri)
|
||||
|
||||
#设置版本 必要
|
||||
#设置版本 可选 (如果设置版本,最先设置)
|
||||
add_version(2,4,0,0)
|
||||
#发布SDK 必要
|
||||
#发布SDK 必要 (SUBDIRS 里面形态比较复杂深邃)
|
||||
add_sdk($$TARGET, $$PWD, src/$$DESTDIR)
|
||||
|
||||
#################################################################
|
||||
|
Loading…
x
Reference in New Issue
Block a user