diff build/win32/build_environments/visual_studio_9/engine_template.xml @ 378:64738befdf3b

bringing in the changes from the build_system_rework branch in preparation for the 0.3.0 release. This commit will require the Jan2010 devkit. Clients will also need to be modified to the new way to import fife.
author vtchill@33b003aa-7bff-0310-803a-e67f0ece8222
date Mon, 11 Jan 2010 23:34:52 +0000
parents 5ab78cd39534
children 0a798d5c241a
line wrap: on
line diff
--- a/build/win32/build_environments/visual_studio_9/engine_template.xml	Wed Dec 09 17:01:52 2009 +0000
+++ b/build/win32/build_environments/visual_studio_9/engine_template.xml	Mon Jan 11 23:34:52 2010 +0000
@@ -2,7 +2,7 @@
 <VisualStudioProject
 	ProjectType="Visual C++"
 	Version="9,00"
-	Name="libfife"
+	Name="fife"
 	ProjectGUID="{96025707-5759-400D-80E5-A1E94C8A79A2}"
 	RootNamespace="fife_trunk_core"
 	Keyword="Win32Proj"
@@ -17,8 +17,8 @@
 	</ToolFiles>
 	<Configurations>
 		<Configuration
-			Name="Debug|Win32"
-			OutputDirectory="..\..\..\..\engine\swigwrappers\python"
+			Name="Debug_python|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
 			IntermediateDirectory="$(ConfigurationName)"
 			ConfigurationType="2"
 			CharacterSet="1"
@@ -26,7 +26,7 @@
 			
 			<Tool
 				Name="VCPreBuildEventTool"
-				CommandLine="cd ..\..\&#x0D;&#x0A;update_project_files.bat"
+				CommandLine="cd &quot;..\..\&quot;&#x0D;&#x0A;call update_swig_files.bat&#x0D;&#x0A;"
 			/>
 			<Tool
 				Name="VCCustomBuildTool"
@@ -93,19 +93,20 @@
 			/>
 			<Tool
 				Name="VCPostBuildEventTool"
-				CommandLine="cd ..\..\&#x0D;&#x0A;update_dlls_msvc2008.bat"
+				Description="Installing python files"
+				CommandLine="xcopy &quot;$(TargetPath)&quot; &quot;..\..\..\..\engine\python\fife&quot; /e /c /i /q /y&#x0D;&#x0A;xcopy &quot;..\..\binaries\msvc2008\*.dll&quot; &quot;..\..\..\..\engine\python\fife&quot; /e /c /i /q /y&#x0D;&#x0A;xcopy &quot;..\..\..\..\engine\python\fife&quot; &quot;C:\Python26\Lib\site-packages\fife&quot; /e /c /i /q /y&#x0D;&#x0A;"
 			/>
 		</Configuration>
 		<Configuration
 			Name="Debug_static|Win32"
-			OutputDirectory="..\..\static_libs\msvc2008"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
 			IntermediateDirectory="$(ConfigurationName)"
 			ConfigurationType="4"
 			CharacterSet="1"
 			>
 			<Tool
 				Name="VCPreBuildEventTool"
-				CommandLine="cd ..\..\&#x0D;&#x0A;update_project_files.bat"
+				CommandLine="cd &quot;..\..\&quot;&#x0D;&#x0A;call update_swig_files.bat&#x0D;&#x0A;"
 			/>
 			<Tool
 				Name="VCCustomBuildTool"
@@ -160,11 +161,13 @@
 			/>
 			<Tool
 				Name="VCPostBuildEventTool"
+				Description="Copying LIB"
+				CommandLine="xcopy &quot;$(TargetPath)&quot; &quot;..\..\static_libs\msvc2008&quot;  /e /c /i /q /y"
 			/>
 		</Configuration>
 		<Configuration
 			Name="Release_static|Win32"
-			OutputDirectory="..\..\static_libs\msvc2008"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
 			IntermediateDirectory="$(ConfigurationName)"
 			ConfigurationType="4"
 			CharacterSet="1"
@@ -172,7 +175,7 @@
 			>
 			<Tool
 				Name="VCPreBuildEventTool"
-				CommandLine="cd ..\..\&#x0D;&#x0A;update_project_files.bat"
+				CommandLine="cd &quot;..\..\&quot;&#x0D;&#x0A;call update_swig_files.bat&#x0D;&#x0A;"
 			/>
 			<Tool
 				Name="VCCustomBuildTool"
@@ -224,11 +227,13 @@
 			/>
 			<Tool
 				Name="VCPostBuildEventTool"
+				Description="Copying LIB"
+				CommandLine="xcopy &quot;$(TargetPath)&quot; &quot;..\..\static_libs\msvc2008&quot;  /e /c /i /q /y"
 			/>
 		</Configuration>
 		<Configuration
-			Name="Release|Win32"
-			OutputDirectory="..\..\..\..\engine\swigwrappers\python"
+			Name="Release_python|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
 			IntermediateDirectory="$(ConfigurationName)"
 			ConfigurationType="2"
 			CharacterSet="1"
@@ -237,7 +242,7 @@
 			
 			<Tool
 				Name="VCPreBuildEventTool"
-				CommandLine="cd ..\..\&#x0D;&#x0A;update_project_files.bat"
+				CommandLine="cd &quot;..\..\&quot;&#x0D;&#x0A;call update_swig_files.bat&#x0D;&#x0A;"
 			/>
 			<Tool
 				Name="VCCustomBuildTool"
@@ -279,8 +284,171 @@
 				OutputFile="$(OutDir)\_fife.pyd"
 				AdditionalLibraryDirectories="..\..\static_libs\msvc2008;..\..\static_libs\msvc2008\python26"
 				IgnoreDefaultLibraryNames="libcmt.lib"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCWebDeploymentTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+				Description="Installing python files"
+				CommandLine="xcopy &quot;$(TargetPath)&quot; &quot;..\..\..\..\engine\python\fife&quot; /e /c /i /q /y&#x0D;&#x0A;xcopy &quot;..\..\binaries\msvc2008\*.dll&quot; &quot;..\..\..\..\engine\python\fife&quot; /e /c /i /q /y&#x0D;&#x0A;xcopy &quot;..\..\..\..\engine\python\fife&quot; &quot;C:\Python26\Lib\site-packages\fife&quot; /e /c /i /q /y"
+			/>
+		</Configuration>
+		<Configuration
+			Name="Debug_shared|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="2"
+			CharacterSet="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+				CommandLine="cd &quot;..\..\&quot;&#x0D;&#x0A;call update_swig_files.bat&#x0D;&#x0A;"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				Optimization="0"
+				WholeProgramOptimization="false"
+				AdditionalIncludeDirectories="..\..\..\..\engine;..\..\..\..\engine\core;..\..\includes\libguichan;..\..\includes\boost_1_38_0;..\..\includes\openal;..\..\includes\sdl;..\..\includes\zlib;..\..\includes\libvorbis;..\..\includes\libpng;..\..\includes\libogg;..\..\includes\python26;..\..\includes\sdl_image;..\..\includes\sdl_ttf"
+				PreprocessorDefinitions="WIN32;NDEBUG;_LIB;HAVE_OPENGL;HAVE_ZIP;LOG_ENABLED;WIN32_LEAN_AND_MEAN;NOMINMAX;M_SQRT2=1.41421356237309504880"
+				MinimalRebuild="true"
+				RuntimeLibrary="2"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				Detect64BitPortabilityProblems="true"
+				DebugInformationFormat="3"
+				DisableSpecificWarnings="4250;4290"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				AdditionalDependencies="glu32.lib guichan_opengl.lib guichan_sdl.lib guichan.lib ogg_static.lib openal32.lib opengl32.lib sdl.lib sdlmain.lib SDL_image.lib SDL_ttf.lib vorbis_static.lib vorbisfile_static.lib libpng.lib zlib.lib"
+				OutputFile="$(OutDir)\$(ProjectName)_d.dll"
+				AdditionalLibraryDirectories="..\..\static_libs\msvc2008;..\..\static_libs\msvc2008\python26"
+				IgnoreDefaultLibraryNames="libcmt.lib"
+				GenerateDebugInformation="true"
+				ImportLibrary="$(OutDir)\$(ProjectName)_d.lib"
+			/>
+			<Tool
+				Name="VCALinkTool"
+			/>
+			<Tool
+				Name="VCManifestTool"
+			/>
+			<Tool
+				Name="VCXDCMakeTool"
+			/>
+			<Tool
+				Name="VCBscMakeTool"
+			/>
+			<Tool
+				Name="VCFxCopTool"
+			/>
+			<Tool
+				Name="VCAppVerifierTool"
+			/>
+			<Tool
+				Name="VCWebDeploymentTool"
+			/>
+			<Tool
+				Name="VCPostBuildEventTool"
+				Description="Copying DLL and LIB"
+				CommandLine="xcopy &quot;$(TargetPath)&quot; &quot;..\..\binaries\msvc2008&quot;  /e /c /i /q /y&#x0D;&#x0A;xcopy &quot;$(TargetDir)$(TargetName).lib&quot; &quot;..\..\binaries\msvc2008&quot;  /e /c /i /q /y&#x0D;&#x0A;"
+			/>
+		</Configuration>
+		<Configuration
+			Name="Release_shared|Win32"
+			OutputDirectory="$(SolutionDir)$(ConfigurationName)"
+			IntermediateDirectory="$(ConfigurationName)"
+			ConfigurationType="2"
+			CharacterSet="1"
+			WholeProgramOptimization="1"
+			>
+			<Tool
+				Name="VCPreBuildEventTool"
+				CommandLine="cd &quot;..\..\&quot;&#x0D;&#x0A;call update_swig_files.bat&#x0D;&#x0A;"
+			/>
+			<Tool
+				Name="VCCustomBuildTool"
+			/>
+			<Tool
+				Name="VCXMLDataGeneratorTool"
+			/>
+			<Tool
+				Name="VCWebServiceProxyGeneratorTool"
+			/>
+			<Tool
+				Name="VCMIDLTool"
+			/>
+			<Tool
+				Name="VCCLCompilerTool"
+				WholeProgramOptimization="false"
+				AdditionalIncludeDirectories="..\..\..\..\engine;..\..\..\..\engine\core;..\..\includes\libguichan;..\..\includes\boost_1_38_0;..\..\includes\openal;..\..\includes\sdl;..\..\includes\zlib;..\..\includes\libvorbis;..\..\includes\libpng;..\..\includes\libogg;..\..\includes\python26;..\..\includes\sdl_image;..\..\includes\sdl_ttf"
+				PreprocessorDefinitions="WIN32;NDEBUG;_LIB;HAVE_OPENGL;HAVE_ZIP;LOG_ENABLED;WIN32_LEAN_AND_MEAN;NOMINMAX;M_SQRT2=1.41421356237309504880"
+				RuntimeLibrary="2"
+				UsePrecompiledHeader="0"
+				WarningLevel="3"
+				Detect64BitPortabilityProblems="true"
+				DebugInformationFormat="3"
+				DisableSpecificWarnings="4250;4290"
+			/>
+			<Tool
+				Name="VCManagedResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCResourceCompilerTool"
+			/>
+			<Tool
+				Name="VCPreLinkEventTool"
+			/>
+			<Tool
+				Name="VCLinkerTool"
+				AdditionalDependencies="glu32.lib guichan_opengl.lib guichan_sdl.lib guichan.lib ogg_static.lib openal32.lib opengl32.lib sdl.lib sdlmain.lib SDL_image.lib SDL_ttf.lib vorbis_static.lib vorbisfile_static.lib libpng.lib zlib.lib"
+				OutputFile="$(OutDir)\$(ProjectName).dll"
+				AdditionalLibraryDirectories="..\..\static_libs\msvc2008;..\..\static_libs\msvc2008\python26"
+				IgnoreDefaultLibraryNames="libcmt.lib"
+				SupportUnloadOfDelayLoadedDLL="false"
 				RandomizedBaseAddress="1"
 				DataExecutionPrevention="0"
+				ImportLibrary="$(OutDir)\$(ProjectName).lib"
 			/>
 			<Tool
 				Name="VCALinkTool"
@@ -302,7 +470,8 @@
 			/>
 			<Tool
 				Name="VCPostBuildEventTool"
-				CommandLine="cd ..\..\&#x0D;&#x0A;update_dlls_msvc2008.bat"
+				Description="Copying DLL and LIB"
+				CommandLine="xcopy &quot;$(TargetPath)&quot; &quot;..\..\binaries\msvc2008&quot;  /e /c /i /q /y&#x0D;&#x0A;xcopy &quot;$(TargetDir)$(TargetName).lib&quot; &quot;..\..\binaries\msvc2008&quot;  /e /c /i /q /y&#x0D;&#x0A;"
 			/>
 		</Configuration>
 	</Configurations>