From 57cedf609a8a712e0087581db2ad9b2fa4a4b40e Mon Sep 17 00:00:00 2001 From: Tim Foley Date: Wed, 13 Nov 2019 13:39:53 -0800 Subject: Add a premake flag to control whether glslang is built from source (#1122) This change adds the flag, but doesn't wire it up to anything. The idea is to allow us to modify CI build scripts to use the flag in cases where it will be needed, so that we can later on disable building glslang from source by default, without an intermediate step where CI is broken. --- premake5.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/premake5.lua b/premake5.lua index 862d42662..05a249a97 100644 --- a/premake5.lua +++ b/premake5.lua @@ -76,6 +76,14 @@ newoption { allowed = { {"cygwin"}, {"mingw"} } } +newoption { + trigger = "build-glslang", + description = "(Optional) If true glslang and spirv-opt will be built", + value = "bool", + default = "false", + allowed = { { "true", "True"}, { "false", "False" } } +} + buildLocation = _OPTIONS["build-location"] executeBinary = (_OPTIONS["execute-binary"] == "true") targetDetail = _OPTIONS["target-detail"] -- cgit v1.2.3