加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
qt5ct.pro 1.00 KB
一键复制 编辑 原始数据 按行查看 历史
trialuser02 提交于 2018-02-21 20:11 . fixed installation
TEMPLATE = subdirs
SUBDIRS += src/qt5ct-qtplugin src/qt5ct-style src/qt5ct
unix:exists($$[QT_INSTALL_BINS]/lrelease){
LRELEASE_EXECUTABLE = $$[QT_INSTALL_BINS]/lrelease
}
unix:exists($$[QT_INSTALL_BINS]/lrelease-qt5){
LRELEASE_EXECUTABLE = $$[QT_INSTALL_BINS]/lrelease-qt5
}
win32:exists($$[QT_INSTALL_BINS]/lrelease.exe){
LRELEASE_EXECUTABLE = $$[QT_INSTALL_BINS]/lrelease.exe
}
isEmpty(LRELEASE_EXECUTABLE){
error(Could not find lrelease executable)
}
else {
message(Found lrelease executable: $$LRELEASE_EXECUTABLE)
}
message(generating translations)
unix:system(find . -name *.ts | xargs $$LRELEASE_EXECUTABLE)
win32:system(for /r %B in (*.ts) do $$LRELEASE_EXECUTABLE %B)
include(qt5ct.pri)
qss.files = qss/*.qss
qss.path = $$DATADIR/qt5ct/qss
colors.files = colors/*.conf
colors.path = $$DATADIR/qt5ct/colors
INSTALLS += qss colors
message (PREFIX=$$PREFIX)
message (BINDIR=$$BINDIR)
message (DATADIR=$$DATADIR)
message (PLUGINDIR=$$PLUGINDIR)
equals (DISABLE_WIDGETS,1):message ("Qt Widgets are disabled!")
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化