From 5bfa6a013bc14082fa444a342a7df5f0eafb1173 Mon Sep 17 00:00:00 2001 From: Tim Hughes Date: Tue, 18 Feb 2014 20:20:35 +0000 Subject: [PATCH] Enable precompiled headers and multi-processor compilation. Much faster! --- windows/LibEthereum.props | 1 + windows/LibEthereum.vcxproj | 16 +++++++++++ windows/LibEthereum.vcxproj.filters | 11 ++++++++ windows/TestEthereum.vcxproj | 25 +++++++++++------ windows/TestEthereum.vcxproj.filters | 27 ++++++++++++++++++ windows/stdafx.cpp | 21 ++++++++++++++ windows/stdafx.h | 42 ++++++++++++++++++++++++++++ 7 files changed, 135 insertions(+), 8 deletions(-) create mode 100644 windows/TestEthereum.vcxproj.filters create mode 100644 windows/stdafx.cpp create mode 100644 windows/stdafx.h diff --git a/windows/LibEthereum.props b/windows/LibEthereum.props index b85a36b55..8b9566af3 100644 --- a/windows/LibEthereum.props +++ b/windows/LibEthereum.props @@ -15,6 +15,7 @@ include/$(ProjectName);../libethereum;../../boost;../../leveldb/include;../../cryptopp;../secp256k1;../../miniupnp STATICLIB;LEVELDB_PLATFORM_WINDOWS;USE_NUM_BOOST;USE_FIELD_10X26;USE_FIELD_INV_BUILTIN;_WIN32_WINNT=0x0501;WIN32;%(PreprocessorDefinitions) true + true ../../boost/stage/$(Platform) diff --git a/windows/LibEthereum.vcxproj b/windows/LibEthereum.vcxproj index e3432b328..a37eb4d6e 100644 --- a/windows/LibEthereum.vcxproj +++ b/windows/LibEthereum.vcxproj @@ -43,6 +43,13 @@ + + stdafx.h + Create + Create + Create + Create + @@ -66,6 +73,7 @@ + @@ -139,6 +147,8 @@ WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions) false MultiThreadedDebug + Use + stdafx.h Windows @@ -151,6 +161,8 @@ WIN32;_DEBUG;_LIB;%(PreprocessorDefinitions) false MultiThreadedDebug + stdafx.h + Use Windows @@ -167,6 +179,8 @@ WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions) true MultiThreaded + Use + stdafx.h Windows @@ -183,6 +197,8 @@ WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions) true MultiThreaded + Use + stdafx.h Windows diff --git a/windows/LibEthereum.vcxproj.filters b/windows/LibEthereum.vcxproj.filters index 29b24ad66..51ff81cdb 100644 --- a/windows/LibEthereum.vcxproj.filters +++ b/windows/LibEthereum.vcxproj.filters @@ -20,6 +20,9 @@ + + Windows + @@ -43,5 +46,13 @@ + + Windows + + + + + {2d571d8f-bacf-4c49-a0d0-c9036f5c0cc9} + \ No newline at end of file diff --git a/windows/TestEthereum.vcxproj b/windows/TestEthereum.vcxproj index e275ce267..045be7b46 100644 --- a/windows/TestEthereum.vcxproj +++ b/windows/TestEthereum.vcxproj @@ -81,13 +81,13 @@ - - + Use Disabled WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) MultiThreadedDebug true true + stdafx.h Console @@ -97,12 +97,12 @@ - - + Use Disabled WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) MultiThreadedDebug true + stdafx.h Console @@ -111,8 +111,7 @@ - - + Use MaxSpeed true true @@ -121,6 +120,7 @@ true AnySuitable true + stdafx.h Console @@ -132,8 +132,7 @@ - - + Use MaxSpeed true true @@ -142,6 +141,7 @@ true AnySuitable true + stdafx.h Console @@ -165,6 +165,15 @@ + + Create + Create + Create + Create + + + + diff --git a/windows/TestEthereum.vcxproj.filters b/windows/TestEthereum.vcxproj.filters new file mode 100644 index 000000000..4f9afb9e9 --- /dev/null +++ b/windows/TestEthereum.vcxproj.filters @@ -0,0 +1,27 @@ + + + + + + + + + + + + + + Windows + + + + + {0acd7e2f-2594-4c13-94cb-3247045bdbfd} + + + + + Windows + + + \ No newline at end of file diff --git a/windows/stdafx.cpp b/windows/stdafx.cpp new file mode 100644 index 000000000..d3c5fc299 --- /dev/null +++ b/windows/stdafx.cpp @@ -0,0 +1,21 @@ +/* + This file is part of cpp-ethereum. + + cpp-ethereum is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + cpp-ethereum is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with cpp-ethereum. If not, see . +*/ +/** @file stdafx.cpp + * @author Tim Hughes + * @date 2014 + */ + diff --git a/windows/stdafx.h b/windows/stdafx.h new file mode 100644 index 000000000..1ad98d97b --- /dev/null +++ b/windows/stdafx.h @@ -0,0 +1,42 @@ +/* + This file is part of cpp-ethereum. + + cpp-ethereum is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + cpp-ethereum is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with cpp-ethereum. If not, see . +*/ +/** @file stdafx.h + * @author Tim Hughes + * @date 2014 + */ + +#pragma once + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include