From e4fd95e1322c5b7bf56db8fe81e43978d34f400c Mon Sep 17 00:00:00 2001 From: "alexey.lysiuk" Date: Thu, 20 Jul 2023 12:10:58 +0300 Subject: [PATCH] aedi: remove unwanted files from glslang installation --- aedi/target/tool_tier2.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/aedi/target/tool_tier2.py b/aedi/target/tool_tier2.py index 9b5b2b0e..0072ed56 100644 --- a/aedi/target/tool_tier2.py +++ b/aedi/target/tool_tier2.py @@ -43,6 +43,22 @@ def configure(self, state: BuildState): super().configure(state) + def post_build(self, state: BuildState): + super().post_build(state) + + # Remove shared library + lib_path = state.install_path / 'lib' + os.unlink(lib_path / 'libSPIRV-Tools-shared.dylib') + + lib_cmake_path = lib_path / 'cmake' + spirv_tools_module = lib_cmake_path / 'SPIRV-Tools/SPIRV-ToolsTarget-release.cmake' + self.keep_module_target(state, 'SPIRV-Tools-static', (spirv_tools_module,)) + + # Remove deprecated files with absolute paths in them + for entry in os.listdir(lib_cmake_path): + if entry.endswith('.cmake'): + os.unlink(lib_cmake_path / entry) + class P7ZipTarget(base.CMakeTarget): def __init__(self, name='p7zip'):