From 85314de363b316afe726b5a4e96b65ce8bd5ddf7 Mon Sep 17 00:00:00 2001 From: zccrs Date: Wed, 17 Jan 2018 16:06:22 +0800 Subject: [PATCH] fix: VER_MAJ/VER_MIN/VER_PAT variables is empty in qmake Change-Id: I6b1514694213082c6577892ee9678f1878a935e0 --- src/config.pri | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/config.pri b/src/config.pri index 9d1818ff4..bc1c4be33 100644 --- a/src/config.pri +++ b/src/config.pri @@ -24,25 +24,25 @@ isEmpty(VERSION) { } isEmpty(VERSION): error(VERSION is empty) +} - ver_list = $$split(VERSION, .) +ver_list = $$split(VERSION, .) - isEmpty(VER_MAJ) { - VER_MAJ = $$first(ver_list) - } +isEmpty(VER_MAJ) { + VER_MAJ = $$first(ver_list) +} - isEmpty(VER_MIN) { - VER_MIN = $$member(ver_list, 1, 1) - isEmpty(VER_MIN):VER_MIN = 0 - } +isEmpty(VER_MIN) { + VER_MIN = $$member(ver_list, 1, 1) + isEmpty(VER_MIN):VER_MIN = 0 +} - isEmpty(VER_PAT) { - VER_PAT = $$member(ver_list, 2, 2) - isEmpty(VER_PAT):VER_PAT = 0 - } +isEmpty(VER_PAT) { + VER_PAT = $$member(ver_list, 2, 2) + isEmpty(VER_PAT):VER_PAT = 0 +} - isEmpty(VER_BUI) { - VER_BUI = $$member(ver_list, 3, 3) - isEmpty(VER_BUI):VER_BUI = 0 - } +isEmpty(VER_BUI) { + VER_BUI = $$member(ver_list, 3, 3) + isEmpty(VER_BUI):VER_BUI = 0 }