-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDirectory.Build.targets
More file actions
32 lines (29 loc) · 2.05 KB
/
Directory.Build.targets
File metadata and controls
32 lines (29 loc) · 2.05 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
<Project>
<PropertyGroup>
<!--ModOutputFolder Condition="'$(ModOutputFolder)' == ''">$(MSBuildProjectName)</ModOutputFolder-->
<ModOutputFolder Condition="'$(ModOutputFolder)' == ''">Downfall</ModOutputFolder>
</PropertyGroup>
<Target Name="CopyToModsFolderOnBuild" AfterTargets="PostBuildEvent"
Condition="Exists('$(MSBuildProjectName).json')">
<Copy SourceFiles="$(TargetPath)" DestinationFolder="$(ModsPath)$(ModOutputFolder)/"/>
<Copy SourceFiles="$(MSBuildProjectName).json" DestinationFolder="$(ModsPath)$(ModOutputFolder)/"/>
<Copy SourceFiles="$(TargetDir)$(TargetName).pdb"
DestinationFolder="$(ModsPath)$(ModOutputFolder)/"
Condition="Exists('$(TargetDir)$(TargetName).pdb')"/>
<Message Text="Copying BaseLib dependencies..." Importance="high"/>
<ItemGroup Condition="'$(UseLocalBaseLib)' != 'true'">
<BaseLibFiles Include="$(NuGetPackageRoot)alchyr.sts2.baselib/**/lib/**/BaseLib.dll;$(NuGetPackageRoot)alchyr.sts2.baselib/**/Content/BaseLib.pck;$(NuGetPackageRoot)alchyr.sts2.baselib/**/Content/BaseLib.json;"/>
</ItemGroup>
<Copy SourceFiles="@(BaseLibFiles)" DestinationFolder="$(ModsPath)BaseLib/"/>
</Target>
<Target Name="GodotPublish" AfterTargets="Publish"
Condition="Exists('$(MSBuildProjectName).json') and '$(GodotPath)' != '' and Exists('$(GodotPath)') and '$(IsInnerGodotExport)' != 'true'">
<Exec Command=""$(GodotPath)" --headless --export-pack "BasicExport" "$(ModsPath)$(ModOutputFolder)/$(MSBuildProjectName).pck""
EnvironmentVariables="IsInnerGodotExport=true;MSBUILDDISABLENODEREUSE=1"
ContinueOnError="WarnAndContinue"/>
</Target>
<Target Name="GodotPublishSkipped" AfterTargets="Publish"
Condition="Exists('$(MSBuildProjectName).json') and ('$(GodotPath)' == '' or !Exists('$(GodotPath)'))">
<Message Text="Skipping Godot .pck export because GodotPath is not configured." Importance="high"/>
</Target>
</Project>