|
From: <wor...@us...> - 2006-05-18 21:24:22
|
Revision: 34 Author: workmad3 Date: 2006-05-18 14:24:10 -0700 (Thu, 18 May 2006) ViewCVS: http://svn.sourceforge.net/perceptioncrash/?rev=34&view=rev Log Message: ----------- build directories are bin/debug for debug builds and bin/release for release builds. The hard coded resource paths for the data directory are relative to these directories. VC++ project is now set up to build into these directories automatically. Modified Paths: -------------- trunk/perceptioncrash/VC++Project/perceptioncrash/perceptioncrash.vcproj trunk/perceptioncrash/src/GameManager.cpp Added Paths: ----------- trunk/perceptioncrash/bin/ trunk/perceptioncrash/bin/debug/ trunk/perceptioncrash/bin/release/ Modified: trunk/perceptioncrash/VC++Project/perceptioncrash/perceptioncrash.vcproj =================================================================== --- trunk/perceptioncrash/VC++Project/perceptioncrash/perceptioncrash.vcproj 2006-05-18 20:59:17 UTC (rev 33) +++ trunk/perceptioncrash/VC++Project/perceptioncrash/perceptioncrash.vcproj 2006-05-18 21:24:10 UTC (rev 34) @@ -63,7 +63,7 @@ <Tool Name="VCLinkerTool" AdditionalDependencies="OgreMain_d.lib CEGUIBase_d.lib OgreGUIRenderer_d.lib" - OutputFile="$(OutDir)\$(ProjectName).exe" + OutputFile="..\..\bin\debug\$(ProjectName).exe" LinkIncremental="2" AdditionalLibraryDirectories="$(OGRE_HOME)\lib" GenerateDebugInformation="true" @@ -94,8 +94,8 @@ /> <Tool Name="VCPostBuildEventTool" - Description="Copying exe to samples bin directory ..." - CommandLine="copy "$(OutDir)\$(TargetFileName)" "$(OGRE_HOME)\Bin\$(ConfigurationName)"" + Description="" + CommandLine="" /> </Configuration> <Configuration @@ -147,7 +147,7 @@ <Tool Name="VCLinkerTool" AdditionalDependencies="OgreMain.lib CEGUIBase.lib OgreGUIRenderer.lib" - OutputFile="$(OutDir)\$(ProjectName).exe" + OutputFile="..\..\bin\release\$(ProjectName).exe" LinkIncremental="1" AdditionalLibraryDirectories="$(OGRE_HOME)\lib" GenerateDebugInformation="true" @@ -179,8 +179,8 @@ /> <Tool Name="VCPostBuildEventTool" - Description="Copying exe to samples bin directory ..." - CommandLine="copy "$(OutDir)\$(TargetFileName)" "$(OGRE_HOME)\Bin\$(ConfigurationName)"" + Description="" + CommandLine="" /> </Configuration> </Configurations> Modified: trunk/perceptioncrash/src/GameManager.cpp =================================================================== --- trunk/perceptioncrash/src/GameManager.cpp 2006-05-18 20:59:17 UTC (rev 33) +++ trunk/perceptioncrash/src/GameManager.cpp 2006-05-18 21:24:10 UTC (rev 34) @@ -101,9 +101,9 @@ { // This is all temporary stuff Ogre::ResourceGroupManager* rgm = Ogre::ResourceGroupManager::getSingletonPtr(); - rgm->addResourceLocation("data/objects", "FileSystem", "General"); - rgm->addResourceLocation("data/images", "FileSystem", "General"); - rgm->addResourceLocation("data/packs/OgreCore.zip", "Zip", "General"); + rgm->addResourceLocation("../../data/objects", "FileSystem", "General"); + rgm->addResourceLocation("../../data/images", "FileSystem", "General"); + rgm->addResourceLocation("../../data/packs/OgreCore.zip", "Zip", "General"); //rgm->addResourceLocation("data/maps/ogretestmap.zip", "Zip", // rgm->getWorldResourceGroupName()); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |