diff --git a/DEPS b/DEPS index 90e5edd58e..38010fea3c 100644 --- a/DEPS +++ b/DEPS @@ -10,11 +10,11 @@ deps = { "third_party/externals/angle2" : "https://chromium.googlesource.com/angle/angle.git@4ad0f250a01010651985f2a1772c5cff11257d7a", # Dawn requires jinja2 and markupsafe for the code generator, and glslang and shaderc for SPIRV compilation. # When the Dawn revision is updated these should be updated from the Dawn DEPS as well. - "third_party/externals/dawn" : "https://dawn.googlesource.com/dawn.git@0d52f800a1d15c2941c3d177f7a5313bdba0bd79", - "third_party/externals/glslang" : "https://chromium.googlesource.com/external/github.com/KhronosGroup/glslang@29c9135d06f12628e3161e4aa751610c5941d8d6", + "third_party/externals/dawn" : "https://dawn.googlesource.com/dawn.git@b31f5e717e2d5de567ee7a5b6a32acdf16ba180c", + "third_party/externals/glslang" : "https://chromium.googlesource.com/external/github.com/KhronosGroup/glslang@b481744aea1ecf52ee4591afaa0f5e270b9d1636", "third_party/externals/jinja2" : "https://chromium.googlesource.com/chromium/src/third_party/jinja2@b41863e42637544c2941b574c7877d3e1f663e25", "third_party/externals/markupsafe" : "https://chromium.googlesource.com/chromium/src/third_party/markupsafe@8f45f5cfa0009d2a70589bcda0349b8cb2b72783", - "third_party/externals/shaderc" : "https://chromium.googlesource.com/external/github.com/google/shaderc@1402ed576596f53eaf3f8d390a9e1defbeffd014", + "third_party/externals/shaderc" : "https://chromium.googlesource.com/external/github.com/google/shaderc@5515d2a0c20cb73e68190b9a39445d4bea4eeeab", "third_party/externals/dng_sdk" : "https://android.googlesource.com/platform/external/dng_sdk.git@c8d0c9b1d16bfda56f15165d39e0ffa360a11123", "third_party/externals/egl-registry" : "https://skia.googlesource.com/external/github.com/KhronosGroup/EGL-Registry@a0bca08de07c7d7651047bedc0b653cfaaa4f2ae", "third_party/externals/expat" : "https://chromium.googlesource.com/external/github.com/libexpat/libexpat.git@e976867fb57a0cd87e3b0fe05d59e0ed63c6febb", diff --git a/third_party/glslang/BUILD.gn b/third_party/glslang/BUILD.gn index 3ecb6260cd..7ebffb72b1 100644 --- a/third_party/glslang/BUILD.gn +++ b/third_party/glslang/BUILD.gn @@ -10,6 +10,28 @@ glslang_root = "../externals/glslang" spirv_tools_dir = glslang_spirv_tools_dir +action("glslang_build_info") { + script = "${glslang_root}/build_info.py" + + changes_file = "${glslang_root}/CHANGES.md" + template_file = "${glslang_root}/build_info.h.tmpl" + out_file = "${target_gen_dir}/include/glslang/build_info.h" + + inputs = [ + changes_file, + script, + template_file, + ] + outputs = [ out_file ] + args = [ + rebase_path(glslang_root, root_build_dir), + "-i", + rebase_path(template_file, root_build_dir), + "-o", + rebase_path(out_file, root_build_dir), + ] +} + third_party("glslang_sources") { public_include_dirs = [ "$glslang_root" ] public_defines = [ "ENABLE_HLSL=1" ] @@ -72,7 +94,6 @@ third_party("glslang_sources") { "glslang/Include/Types.h", "glslang/Include/arrays.h", "glslang/Include/intermediate.h", - "glslang/Include/revision.h", "glslang/MachineIndependent/Constant.cpp", "glslang/MachineIndependent/InfoSink.cpp", "glslang/MachineIndependent/Initialize.cpp", @@ -134,5 +155,9 @@ third_party("glslang_sources") { defines += [ "GLSLANG_OSINCLUDE_UNIX" ] } - deps = [ "${spirv_tools_dir}:spvtools_val" ] + include_dirs = [ "${target_gen_dir}/include" ] + deps = [ + ":glslang_build_info", + "${spirv_tools_dir}:spvtools_val", + ] }