-
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathMissionDesigner.targets
More file actions
32 lines (30 loc) · 1.63 KB
/
Copy pathMissionDesigner.targets
File metadata and controls
32 lines (30 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?xml version="1.0" encoding="UTF-8"?>
<!--
Build-time mission data generation. Imported by DragaliaAPI.MissionDesigner.csproj itself, so
building this project also runs the tool.
Ordering: DragaliaAPI.csproj has a ProjectReference (ReferenceOutputAssembly=false) to this
project, so this runs before DragaliaAPI's MasterAssetConverter targets see the JSON.
The target is incremental: the freshly built assembly ($(TargetPath)) stands in for all DSL
code, so the tool only reruns when the mission DSL (or MissionNormalData.json, used to resolve
prerequisite chains) has changed. The output is deliberately NOT added to FileWrites — it is a
checked-in source file and must survive Clean.
-->
<Project>
<PropertyGroup>
<_InvokeMissionDesignerCommand>"$(MSBuildThisFileDirectory)bin/$(Configuration)/DragaliaAPI.MissionDesigner"</_InvokeMissionDesignerCommand>
<!-- For Docker builds, where we pass /p:UseAppHost=false -->
<_InvokeMissionDesignerCommand Condition="$(UseAppHost) == 'false'"
>dotnet "$(MSBuildThisFileDirectory)bin/$(Configuration)/DragaliaAPI.MissionDesigner.dll"</_InvokeMissionDesignerCommand
>
<MissionDesignerOutputImportance>low</MissionDesignerOutputImportance>
<MissionDesignerOutputImportance Condition="$(BuildToolsVerbose) == 'true'"
>high</MissionDesignerOutputImportance
>
</PropertyGroup>
<Target Name="MissionDesigner" AfterTargets="Build" Condition="'$(DesignTimeBuild)' != 'true'">
<Exec
Command="$(_InvokeMissionDesignerCommand) "$(MasterAssetResources)""
StandardOutputImportance="$(MissionDesignerOutputImportance)"
/>
</Target>
</Project>