mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
update
This commit is contained in:
parent
0d92016523
commit
d9192d3c5f
@ -42,3 +42,4 @@ contains(CONFIG, deploy_config) {
|
||||
}
|
||||
}
|
||||
include(../../src/app_base_manager.pri)
|
||||
include(app_version.pri)
|
||||
|
14
demo/SysInfoNotify/app_version.pri
Normal file
14
demo/SysInfoNotify/app_version.pri
Normal file
@ -0,0 +1,14 @@
|
||||
#################################################################
|
||||
##project $${TARGET} version pri
|
||||
#################################################################
|
||||
|
||||
APP_MAJOR_VERSION = 0
|
||||
APP_MINOR_VERSION = 1
|
||||
APP_PATCH_VERSION = 0
|
||||
APP_BUILD_VERSION = 0
|
||||
|
||||
APP_VERSION = $${APP_MAJOR_VERSION}.$${APP_MINOR_VERSION}.$${APP_PATCH_VERSION}
|
||||
APP_VERSION4 = $${APP_MAJOR_VERSION}.$${APP_MINOR_VERSION}.$${APP_PATCH_VERSION}.$${APP_BUILD_VERSION}
|
||||
DEFINES += APP_VERSION=$${APP_VERSION}
|
||||
message (Build $${TARGET} version: $$APP_VERSION4)
|
||||
unix:VERSION = $${APP_VERSION}
|
@ -55,4 +55,4 @@ QQT_VERSION4 = $$get_version_string_4( $${QQT_MAJOR_VERSION}, $${QQT_MINOR_VERSI
|
||||
QQT_VERSION = $${QQT_VERSION3}
|
||||
#源代码 域宏
|
||||
DEFINES += QQT_VERSION=$${QQT_VERSION}
|
||||
message (Build QQt version: $$QQT_VERSION)
|
||||
message (Build QQt version: $$QQT_VERSION4)
|
||||
|
1
usage.md
1
usage.md
@ -27,6 +27,7 @@ APP_DEPLOY_ROOT = /Users/abel/Develop/d1-product
|
||||
2. 参照LibQQt/src/qqt_qkit.pri里的SYSNAME变量,在Qt Creator首选项-设置构建和运行-构建套件Kit页面的每个kit的File System Name。(请使用Qt Creator 3.5以上版本,其被佩戴于Qt5.2.)
|
||||
3. 打开LibQQt工程,根据qmake输出,在用户配置目录/[.]qmake/app_configure.pri里面设置QQT_BUILD_ROOT QQT_SDK_ROOT APP_DEPLOY_ROOT三个路径变量
|
||||
4. 仿照LibQQt的例程,在用户工程.pro里include(.../LibQQt/src/app_base_manager.pri)
|
||||
- 如果需要跟随发布配置文件,按照图里的设置APP_CONFIG_PWD
|
||||
5. 在Qt Creator项目-kit-构建设置页面,配置QKIT环境变量(LibQQt也需要,用户App需要),可以build了。
|
||||
|
||||
在LibQQt/app/xxx.pri,用户可以选用,拷贝到自己工程目录。
|
||||
|
Loading…
x
Reference in New Issue
Block a user