1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-06 19:12:30 +01:00
This commit is contained in:
Elias Steurer 2020-10-31 19:30:27 +01:00
parent 612f37c45b
commit e1f75d639c
2 changed files with 44 additions and 8 deletions

View File

@ -45,6 +45,37 @@ build:windows_release:
paths: paths:
- build-x64-windows-release/bin/ - build-x64-windows-release/bin/
build:osx_debug:
stage: build
allow_failure: true
tags:
- osx
needs:
- check
script:
- cd Tools
- python build.py -t debug
artifacts:
expire_in: '4 weeks'
paths:
- build-x64-osx-debug/bin/
build:osx_debug:
stage: build
allow_failure: true
tags:
- osx
needs:
- check
script:
- cd Tools
- python build.py -t release
artifacts:
expire_in: '4 weeks'
paths:
- build-x64-osx-release/bin/
build:linux_debug: build:linux_debug:
stage: build stage: build
allow_failure: true allow_failure: true

View File

@ -49,20 +49,21 @@ if platform == "win32":
os.environ.update(dict) os.environ.update(dict)
cmake_prefix_path = "c:/Qt/" + qt_version + "/" + windows_msvc cmake_prefix_path = "c:/Qt/" + qt_version + "/" + windows_msvc
cmake_target_triplet = "x64-windows" cmake_target_triplet = "x64-windows"
os.system("install_dependencies_windows.bat") os.system("Tools/install_dependencies_windows.bat")
elif platform == "darwin": elif platform == "darwin":
cmake_prefix_path = "~/Qt/" cmake_prefix_path = "~/Qt/" + qt_version "/clang_64"
deploy_executable = "macdeployqt" deploy_executable = "macdeployqt"
cmake_target_triplet = "x64-osx" cmake_target_triplet = "x64-osx"
os.system("chmod +x install_dependencies_linux_mac.sh") print("Executing install_dependencies_linux_mac.sh")
os.system("install_dependencies_linux_mac.sh") os.system("chmod +x Tools/install_dependencies_linux_mac.sh")
os.system("Tools/install_dependencies_linux_mac.sh")
elif platform == "linux": elif platform == "linux":
# Windows...
deploy_executable = "linuxdeployqt" deploy_executable = "linuxdeployqt"
cmake_prefix_path = "~/Qt/" cmake_prefix_path = "~/Qt/"
cmake_target_triplet = "x64-linux" cmake_target_triplet = "x64-linux"
os.system("chmod +x install_dependencies_linux_mac.sh") print("Executing install_dependencies_linux_mac.sh")
os.system("install_dependencies_linux_mac.sh") os.system("chmod +x Tools/install_dependencies_linux_mac.sh")
os.system("Tools/install_dependencies_linux_mac.sh")
# REMOVE OLD BUILD FOLDER # REMOVE OLD BUILD FOLDER
cwd = os.getcwd() cwd = os.getcwd()
@ -96,7 +97,11 @@ cmake_configure_command = """cmake ../
print("cmake_configure_command: %s" % cmake_configure_command) print("cmake_configure_command: %s" % cmake_configure_command)
os.system(cmake_configure_command) process = subprocess.run(cmake_configure_command, capture_output=True)
if process.returncode != 0:
sys.exit(process.returncode)
os.system("cmake --build . --target all") os.system("cmake --build . --target all")
os.chdir("bin") os.chdir("bin")