Files
2026-10-18 06:35:42 +00:00

39 lines
892 B
Python

from lib.make import *
from lib import cpp, arch, packie
version("2026.4")
description("A collection of tools, libraries, and tests for Vulkan shader compilation.")
maintainer("sisungo <[email protected]>")
source_managed("github://google/shaderc#v2026.4-manual")
builddep("shortcut/c++")
builddep("shortcut/cmake")
def build():
cpp.cmake([
"-DCMAKE_INSTALL_PREFIX=/",
f"-DCMAKE_INSTALL_LIBDIR={get_prefix('libshaderc')}/lib",
f"-DCMAKE_INSTALL_INCLUDEDIR={get_prefix('libshaderc-dev')}/include",
"-DSHADERC_SKIP_TESTS=ON",
])
cpp.ninja()
cpp.ninja_install()
on_build(build)
package("libshaderc")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["lib"])
package("shaderc")
dep("libshaderc (same)")
cpp.use_auto_pack(["bin"])
package("libshaderc-dev")
dep("libshaderc (same)")
dep("semi-libc-dev @same-arch")
cpp.use_auto_pack(["dev"])