logical/virtual file organization for VS

This commit is contained in:
otavepto 2024-05-27 04:03:56 +03:00
parent cf38fda135
commit b1c5b69349

View File

@ -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
}