Enabled 'fast' STL for vc9. secure_stl=0 && iterator_debugging=0.
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@318 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/1/head
parent
030d982cfa
commit
7dabd7cd72
|
@ -61,23 +61,13 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||
# define AI_DEBUG_INVALIDATE_PTR(x)
|
||||
#endif
|
||||
|
||||
// We depend heavily on the STL's performance, so we need to make sure
|
||||
// that the M$ implementation isn't 'secure', but 'fast'
|
||||
#if 0 // this crashes! what the fuck???
|
||||
#if (defined _MSC_VER) && (!defined DEBUG)
|
||||
# define _SECURE_SCL 0
|
||||
# define _SCL_SECURE_NO_DEPRECATE
|
||||
# define _HAS_ITERATOR_DEBUGGING 0
|
||||
#endif
|
||||
#endif
|
||||
|
||||
// If we have at least VC8 some C string manipulation functions
|
||||
// are mapped to their safe _s counterparts (e.g. _itoa_s).
|
||||
// are mapped to their safe _s counterparts (e.g. _itoa_s).
|
||||
#if _MSC_VER >= 1400 && !(defined _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES)
|
||||
# define _CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES 1
|
||||
#endif
|
||||
|
||||
// Actually that'snot required for MSVC (it is included somewhere in
|
||||
// Actually that's not required for MSVC (it is included somewhere in
|
||||
// the STL ..) but it is necessary for build with STLport.
|
||||
#include <ctype.h>
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
OutputDirectory=".\Debug"
|
||||
IntermediateDirectory=".\Debug"
|
||||
ConfigurationType="4"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops;..\..\..\..\workspaces\vc9\shared\FastSTL.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
CharacterSet="2"
|
||||
|
@ -101,7 +101,7 @@
|
|||
OutputDirectory=".\Release"
|
||||
IntermediateDirectory=".\Release"
|
||||
ConfigurationType="4"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops"
|
||||
InheritedPropertySheets="$(VCInstallDir)VCProjectDefaults\UpgradeFromVC60.vsprops;..\..\..\..\workspaces\vc9\shared\FastSTL.vsprops"
|
||||
UseOfMFC="0"
|
||||
ATLMinimizesCRunTimeLibraryUsage="false"
|
||||
CharacterSet="2"
|
||||
|
@ -654,11 +654,11 @@
|
|||
</FileConfiguration>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\cppunit\TextTestRunner.h"
|
||||
RelativePath="..\..\include\cppunit\ui\text\TextTestRunner.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\cppunit\ui\text\TextTestRunner.h"
|
||||
RelativePath="..\..\include\cppunit\TextTestRunner.h"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
|
@ -2695,11 +2695,11 @@
|
|||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="..\..\include\cppunit\Makefile.am"
|
||||
RelativePath="Makefile.am"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath="Makefile.am"
|
||||
RelativePath="..\..\include\cppunit\Makefile.am"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
|
|
|
@ -4,12 +4,8 @@
|
|||
// # include <boost/thread.hpp>
|
||||
// #endif
|
||||
|
||||
// Assimp public API
|
||||
#include <aiPostProcess.h>
|
||||
#include <aiScene.h>
|
||||
#include <assimp.hpp>
|
||||
#include <DefaultLogger.h>
|
||||
|
||||
// We need to be sure to have the same STL settings as Assimp
|
||||
#include <AssimpPCH.h>
|
||||
|
||||
// CPPUNIT
|
||||
#include <cppunit/TestFixture.h>
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
OutputDirectory="./../../bin/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
IntermediateDirectory="./../../obj/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\shared\UnitTest.vsprops"
|
||||
InheritedPropertySheets=".\shared\UnitTest.vsprops;.\shared\FastSTL.vsprops"
|
||||
CharacterSet="1"
|
||||
>
|
||||
<Tool
|
||||
|
@ -105,7 +105,7 @@
|
|||
OutputDirectory="./../../bin/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
IntermediateDirectory="./../../obj/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\shared\UnitTest.vsprops"
|
||||
InheritedPropertySheets=".\shared\UnitTest.vsprops;.\shared\FastSTL.vsprops"
|
||||
CharacterSet="1"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
|
@ -127,7 +127,7 @@
|
|||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories="..\..\code;..\..\include"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;_SECURE_SCL=0"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="2"
|
||||
PrecompiledHeaderThrough="UnitTestPCH.h"
|
||||
|
@ -184,7 +184,7 @@
|
|||
OutputDirectory="./../../bin/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
IntermediateDirectory="./../../obj/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\shared\UnitTest.vsprops"
|
||||
InheritedPropertySheets=".\shared\UnitTest.vsprops;.\shared\FastSTL.vsprops"
|
||||
CharacterSet="1"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
|
@ -263,7 +263,7 @@
|
|||
OutputDirectory="./../../bin/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
IntermediateDirectory="./../../obj/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\shared\UnitTest.vsprops"
|
||||
InheritedPropertySheets=".\shared\UnitTest.vsprops;.\shared\FastSTL.vsprops"
|
||||
CharacterSet="1"
|
||||
>
|
||||
<Tool
|
||||
|
@ -344,7 +344,7 @@
|
|||
OutputDirectory="./../../bin/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
IntermediateDirectory="./../../obj/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\shared\UnitTest.vsprops;.\shared\NoBoostShared.vsprops"
|
||||
InheritedPropertySheets=".\shared\UnitTest.vsprops;.\shared\NoBoostShared.vsprops;.\shared\FastSTL.vsprops"
|
||||
CharacterSet="1"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
|
@ -423,7 +423,7 @@
|
|||
OutputDirectory="./../../bin/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
IntermediateDirectory="./../../obj/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\shared\UnitTest.vsprops;.\shared\NoBoostShared.vsprops"
|
||||
InheritedPropertySheets=".\shared\UnitTest.vsprops;.\shared\NoBoostShared.vsprops;.\shared\FastSTL.vsprops"
|
||||
CharacterSet="1"
|
||||
>
|
||||
<Tool
|
||||
|
@ -504,7 +504,7 @@
|
|||
OutputDirectory="./../../bin/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
IntermediateDirectory="./../../obj/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\shared\UnitTest.vsprops;.\shared\SingleThreadedShared.vsprops"
|
||||
InheritedPropertySheets=".\shared\UnitTest.vsprops;.\shared\SingleThreadedShared.vsprops;.\shared\FastSTL.vsprops"
|
||||
CharacterSet="1"
|
||||
>
|
||||
<Tool
|
||||
|
@ -585,7 +585,7 @@
|
|||
OutputDirectory="./../../bin/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
IntermediateDirectory="./../../obj/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\shared\UnitTest.vsprops;.\shared\SingleThreadedShared.vsprops"
|
||||
InheritedPropertySheets=".\shared\UnitTest.vsprops;.\shared\SingleThreadedShared.vsprops;.\shared\FastSTL.vsprops"
|
||||
CharacterSet="1"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
<Configuration
|
||||
Name="debug|Win32"
|
||||
ConfigurationType="4"
|
||||
InheritedPropertySheets=".\shared\LibShared.vsprops"
|
||||
InheritedPropertySheets=".\shared\LibShared.vsprops;.\shared\FastSTL.vsprops"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
|
@ -83,8 +83,9 @@
|
|||
</Configuration>
|
||||
<Configuration
|
||||
Name="release|Win32"
|
||||
IntermediateDirectory="$(ConfigurationName)"
|
||||
ConfigurationType="4"
|
||||
InheritedPropertySheets=".\shared\LibShared.vsprops"
|
||||
InheritedPropertySheets=".\shared\LibShared.vsprops;.\shared\FastSTL.vsprops"
|
||||
WholeProgramOptimization="0"
|
||||
>
|
||||
<Tool
|
||||
|
@ -109,7 +110,7 @@
|
|||
FavorSizeOrSpeed="1"
|
||||
WholeProgramOptimization="false"
|
||||
AdditionalIncludeDirectories=""
|
||||
PreprocessorDefinitions="NDEBUG;_SCL_SECURE_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;WIN32"
|
||||
PreprocessorDefinitions="NDEBUG;_SCL_SECURE_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;_SECURE_SCL=0;WIN32"
|
||||
StringPooling="true"
|
||||
RuntimeLibrary="2"
|
||||
BufferSecurityCheck="false"
|
||||
|
@ -150,7 +151,7 @@
|
|||
<Configuration
|
||||
Name="release-dll|Win32"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets=".\shared\DllShared.vsprops"
|
||||
InheritedPropertySheets=".\shared\DllShared.vsprops;.\shared\FastSTL.vsprops"
|
||||
WholeProgramOptimization="0"
|
||||
>
|
||||
<Tool
|
||||
|
@ -226,7 +227,7 @@
|
|||
<Configuration
|
||||
Name="debug-dll|Win32"
|
||||
ConfigurationType="2"
|
||||
InheritedPropertySheets=".\shared\DllShared.vsprops"
|
||||
InheritedPropertySheets=".\shared\DllShared.vsprops;.\shared\FastSTL.vsprops"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
|
@ -300,7 +301,7 @@
|
|||
<Configuration
|
||||
Name="release-noboost-st|Win32"
|
||||
ConfigurationType="4"
|
||||
InheritedPropertySheets=".\shared\LibShared.vsprops;.\shared\NoBoostShared.vsprops"
|
||||
InheritedPropertySheets=".\shared\LibShared.vsprops;.\shared\NoBoostShared.vsprops;.\shared\FastSTL.vsprops"
|
||||
WholeProgramOptimization="0"
|
||||
>
|
||||
<Tool
|
||||
|
@ -365,7 +366,7 @@
|
|||
<Configuration
|
||||
Name="debug-noboost-st|Win32"
|
||||
ConfigurationType="4"
|
||||
InheritedPropertySheets=".\shared\LibShared.vsprops;.\shared\NoBoostShared.vsprops"
|
||||
InheritedPropertySheets=".\shared\LibShared.vsprops;.\shared\NoBoostShared.vsprops;.\shared\FastSTL.vsprops"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
|
@ -428,7 +429,7 @@
|
|||
<Configuration
|
||||
Name="debug-st|Win32"
|
||||
ConfigurationType="4"
|
||||
InheritedPropertySheets=".\shared\LibShared.vsprops;.\shared\SingleThreadedShared.vsprops"
|
||||
InheritedPropertySheets=".\shared\LibShared.vsprops;.\shared\SingleThreadedShared.vsprops;.\shared\FastSTL.vsprops"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
|
@ -491,7 +492,7 @@
|
|||
<Configuration
|
||||
Name="release-st|Win32"
|
||||
ConfigurationType="4"
|
||||
InheritedPropertySheets=".\shared\LibShared.vsprops;.\shared\SingleThreadedShared.vsprops"
|
||||
InheritedPropertySheets=".\shared\LibShared.vsprops;.\shared\SingleThreadedShared.vsprops;.\shared\FastSTL.vsprops"
|
||||
WholeProgramOptimization="0"
|
||||
>
|
||||
<Tool
|
||||
|
|
|
@ -24,6 +24,7 @@
|
|||
OutputDirectory="./../../bin/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
IntermediateDirectory="./../../obj/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\shared\FastSTL.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
|
@ -104,6 +105,7 @@
|
|||
OutputDirectory="./../../bin/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
IntermediateDirectory="./../../obj/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\shared\FastSTL.vsprops"
|
||||
CharacterSet="2"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
|
@ -125,7 +127,7 @@
|
|||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
AdditionalIncludeDirectories=""$(DXSDK_DIR)include";..\..\include;..\..\code"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_SCL_SECURE_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS;_SCL_SECURE_NO_WARNINGS;_CRT_SECURE_NO_WARNINGS;_SECURE_SCL=0"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="2"
|
||||
WarningLevel="3"
|
||||
|
@ -184,6 +186,7 @@
|
|||
OutputDirectory="./../../bin/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
IntermediateDirectory="./../../obj/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\shared\FastSTL.vsprops"
|
||||
CharacterSet="2"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
|
@ -264,6 +267,7 @@
|
|||
OutputDirectory="./../../bin/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
IntermediateDirectory="./../../obj/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\shared\FastSTL.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
|
@ -344,7 +348,7 @@
|
|||
OutputDirectory="./../../bin/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
IntermediateDirectory="./../../obj/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\shared\NoBoostShared.vsprops"
|
||||
InheritedPropertySheets=".\shared\NoBoostShared.vsprops;.\shared\FastSTL.vsprops"
|
||||
CharacterSet="2"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
|
@ -425,7 +429,7 @@
|
|||
OutputDirectory="./../../bin/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
IntermediateDirectory="./../../obj/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\shared\NoBoostShared.vsprops"
|
||||
InheritedPropertySheets=".\shared\NoBoostShared.vsprops;.\shared\FastSTL.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
|
@ -506,6 +510,7 @@
|
|||
OutputDirectory="./../../bin/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
IntermediateDirectory="./../../obj/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\shared\FastSTL.vsprops"
|
||||
CharacterSet="2"
|
||||
>
|
||||
<Tool
|
||||
|
@ -586,6 +591,7 @@
|
|||
OutputDirectory="./../../bin/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
IntermediateDirectory="./../../obj/$(ProjectName)_$(ConfigurationName)_$(PlatformName)"
|
||||
ConfigurationType="1"
|
||||
InheritedPropertySheets=".\shared\FastSTL.vsprops"
|
||||
CharacterSet="2"
|
||||
WholeProgramOptimization="1"
|
||||
>
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioPropertySheet
|
||||
ProjectType="Visual C++"
|
||||
Version="8.00"
|
||||
Name="FastSTL"
|
||||
>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
PreprocessorDefinitions="_HAS_ITERATOR_DEBUGGING=0;_SECURE_SCL=0"
|
||||
/>
|
||||
</VisualStudioPropertySheet>
|
Loading…
Reference in New Issue