CMake: Fold HLSL source into glslang
authorBen Clayton <bclayton@google.com>
Mon, 15 Jun 2020 12:54:55 +0000 (13:54 +0100)
committerBen Clayton <bclayton@google.com>
Tue, 16 Jun 2020 09:46:06 +0000 (10:46 +0100)
commitdcad9ad05646a70683afa37cb5f6f12741be269c
tree557a1092857151ad5dd7d8c958d50a2d4fa4c334
parent1a6c8ecb20fcca190c96bd4be25e59b169d6e9f8
CMake: Fold HLSL source into glslang

... and stub the HLSL target.

Fixes the building of shared libraries.

This breaks the cyclic dependency between the `glslang` and `hlsl` targets (by essentially removing the `hlsl` target).

The `BUILD.gn` and `BUILD.bazel` build rules already pull the `HLSL` source into the `glslang` target.

`Android.mk` is the only remaining build config that has a dedicated `HLSL` target, but this is explicity static and does not suffer the same link-time issues with the cyclic dependency (we may wish to stub this target too).

Related issue: #1484, #2147
Related PR: #2267
glslang/CMakeLists.txt
hlsl/CMakeLists.txt
hlsl/stub.cpp [new file with mode: 0644]