From 8a1169fd587e88cb12ce7d752f7c25efef8d89bc Mon Sep 17 00:00:00 2001
From: Moritz Maxeiner <mm@ucw.sh>
Date: Thu, 27 May 2021 15:55:05 +0200
Subject: [PATCH] Fix CI not building with EGL support on Linux

---
 ci/configure.py | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/ci/configure.py b/ci/configure.py
index bdecb85..273d0c5 100755
--- a/ci/configure.py
+++ b/ci/configure.py
@@ -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)
-- 
GitLab