google / shaderc

A collection of tools, libraries, and tests for Vulkan shader compilation.
Other
1.82k stars 355 forks source link

RFE: please provide possibility to build shaderc against system installed SPIRV-Tools #1199

Open kloczek opened 3 years ago

kloczek commented 3 years ago

It does not make any sense to bundle that code.

BTW: IMO the best would be remove al third_party/ and use only system resources.

Adminisnyator commented 3 years ago

Please correct me if I am wrong, but don't the below compile flags do that very thing?

-D spirv-tools_SOURCE_DIR=/usr/include/spirv-tools \ -D glslang_SOURCE_DIR=/usr/include/glslang \

DanielO commented 7 months ago

I wanted to do this with the MacPorts port and I ended up commenting out the add_subdirectory(third_party) line and kludging the build-version custom target.

The README suggests you can build from external code but the process for doing so isn't discussed (or perhaps was removed from the codebase a while ago).