-
Notifications
You must be signed in to change notification settings - Fork 21
/
coin_build_instructions.py
33 lines (25 loc) · 1.12 KB
/
coin_build_instructions.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Copyright (C) 2022 The Qt Company Ltd.
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
from __future__ import annotations
import logging
import os
import sys
from build_scripts.log import log
from build_scripts.utils import expand_clang_variables
from coin.instructions_utils import (CI, call_setup, get_architecture,
get_python_version, remove_variables)
if __name__ == "__main__":
ci = CI()
log.setLevel(logging.INFO)
# Remove some environment variables that impact cmake
arch = get_architecture(ci)
expand_clang_variables(arch)
remove_variables(["CC", "CXX"])
python_ver = get_python_version(ci)
if ci.TEST_PHASE in ["ALL", "BUILD"]:
call_setup(python_ver, ci, "BUILD", log)
# Until CI has a feature to set more dynamic signing dir, make sure it actually exist
if os.environ.get("QTEST_ENVIRONMENT") == "ci" and sys.platform == "win32":
signing_dir = str(os.environ.get("PYSIDE_SIGNING_DIR"))
print("Check for signing dir " + signing_dir)
assert os.path.isdir(signing_dir)