linuxdeployqt: Check if EXCLUDELIST is empty or specified

Fix #273

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira
2018-04-09 20:50:54 -03:00
parent 7b7f603278
commit cfb75a2f79
+10 -1
View File
@@ -35,4 +35,13 @@ isEmpty(_BUILD_NUMBER) {
}
DEFINES += LINUXDEPLOYQT_VERSION="'\"$(shell cd $$PWD && git describe --tags $(shell cd $$PWD && git rev-list --tags --skip=1 --max-count=1) --abbrev=0)\"'"
DEFINES += EXCLUDELIST=\""$$system($$_PRO_FILE_PWD_/../excludelist.sh)"\"
contains(DEFINES, EXCLUDELIST.*) {
message("EXCLUDELIST specified, to use the most recent exclude list, please run qmake without EXCLUDELIST definition and with internet.")
} else {
message("Creating exclude list.")
EXCLUDELIST = $$system($$_PRO_FILE_PWD_/../excludelist.sh)
isEmpty(EXCLUDELIST) {
error("You must have internet to update EXCLUDELIST or define it in qmake.")
}
DEFINES += EXCLUDELIST=\""$$EXCLUDELIST"\"
}