Skip to content
Snippets Groups Projects
Commit 8a1169fd authored by calrama's avatar calrama
Browse files

Fix CI not building with EGL support on Linux

parent b462f88f
No related branches found
No related tags found
No related merge requests found
Pipeline #37995 passed
......@@ -3,6 +3,7 @@
from os import environ as env
from subprocess import check_call
from pathlib import Path
from platform import system
def define(key: str, value: str):
......@@ -12,6 +13,12 @@ def define(key: str, value: str):
def define_env(name: str):
return define(name, env[name]) if name in env else []
def with_egl():
if system() == "Linux":
return True
else:
return False
if __name__ == "__main__":
command = ["cmake"]
......@@ -24,5 +31,7 @@ if __name__ == "__main__":
command += define("CMAKE_SUPPRESS_REGENERATION", "ON")
command += define("CMAKE_SKIP_PACKAGE_ALL_DEPENDENCY", "ON")
command += define_env("VCPKG_TARGET_TRIPLET")
if with_egl():
command += define("WITH_EGL", "ON")
check_call(command)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment