Documentation xml files for all projects now autogenerate #206

Merged
Pycorax merged 6 commits from SP3-6-c-scripting into main 2022-11-15 01:52:54 +08:00
4 changed files with 33 additions and 5 deletions
Showing only changes of commit 5ccd2263c7 - Show all commits

View File

@ -75,7 +75,8 @@ project "SHADE_Application"
"26439",
"26451",
"26437",
"4275"
"4275",
"4635"
}
linkoptions { "-IGNORE:4006" }

View File

@ -27,6 +27,13 @@ project "SHADE_CSharp"
warnings 'Extra'
postbuildcommands
{
"xcopy /r /y /q \"%{outputdir}\\net5.0\\SHADE_CSharp.xml\" \"%{outputdir}\"",
"xcopy /r /y /q \"%{outputdir}\\net5.0\\SHADE_CSharp.pdb\" \"%{outputdir}\"",
"rmdir /s /q \"%{outputdir}\\net5.0\""
}
filter "configurations:Debug"
symbols "On"
defines {"_DEBUG"}
@ -41,12 +48,18 @@ project "SHADE_CSharp"
require "vstudio"
function platformsElement(cfg)
function platformsElementCS(cfg)
_p(2,'<Platforms>x64</Platforms>')
end
function docsElementCS(cfg)
_p(2,'<GenerateDocumentationFile>true</GenerateDocumentationFile>')
end
function docsLocationElementCS(cfg)
_p(2,'<DocumentationFile>$(OutDir)</DocumentationFile>')
end
premake.override(premake.vstudio.cs2005.elements, "projectProperties", function (oldfn, cfg)
return table.join(oldfn(cfg), {
platformsElement,
platformsElementCS, docsElementCS, docsLocationElementCS,
})
end)

View File

@ -78,7 +78,8 @@ project "SHADE_Engine"
"26439",
"26451",
"26437",
"4275"
"4275",
"4635"
}
linkoptions { "-IGNORE:4006" }

View File

@ -75,7 +75,8 @@ project "SHADE_Managed"
disablewarnings
{
"4275"
"4275",
"4635"
}
@ -102,3 +103,15 @@ project "SHADE_Managed"
optimize "On"
defines{"_RELEASE"}
links{"librttr_core.lib"}
require "vstudio"
function docsElementCPP(cfg)
_p(3,'<GenerateXMLDocumentationFiles>true</GenerateXMLDocumentationFiles>')
end
premake.override(premake.vstudio.vc2010.elements, "clCompile", function (oldfn, cfg)
return table.join(oldfn(cfg), {
docsElementCPP,
})
end)