Added SHADE_CSharp

This commit is contained in:
Kah Wei 2022-10-23 18:20:38 +08:00
parent 2bd633c11b
commit 10a945a35d
2 changed files with 49 additions and 0 deletions

48
SHADE_CSharp/premake5.lua Normal file
View File

@ -0,0 +1,48 @@
project "SHADE_CSharp"
architecture "x64"
kind "SharedLib"
language "C#"
clr "NetCore"
dotnetframework "net5.0"
namespace ("SHADE")
targetdir (outputdir)
objdir (interdir)
systemversion "latest"
files
{
"%{prj.location}/src/**.cs",
"%{prj.location}/src/**.tt"
}
flags
{
"MultiProcessorCompile"
}
dependson
{
"SHADE_Engine"
}
warnings 'Extra'
filter "configurations:Debug"
symbols "On"
defines {"_DEBUG"}
filter "configurations:Release"
optimize "On"
defines{"_RELEASE"}
require "vstudio"
function platformsElement(cfg)
_p(2,'<Platforms>x64</Platforms>')
end
premake.override(premake.vstudio.cs2005.elements, "projectProperties", function (oldfn, cfg)
return table.join(oldfn(cfg), {
platformsElement,
})
end)

View File

@ -22,6 +22,7 @@ workspace "SHADE"
include "SHADE_Engine" include "SHADE_Engine"
include "SHADE_Application" include "SHADE_Application"
include "SHADE_Managed" include "SHADE_Managed"
include "SHADE_CSharp"
group "Dependencies" group "Dependencies"
include "Dependencies/msdf" include "Dependencies/msdf"