From 1af2acdfc279dc2426ab71c61a98877719b0c7ef Mon Sep 17 00:00:00 2001 From: Tim Hughes Date: Tue, 25 Feb 2014 14:59:11 +0000 Subject: [PATCH] VS 2013 project for Walleth, plus a few fixes. Need to build a lot more of Qt. --- walleth/MainWin.cpp | 5 +- windows/Ethereum.sln | 12 +- windows/UseQt.props | 2 +- windows/Walleth.vcxproj | 212 ++++++++++++++++++++++++++++++++ windows/Walleth.vcxproj.filters | 28 +++++ windows/compile_qt.bat | 15 ++- windows/stdafx.h | 2 + 7 files changed, 269 insertions(+), 7 deletions(-) create mode 100644 windows/Walleth.vcxproj create mode 100644 windows/Walleth.vcxproj.filters diff --git a/walleth/MainWin.cpp b/walleth/MainWin.cpp index 4f403d61b..07ddd7f31 100644 --- a/walleth/MainWin.cpp +++ b/walleth/MainWin.cpp @@ -2,7 +2,7 @@ #include //#include //#include -#include +#include #include #include #include @@ -430,6 +430,9 @@ void Main::on_create_triggered() #pragma comment(lib, QTLIB("Qt5GUI")) #pragma comment(lib, QTLIB("Qt5Widgets")) #pragma comment(lib, QTLIB("Qt5Network")) +#pragma comment(lib, QTLIB("Qt5Quick")) +#pragma comment(lib, QTLIB("Qt5Declarative")) +#pragma comment(lib, QTLIB("Qt5Qml")) #pragma comment(lib, QTLIB("qwindows")) #pragma comment(lib, "Imm32.lib") #pragma comment(lib, "opengl32.lib") diff --git a/windows/Ethereum.sln b/windows/Ethereum.sln index 1be0ab848..f2d148a47 100644 --- a/windows/Ethereum.sln +++ b/windows/Ethereum.sln @@ -23,7 +23,9 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LibCryptoPP", "LibCryptoPP. EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "LibMiniUPnPc", "LibMiniUPnPc.vcxproj", "{1B1CA20E-39C3-4D9B-AC37-3783048E6672}" EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Alethzero", "Alethzero.vcxproj", "{BFCFFC46-78A3-4350-9938-0EA3A2B1CCCD}" +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "AlethZero", "Alethzero.vcxproj", "{BFCFFC46-78A3-4350-9938-0EA3A2B1CCCD}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "Walleth", "Walleth.vcxproj", "{326EF470-463F-4751-A22A-48BBAAD8B143}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -105,6 +107,14 @@ Global {BFCFFC46-78A3-4350-9938-0EA3A2B1CCCD}.Release|Win32.Build.0 = Release|Win32 {BFCFFC46-78A3-4350-9938-0EA3A2B1CCCD}.Release|x64.ActiveCfg = Release|x64 {BFCFFC46-78A3-4350-9938-0EA3A2B1CCCD}.Release|x64.Build.0 = Release|x64 + {326EF470-463F-4751-A22A-48BBAAD8B143}.Debug|Win32.ActiveCfg = Debug|Win32 + {326EF470-463F-4751-A22A-48BBAAD8B143}.Debug|Win32.Build.0 = Debug|Win32 + {326EF470-463F-4751-A22A-48BBAAD8B143}.Debug|x64.ActiveCfg = Debug|x64 + {326EF470-463F-4751-A22A-48BBAAD8B143}.Debug|x64.Build.0 = Debug|x64 + {326EF470-463F-4751-A22A-48BBAAD8B143}.Release|Win32.ActiveCfg = Release|Win32 + {326EF470-463F-4751-A22A-48BBAAD8B143}.Release|Win32.Build.0 = Release|Win32 + {326EF470-463F-4751-A22A-48BBAAD8B143}.Release|x64.ActiveCfg = Release|x64 + {326EF470-463F-4751-A22A-48BBAAD8B143}.Release|x64.Build.0 = Release|x64 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/windows/UseQt.props b/windows/UseQt.props index 9ced7563f..b90eee3ee 100644 --- a/windows/UseQt.props +++ b/windows/UseQt.props @@ -4,7 +4,7 @@ ../../Qt/$(Platform) $(QtDir)/qtbase/bin - $(QtDir)/qtbase/include;../../Qt/Src/qtbase/include + $(QtDir)/qtbase/include;../../Qt/Src/qtbase/include;../../Qt/Src/qtdeclarative/include $(QtDir)/qtbase/lib;$(QtDir)/qtbase/plugins/platforms ../../lua/lua diff --git a/windows/Walleth.vcxproj b/windows/Walleth.vcxproj new file mode 100644 index 000000000..81076d0ef --- /dev/null +++ b/windows/Walleth.vcxproj @@ -0,0 +1,212 @@ + + + + + Debug + Win32 + + + Debug + x64 + + + Release + Win32 + + + Release + x64 + + + + Win32Proj + Walleth + Walleth + {326EF470-463F-4751-A22A-48BBAAD8B143} + + + + Application + true + v120 + + + Application + true + v120 + + + Application + false + true + v120 + + + Application + false + true + v120 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + + + + false + + + false + + + + Use + Disabled + WIN32;_DEBUG;%(PreprocessorDefinitions) + MultiThreadedDebug + true + stdafx.h + + + Windows + true + true + + + + + Use + Disabled + WIN32;_DEBUG;%(PreprocessorDefinitions) + MultiThreadedDebug + true + stdafx.h + + + Windows + true + + + + + Use + MaxSpeed + true + true + WIN32;NDEBUG;%(PreprocessorDefinitions) + MultiThreaded + true + AnySuitable + stdafx.h + + + Windows + true + true + true + true + + + + + Use + MaxSpeed + true + true + WIN32;NDEBUG;%(PreprocessorDefinitions) + MultiThreaded + true + AnySuitable + stdafx.h + + + Windows + true + true + true + + + + + {826e68cb-d3ee-4a8a-b540-59a8c3f38d4f} + + + + + + + + Create + Create + Create + Create + + + + + + "$(Lua)" moc.lua "$(QtBin)/moc" "$(IntDir)moc_%(FileName).cpp" "@(ClCompile->'%(AdditionalIncludeDirectories)');$(IncludePath)" "@(ClCompile->'%(PreprocessorDefinitions)');_MSC_VER=1800" "%(FullPath)" + $(IntDir)moc_%(FileName).cpp + + + "$(Lua)" moc.lua "$(QtBin)/moc" "$(IntDir)moc_%(FileName).cpp" "@(ClCompile->'%(AdditionalIncludeDirectories)');$(IncludePath)" "@(ClCompile->'%(PreprocessorDefinitions)');_MSC_VER=1800" "%(FullPath)" + + + "$(Lua)" moc.lua "$(QtBin)/moc" "$(IntDir)moc_%(FileName).cpp" "@(ClCompile->'%(AdditionalIncludeDirectories)');$(IncludePath)" "@(ClCompile->'%(PreprocessorDefinitions)');_MSC_VER=1800" "%(FullPath)" + + + "$(Lua)" moc.lua "$(QtBin)/moc" "$(IntDir)moc_%(FileName).cpp" "@(ClCompile->'%(AdditionalIncludeDirectories)');$(IncludePath)" "@(ClCompile->'%(PreprocessorDefinitions)');_MSC_VER=1800" "%(FullPath)" + + + $(IntDir)moc_%(FileName).cpp + $(IntDir)moc_%(FileName).cpp + $(IntDir)moc_%(FileName).cpp + + + + + + Document + "$(QtBin)/uic" -o "$(IntDir)ui_%(FileName).h" "%(FullPath)" + "$(QtBin)/uic" -o "$(IntDir)ui_%(FileName).h" "%(FullPath)" + $(IntDir)ui_%(FileName).h + "$(QtBin)/uic" -o "$(IntDir)ui_%(FileName).h" "%(FullPath)" + "$(QtBin)/uic" -o "$(IntDir)ui_%(FileName).h" "%(FullPath)" + $(IntDir)ui_%(FileName).h + "$(QtBin)/uic" -o "$(IntDir)ui_%(FileName).h" "%(FullPath)" + "$(QtBin)/uic" -o "$(IntDir)ui_%(FileName).h" "%(FullPath)" + $(IntDir)ui_%(FileName).h + "$(QtBin)/uic" -o "$(IntDir)ui_%(FileName).h" "%(FullPath)" + "$(QtBin)/uic" -o "$(IntDir)ui_%(FileName).h" "%(FullPath)" + $(IntDir)ui_%(FileName).h + + + + + + \ No newline at end of file diff --git a/windows/Walleth.vcxproj.filters b/windows/Walleth.vcxproj.filters new file mode 100644 index 000000000..404370754 --- /dev/null +++ b/windows/Walleth.vcxproj.filters @@ -0,0 +1,28 @@ + + + + + + + + Windows + + + Windows + + + + + + + + + {37f5b48c-b602-474b-8683-041898e328b5} + + + + + Windows + + + \ No newline at end of file diff --git a/windows/compile_qt.bat b/windows/compile_qt.bat index c9f0d4ef5..8f813c081 100644 --- a/windows/compile_qt.bat +++ b/windows/compile_qt.bat @@ -20,22 +20,29 @@ rem : assume our root Qt dir is the current dir set QT=%CD% rem : create the build folder and add the qtbase/bin folder to the PATH -if not exist %QT%\%PLATFORM% mkdir %QT%\%PLATFORM% +if not exist %QT%\%PLATFORM% ( + set DO_CONFIGURE=1 + mkdir %QT%\%PLATFORM% +) else ( + set DO_CONFIGURE=0 +) if %USE_PREFIX%==1 ( if not exist %QT%\%PLATFORM%-Build mkdir %QT%\%PLATFORM%-Build if not exist %QT%\%PLATFORM%\qtbase mkdir %QT%\%PLATFORM%\qtbase cd %QT%\%PLATFORM%-Build set QT_PREFIX=-prefix %Qt%\%PLATFORM%\qtbase - set QT_TARGETS=module-qtbase-install_subtargets + set QT_TARGETS=module-qtbase-install_subtargets module-qtquick1-install_subtargets ) else ( cd %QT%\%PLATFORM% set QT_PREFIX= - set QT_TARGETS=module-qtbase + set QT_TARGETS=module-qtbase module-qtquick1 ) set PATH=%CD%\qtbase\bin;%PATH% rem : run Qt configure with desired settings -call %QT%\Src\configure.bat -opensource -confirm-license %QT_PREFIX% -mp -opengl desktop -static -debug-and-release -platform win32-msvc2013 -nomake examples -nomake tests +if %DO_CONFIGURE%==1 ( + call %QT%\Src\configure.bat -opensource -confirm-license %QT_PREFIX% -mp -opengl desktop -static -debug-and-release -platform win32-msvc2013 -nomake examples -nomake tests +) rem : compile and install module-qtbase %QT%\jom\jom %QT_TARGETS% diff --git a/windows/stdafx.h b/windows/stdafx.h index 1ad98d97b..04ef305af 100644 --- a/windows/stdafx.h +++ b/windows/stdafx.h @@ -40,3 +40,5 @@ #include #include #include +#include +