Skip to content

Commit

Permalink
Updates for cross platform (Mac/Win) builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jwvanderbeck committed Dec 31, 2014
1 parent ad0f73b commit dbfeb3f
Show file tree
Hide file tree
Showing 4 changed files with 98 additions and 7 deletions.
10 changes: 5 additions & 5 deletions TestFlight.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,10 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>
</PostBuildEvent>
<PostBuildEvent>copy "$(TargetPath)" "F:\Games\Kerbal Space Program\0.90\GameData\TestFlight\Plugins\$(TargetFileName)"</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PreBuildEvent>xcopy /E /Y "$(SolutionDir)TestFlight\*.*" "F:\Games\Kerbal Space Program\0.90\GameData\TestFlight\"</PreBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
Expand All @@ -110,9 +112,7 @@
<Name>TestFlightAPI</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<Folder Include="TestFlight\" />
</ItemGroup>
<ItemGroup />
<ItemGroup>
<None Include="TestFlight\Resources.cfg" />
<None Include="TestFlight\Squad_Engines.cfg" />
Expand Down
11 changes: 10 additions & 1 deletion TestFlightAPI/TestFlightAPI/TestFlightAPI.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand Down Expand Up @@ -38,6 +38,9 @@
</CustomCommands>
</PropertyGroup>
<ItemGroup>
<Reference Include="Assembly-CSharp-firstpass">
<HintPath>..\..\..\..\..\KSP.app\Contents\Data\Managed\Assembly-CSharp-firstpass.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="Assembly-CSharp">
<HintPath>..\..\..\..\..\KSP.app\Contents\Data\Managed\Assembly-CSharp.dll</HintPath>
Expand Down Expand Up @@ -66,4 +69,10 @@
</Properties>
</MonoDevelop>
</ProjectExtensions>
<PropertyGroup>
<PreBuildEvent>xcopy /E /Y "$(SolutionDir)TestFlight\*.*" "F:\Games\Kerbal Space Program\0.90\GameData\TestFlight\"</PreBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PostBuildEvent>copy "$(TargetPath)" "F:\Games\Kerbal Space Program\0.90\GameData\TestFlight\Plugins\$(TargetFileName)"</PostBuildEvent>
</PropertyGroup>
</Project>
8 changes: 7 additions & 1 deletion TestFlightCore/TestFlightCore/TestFlightCore.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand Down Expand Up @@ -86,4 +86,10 @@
<Name>TestFlightAPI</Name>
</ProjectReference>
</ItemGroup>
<PropertyGroup>
<PostBuildEvent>copy "$(TargetPath)" "F:\Games\Kerbal Space Program\0.90\GameData\TestFlight\Plugins\$(TargetFileName)"</PostBuildEvent>
</PropertyGroup>
<PropertyGroup>
<PreBuildEvent>xcopy /E /Y "$(SolutionDir)TestFlight\*.*" "F:\Games\Kerbal Space Program\0.90\GameData\TestFlight\"</PreBuildEvent>
</PropertyGroup>
</Project>
76 changes: 76 additions & 0 deletions TestFlight_WIN.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2013
VisualStudioVersion = 12.0.31101.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestFlight", "TestFlight.csproj", "{411F2FC2-8E31-4FDB-9F69-E202E7B4081A}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestFlightCore", "TestFlightCore\TestFlightCore\TestFlightCore.csproj", "{CD4D0CF1-16A8-4FB9-A7CC-6566160B8CD2}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestFlightAPI", "TestFlightAPI\TestFlightAPI\TestFlightAPI.csproj", "{F212E235-8856-4C7E-AFA9-051490E1350F}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{411F2FC2-8E31-4FDB-9F69-E202E7B4081A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{411F2FC2-8E31-4FDB-9F69-E202E7B4081A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{411F2FC2-8E31-4FDB-9F69-E202E7B4081A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{411F2FC2-8E31-4FDB-9F69-E202E7B4081A}.Release|Any CPU.Build.0 = Release|Any CPU
{CD4D0CF1-16A8-4FB9-A7CC-6566160B8CD2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CD4D0CF1-16A8-4FB9-A7CC-6566160B8CD2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CD4D0CF1-16A8-4FB9-A7CC-6566160B8CD2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CD4D0CF1-16A8-4FB9-A7CC-6566160B8CD2}.Release|Any CPU.Build.0 = Release|Any CPU
{F212E235-8856-4C7E-AFA9-051490E1350F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F212E235-8856-4C7E-AFA9-051490E1350F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F212E235-8856-4C7E-AFA9-051490E1350F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F212E235-8856-4C7E-AFA9-051490E1350F}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = TestFlight.csproj
Policies = $0
$0.DotNetNamingPolicy = $1
$1.DirectoryNamespaceAssociation = None
$1.ResourceNamePolicy = FileFormatDefault
$0.TextStylePolicy = $4
$2.inheritsSet = VisualStudio
$2.inheritsScope = text/plain
$2.scope = text/x-csharp
$0.CSharpFormattingPolicy = $3
$3.IndentSwitchBody = True
$3.IndentBlocksInsideExpressions = True
$3.AnonymousMethodBraceStyle = NextLine
$3.PropertyBraceStyle = NextLine
$3.PropertyGetBraceStyle = NextLine
$3.PropertySetBraceStyle = NextLine
$3.EventBraceStyle = NextLine
$3.EventAddBraceStyle = NextLine
$3.EventRemoveBraceStyle = NextLine
$3.StatementBraceStyle = NextLine
$3.ElseNewLinePlacement = NewLine
$3.CatchNewLinePlacement = NewLine
$3.FinallyNewLinePlacement = NewLine
$3.WhileNewLinePlacement = DoNotCare
$3.ArrayInitializerWrapping = DoNotChange
$3.ArrayInitializerBraceStyle = NextLine
$3.BeforeMethodDeclarationParentheses = False
$3.BeforeMethodCallParentheses = False
$3.BeforeConstructorDeclarationParentheses = False
$3.NewLineBeforeConstructorInitializerColon = NewLine
$3.NewLineAfterConstructorInitializerColon = SameLine
$3.BeforeDelegateDeclarationParentheses = False
$3.NewParentheses = False
$3.SpacesBeforeBrackets = False
$3.inheritsSet = Mono
$3.inheritsScope = text/x-csharp
$3.scope = text/x-csharp
$4.inheritsSet = VisualStudio
$4.inheritsScope = text/plain
$4.scope = text/plain
EndGlobalSection
EndGlobal

0 comments on commit dbfeb3f

Please sign in to comment.