GN build (for Chromium): enable HLSL
authorDavid Neto <dneto@google.com>
Fri, 23 Aug 2019 18:34:29 +0000 (14:34 -0400)
committerDavid Neto <dneto@google.com>
Fri, 23 Aug 2019 18:35:35 +0000 (14:35 -0400)
BUILD.gn

index e38e78a..d11810b 100644 (file)
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -131,7 +131,11 @@ source_set("glslang_sources") {
     "glslang/Public/ShaderLang.h",
   ]
 
-  defines = [ "ENABLE_OPT=1" ]
+  defines = [
+    "ENABLE_OPT=1",
+    "ENABLE_HLSL=1",
+  ]
+
   if (is_win) {
     sources += [ "glslang/OSDependent/Windows/ossource.cpp" ]
     defines += [ "GLSLANG_OSINCLUDE_WIN32" ]