1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00
LibQQt/app/app_base_manager.pri
2018-05-20 19:45:33 +08:00

100 lines
3.8 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#------------------------------------------------------------------
#工程组织管理器
#包含link libqqtdeploy appdeploy config files
#App翻译 App版本 由App工程自行管理
#------------------------------------------------------------------
################################################################
##app 的 config defination 先一步设置好
################################################################
contains(CONFIG, mac) {
CONFIG += app_bundle
}
################################################################
##administrator policy
##如果用户App需要管理员权限那么打开这个CONFIG
################################################################
#CONFIG += administrator
contains(CONFIG, administrator){
win32 {
QMAKE_LFLAGS += /MANIFESTUAC:\"level=\'requireAdministrator\' uiAccess=\'false\'\"
}
}
################################################################
##build cache (此处为中间目标目录,对用户并不重要)
##此处加以干涉,使目录清晰。
##此处关于DESTDIR的设置导致用户必须把这个文件的包含提前到最前边的位置才能进行App里的目录操作。
##删除干涉?
##用户注意:(done in app_base_manager), 首先include(app_link_qqt_library.pri)然后做app的工作和include其他pri包括LibQQt提供的其他pri保证这个顺序就不会出错了。
##对编译目标目录进行干涉管理,显得更加细腻。
##用户注意:这里相当于给编译中间目录加了一个自动校准,属于校正范畴。
################################################################
OBJECTS_DIR = obj
MOC_DIR = obj/moc.cpp
UI_DIR = obj/ui.h
RCC_DIR = qrc
#这样做保持了App工程和LibQQt工程目录的一致性但是并不必要。
DESTDIR = bin
################################################################
##Multi-link technology
################################################################
include($$PWD/app_multi_link_technology.pri)
################################################################
##用户lib链接其他Library的函数库
################################################################
include ($${PWD}/app_multi_link_function.pri)
################################################################
##link QQt
################################################################
include($${PWD}/app_link_qqt_library.pri)
################################################################
##deploy app for install update deploy
##config defination
##依赖 APP_DEPLOY_ROOT DESTDIR(can set)
################################################################
#Qt4 is not a very good Cross Qt version, Qt5 suggest.
#if you have this request, include this pri in your app pro
include($${PWD}/app_deploy.pri)
################################################################
##deploy app config files for install update deploy
##config defination
#依赖 APP_CONFIG_PWD(in app pro) APP_DEPLOY_PWD(in app deploy)
################################################################
#if you have this request, include this pri in your app pro
include($${PWD}/app_deploy_config.pri)
#-------------------------------------------------
#install app
#-------------------------------------------------
contains(QKIT_PRIVATE, EMBEDDED||MIPS32||ARM32) {
target.path = /Application
INSTALLS += target
}
#CONFIG += can_install
can_install: unix {
equals(QKIT_PRIVATE, macOS) {
target.path = /Applications
INSTALLS += target
}
}
#-------------------------------------------------
##project environ print
#-------------------------------------------------
#default ignore
#message ($${TARGET} config $${CONFIG})
#message ($${TARGET} define $${DEFINES})
#message ($${TARGET} QMAKE_PRE_LINK $${QMAKE_PRE_LINK})
#message ($${TARGET} QMAKE_POST_LINK $${QMAKE_POST_LINK})