Skip to content

Commit

Permalink
aedi: remove unwanted files from glslang installation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexey-lysiuk committed Jul 20, 2023
1 parent 703b33e commit e4fd95e
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions aedi/target/tool_tier2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'):
Expand Down

0 comments on commit e4fd95e

Please sign in to comment.