aedi: add vulkan-headers target

This commit is contained in:
alexey.lysiuk 2021-09-08 10:36:56 +03:00
parent d9585fd22a
commit e9a6d4d5e6
2 changed files with 12 additions and 0 deletions

View file

@ -94,6 +94,7 @@ def targets():
SfmlTarget(), SfmlTarget(),
SodiumTarget(), SodiumTarget(),
TiffTarget(), TiffTarget(),
VulkanHeadersTarget(),
WebpTarget(), WebpTarget(),
WxWidgetsTarget(), WxWidgetsTarget(),
XmpTarget(), XmpTarget(),

View file

@ -662,6 +662,17 @@ class TiffTarget(CMakeStaticDependencyTarget):
return line return line
class VulkanHeadersTarget(CMakeStaticDependencyTarget):
def __init__(self, name='vulkan-headers'):
super().__init__(name)
def prepare_source(self, state: BuildState):
state.download_source(
# Version should match with the current MoltenVK release
'https://github.com/KhronosGroup/Vulkan-Headers/archive/refs/tags/v1.2.189.tar.gz',
'0939d6cb950746f6f9cab59399c0a99628ed186426a972996599f90d34d8a99a')
class WebpTarget(CMakeStaticDependencyTarget): class WebpTarget(CMakeStaticDependencyTarget):
def __init__(self, name='webp'): def __init__(self, name='webp'):
super().__init__(name) super().__init__(name)