summaryrefslogtreecommitdiff
path: root/subprojects/packagefiles/shaderc/shaderc_deps.sh
blob: 87620c9f0fd11e600a286a7bb8a9a0aa98ed5263 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#! /usr/bin/env sh

# https://github.com/google/shaderc/blob/known-good/known_good.json

cd third_party

if [ ! -d glslang ]; then
  git clone https://github.com/KhronosGroup/glslang.git glslang
  cd glslang
  git checkout e1b562a8bed273a02f30b59b66a5d499793cede5
  cd ../
fi

if [ ! -d spirv-tools ]; then
  git clone https://github.com/KhronosGroup/SPIRV-Tools.git spirv-tools
  cd spirv-tools
  git checkout ef96ed763b43b59b33b31b362f09a02b729fa1c9
  git apply ../../../packagefiles/shaderc/spirv_tools_build_version.diff
  cd ../
fi

if [ ! -d spirv-headers ]; then
  git clone https://github.com/KhronosGroup/SPIRV-Headers.git spirv-headers
  cd spirv-headers
  git checkout 04fd3caa1e8267e4d95c806cad901181728e1006
  cd ../
fi