Skip to content

Commit

Permalink
fix: VER_MAJ/VER_MIN/VER_PAT variables is empty in qmake
Browse files Browse the repository at this point in the history
Change-Id: I6b1514694213082c6577892ee9678f1878a935e0
  • Loading branch information
zccrs committed Jan 17, 2018
1 parent 13023a3 commit 85314de
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/config.pri
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 85314de

Please sign in to comment.