Browse Source

linuxdeployqt: Check if EXCLUDELIST is empty or specified

Fix #273

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
master
Patrick José Pereira 7 years ago
parent
commit
cfb75a2f79
  1. 11
      tools/linuxdeployqt/linuxdeployqt.pro

11
tools/linuxdeployqt/linuxdeployqt.pro

@ -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"\"
}

Loading…
Cancel
Save