mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-11-22 03:51:33 +00:00
aedi: add glslang target
[skip build]
This commit is contained in:
parent
9084ebffb4
commit
0ad8a68b66
2 changed files with 19 additions and 0 deletions
|
@ -122,6 +122,7 @@ def targets():
|
|||
YasmTarget(),
|
||||
|
||||
# Tools without binaries stored in the repo, can be outdated
|
||||
GlslangTarget(),
|
||||
P7ZipTarget(),
|
||||
PbzxTarget(),
|
||||
UnrarTarget(),
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue