|
164 | 164 | </Target> |
165 | 165 |
|
166 | 166 | <Target Name="BuildWithCpp" DependsOnTargets="CleanAll;MakeCPP;MakeFDD;MakeSCD;BuildDebugger"> |
167 | | - <CallTarget Targets="CleanIntermediates"/> |
168 | 167 | </Target> |
169 | 168 |
|
170 | 169 | <Target Name="BuildWithoutCpp" DependsOnTargets="CleanAll;MakeFDD;MakeSCD;BuildDebugger"> |
171 | | - <CallTarget Targets="CleanIntermediates"/> |
172 | 170 | </Target> |
173 | 171 |
|
174 | 172 | <!-- Используется для поиска первого собранного oscript.exe --> |
|
227 | 225 |
|
228 | 226 | </Target> |
229 | 227 |
|
230 | | - <Target Name="ComposeDistributionFolders"> |
| 228 | + <Target Name="ComposeDistributionFolders" DependsOnTargets="CleanIntermediates"> |
231 | 229 | <ItemGroup> |
232 | 230 | <TargetDir Include="fdd-x64"/> |
233 | 231 | <TargetDir Include="fdd-x86"/> |
|
375 | 373 | Command="dotnet nuget push %(NugetAbleProject.Identity) -k $(NugetToken) -s https://api.nuget.org/v3/index.json" UseUtf8Encoding="Always"/> |
376 | 374 |
|
377 | 375 | </Target> |
| 376 | + |
| 377 | + <Target Name="BuildDocumenter"> |
| 378 | + <Exec Command="dotnet publish "$(MSBuildProjectDirectory)/src/OneScriptDocumenter/OneScriptDocumenter.csproj" -c Release -o "$(ArtifactsRoot)/tools/documenter"" UseUtf8Encoding="Always"/> |
| 379 | + </Target> |
378 | 380 |
|
| 381 | + <Target Name="BuildDocumentation" DependsOnTargets="MakeSCD;BuildDocumenter"> |
| 382 | + <PropertyGroup> |
| 383 | + <DocInputDir>$(ArtifactsRoot)/win-x64/bin</DocInputDir> |
| 384 | + <DocsRoot>$(ArtifactsRoot)/docs</DocsRoot> |
| 385 | + <DocumenterToolDir>$(ArtifactsRoot)/tools/documenter</DocumenterToolDir> |
| 386 | + </PropertyGroup> |
| 387 | + <ItemGroup> |
| 388 | + <DocAssemblies Include="$(DocInputDir)/ScriptEngine.HostedScript.dll"/> |
| 389 | + <DocAssemblies Include="$(DocInputDir)/ScriptEngine.dll"/> |
| 390 | + <DocAssemblies Include="$(DocInputDir)/OneScript.StandardLibrary.dll"/> |
| 391 | + <DocAssemblies Include="$(DocInputDir)/OneScript.Web.Server.dll"/> |
| 392 | + <DocAssemblies Include="$(DocInputDir)/oscript.dll"/> |
| 393 | + </ItemGroup> |
| 394 | + |
| 395 | + <Error Condition="'@(DocAssemblies)' == ''" Text="No input assemblies found in $(DocInputDir) for documentation generation" /> |
| 396 | + |
| 397 | + <MakeDir Directories="$(DocsRoot)"/> |
| 398 | + <MakeDir Directories="$(DocsRoot)/markdown"/> |
| 399 | + <MakeDir Directories="$(DocsRoot)/json"/> |
| 400 | + <Exec Command="dotnet "$(DocumenterToolDir)/OneScriptDocumenter.dll" @(DocAssemblies->'%(FullPath)', ' ') -t "$(MSBuildProjectDirectory)/src/OneScriptDocumenter/default_toc.json" -m "$(DocsRoot)/markdown" -j "$(DocsRoot)/json/syntax-helper.json"" UseUtf8Encoding="Always"/> |
| 401 | + |
| 402 | + <RemoveDir Directories="$(DocumenterToolDir)" Condition="Exists($(DocumenterToolDir))"/> |
| 403 | + |
| 404 | + </Target> |
| 405 | + |
| 406 | + |
379 | 407 | </Project> |
0 commit comments