logical/virtual file organization for VS
This commit is contained in:
parent
cf38fda135
commit
b1c5b69349
13
premake5.lua
13
premake5.lua
@ -310,6 +310,17 @@ flags {
|
|||||||
"NoPCH", -- no precompiled header on Windows
|
"NoPCH", -- no precompiled header on Windows
|
||||||
}
|
}
|
||||||
targetprefix ("") -- prevent adding the prefix libxxx on linux
|
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
|
-- arch
|
||||||
@ -353,7 +364,7 @@ filter { "action:gmake*", }
|
|||||||
"-Wl,--exclude-libs,ALL",
|
"-Wl,--exclude-libs,ALL",
|
||||||
}
|
}
|
||||||
-- this is made separate because GCC complains but not CLANG
|
-- 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 {
|
buildoptions {
|
||||||
"-fno-char8_t", -- GCC gives a warning when a .c file is compiled with this
|
"-fno-char8_t", -- GCC gives a warning when a .c file is compiled with this
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user