From b1c5b6934951247a31833a4d5ad03aab2c28dea1 Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Mon, 27 May 2024 04:03:56 +0300 Subject: [PATCH] logical/virtual file organization for VS --- premake5.lua | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/premake5.lua b/premake5.lua index 38676b87..b049482f 100644 --- a/premake5.lua +++ b/premake5.lua @@ -310,6 +310,17 @@ flags { "NoPCH", -- no precompiled header on Windows } targetprefix ("") -- prevent adding the prefix libxxx on linux +vpaths { -- just for visual niceness, see: https://premake.github.io/docs/vpaths/ + ["headers/*"] = { + "**.h", "**.hxx", "**.hpp", + }, + ["src/*"] = { + "**.c", "**.cxx", "**.cpp", "**.cc", + }, + ["asm/*"] = { + "**.s", "**.asm", + }, +} -- arch @@ -353,7 +364,7 @@ filter { "action:gmake*", } "-Wl,--exclude-libs,ALL", } -- this is made separate because GCC complains but not CLANG -filter { "action:gmake*" , "files:*.cpp or *.cc or *.hpp", } +filter { "action:gmake*" , "files:*.cpp or *.cxx or *.cc or *.hpp", } buildoptions { "-fno-char8_t", -- GCC gives a warning when a .c file is compiled with this }