|
56 | 56 | <_KSPBT_SteamGameRoot Condition=" $([MSBuild]::IsOsPlatform('OSX')) ">$(HOME)/Library/Application Support/Steam/steamapps/common/Kerbal Space Program</_KSPBT_SteamGameRoot> |
57 | 57 | </PropertyGroup> |
58 | 58 |
|
59 | | - <!-- Import the csproj.user file. --> |
60 | | - <!-- This can overwrite KSPBT_ManagedRelativePath and _KSPBT_GameExecutable, |
61 | | - set KSPBT_GameRoot and ReferencePath, and any other user-specific settings --> |
62 | | - <Import Project="$(MSBuildProjectFullPath).user" Condition="Exists('$(MSBuildProjectFullPath).user')"/> |
63 | | - |
64 | 59 | <!-- Import a props.user file --> |
65 | 60 | <!-- serves the same role as the csproj.user file --> |
66 | 61 | <Import Condition=" Exists('$(SolutionDir)$(SolutionName).props.user') " Project="$(SolutionDir)$(SolutionName).props.user"/> |
67 | 62 |
|
68 | 63 | <!-- Import solution-wide props if it exists --> |
69 | 64 | <Import Condition=" Exists('$(SolutionDir)$(SolutionName).props') " Project="$(SolutionDir)$(SolutionName).props"/> |
70 | 65 |
|
71 | | - <!-- Relative path that must exist for a path to be a valid KSP Install--> |
72 | | - <PropertyGroup> |
73 | | - <KSPBT_GameIdentifier>$(KSPBT_ManagedRelativePath)/Assembly-CSharp.dll</KSPBT_GameIdentifier> |
74 | | - <KSPBT_GameRootSource Condition="'$(KSPBT_GameRoot)' != ''">property</KSPBT_GameRootSource> |
75 | | - </PropertyGroup> |
76 | | - |
77 | | - <!-- Default KSPBT_GameRoot to the "KSP_ROOT" environment variable if it exists --> |
78 | | - <!-- Doing this skips any checks for a valid KSP install so be careful! --> |
79 | | - <PropertyGroup Condition=" '$(KSPBT_GameRoot)' == '' And '$(KSP_ROOT)' != '' "> |
80 | | - <KSPBT_GameRoot>$(KSP_ROOT)</KSPBT_GameRoot> |
81 | | - <KSPBT_GameRootSource>environment variable</KSPBT_GameRootSource> |
82 | | - </PropertyGroup> |
83 | | - <ItemGroup> |
84 | | - <KSPBT_GameRootCandidate Include="$(SolutionDir)KSP" source="solution directory"/> |
85 | | - <KSPBT_GameRootCandidate Include="$(ReferencePath)" source="reference path"/> |
86 | | - <KSPBT_GameRootCandidate Include="$(_KSPBT_SteamGameRoot)" source="steam"/> |
87 | | - </ItemGroup> |
88 | | - |
89 | | - <!-- Look for KSP install in Solution dir --> |
90 | | - <PropertyGroup Condition=" '$(KSPBT_GameRoot)' == '' And Exists('$(SolutionDir)KSP/$(KSPBT_GameIdentifier)') "> |
91 | | - <KSPBT_GameRoot>$(SolutionDir)KSP</KSPBT_GameRoot> |
92 | | - <KSPBT_GameRootSource>solution directory</KSPBT_GameRootSource> |
93 | | - </PropertyGroup> |
94 | | - |
95 | | - <!-- Look for KSP install in ReferencePath --> |
96 | | - <PropertyGroup Condition=" '$(KSPBT_GameRoot)' == '' And Exists('$(ReferencePath)/$(KSPBT_GameIdentifier)') "> |
97 | | - <KSPBT_GameRoot>$(ReferencePath)</KSPBT_GameRoot> |
98 | | - <KSPBT_GameRootSource>reference path</KSPBT_GameRootSource> |
99 | | - </PropertyGroup> |
100 | | - |
101 | | - <!-- Look for KSP steam install--> |
102 | | - <PropertyGroup Condition=" '$(KSPBT_GameRoot)' == '' And Exists('$(_KSPBT_SteamGameRoot)/$(KSPBT_GameIdentifier)') "> |
103 | | - <KSPBT_GameRoot>$(_KSPBT_SteamGameRoot)</KSPBT_GameRoot> |
104 | | - <KSPBT_GameRootSource>steam</KSPBT_GameRootSource> |
105 | | - </PropertyGroup> |
106 | | - |
107 | | - <!-- set the start action so that you can launch directly from VS --> |
108 | | - <PropertyGroup> |
109 | | - <StartAction>Program</StartAction> |
110 | | - <StartProgram>$(KSPBT_GameRoot)/$(_KSPBT_GameExecutable)</StartProgram> |
111 | | - <StartWorkingDirectory>$(KSPBT_GameRoot)</StartWorkingDirectory> |
112 | | - <DebugType>portable</DebugType> |
113 | | - </PropertyGroup> |
114 | | - |
115 | 66 | <ItemGroup> |
116 | 67 | <Compile Include="$(MSBuildThisFileDirectory)/include/*.cs" Condition="exists('$(MSBuildThisFileDirectory)/include')"/> |
117 | 68 | </ItemGroup> |
|
0 commit comments