2022-10-23 18:20:38 +08:00
|
|
|
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"
|
|
|
|
}
|
2023-03-11 02:31:48 +08:00
|
|
|
postbuildcommands
|
|
|
|
{
|
2023-03-11 21:17:28 +08:00
|
|
|
"xcopy /r /y /q \"%{wks.location}/bin/$(Configuration)\\net5.0\\SHADE_CSharp.pdb\" \"%{wks.location}/bin/$(Configuration)\""
|
2023-03-11 02:31:48 +08:00
|
|
|
}
|
|
|
|
|
2022-10-23 18:20:38 +08:00
|
|
|
warnings 'Extra'
|
2022-11-14 18:35:52 +08:00
|
|
|
|
2022-10-23 18:20:38 +08:00
|
|
|
filter "configurations:Debug"
|
|
|
|
symbols "On"
|
|
|
|
defines {"_DEBUG"}
|
|
|
|
|
|
|
|
filter "configurations:Release"
|
|
|
|
optimize "On"
|
|
|
|
defines{"_RELEASE"}
|
|
|
|
|
2022-10-24 02:04:05 +08:00
|
|
|
filter "configurations:Publish"
|
|
|
|
optimize "On"
|
|
|
|
defines{"_RELEASE"}
|
|
|
|
|
2022-10-23 18:20:38 +08:00
|
|
|
require "vstudio"
|
|
|
|
|
2022-11-14 18:35:52 +08:00
|
|
|
function platformsElementCS(cfg)
|
2022-10-23 18:20:38 +08:00
|
|
|
_p(2,'<Platforms>x64</Platforms>')
|
|
|
|
end
|
2022-11-19 15:03:49 +08:00
|
|
|
function configElementCS(cfg)
|
|
|
|
_p(2,'<Configurations>Debug;Release;Publish</Configurations>')
|
|
|
|
end
|
2022-11-22 20:59:17 +08:00
|
|
|
-- function docsElementCS(cfg)
|
|
|
|
-- _p(2,'<GenerateDocumentationFile>true</GenerateDocumentationFile>')
|
|
|
|
-- end
|
|
|
|
-- function docsLocationElementCS(cfg)
|
|
|
|
-- _p(2,'<DocumentationFile>$(OutDir)</DocumentationFile>')
|
|
|
|
-- end
|
2022-10-23 18:20:38 +08:00
|
|
|
|
|
|
|
premake.override(premake.vstudio.cs2005.elements, "projectProperties", function (oldfn, cfg)
|
|
|
|
return table.join(oldfn(cfg), {
|
2022-11-22 20:59:17 +08:00
|
|
|
-- platformsElementCS, configElementCS, docsElementCS, docsLocationElementCS,
|
|
|
|
platformsElementCS, configElementCS,
|
2022-10-23 18:20:38 +08:00
|
|
|
})
|
|
|
|
end)
|