1 Star 0 Fork 160

garywlx/qtcanpool

forked from canpool/qtcanpool 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
data.pri 2.04 KB
一键复制 编辑 原始数据 按行查看 历史
canpool 提交于 2020-11-21 14:33 . projectmgmt: sync to qtcreator-4.13.2
# This pri file is used to deploy files that are not compiled while building
# Qt Canpool. It handles copying of files into the build directory if using
# a shadow build and adds the respective install target as well.
#
# Usage: Define variables (details below) and include this pri file afterwards.
#
# STATIC_BASE - base directory for the files listed in STATIC_FILES
# STATIC_FILES - list of files to be deployed
# STATIC_OUTPUT_BASE - base directory in the compile output
# STATIC_INSTALL_BASE - base directory in the install output
# used in custom compilers which just copy files
defineReplace(stripStaticBase) {
# return($$relative_path($$1, $$STATIC_BASE))
return($$relative_path($$absolute_path($$1, $$OUT_PWD), $$STATIC_BASE))
}
# handle conditional copying based on STATIC_BASE compared to STATIC_OUTPUT_BASE
!isEmpty(STATIC_FILES) {
isEmpty(STATIC_BASE): \
error("Using STATIC_FILES without having STATIC_BASE set")
isEmpty(STATIC_OUTPUT_BASE): \
error("Using STATIC_FILES without having STATIC_OUTPUT_BASE set")
!osx:isEmpty(STATIC_INSTALL_BASE): \
error("Using STATIC_FILES without having STATIC_INSTALL_BASE set")
!isEqual(STATIC_BASE, $$STATIC_OUTPUT_BASE) {
copy2build.input += STATIC_FILES
copy2build.output = $$STATIC_OUTPUT_BASE/${QMAKE_FUNC_FILE_IN_stripStaticBase}
# copy2build.output = $$STATIC_OUTPUT_BASE/${QMAKE_FILE_OUT}
isEmpty(vcproj):copy2build.variable_out = PRE_TARGETDEPS
win32:copy2build.commands = $$QMAKE_COPY \"${QMAKE_FILE_IN}\" \"${QMAKE_FILE_OUT}\"
unix:copy2build.commands = $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
copy2build.name = COPY ${QMAKE_FILE_IN}
copy2build.CONFIG += no_link no_clean
QMAKE_EXTRA_COMPILERS += copy2build
for(static_file, STATIC_FILES) {
QMAKE_DISTCLEAN += $$STATIC_OUTPUT_BASE/$$stripStaticBase($$static_file)
}
}
static.files = $$STATIC_FILES
static.base = $$STATIC_BASE
static.path = $$STATIC_INSTALL_BASE
INSTALLS += static
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/garywlx/qtcanpool.git
git@gitee.com:garywlx/qtcanpool.git
garywlx
qtcanpool
qtcanpool
develop

搜索帮助