From 8a130e1d97da13327122e4d2c19d81b276859268 Mon Sep 17 00:00:00 2001
From: Ming Rui Zhang <mingrui.zhang@savoirfairelinux.com>
Date: Tue, 13 Oct 2020 13:46:43 -0400
Subject: [PATCH] misc: better parameterization for Qt version and toolset
 version

Change-Id: Ibd9eab86af0dbe5a7f1349ff084afb46e85f370d
---
 make-ring.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/make-ring.py b/make-ring.py
index fad43298..f68fbe23 100755
--- a/make-ring.py
+++ b/make-ring.py
@@ -23,12 +23,12 @@ ANDROID_DISTRIBUTION_NAME = "android"
 WIN32_DISTRIBUTION_NAME = "win32"
 
 # Qt 5.15 is currently only available using the maintenance tool.
-QT5_VERSION = "5.15"
-DEFAULT_QT_5_15_PATH = "~/Qt/5.15.0/gcc_64"
+QT5_VERSION = "5.15.0"
+DEFAULT_QT_PATH = "~/Qt/{0}/gcc_64".format(QT5_VERSION)
 
 # vs vars
 win_sdk_default = '10.0.16299.0'
-win_toolset_default = 'v142'
+win_toolset_default = '142'
 
 APT_BASED_DISTROS = [
     'debian',
@@ -353,7 +353,7 @@ def run_install(args):
             install_args += ("-c", "client-qt")
             install_args += ("-q", QT5_VERSION)
             if args.qt is '':
-                install_args += ("-Q", DEFAULT_QT_5_15_PATH)
+                install_args += ("-Q", DEFAULT_QT_PATH)
             else:
                 install_args += ("-Q", args.qt)
 
@@ -532,7 +532,7 @@ def parse_args():
                         help='Windows use only, specify Visual Studio toolset version')
         ap.add_argument('--sdk', default=win_sdk_default, type=str,
                         help='Windows use only, specify Windows SDK version')
-        ap.add_argument('--qtver', default='5.15.0',
+        ap.add_argument('--qtver', default=QT5_VERSION,
                         help='Sets the Qt version to build with')
 
     parsed_args = ap.parse_args()
-- 
GitLab