mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Added dummy application in order to bench the memory required for using the library in a precompiled header
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@186 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
6095fa1dee
commit
7bfe45673e
3 changed files with 286 additions and 0 deletions
221
build/vc80/pch_test.vcproj
Normal file
221
build/vc80/pch_test.vcproj
Normal file
|
|
@ -0,0 +1,221 @@
|
||||||
|
<?xml version="1.0" encoding="Windows-1252"?>
|
||||||
|
<VisualStudioProject
|
||||||
|
ProjectType="Visual C++"
|
||||||
|
Version="8.00"
|
||||||
|
Name="pch_test"
|
||||||
|
ProjectGUID="{121C87D6-DBCC-4A73-99DE-9A0759FD04B6}"
|
||||||
|
RootNamespace="pch_test"
|
||||||
|
>
|
||||||
|
<Platforms>
|
||||||
|
<Platform
|
||||||
|
Name="Win32"
|
||||||
|
/>
|
||||||
|
</Platforms>
|
||||||
|
<ToolFiles>
|
||||||
|
</ToolFiles>
|
||||||
|
<Configurations>
|
||||||
|
<Configuration
|
||||||
|
Name="debug|Win32"
|
||||||
|
OutputDirectory="../../out/vc80/$(ConfigurationName)/tests/$(ProjectName)"
|
||||||
|
IntermediateDirectory="../../out/vc80/$(ConfigurationName)/tests/$(ProjectName)"
|
||||||
|
ConfigurationType="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
AdditionalOptions="/Zm1"
|
||||||
|
Optimization="0"
|
||||||
|
AdditionalIncludeDirectories="../../src/libraries, ../../include"
|
||||||
|
PreprocessorDefinitions="WIN32,_DEBUG,_CONSOLE"
|
||||||
|
BasicRuntimeChecks="3"
|
||||||
|
RuntimeLibrary="3"
|
||||||
|
RuntimeTypeInfo="true"
|
||||||
|
UsePrecompiledHeader="2"
|
||||||
|
PrecompiledHeaderThrough="$(ProjectName).h"
|
||||||
|
PrecompiledHeaderFile="$(IntDir)/$(ProjectName).pch"
|
||||||
|
AssemblerListingLocation="$(IntDir)/"
|
||||||
|
ObjectFile="$(IntDir)/"
|
||||||
|
ProgramDataBaseFileName="$(IntDir)/$(ProjectName).pdb"
|
||||||
|
WarningLevel="4"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
Detect64BitPortabilityProblems="true"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalDependencies=""
|
||||||
|
OutputFile="$(OutDir)/$(ProjectName).exe"
|
||||||
|
AdditionalLibraryDirectories="../../lib/vc80"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
SubSystem="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebDeploymentTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
CommandLine=""
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
<Configuration
|
||||||
|
Name="release|Win32"
|
||||||
|
OutputDirectory="../../out/vc80/$(ConfigurationName)/tests/$(ProjectName)"
|
||||||
|
IntermediateDirectory="../../out/vc80/$(ConfigurationName)/tests/$(ProjectName)"
|
||||||
|
ConfigurationType="1"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreBuildEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCustomBuildTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXMLDataGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebServiceProxyGeneratorTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCMIDLTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
AdditionalOptions="/Zm1"
|
||||||
|
Optimization="2"
|
||||||
|
AdditionalIncludeDirectories="../../src/libraries, ../../include"
|
||||||
|
PreprocessorDefinitions="WIN32,NDEBUG,_CONSOLE"
|
||||||
|
BasicRuntimeChecks="0"
|
||||||
|
RuntimeLibrary="2"
|
||||||
|
RuntimeTypeInfo="true"
|
||||||
|
UsePrecompiledHeader="2"
|
||||||
|
PrecompiledHeaderThrough="$(ProjectName).h"
|
||||||
|
PrecompiledHeaderFile="$(IntDir)/$(ProjectName).pch"
|
||||||
|
AssemblerListingLocation="$(IntDir)/"
|
||||||
|
ObjectFile="$(IntDir)/"
|
||||||
|
ProgramDataBaseFileName="$(IntDir)/$(ProjectName).pdb"
|
||||||
|
WarningLevel="4"
|
||||||
|
SuppressStartupBanner="true"
|
||||||
|
Detect64BitPortabilityProblems="true"
|
||||||
|
DebugInformationFormat="3"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManagedResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCResourceCompilerTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPreLinkEventTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCLinkerTool"
|
||||||
|
AdditionalDependencies=""
|
||||||
|
OutputFile="$(OutDir)/$(ProjectName).exe"
|
||||||
|
AdditionalLibraryDirectories="../../lib/vc80"
|
||||||
|
GenerateDebugInformation="true"
|
||||||
|
SubSystem="1"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCALinkTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCManifestTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCXDCMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCBscMakeTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCFxCopTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCAppVerifierTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCWebDeploymentTool"
|
||||||
|
/>
|
||||||
|
<Tool
|
||||||
|
Name="VCPostBuildEventTool"
|
||||||
|
CommandLine=""
|
||||||
|
/>
|
||||||
|
</Configuration>
|
||||||
|
</Configurations>
|
||||||
|
<References>
|
||||||
|
</References>
|
||||||
|
<Files>
|
||||||
|
<Filter
|
||||||
|
Name="Source Files"
|
||||||
|
Filter="cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx;h;hpp;hxx;hm;inl;inc;xsd"
|
||||||
|
>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\tests\pch_test\pch_test.cpp"
|
||||||
|
>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="debug|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
UsePrecompiledHeader="1"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
<FileConfiguration
|
||||||
|
Name="release|Win32"
|
||||||
|
>
|
||||||
|
<Tool
|
||||||
|
Name="VCCLCompilerTool"
|
||||||
|
UsePrecompiledHeader="1"
|
||||||
|
/>
|
||||||
|
</FileConfiguration>
|
||||||
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath="..\..\src\tests\pch_test\pch_test.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
|
</Filter>
|
||||||
|
</Files>
|
||||||
|
<Globals>
|
||||||
|
</Globals>
|
||||||
|
</VisualStudioProject>
|
||||||
14
src/tests/pch_test/pch_test.cpp
Normal file
14
src/tests/pch_test/pch_test.cpp
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
//
|
||||||
|
// Copyright Mathieu Champlon 2008
|
||||||
|
//
|
||||||
|
// Distributed under the Boost Software License, Version 1.0. (See
|
||||||
|
// accompanying file LICENSE_1_0.txt or copy at
|
||||||
|
// http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
//
|
||||||
|
|
||||||
|
#include "pch_test.h"
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
51
src/tests/pch_test/pch_test.h
Normal file
51
src/tests/pch_test/pch_test.h
Normal file
|
|
@ -0,0 +1,51 @@
|
||||||
|
//
|
||||||
|
// Copyright Mathieu Champlon 2011
|
||||||
|
//
|
||||||
|
// Distributed under the Boost Software License, Version 1.0. (See
|
||||||
|
// accompanying file LICENSE_1_0.txt or copy at
|
||||||
|
// http://www.boost.org/LICENSE_1_0.txt)
|
||||||
|
//
|
||||||
|
|
||||||
|
//#include <boost/spirit/home/phoenix/statement/throw.hpp>
|
||||||
|
//#include <boost/spirit/home/phoenix/operator/self.hpp>
|
||||||
|
//#include <boost/spirit/home/phoenix/core/nothing.hpp>
|
||||||
|
//#include <boost/spirit/home/phoenix/bind.hpp>
|
||||||
|
//#include <boost/function.hpp>
|
||||||
|
//#include <boost/concept_check.hpp>
|
||||||
|
//#include <boost/bind.hpp>
|
||||||
|
//#include <boost/test/test_tools.hpp>
|
||||||
|
//#include <boost/test/unit_test_suite.hpp>
|
||||||
|
//#include <boost/test/execution_monitor.hpp>
|
||||||
|
//#include <boost/type_traits.hpp>
|
||||||
|
//#include <boost/function_types/function_type.hpp>
|
||||||
|
//#include <boost/lambda/lambda.hpp>
|
||||||
|
//#include <boost/lambda/bind.hpp>
|
||||||
|
|
||||||
|
#include <turtle/mock.hpp>
|
||||||
|
//#include <boost/test/auto_unit_test.hpp>
|
||||||
|
|
||||||
|
// release vc80
|
||||||
|
//
|
||||||
|
// xeumeuleu/xml.h 24
|
||||||
|
|
||||||
|
// boost/shared_ptr.hpp 5
|
||||||
|
// boost/bind.hpp 6
|
||||||
|
// boost/type_traits.hpp 19
|
||||||
|
// boost/function_types/function_type.hpp 19
|
||||||
|
// boost/function.hpp 23
|
||||||
|
// boost/function.hpp + boost/bind.hpp 25
|
||||||
|
// boost/lambda/lambda.hpp 25
|
||||||
|
// boost/lambda/bind.hpp 22
|
||||||
|
// boost/function_types/function_type.hpp + boost/type_traits.hpp 36
|
||||||
|
// boost/spirit/home/phoenix/core.hpp 46
|
||||||
|
//
|
||||||
|
// boost/test/auto_unit_test.hpp 27
|
||||||
|
// turtle/mock.hpp 89
|
||||||
|
// boost/test/auto_unit_test.hpp + turtle/mock.hpp 93
|
||||||
|
//
|
||||||
|
// all boost includes from turtle 89
|
||||||
|
|
||||||
|
// getting rid of :
|
||||||
|
// boost/bind 3
|
||||||
|
// function_type 13
|
||||||
|
// boost/phoenix 31
|
||||||
Loading…
Add table
Add a link
Reference in a new issue