ScreenTranslator/share/ci/config.py

35 lines
1.2 KiB
Python
Raw Normal View History

2020-03-01 16:30:43 +07:00
from os import getenv, path
2020-03-09 16:57:14 +07:00
import re
2020-03-01 16:30:43 +07:00
app_name = 'ScreenTranslator'
target_name = app_name
qt_version = '5.14.0'
qt_modules = ['qtbase', 'qttools', 'icu',
'qttranslations', 'qtx11extras', 'qtwebengine', 'qtwebchannel',
2020-04-12 18:45:11 +07:00
'qtdeclarative', 'qtlocation', 'opengl32sw', 'd3dcompiler_47',
'qtserialport']
2020-03-01 16:30:43 +07:00
qt_dir = path.abspath('qt')
2020-04-12 19:52:42 +07:00
ssl_dir = path.abspath('ssl')
2020-03-01 16:30:43 +07:00
build_dir = path.abspath('build')
dependencies_dir = path.abspath('deps')
pro_file = path.abspath(path.dirname(__file__) +
'/../../screen-translator.pro')
2020-03-27 23:36:06 +07:00
test_pro_file = path.abspath(path.dirname(__file__) +
'/../../tests/tests.pro')
2020-03-09 16:57:14 +07:00
app_version = 'testing'
with open(pro_file, 'r') as f:
2020-03-27 23:36:06 +07:00
match = re.search(r'VER=(.*)', f.read())
if match:
app_version = match.group(1)
2020-03-01 16:30:43 +07:00
ts_files_dir = path.abspath(path.dirname(__file__) + '/../../translations')
os_name = getenv('OS', 'linux')
app_version += {'linux': '', 'macos': '-experimental',
'win32': '', 'win64': ''}[os_name]
bitness = '32' if os_name == 'win32' else '64'
msvc_version = getenv('MSVC_VERSION', '2017/Community')
2020-04-03 22:05:33 +07:00
build_type = 'release' # 'debug'