message: ShaderTools: fixed logic for including HLSLUtils.cpp
diff: @@ -11,20 +11,26 @@ set(SOURCE
  src/ShaderToolsCommon.cpp
  )
  +set(DXC_SUPPORTED FALSE)
  +if((PLATFORM_WIN32 AND NOT MINGW_BUILD) OR PLATFORM_UNIVERSAL_WINDOWS OR PLATFORM_LINUX)
  + set(DXC_SUPPORTED TRUE)
  +endif()
  +
  +set(ENABLE_GLSL FALSE)
  if(VULKAN_SUPPORTED OR GL_SUPPORTED OR GLES_SUPPORTED OR METAL_SUPPORTED)
  set(ENABLE_GLSL TRUE)
  endif()
  +set(ENABLE_HLSL FALSE)
  +if(D3D11_SUPPORTED OR D3D12_SUPPORTED OR VULKAN_SUPPORTED OR METAL_SUPPORTED OR DXC_SUPPORTED)
  + set(ENABLE_HLSL TRUE)
  +endif()
  +
  if(ENABLE_GLSL)
  list(APPEND SOURCE src/GLSLUtils.cpp)
  list(APPEND INCLUDE include/GLSLUtils.hpp)
  endif()
  -
  -if(D3D11_SUPPORTED OR D3D12_SUPPORTED OR VULKAN_SUPPORTED OR METAL_SUPPORTED)
  - set(ENABLE_HLSL TRUE)
  -endif()
  -
  if(ENABLE_HLSL)
  list(APPEND SOURCE src/HLSLUtils.cpp)
  list(APPEND INCLUDE include/HLSLUtils.hpp)
  @@ -40,10 +46,6 @@ if(D3D11_SUPPORTED OR D3D12_SUPPORTED)
  list(APPEND INCLUDE include/ResourceBindingMap.hpp)
  endif()
  -if((PLATFORM_WIN32 AND NOT MINGW_BUILD) OR PLATFORM_UNIVERSAL_WINDOWS OR PLATFORM_LINUX)
  - set(DXC_SUPPORTED TRUE)
  -endif()
  -
  if (DXC_SUPPORTED)
  list(APPEND INCLUDE include/DXCompiler.hpp)
  list(APPEND SOURCE src/DXCompiler.cpp)
  