summaryrefslogtreecommitdiff
path: root/build/smapi.targets
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2016-10-19 19:26:33 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2016-10-19 19:26:33 -0400
commit520c46fbe661acac7f6c7854b71d05f58a06cf64 (patch)
tree54a87184e5a0003f7d14566fa6c120ab1f4ba38e /build/smapi.targets
parent555e0d12241f9bda0262f513fa6bc8c55cc7d5fe (diff)
downloadSMAPI-520c46fbe661acac7f6c7854b71d05f58a06cf64.tar.gz
SMAPI-520c46fbe661acac7f6c7854b71d05f58a06cf64.tar.bz2
SMAPI-520c46fbe661acac7f6c7854b71d05f58a06cf64.zip
expand readme, restructure config
Diffstat (limited to 'build/smapi.targets')
-rw-r--r--build/smapi.targets82
1 files changed, 46 insertions, 36 deletions
diff --git a/build/smapi.targets b/build/smapi.targets
index 1e71d06a..6231650c 100644
--- a/build/smapi.targets
+++ b/build/smapi.targets
@@ -1,47 +1,57 @@
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
- <!-- mod build info -->
+ <!-- find game install path -->
<PropertyGroup>
<GamePath>C:\Program Files (x86)\GalaxyClient\Games\Stardew Valley</GamePath>
<GamePath Condition="!Exists('$(GamePath)')">C:\Program Files (x86)\Steam\steamapps\common\Stardew Valley</GamePath>
<GamePath Condition="!Exists('$(GamePath)')">~\Library\Application Support\Steam\steamapps\common\Stardew Valley\Contents\MacOS</GamePath>
- <StartAction>Program</StartAction>
- <StartProgram>$(GamePath)\StardewModdingAPI.exe</StartProgram>
- <StartWorkingDirectory>$(GamePath)</StartWorkingDirectory>
</PropertyGroup>
- <!-- references for Windows -->
- <ItemGroup Condition="$(OS) == 'Windows_NT'">
- <Reference Include="Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" />
- <Reference Include="Microsoft.Xna.Framework.Game, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" />
- <Reference Include="Microsoft.Xna.Framework.Graphics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" />
- <Reference Include="Stardew Valley">
- <HintPath>$(GamePath)\Stardew Valley.exe</HintPath>
- </Reference>
- <Reference Include="StardewModdingAPI">
- <HintPath>$(GamePath)\StardewModdingAPI.exe</HintPath>
- </Reference>
- <Reference Include="xTile, Version=2.0.4.0, Culture=neutral, processorArchitecture=x86">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>$(GamePath)\xTile.dll</HintPath>
- </Reference>
- </ItemGroup>
+ <!-- set up configuration -->
+ <Choose>
+ <When Condition="$(OS) == 'Windows_NT'">
+ <!-- references -->
+ <ItemGroup>
+ <Reference Include="Microsoft.Xna.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" />
+ <Reference Include="Microsoft.Xna.Framework.Game, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" />
+ <Reference Include="Microsoft.Xna.Framework.Graphics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=842cf8be1de50553, processorArchitecture=x86" />
+ <Reference Include="Stardew Valley">
+ <HintPath>$(GamePath)\Stardew Valley.exe</HintPath>
+ </Reference>
+ <Reference Include="StardewModdingAPI">
+ <HintPath>$(GamePath)\StardewModdingAPI.exe</HintPath>
+ </Reference>
+ <Reference Include="xTile, Version=2.0.4.0, Culture=neutral, processorArchitecture=x86">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>$(GamePath)\xTile.dll</HintPath>
+ </Reference>
+ </ItemGroup>
- <!-- references for Linux/Mac -->
- <ItemGroup Condition="$(OS) == 'Unix'">
- <Reference Include="MonoGame.Framework">
- <SpecificVersion>False</SpecificVersion>
- <HintPath>$(GamePath)\MonoGame.Framework.dll</HintPath>
- </Reference>
- <Reference Include="StardewValley">
- <HintPath>$(GamePath)\StardewValley.exe</HintPath>
- </Reference>
- <Reference Include="StardewModdingAPI">
- <HintPath>$(GamePath)\StardewModdingAPI.exe</HintPath>
- </Reference>
- <Reference Include="xTile">
- <HintPath>$(GamePath)\xTile.dll</HintPath>
- </Reference>
- </ItemGroup>
+ <!-- launch game for debugging -->
+ <PropertyGroup>
+ <StartAction>Program</StartAction>
+ <StartProgram>$(GamePath)\StardewModdingAPI.exe</StartProgram>
+ <StartWorkingDirectory>$(GamePath)</StartWorkingDirectory>
+ </PropertyGroup>
+ </When>
+ <Otherwise>
+ <!-- references -->
+ <ItemGroup>
+ <Reference Include="MonoGame.Framework">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>$(GamePath)\MonoGame.Framework.dll</HintPath>
+ </Reference>
+ <Reference Include="StardewValley">
+ <HintPath>$(GamePath)\StardewValley.exe</HintPath>
+ </Reference>
+ <Reference Include="StardewModdingAPI">
+ <HintPath>$(GamePath)\StardewModdingAPI.exe</HintPath>
+ </Reference>
+ <Reference Include="xTile">
+ <HintPath>$(GamePath)\xTile.dll</HintPath>
+ </Reference>
+ </ItemGroup>
+ </Otherwise>
+ </Choose>
<!-- Validate game path & automate mod package -->
<Target Name="BeforeBuild">