Updated the Visual C++ project files to support

compilation of the inluded bullet library, and 
to include the new widget_manager.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1298 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2007-11-21 12:56:44 +00:00
parent aa3ad745ce
commit c05b0d4b0d
5 changed files with 1188 additions and 51 deletions

View File

@ -34,8 +34,12 @@ Visual C++ Express
==================
Since version r793 SuperTuxKart compiles with Visual C++ Express,
version 8.0. To compile it, the following steps are necessary:
version 8.0, since rev 1267 Visual C++ project files are included.
The main project file is .../src/ide/vc8/supertuxkart.vcproj,
and it include a sub project for the bullet library. More details
can be found in .../src/ide/vc8/README.
You still have to install all dependencies, and:
1) Modify plib:
In src/ssg/ssgLoadAC.cxx replace:
loader_fd = fopen ( filename, "ra" ) ;
@ -46,35 +50,3 @@ version 8.0. To compile it, the following steps are necessary:
2) Compile plib (project files for visual c++ are included)
3) Open a new project for SuperTuxKart and import all source files.
4) In properties, compile flags: add /DNOMINMAX
(or add the symbol to the preprocessor defines)
5) Add /DVERSION=\"0.2\" (or whatever version number you downloaded)
The backslashes and quotes are necessary!
6) In linker settings, ignore libcmt.lib
7) Add the following libraries:
fnt.lib
net.lib
psl.lib
pui.lib
sg.lib
sl.lib
ssgAux.lib
ul.lib
js.lib
puAux.lib
pw.lib
ssg.lib
opengl32.lib
user32.lib
gdi32.lib
winmm.lib
advapi32.lib
8) Compile, run, and enjoy
Please post to the development list if you have any problems.

View File

@ -9,6 +9,8 @@ PlibSoundDebug/PlibSoundRelease:
BulletDebug/BulletRelease:
main setup (Debug/Relase) + BULLET
The debug version links in the optimised bullet (and sdl and plib) versions, since i is assumed that
mostly STK is being debugged, not everything. Using debug for everything creates a really slow executable.
ReplayDebug/ReplayRelease:
main setup (Debug/Relase) + HAVE_GHOST_REPLAY
@ -24,6 +26,7 @@ create these environment-vars pointing to the folders of your installations:
@set OGG_PATH=C:\libs\libogg-1.1.3
@set VORBIS_PATH=C:\libs\libvorbis-1.2.0
@set OPENAL_PATH=C:\libs\OpenAL_1_1_SDK
@set GLUT_PATH=C:\libs\glut
PLIB_PATH must be set to the parent-folder, i.e. my folder is "C:\libs\plib", but in the sources it is included
as <plib/...h>, so we can use "$(PLIB_PATH)" for includes and "$(PLIB_PATH)/plib" for addiational-lib-directory

1143
src/ide/vc8/bullet_lib.vcproj Executable file

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,12 @@

Microsoft Visual Studio Solution File, Format Version 9.00
# Visual Studio 2005
# Visual C++ Express 2005
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "supertuxkart", "supertuxkart.vcproj", "{B1BC2764-1A43-4800-A654-788B0D05EDA2}"
ProjectSection(ProjectDependencies) = postProject
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4} = {54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "bullet_lib", "bullet_lib.vcproj", "{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -31,6 +36,16 @@ Global
{B1BC2764-1A43-4800-A654-788B0D05EDA2}.ReplayDebug|Win32.Build.0 = ReplayDebug|Win32
{B1BC2764-1A43-4800-A654-788B0D05EDA2}.ReplayRelease|Win32.ActiveCfg = ReplayRelease|Win32
{B1BC2764-1A43-4800-A654-788B0D05EDA2}.ReplayRelease|Win32.Build.0 = ReplayRelease|Win32
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}.BulletDebug|Win32.ActiveCfg = Release|Win32
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}.BulletDebug|Win32.Build.0 = Release|Win32
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}.BulletRelease|Win32.ActiveCfg = Release|Win32
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}.BulletRelease|Win32.Build.0 = Release|Win32
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}.Debug|Win32.ActiveCfg = Debug|Win32
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}.PLibSoundDebug|Win32.ActiveCfg = Debug|Win32
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}.PLibSoundRelease|Win32.ActiveCfg = Release|Win32
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}.Release|Win32.ActiveCfg = Release|Win32
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}.ReplayDebug|Win32.ActiveCfg = Debug|Win32
{54AA44B9-B07B-49DA-8B1A-05BBFE8AD5D4}.ReplayRelease|Win32.ActiveCfg = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="8,00"
Version="8.00"
Name="supertuxkart"
ProjectGUID="{B1BC2764-1A43-4800-A654-788B0D05EDA2}"
RootNamespace="supertuxkart"
@ -520,7 +520,8 @@
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="./../../../src;;$(PLIB_PATH);$(SDL_PATH)\include;$(ALUT_PATH)\include;$(OGG_PATH)\include;$(VORBIS_PATH)\include;$(OPENAL_PATH)\include;$(OPENAL_PATH)\include\AL;"
WholeProgramOptimization="false"
AdditionalIncludeDirectories="./../../../src;&quot;$(PLIB_PATH)&quot;;&quot;$(SDL_PATH)\include&quot;;&quot;$(ALUT_PATH)\include&quot;;&quot;$(OGG_PATH)\include&quot;;&quot;$(VORBIS_PATH)\include&quot;;&quot;$(OPENAL_PATH)\include&quot;;&quot;$(OPENAL_PATH)\include\AL&quot;;../../../src/bullet/src;&quot;$(GLUT_PATH)\include&quot;"
PreprocessorDefinitions="BULLET;HAVE_OPENAL;HAVE_OGGVORBIS;_DEBUG;_CONSOLE;WIN32;NOMINMAX;VERSION=\&quot;0.4alpha\&quot;;_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE"
MinimalRebuild="true"
BasicRuntimeChecks="3"
@ -541,13 +542,15 @@
/>
<Tool
Name="VCLinkerTool"
AdditionalDependencies="opengl32.lib user32.lib gdi32.lib winmm.lib advapi32.lib SDL.lib SDLmain.lib OpenAL32.lib alut.lib libogg.lib libvorbis.lib libvorbisfile.lib sg_d.lib ssg_d.lib ul_d.lib ssgAux_d.lib fnt_d.lib"
AdditionalDependencies="opengl32.lib user32.lib gdi32.lib winmm.lib advapi32.lib SDL.lib SDLmain.lib OpenAL32.lib alut.lib libogg.lib libvorbis.lib libvorbisfile.lib sg.lib ssg.lib ul.lib ssgAux.lib fnt.lib"
OutputFile="./../../../$(ProjectName)_bullet_d.exe"
LinkIncremental="2"
AdditionalLibraryDirectories="$(SDL_PATH)\lib;$(PLIB_PATH)\plib;$(OPENAL_PATH)\libs\Win32;$(ALUT_PATH)\lib;$(OGG_PATH)\win32\VS2003\libogg\Release;$(VORBIS_PATH)\win32\VS2005\libvorbis\Release;$(VORBIS_PATH)\win32\VS2005\libvorbisfile\Release;"
IgnoreDefaultLibraryNames="libcmtd.lib"
AdditionalLibraryDirectories="&quot;$(SDL_PATH)\lib&quot;;&quot;$(PLIB_PATH)\plib&quot;;&quot;$(OPENAL_PATH)\libs\Win32&quot;;&quot;$(ALUT_PATH)\lib&quot;;&quot;$(OGG_PATH)\win32\VS2003\libogg\Release&quot;;&quot;$(VORBIS_PATH)\win32\VS2005\libvorbis\Release&quot;;&quot;$(VORBIS_PATH)\win32\VS2005\libvorbisfile\Release&quot;;&quot;$(GLUT_PATH)&quot;"
IgnoreAllDefaultLibraries="false"
IgnoreDefaultLibraryNames="libcmt.lib"
GenerateDebugInformation="true"
SubSystem="1"
LinkTimeCodeGeneration="0"
TargetMachine="1"
/>
<Tool
@ -600,7 +603,8 @@
/>
<Tool
Name="VCCLCompilerTool"
AdditionalIncludeDirectories="./../../../src;;$(PLIB_PATH);$(SDL_PATH)\include;$(ALUT_PATH)\include;$(OGG_PATH)\include;$(VORBIS_PATH)\include;$(OPENAL_PATH)\include;$(OPENAL_PATH)\include\AL;"
WholeProgramOptimization="true"
AdditionalIncludeDirectories="./../../../src;&quot;$(PLIB_PATH)&quot;;&quot;$(SDL_PATH)\include&quot;;&quot;$(ALUT_PATH)\include&quot;;&quot;$(OGG_PATH)\include&quot;;&quot;$(VORBIS_PATH)\include&quot;;&quot;$(OPENAL_PATH)\include&quot;;&quot;$(OPENAL_PATH)\include\AL&quot;;../../../src/bullet/src;&quot;$(GLUT_PATH)\include&quot;"
PreprocessorDefinitions="BULLET;HAVE_OPENAL;HAVE_OGGVORBIS;NDEBUG;_CONSOLE;WIN32;NOMINMAX;VERSION=\&quot;0.4alpha\&quot;;_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRECATE"
RuntimeLibrary="2"
UsePrecompiledHeader="0"
@ -622,7 +626,7 @@
AdditionalDependencies="opengl32.lib user32.lib gdi32.lib winmm.lib advapi32.lib SDL.lib SDLmain.lib OpenAL32.lib alut.lib libogg.lib libvorbis.lib libvorbisfile.lib sg.lib ssg.lib ul.lib ssgAux.lib fnt.lib"
OutputFile="./../../../$(ProjectName)_bullet.exe"
LinkIncremental="1"
AdditionalLibraryDirectories="$(SDL_PATH)\lib;$(PLIB_PATH)\plib;$(OPENAL_PATH)\libs\Win32;$(ALUT_PATH)\lib;$(OGG_PATH)\win32\VS2003\libogg\Release;$(VORBIS_PATH)\win32\VS2005\libvorbis\Release;$(VORBIS_PATH)\win32\VS2005\libvorbisfile\Release;"
AdditionalLibraryDirectories="&quot;$(SDL_PATH)\lib&quot;;&quot;$(PLIB_PATH)\plib&quot;;&quot;$(OPENAL_PATH)\libs\Win32&quot;;&quot;$(ALUT_PATH)\lib&quot;;&quot;$(OGG_PATH)\win32\VS2003\libogg\Release&quot;;&quot;$(VORBIS_PATH)\win32\VS2005\libvorbis\Release&quot;;&quot;$(VORBIS_PATH)\win32\VS2005\libvorbisfile\Release&quot;;&quot;$(GLUT_PATH)&quot;"
IgnoreDefaultLibraryNames="libcmt.lib"
GenerateDebugInformation="true"
SubSystem="1"
@ -881,7 +885,11 @@
>
</File>
<File
RelativePath="../../../src\widget_set.cpp"
RelativePath="..\..\widget.cpp"
>
</File>
<File
RelativePath="..\..\widget_manager.cpp"
>
</File>
<File
@ -975,10 +983,6 @@
RelativePath="../../../src\gui\race_results_gui.cpp"
>
</File>
<File
RelativePath="../../../src\gui\scrolled_text.cpp"
>
</File>
<File
RelativePath="../../../src\gui\track_sel.cpp"
>
@ -1267,7 +1271,11 @@
>
</File>
<File
RelativePath="../../../src\widget_set.hpp"
RelativePath="..\..\widget.hpp"
>
</File>
<File
RelativePath="..\..\widget_manager.hpp"
>
</File>
<File
@ -1361,10 +1369,6 @@
RelativePath="../../../src\gui\race_results_gui.hpp"
>
</File>
<File
RelativePath="../../../src\gui\scrolled_text.hpp"
>
</File>
<File
RelativePath="../../../src\gui\track_sel.hpp"
>