Skip to content

Commit

Permalink
allow a build system to specify the ksp managed path directly
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyOThan committed Apr 4, 2024
1 parent 947b4b7 commit dde62a3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions KSPCommon.props
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@
<Import Condition=" Exists('KSPCommon.props.user') " Project="KSPCommon.props.user"/>

<!--Parse KSP platform-specific paths -->
<PropertyGroup Condition = " '$(ManagedRelativePath)' == '' ">
<ManagedRelativePath Condition = "$([MSBuild]::IsOsPlatform('Windows'))">KSP_x64_Data\Managed</ManagedRelativePath>
<ManagedRelativePath Condition = "$([MSBuild]::IsOsPlatform('OSX'))">KSP.app\Contents\Resources\Data\Managed</ManagedRelativePath>
<ManagedRelativePath Condition = "$([MSBuild]::IsOsPlatform('Linux'))">KSP_Data\Managed</ManagedRelativePath>
</PropertyGroup>
<PropertyGroup>
<KSPExecutable Condition = "$([MSBuild]::IsOsPlatform('Windows'))">KSP_x64.exe</KSPExecutable>
<KSPExecutable Condition = "$([MSBuild]::IsOsPlatform('OSX'))">KSP.app</KSPExecutable>
<KSPExecutable Condition = "$([MSBuild]::IsOsPlatform('Linux'))">KSP.x86_64</KSPExecutable>
<ManagedRelativePath Condition = "$([MSBuild]::IsOsPlatform('Windows'))">KSP_x64_Data\Managed</ManagedRelativePath>
<ManagedRelativePath Condition = "$([MSBuild]::IsOsPlatform('OSX'))">KSP.app\Contents\Resources\Data\Managed</ManagedRelativePath>
<ManagedRelativePath Condition = "$([MSBuild]::IsOsPlatform('Linux'))">KSP_Data\Managed</ManagedRelativePath>
<ManagedPath>$(KSPRoot)\$(ManagedRelativePath)</ManagedPath>
</PropertyGroup>

Expand Down

0 comments on commit dde62a3

Please sign in to comment.