1 Star 0 Fork 1

深度社区/deepin-screensaver

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
common.pri 834 Bytes
一键复制 编辑 原始数据 按行查看 历史
isEmpty(PREFIX) {
PREFIX = /usr
}
isEmpty(LIB_PATH) {
# /usr/lib/deepin-screensaver
LIB_PATH = $$PREFIX/lib/deepin-screensaver
}
isEmpty(MODULE_PATH) {
# /usr/lib/deepin-screensaver/modules
MODULE_PATH = $$LIB_PATH/modules
}
isEmpty(RESOURCE_PATH) {
# /usr/lib/deepin-screensaver/modules
RESOURCE_PATH = $$LIB_PATH/resources
}
isEmpty(COMPILE_ON_V23) {
OS_VERSION_FILE = /etc/os-version
COMPILE_ON_V23 = true
!exists($$OS_VERSION_FILE): error(\"$$OS_VERSION_FILE\" is not exists. Install \"deepin-desktop-base\" first)
# 如果是V20,则设置COMPILE_ON_V23为false
infile($$OS_VERSION_FILE, MajorVersion, 20) {
COMPILE_ON_V23 = false
message("COMPILE ON V20")
} else {
DEFINES += COMPILE_ON_V23
message("COMPILE ON V23 OR LATER")
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/linuxdeepin/deepin-screensaver.git
git@gitee.com:linuxdeepin/deepin-screensaver.git
linuxdeepin
deepin-screensaver
deepin-screensaver
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385