mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
update qqt version
This commit is contained in:
parent
a2b1bb87ae
commit
4e9757db8d
3
QQt.pro
3
QQt.pro
@ -16,8 +16,7 @@ SUBDIRS = src/qqt.pro
|
||||
##QQt is build
|
||||
##-----------------------------------------------------------------
|
||||
#SUBDIRS += examples/exquisite
|
||||
#
|
||||
SUBDIRS += examples/tabwidgetexamples
|
||||
#SUBDIRS += examples/tabwidgetexamples
|
||||
#SUBDIRS += examples/qrcodeexample
|
||||
#SUBDIRS += examples/qqtnetworkexample
|
||||
#SUBDIRS += examples/qqtchartexample
|
||||
|
@ -3,16 +3,53 @@
|
||||
##please don't modify this pri
|
||||
#################################################################
|
||||
##qqt_library qqt_install all need this pri
|
||||
defineReplace(get_version_string_1) {
|
||||
major_version = $$1
|
||||
!isEmpty(2): error("get_version_string_1(major) requires one arguments")
|
||||
isEmpty(1): error("get_version_string_1(major) requires one arguments")
|
||||
command = $${major_version}
|
||||
return ($$command)
|
||||
}
|
||||
defineReplace(get_version_string_2) {
|
||||
major_version = $$1
|
||||
minor_version = $$2
|
||||
!isEmpty(3): error("get_version_string_2(major, minor) requires two arguments")
|
||||
isEmpty(2): error("get_version_string_2(major, minor) requires two arguments")
|
||||
command = $${major_version}.$${minor_version}
|
||||
return ($$command)
|
||||
}
|
||||
defineReplace(get_version_string_3) {
|
||||
major_version = $$1
|
||||
minor_version = $$2
|
||||
patch_version = $$3
|
||||
!isEmpty(4): error("get_version_string_3(major, minor, patch) requires three arguments")
|
||||
isEmpty(3): error("get_version_string_3(major, minor, patch) requires three arguments")
|
||||
command = $${major_version}.$${minor_version}.$${patch_version}
|
||||
return ($$command)
|
||||
}
|
||||
defineReplace(get_version_string_4) {
|
||||
major_version = $$1
|
||||
minor_version = $$2
|
||||
patch_version = $$3
|
||||
build_version = $$4
|
||||
!isEmpty(5): error("get_version_string_4(major, minor, patch, build) requires four arguments")
|
||||
isEmpty(4): error("get_version_string_4(major, minor, patch, build) requires four arguments")
|
||||
command = $${major_version}.$${minor_version}.$${patch_version}.$${build_version}
|
||||
return ($$command)
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
#QQt Make Version Flow
|
||||
#-------------------------------------------------------------------------------
|
||||
QQT_MAJOR_VERSION = 2
|
||||
QQT_MINOR_VERSION = 1
|
||||
QQT_PATCH_VERSION = 5
|
||||
QQT_BUILD_VERSION = 0
|
||||
|
||||
QQT_VERSION1 = $${QQT_MAJOR_VERSION}
|
||||
QQT_VERSION2 = $${QQT_MAJOR_VERSION}.$${QQT_MINOR_VERSION}
|
||||
QQT_VERSION3 = $${QQT_MAJOR_VERSION}.$${QQT_MINOR_VERSION}.$${QQT_PATCH_VERSION}
|
||||
QQT_VERSION4 = $${QQT_MAJOR_VERSION}.$${QQT_MINOR_VERSION}.$${QQT_PATCH_VERSION}.$${QQT_BUILD_VERSION}
|
||||
QQT_VERSION1 = $$get_version_string_1( $${QQT_MAJOR_VERSION} )
|
||||
QQT_VERSION2 = $$get_version_string_2( $${QQT_MAJOR_VERSION}, $${QQT_MINOR_VERSION} )
|
||||
QQT_VERSION3 = $$get_version_string_3( $${QQT_MAJOR_VERSION}, $${QQT_MINOR_VERSION}, $${QQT_PATCH_VERSION} )
|
||||
QQT_VERSION4 = $$get_version_string_4( $${QQT_MAJOR_VERSION}, $${QQT_MINOR_VERSION}, $${QQT_PATCH_VERSION}, $${QQT_BUILD_VERSION} )
|
||||
QQT_VERSION = $${QQT_VERSION3}
|
||||
|
||||
message (Build QQt version: $$QQT_VERSION4)
|
||||
|
Loading…
x
Reference in New Issue
Block a user