Skip to content

Commit

Permalink
Updated ShaderC dependency to 2024.1, downloading it with conan
Browse files Browse the repository at this point in the history
  • Loading branch information
nadult committed Sep 21, 2024
1 parent 0eadd1e commit aa0a601
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions tools/install_deps.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,28 +115,11 @@ def copy_subdirs(package_name: str, dst_dir: str, src_dir: str, subdirs: list[st
PackageQuery("sdl", "2.26.1", windows_query),
PackageQuery("vorbis", "1.3.7", windows_query),
PackageQuery("zlib", "1.3", windows_query),
PackageQuery("shaderc", "2024.1", windows_query),
PackageQuery("vulkan-headers", "1.3.236.0"),
# VulkanLoader no longer needed (replaced with Volk)
# PackageQuery("vulkan-loader", "1.3.236.0", "os=Windows and arch=x86_64"),
# TODO: shaderc is broken :(
# PackageQuery("shaderc", "2021.1", "os=Windows"),
]


def get_shaderc(install_path: str):
print('Downloading shaderc package...')
file_name = 'shaderc-2021-01-windows.zip'
url = f'https://github.com/nadult/libfwk/releases/download/v0.1/{file_name}'
if os.path.isfile(file_name):
os.remove(file_name)
urllib.request.urlretrieve(url, file_name)
print(f"Extracting shaderc...")
zip_file = zipfile.ZipFile(file_name, 'r')
zip_file.extractall(install_path)
zip_file.close()
os.remove(file_name)


def main():
parser = argparse.ArgumentParser(
prog='install_deps',
Expand All @@ -155,7 +138,6 @@ def main():
install_path = os.path.join(install_path, 'x86_64')
print(f"Installing packages at: {install_path}")
os.makedirs(install_path, exist_ok=True)
get_shaderc(install_path)

# TODO: multithreading
for query in package_queries:
Expand Down

0 comments on commit aa0a601

Please sign in to comment.