From 911016dc5c9f256ed494fb8fd65a3dc66cfb472a Mon Sep 17 00:00:00 2001 From: /dev/urandom Date: Thu, 31 Dec 2015 04:07:16 +0100 Subject: [PATCH] --no-new-structure if you don't like the new vpaths. --- premake5.lua | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/premake5.lua b/premake5.lua index 7733f1fb..c93c280e 100644 --- a/premake5.lua +++ b/premake5.lua @@ -5,6 +5,11 @@ newoption { value = "PATH" } +newoption { + trigger = "no-new-structure", + description = "Do not use new virtual path structure (separating headers and source files)." +} + newaction { trigger = "generate-buildinfo", description = "Sets up build information file like version.h.", @@ -52,9 +57,14 @@ solution "iw4x" defines { "NDEBUG" } flags { "Optimize", "MultiProcessorCompile", "Symbols" } + if not _OPTIONS["no-new-structure"] then + vpaths { + ["Headers/*"] = "src/**.hpp", + ["Sources/*"] = {"src/**.cpp"} + } + end + vpaths { - ["Headers/*"] = "src/**.hpp", - ["Sources/*"] = {"src/**.cpp"}, ["Docs/*"] = {"**.txt","**.md"} }