예제 #1
0
Path(paths.build_dir).mkdir(parents=True, exist_ok=True)

# qt
qt_version = "5.15.1"
qt_platform = "desktop"
qt_system = ""
qt_target = ""
if platform.system() == "Darwin":
    qt_system = "mac"
    qt_target = "clang_64"
if platform.system() == "Linux":
    qt_system = "linux"
    qt_target = "gcc_64"
if platform.system() == "Windows":
    paths.qt_dir = 'C:/Qt'
    qt_system = "windows"
    #qt_target = "win64_msvc2019_64"
    qt_target = "msvc2019_64"
qt_install = os.path.join(paths.qt_dir, qt_version, qt_target)
if not args.skip_qt and platform.system() != "Windows":
    Path(paths.qt_dir).mkdir(parents=True, exist_ok=True)
    subprocess.run(['aqt', 'install',
        '--outputdir', paths.qt_dir,
        qt_version, qt_system, qt_platform, qt_target,
        '-m', 'qtcharts'],
            check=True)
    qt_pkgconfig_dir = os.path.join(qt_install, 'lib', 'pkgconfig')
    if platform.system() == "Linux":
        subprocess.run("sed -i 's+/home/qt/work/install+{}+g' {}/*".format(qt_install, qt_pkgconfig_dir), shell=True, check=True)
    if platform.system() == "Darwin":