From 546a3a8d3099b096cb7fb544660299052eedb46c Mon Sep 17 00:00:00 2001 From: Sam Lantinga <slouken@libsdl.org> Date: Wed, 19 Jan 2011 13:07:25 -0800 Subject: [PATCH] Added post build step to copy SDL and data files into the test projects --- VisualC/tests/checkkeys/checkkeys_VS2010.vcxproj | 12 ++++++++++++ VisualC/tests/graywin/graywin_VS2010.vcxproj | 12 ++++++++++++ VisualC/tests/loopwave/loopwave_VS2010.vcxproj | 12 ++++++++++++ VisualC/tests/testalpha/testalpha_VS2008.vcproj | 8 ++++---- VisualC/tests/testalpha/testalpha_VS2010.vcxproj | 14 ++++++++++++++ VisualC/tests/testdraw2/testdraw2_VS2010.vcxproj | 12 ++++++++++++ VisualC/tests/testfile/testfile_VS2010.vcxproj | 12 ++++++++++++ VisualC/tests/testgamma/testgamma_VS2010.vcxproj | 12 ++++++++++++ VisualC/tests/testgl/testgl_VS2010.vcxproj | 12 ++++++++++++ VisualC/tests/testgl2/testgl2_VS2010.vcxproj | 12 ++++++++++++ .../tests/testjoystick/testjoystick_VS2010.vcxproj | 12 ++++++++++++ .../tests/testoverlay/testoverlay_VS2010.vcxproj | 14 ++++++++++++++ .../tests/testoverlay2/testoverlay2_VS2010.vcxproj | 14 ++++++++++++++ .../tests/testpalette/testpalette_VS2010.vcxproj | 14 ++++++++++++++ .../tests/testplatform/testplatform_VS2010.vcxproj | 12 ++++++++++++ VisualC/tests/testpower/testpower_VS2010.vcxproj | 14 +++++++++++++- VisualC/tests/testshape/testshape_VS2010.vcxproj | 12 ++++++++++++ VisualC/tests/testsprite/testsprite_VS2010.vcxproj | 14 ++++++++++++++ .../tests/testsprite2/testsprite2_VS2010.vcxproj | 14 ++++++++++++++ .../tests/testvidinfo/testvidinfo_VS2010.vcxproj | 12 ++++++++++++ VisualC/tests/testwin/testwin_VS2010.vcxproj | 14 ++++++++++++++ VisualC/tests/testwm/testwm_VS2010.vcxproj | 12 ++++++++++++ 22 files changed, 271 insertions(+), 5 deletions(-) diff --git a/VisualC/tests/checkkeys/checkkeys_VS2010.vcxproj b/VisualC/tests/checkkeys/checkkeys_VS2010.vcxproj index f642a9c1..4afeff3c 100644 --- a/VisualC/tests/checkkeys/checkkeys_VS2010.vcxproj +++ b/VisualC/tests/checkkeys/checkkeys_VS2010.vcxproj @@ -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> @@ -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" /> diff --git a/VisualC/tests/graywin/graywin_VS2010.vcxproj b/VisualC/tests/graywin/graywin_VS2010.vcxproj index 71417200..b5bcee53 100644 --- a/VisualC/tests/graywin/graywin_VS2010.vcxproj +++ b/VisualC/tests/graywin/graywin_VS2010.vcxproj @@ -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> @@ -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" /> diff --git a/VisualC/tests/loopwave/loopwave_VS2010.vcxproj b/VisualC/tests/loopwave/loopwave_VS2010.vcxproj index d0b690df..680f39b9 100644 --- a/VisualC/tests/loopwave/loopwave_VS2010.vcxproj +++ b/VisualC/tests/loopwave/loopwave_VS2010.vcxproj @@ -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> @@ -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" /> diff --git a/VisualC/tests/testalpha/testalpha_VS2008.vcproj b/VisualC/tests/testalpha/testalpha_VS2008.vcproj index 51ccfeee..b8313cf6 100644 --- a/VisualC/tests/testalpha/testalpha_VS2008.vcproj +++ b/VisualC/tests/testalpha/testalpha_VS2008.vcproj @@ -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
copy $(SolutionDir)\..\test\icon.bmp $(ProjectDir)\icon.bmp" /> </Configuration> <Configuration @@ -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
copy $(SolutionDir)\..\test\icon.bmp $(ProjectDir)\icon.bmp" /> </Configuration> </Configurations> diff --git a/VisualC/tests/testalpha/testalpha_VS2010.vcxproj b/VisualC/tests/testalpha/testalpha_VS2010.vcxproj index 75d4fa21..c8b8f699 100644 --- a/VisualC/tests/testalpha/testalpha_VS2010.vcxproj +++ b/VisualC/tests/testalpha/testalpha_VS2010.vcxproj @@ -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> @@ -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" /> diff --git a/VisualC/tests/testdraw2/testdraw2_VS2010.vcxproj b/VisualC/tests/testdraw2/testdraw2_VS2010.vcxproj index ee6295ca..50d9b02c 100644 --- a/VisualC/tests/testdraw2/testdraw2_VS2010.vcxproj +++ b/VisualC/tests/testdraw2/testdraw2_VS2010.vcxproj @@ -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> @@ -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" /> diff --git a/VisualC/tests/testfile/testfile_VS2010.vcxproj b/VisualC/tests/testfile/testfile_VS2010.vcxproj index a050f424..2b622436 100644 --- a/VisualC/tests/testfile/testfile_VS2010.vcxproj +++ b/VisualC/tests/testfile/testfile_VS2010.vcxproj @@ -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> @@ -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" /> diff --git a/VisualC/tests/testgamma/testgamma_VS2010.vcxproj b/VisualC/tests/testgamma/testgamma_VS2010.vcxproj index 96dc232f..bf88dbf8 100644 --- a/VisualC/tests/testgamma/testgamma_VS2010.vcxproj +++ b/VisualC/tests/testgamma/testgamma_VS2010.vcxproj @@ -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> @@ -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" /> diff --git a/VisualC/tests/testgl/testgl_VS2010.vcxproj b/VisualC/tests/testgl/testgl_VS2010.vcxproj index f0135133..f0494abc 100644 --- a/VisualC/tests/testgl/testgl_VS2010.vcxproj +++ b/VisualC/tests/testgl/testgl_VS2010.vcxproj @@ -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> @@ -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" /> diff --git a/VisualC/tests/testgl2/testgl2_VS2010.vcxproj b/VisualC/tests/testgl2/testgl2_VS2010.vcxproj index 65854998..9e535fe3 100644 --- a/VisualC/tests/testgl2/testgl2_VS2010.vcxproj +++ b/VisualC/tests/testgl2/testgl2_VS2010.vcxproj @@ -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> @@ -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" /> diff --git a/VisualC/tests/testjoystick/testjoystick_VS2010.vcxproj b/VisualC/tests/testjoystick/testjoystick_VS2010.vcxproj index ef2f0a9f..28a5ac29 100644 --- a/VisualC/tests/testjoystick/testjoystick_VS2010.vcxproj +++ b/VisualC/tests/testjoystick/testjoystick_VS2010.vcxproj @@ -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> @@ -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" /> diff --git a/VisualC/tests/testoverlay/testoverlay_VS2010.vcxproj b/VisualC/tests/testoverlay/testoverlay_VS2010.vcxproj index ee79d6ef..8c4ec0e3 100644 --- a/VisualC/tests/testoverlay/testoverlay_VS2010.vcxproj +++ b/VisualC/tests/testoverlay/testoverlay_VS2010.vcxproj @@ -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> @@ -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" /> diff --git a/VisualC/tests/testoverlay2/testoverlay2_VS2010.vcxproj b/VisualC/tests/testoverlay2/testoverlay2_VS2010.vcxproj index 3d49d8d0..a3241050 100644 --- a/VisualC/tests/testoverlay2/testoverlay2_VS2010.vcxproj +++ b/VisualC/tests/testoverlay2/testoverlay2_VS2010.vcxproj @@ -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> @@ -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" /> diff --git a/VisualC/tests/testpalette/testpalette_VS2010.vcxproj b/VisualC/tests/testpalette/testpalette_VS2010.vcxproj index bae8764f..e6a7c63d 100644 --- a/VisualC/tests/testpalette/testpalette_VS2010.vcxproj +++ b/VisualC/tests/testpalette/testpalette_VS2010.vcxproj @@ -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> @@ -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" /> diff --git a/VisualC/tests/testplatform/testplatform_VS2010.vcxproj b/VisualC/tests/testplatform/testplatform_VS2010.vcxproj index 079c8924..7c756889 100644 --- a/VisualC/tests/testplatform/testplatform_VS2010.vcxproj +++ b/VisualC/tests/testplatform/testplatform_VS2010.vcxproj @@ -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> @@ -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" /> diff --git a/VisualC/tests/testpower/testpower_VS2010.vcxproj b/VisualC/tests/testpower/testpower_VS2010.vcxproj index c7ff99cf..85e48dc4 100644 --- a/VisualC/tests/testpower/testpower_VS2010.vcxproj +++ b/VisualC/tests/testpower/testpower_VS2010.vcxproj @@ -81,6 +81,12 @@ <ProgramDatabaseFile>.\Debug/testpower.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> @@ -118,6 +124,12 @@ <ProgramDatabaseFile>.\Release/testpower.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" /> @@ -131,4 +143,4 @@ <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" /> <ImportGroup Label="ExtensionTargets"> </ImportGroup> -</Project> +</Project> \ No newline at end of file diff --git a/VisualC/tests/testshape/testshape_VS2010.vcxproj b/VisualC/tests/testshape/testshape_VS2010.vcxproj index 8a19ca8a..8b440857 100644 --- a/VisualC/tests/testshape/testshape_VS2010.vcxproj +++ b/VisualC/tests/testshape/testshape_VS2010.vcxproj @@ -81,6 +81,12 @@ <ProgramDatabaseFile>.\Release/testshape.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> @@ -118,6 +124,12 @@ <ProgramDatabaseFile>.\Debug/testshape.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" /> diff --git a/VisualC/tests/testsprite/testsprite_VS2010.vcxproj b/VisualC/tests/testsprite/testsprite_VS2010.vcxproj index 1243edd2..2b3d4866 100644 --- a/VisualC/tests/testsprite/testsprite_VS2010.vcxproj +++ b/VisualC/tests/testsprite/testsprite_VS2010.vcxproj @@ -81,6 +81,13 @@ <ProgramDatabaseFile>.\Release/testsprite.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)'=='Debug|Win32'"> <Midl> @@ -118,6 +125,13 @@ <ProgramDatabaseFile>.\Debug/testsprite.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" /> diff --git a/VisualC/tests/testsprite2/testsprite2_VS2010.vcxproj b/VisualC/tests/testsprite2/testsprite2_VS2010.vcxproj index 5ae77ef2..7f05ee20 100644 --- a/VisualC/tests/testsprite2/testsprite2_VS2010.vcxproj +++ b/VisualC/tests/testsprite2/testsprite2_VS2010.vcxproj @@ -81,6 +81,13 @@ <ProgramDatabaseFile>.\Release/testsprite2.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)'=='Debug|Win32'"> <Midl> @@ -118,6 +125,13 @@ <ProgramDatabaseFile>.\Debug/testsprite2.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> <ClCompile Include="..\..\..\test\common.c" /> diff --git a/VisualC/tests/testvidinfo/testvidinfo_VS2010.vcxproj b/VisualC/tests/testvidinfo/testvidinfo_VS2010.vcxproj index e5aae9ea..8fb7c535 100644 --- a/VisualC/tests/testvidinfo/testvidinfo_VS2010.vcxproj +++ b/VisualC/tests/testvidinfo/testvidinfo_VS2010.vcxproj @@ -81,6 +81,12 @@ <ProgramDatabaseFile>.\Release/testvidinfo.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> @@ -118,6 +124,12 @@ <ProgramDatabaseFile>.\Debug/testvidinfo.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" /> diff --git a/VisualC/tests/testwin/testwin_VS2010.vcxproj b/VisualC/tests/testwin/testwin_VS2010.vcxproj index 2ab15bda..dead4089 100644 --- a/VisualC/tests/testwin/testwin_VS2010.vcxproj +++ b/VisualC/tests/testwin/testwin_VS2010.vcxproj @@ -81,6 +81,13 @@ <ProgramDatabaseFile>.\Debug/testwin.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)'=='Release|Win32'"> <Midl> @@ -118,6 +125,13 @@ <ProgramDatabaseFile>.\Release/testwin.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" /> diff --git a/VisualC/tests/testwm/testwm_VS2010.vcxproj b/VisualC/tests/testwm/testwm_VS2010.vcxproj index 0394dd80..0be4e2f9 100644 --- a/VisualC/tests/testwm/testwm_VS2010.vcxproj +++ b/VisualC/tests/testwm/testwm_VS2010.vcxproj @@ -81,6 +81,12 @@ <ProgramDatabaseFile>.\Debug/testwm.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> @@ -118,6 +124,12 @@ <ProgramDatabaseFile>.\Release/testwm.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" /> -- 2.18.1