Skip to content

Commit

Permalink
Merge pull request #151 from Valheim-Modding/feat/Algorithman/envprop…
Browse files Browse the repository at this point in the history
…sfix

fix: dont force use of Environment.props, add a warning if it seems to be missing.
  • Loading branch information
sirskunkalot authored Apr 22, 2021
2 parents a2b435c + 7e5da56 commit ef98f7c
Show file tree
Hide file tree
Showing 6 changed files with 453 additions and 503 deletions.
5 changes: 4 additions & 1 deletion JotunnLib/BuildProps/JotunnBuildTask.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="DoPrebuild.props" />
<UsingTask TaskName="GenerateMMHook" AssemblyFile="$(SolutionDir)JotunnBuildTask\bin\$(ConfigurationName)\JotunnBuildTask.dll"/>
<Target Name="JotunnBuildTask" AfterTargets="BeforeBuild" Condition="'$(ExecutePrebuild)' == 'true'" >
<Target Name="JotunnBuildTask" AfterTargets="BeforeBuild" Condition="'$(ExecutePrebuild)' == 'true' And Exists('$(SolutionDir)Environment.props')" >
<Message Importance="High" Text="Executing Jotunn Prebuild Task creating MMHOOK dlls"/>
<GenerateMMHook ValheimPath="$(VALHEIM_INSTALL)" />
</Target>
<Target Name="NoJotunnEnvProps" AfterTargets="BeforeBuild" Condition="!Exists('$(SolutionDir)Environment.props')">
<Message Importance="High" Text="Cannot execute Jotunn prebuild task because Environment.props is missing." />
</Target>
<Target Name="NoJotunnBuildTask" AfterTargets="BeforeBuild" Condition="'$(ExecutePrebuild)' == 'false'" >
<Message Importance="High" Text="Skipping MMHOOK dll generation"/>
</Target>
Expand Down
Loading

0 comments on commit ef98f7c

Please sign in to comment.