Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Added post build step to copy SDL and data files into the test projects
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 19, 2011
1 parent d077dc7 commit 36daa16
Show file tree
Hide file tree
Showing 22 changed files with 271 additions and 5 deletions.
12 changes: 12 additions & 0 deletions VisualC/tests/checkkeys/checkkeys_VS2010.vcxproj
Expand Up @@ -81,6 +81,12 @@
<ProgramDatabaseFile>.\Debug/checkkeys.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Midl>
Expand Down Expand Up @@ -118,6 +124,12 @@
<ProgramDatabaseFile>.\Release/checkkeys.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\..\test\checkkeys.c" />
Expand Down
12 changes: 12 additions & 0 deletions VisualC/tests/graywin/graywin_VS2010.vcxproj
Expand Up @@ -81,6 +81,12 @@
<ProgramDatabaseFile>.\Debug/graywin.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Midl>
Expand Down Expand Up @@ -118,6 +124,12 @@
<ProgramDatabaseFile>.\Release/graywin.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\..\test\graywin.c" />
Expand Down
12 changes: 12 additions & 0 deletions VisualC/tests/loopwave/loopwave_VS2010.vcxproj
Expand Up @@ -81,6 +81,12 @@
<ProgramDatabaseFile>.\Release/loopwave.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Midl>
Expand Down Expand Up @@ -118,6 +124,12 @@
<ProgramDatabaseFile>.\Debug/loopwave.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\..\Test\Loopwave.c" />
Expand Down
8 changes: 4 additions & 4 deletions VisualC/tests/testalpha/testalpha_VS2008.vcproj
Expand Up @@ -102,8 +102,8 @@
/>
<Tool
Name="VCPostBuildEventTool"
Description="Copy SDL"
CommandLine="copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll"
Description="Copy SDL and data files"
CommandLine="copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll&#x0D;&#x0A;copy $(SolutionDir)\..\test\icon.bmp $(ProjectDir)\icon.bmp"
/>
</Configuration>
<Configuration
Expand Down Expand Up @@ -194,8 +194,8 @@
/>
<Tool
Name="VCPostBuildEventTool"
Description="Copy SDL"
CommandLine="copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll"
Description="Copy SDL and data files"
CommandLine="copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll&#x0D;&#x0A;copy $(SolutionDir)\..\test\icon.bmp $(ProjectDir)\icon.bmp"
/>
</Configuration>
</Configurations>
Expand Down
14 changes: 14 additions & 0 deletions VisualC/tests/testalpha/testalpha_VS2010.vcxproj
Expand Up @@ -81,6 +81,13 @@
<ProgramDatabaseFile>.\Debug/testalpha.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll
copy $(SolutionDir)\..\test\icon.bmp $(ProjectDir)\icon.bmp</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL and data files</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Midl>
Expand Down Expand Up @@ -118,6 +125,13 @@
<ProgramDatabaseFile>.\Release/testalpha.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll
copy $(SolutionDir)\..\test\icon.bmp $(ProjectDir)\icon.bmp</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL and data files</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<Library Include="..\..\Sdl\Debug\SDL.lib" />
Expand Down
12 changes: 12 additions & 0 deletions VisualC/tests/testdraw2/testdraw2_VS2010.vcxproj
Expand Up @@ -81,6 +81,12 @@
<ProgramDatabaseFile>.\Release/testdraw2.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Midl>
Expand Down Expand Up @@ -118,6 +124,12 @@
<ProgramDatabaseFile>.\Debug/testdraw2.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\..\test\common.c" />
Expand Down
12 changes: 12 additions & 0 deletions VisualC/tests/testfile/testfile_VS2010.vcxproj
Expand Up @@ -81,6 +81,12 @@
<ProgramDatabaseFile>.\Debug/testfile.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Midl>
Expand Down Expand Up @@ -118,6 +124,12 @@
<ProgramDatabaseFile>.\Release/testfile.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<Library Include="..\..\Sdl\Debug\SDL.lib" />
Expand Down
12 changes: 12 additions & 0 deletions VisualC/tests/testgamma/testgamma_VS2010.vcxproj
Expand Up @@ -81,6 +81,12 @@
<ProgramDatabaseFile>.\Debug/testgamma.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Midl>
Expand Down Expand Up @@ -118,6 +124,12 @@
<ProgramDatabaseFile>.\Release/testgamma.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<Library Include="..\..\Sdl\Debug\SDL.lib" />
Expand Down
12 changes: 12 additions & 0 deletions VisualC/tests/testgl/testgl_VS2010.vcxproj
Expand Up @@ -82,6 +82,12 @@
<ProgramDatabaseFile>.\Debug/testgl.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Midl>
Expand Down Expand Up @@ -120,6 +126,12 @@
<ProgramDatabaseFile>.\Release/testgl.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<Library Include="..\..\Sdl\Debug\SDL.lib" />
Expand Down
12 changes: 12 additions & 0 deletions VisualC/tests/testgl2/testgl2_VS2010.vcxproj
Expand Up @@ -82,6 +82,12 @@
<ProgramDatabaseFile>.\Debug/testgl2.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Midl>
Expand Down Expand Up @@ -120,6 +126,12 @@
<ProgramDatabaseFile>.\Release/testgl2.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\..\..\test\common.c" />
Expand Down
12 changes: 12 additions & 0 deletions VisualC/tests/testjoystick/testjoystick_VS2010.vcxproj
Expand Up @@ -81,6 +81,12 @@
<ProgramDatabaseFile>.\Release/testjoystick.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Midl>
Expand Down Expand Up @@ -118,6 +124,12 @@
<ProgramDatabaseFile>.\Debug/testjoystick.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<Library Include="..\..\Sdl\Debug\SDL.lib" />
Expand Down
14 changes: 14 additions & 0 deletions VisualC/tests/testoverlay/testoverlay_VS2010.vcxproj
Expand Up @@ -81,6 +81,13 @@
<ProgramDatabaseFile>.\Release/testoverlay.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll
copy $(SolutionDir)\..\test\sample.bmp $(ProjectDir)\sample.bmp</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL and data files</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Midl>
Expand Down Expand Up @@ -118,6 +125,13 @@
<ProgramDatabaseFile>.\Debug/testoverlay.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll
copy $(SolutionDir)\..\test\sample.bmp $(ProjectDir)\sample.bmp</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL and data files</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<Library Include="..\..\Sdl\Debug\SDL.lib" />
Expand Down
14 changes: 14 additions & 0 deletions VisualC/tests/testoverlay2/testoverlay2_VS2010.vcxproj
Expand Up @@ -81,6 +81,13 @@
<ProgramDatabaseFile>.\Release/testoverlay2.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll
copy $(SolutionDir)\..\test\moose.dat $(ProjectDir)\moose.dat</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL and data files</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Midl>
Expand Down Expand Up @@ -118,6 +125,13 @@
<ProgramDatabaseFile>.\Debug/testoverlay2.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll
copy $(SolutionDir)\..\test\moose.dat $(ProjectDir)\moose.dat</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL and data files</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<Library Include="..\..\Sdl\Debug\SDL.lib" />
Expand Down
14 changes: 14 additions & 0 deletions VisualC/tests/testpalette/testpalette_VS2010.vcxproj
Expand Up @@ -81,6 +81,13 @@
<ProgramDatabaseFile>.\Release/testpalette.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll
copy $(SolutionDir)\..\test\sail.bmp $(ProjectDir)\sail.bmp</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL and data files</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Midl>
Expand Down Expand Up @@ -118,6 +125,13 @@
<ProgramDatabaseFile>.\Debug/testpalette.pdb</ProgramDatabaseFile>
<SubSystem>Windows</SubSystem>
</Link>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll
copy $(SolutionDir)\..\test\sail.bmp $(ProjectDir)\sail.bmp</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL and data files</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<Library Include="..\..\Sdl\Debug\SDL.lib" />
Expand Down
12 changes: 12 additions & 0 deletions VisualC/tests/testplatform/testplatform_VS2010.vcxproj
Expand Up @@ -85,6 +85,12 @@
<SuppressStartupBanner>true</SuppressStartupBanner>
<OutputFile>.\Debug/testplatform.bsc</OutputFile>
</Bscmake>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Midl>
Expand Down Expand Up @@ -126,6 +132,12 @@
<SuppressStartupBanner>true</SuppressStartupBanner>
<OutputFile>.\Release/testplatform.bsc</OutputFile>
</Bscmake>
<PostBuildEvent>
<Command>copy $(SolutionDir)\SDL\$(ConfigurationName)\SDL.dll $(TargetDir)\SDL.dll</Command>
</PostBuildEvent>
<PostBuildEvent>
<Message>Copy SDL</Message>
</PostBuildEvent>
</ItemDefinitionGroup>
<ItemGroup>
<Library Include="..\..\Sdl\Debug\SDL.lib" />
Expand Down

0 comments on commit 36daa16

Please sign in to comment.