aedi: add glslang target

[skip build]
This commit is contained in:
alexey.lysiuk 2023-01-09 16:04:03 +02:00
parent 9084ebffb4
commit 0ad8a68b66
2 changed files with 19 additions and 0 deletions

View file

@ -122,6 +122,7 @@ def targets():
YasmTarget(),
# Tools without binaries stored in the repo, can be outdated
GlslangTarget(),
P7ZipTarget(),
PbzxTarget(),
UnrarTarget(),

View file

@ -19,6 +19,24 @@
from .base import *
class GlslangTarget(CMakeStaticDependencyTarget):
def __init__(self, name='glslang'):
super().__init__(name)
def prepare_source(self, state: BuildState):
state.download_source(
'https://github.com/KhronosGroup/glslang/archive/refs/tags/11.13.0.tar.gz',
'592c98aeb03b3e81597ddaf83633c4e63068d14b18a766fd11033bad73127162')
def configure(self, state: BuildState):
args = ('python3', 'update_glslang_sources.py')
subprocess.run(args, check=True, cwd=state.source, env=state.environment)
state.options['ENABLE_CTEST'] = 'NO'
super().configure(state)
class P7ZipTarget(CMakeTarget):
def __init__(self, name='p7zip'):
super().__init__(name)