third_party/shaderc: fix build

ecs
q3k 2020-08-03 13:29:25 +02:00
parent 47e977cdd1
commit 179cc63dd1
3 changed files with 7 additions and 6 deletions

View File

@ -60,6 +60,7 @@ cc_library(
],
deps = [
":libshaderc_util",
"@spirv_headers//:spirv_cpp_headers",
],
strip_include_prefix = "libshaderc/include",
)

View File

@ -10,13 +10,13 @@ def _http_archive(name, strip_prefix, gh_name, **kw):
http_archive(
name = name,
sha256 = sha,
strip_prefix = "{}-{}".format(strip_prefix, remote),
strip_prefix = (strip_prefix + remote) if strip_prefix.endswith('-') else strip_prefix,
url = "https://github.com/{}/archive/{}.tar.gz".format(gh_name, remote),
**kw,
)
def shaderc_deps():
_http_archive("spirv_headers", "SPIRV-Headers", "KhronosGroup/SPIRV-Headers")
_http_archive("spirv_tools", "SPIRV-Tools", "KhronosGroup/SPIRV-Tools")
_http_archive("glslang", "glslang", "KhronosGroup/glslang")
_http_archive("shaderc", "shaderc", "google/shaderc", build_file="//third_party/shaderc:BUILD.external")
_http_archive("spirv_headers", "SPIRV-Headers-", "KhronosGroup/SPIRV-Headers")
_http_archive("spirv_tools", "SPIRV-Tools-", "KhronosGroup/SPIRV-Tools")
_http_archive("glslang", "glslang-", "KhronosGroup/glslang")
_http_archive("shaderc", "shaderc-2020.2", "google/shaderc", build_file="//third_party/shaderc:BUILD.external")

View File

@ -6,7 +6,7 @@
shaderc_version = {
# dep: (version, GH remote ver, sha256)
"shaderc": ("2020.2", "2020.2", "a4d5680d4f0199e29ab77b357c88c147c5704f9ee2ac0a2d117e640e6f87d030"),
"shaderc": ("2020.2", "v2020.2", "a4d5680d4f0199e29ab77b357c88c147c5704f9ee2ac0a2d117e640e6f87d030"),
"spirv_tools": ("2020.5", "969f0286479b89267b6c89f6d5223285c265e6ae", "6915b4bca8b2369e26812ffb3c1b726089bb9cd38d1cb7e9b8ef0d3bb7dd8162"),
"spirv_headers": ("2020.5", "979924c8bc839e4cb1b69d03d48398551f369ce7", "7ebc04ebb4602c051d4886c9544de684195adac2a179e949469d29beb1f034e4"),
"glslang": ("11.0.0-dev", "3ee5f2f1d3316e228916788b300d786bb574d337", "7b2f8b93958c7594942f730659c00dec0bffeafaa6853b67b5f72f915c287b1f"),