Marek Kotewicz
10 years ago
39 changed files with 251 additions and 293 deletions
@ -1,13 +1,13 @@ |
|||
if(APPLE) |
|||
if (APPLE) |
|||
|
|||
elseif(WIN32) |
|||
elseif (WIN32) |
|||
ExternalProject_Add(argtable2 |
|||
GIT_REPOSITORY https://github.com/debris/argtable.git |
|||
GIT_TAG master |
|||
BINARY_DIR argtable2-prefix/src/argtable2 |
|||
CONFIGURE_COMMAND cmake . |
|||
BUILD_COMMAND devenv argtable2.sln /build release |
|||
INSTALL_COMMAND cmd /c cp src/Release/argtable2.lib ${ETH_DEPENDENCY_INSTALL_DIR}/lib && cp src/argtable2.h ${ETH_DEPENDENCY_INSTALL_DIR}/include |
|||
GIT_REPOSITORY https://github.com/debris/argtable.git |
|||
GIT_TAG master |
|||
BINARY_DIR argtable2-prefix/src/argtable2 |
|||
CONFIGURE_COMMAND cmake . |
|||
BUILD_COMMAND devenv argtable2.sln /build release |
|||
INSTALL_COMMAND cmd /c cp src/Release/argtable2.lib ${ETH_DEPENDENCY_INSTALL_DIR}/lib && cp src/argtable2.h ${ETH_DEPENDENCY_INSTALL_DIR}/include |
|||
) |
|||
else() |
|||
endif() |
|||
|
@ -1,33 +1,33 @@ |
|||
# CryptoPP does not have good cross-platform support, there exist several different other projects to make it work ... |
|||
|
|||
# TODO the OS X build throws a lot of warnings, but compiles fine |
|||
if(APPLE) |
|||
ExternalProject_Add(cryptopp |
|||
URL https://downloads.sourceforge.net/project/cryptopp/cryptopp/5.6.2/cryptopp562.zip |
|||
BINARY_DIR cryptopp-prefix/src/cryptopp |
|||
CONFIGURE_COMMAND "" |
|||
BUILD_COMMAND make CXX=clang++ CXXFLAGS=-DCRYPTOPP_DISABLE_ASM |
|||
INSTALL_COMMAND make install PREFIX=${ETH_DEPENDENCY_INSTALL_DIR} |
|||
) |
|||
elseif(WIN32) |
|||
file(MAKE_DIRECTORY ${ETH_DEPENDENCY_INSTALL_DIR}/include/cryptopp) |
|||
if (APPLE) |
|||
ExternalProject_Add(cryptopp |
|||
URL https://downloads.sourceforge.net/project/cryptopp/cryptopp/5.6.2/cryptopp562.zip |
|||
BINARY_DIR cryptopp-prefix/src/cryptopp |
|||
CONFIGURE_COMMAND "" |
|||
BUILD_COMMAND make CXX=clang++ CXXFLAGS=-DCRYPTOPP_DISABLE_ASM |
|||
INSTALL_COMMAND make install PREFIX=${ETH_DEPENDENCY_INSTALL_DIR} |
|||
) |
|||
elseif (WIN32) |
|||
file(MAKE_DIRECTORY ${ETH_DEPENDENCY_INSTALL_DIR}/include/cryptopp) |
|||
|
|||
ExternalProject_Add(cryptopp |
|||
SVN_REPOSITORY http://svn.code.sf.net/p/cryptopp/code/trunk/c5 |
|||
SVN_REVISION -r "541" |
|||
BINARY_DIR cryptopp-prefix/src/cryptopp |
|||
CONFIGURE_COMMAND devenv cryptest.sln /upgrade |
|||
BUILD_COMMAND devenv cryptest.sln /build release |
|||
INSTALL_COMMAND cmd /c cp Win32/DLL_Output/Release/cryptopp.dll ${ETH_DEPENDENCY_INSTALL_DIR}/lib && cp Win32/DLL_Output/Release/cryptopp.lib ${ETH_DEPENDENCY_INSTALL_DIR}/lib && cp *.h ${ETH_DEPENDENCY_INSTALL_DIR}/include/cryptopp |
|||
) |
|||
ExternalProject_Add(cryptopp |
|||
SVN_REPOSITORY http://svn.code.sf.net/p/cryptopp/code/trunk/c5 |
|||
SVN_REVISION -r "541" |
|||
BINARY_DIR cryptopp-prefix/src/cryptopp |
|||
CONFIGURE_COMMAND devenv cryptest.sln /upgrade |
|||
BUILD_COMMAND devenv cryptest.sln /build release |
|||
INSTALL_COMMAND cmd /c cp Win32/DLL_Output/Release/cryptopp.dll ${ETH_DEPENDENCY_INSTALL_DIR}/lib && cp Win32/DLL_Output/Release/cryptopp.lib ${ETH_DEPENDENCY_INSTALL_DIR}/lib && cp *.h ${ETH_DEPENDENCY_INSTALL_DIR}/include/cryptopp |
|||
) |
|||
# on Linux, the default Makefile does not work. |
|||
else() |
|||
ExternalProject_Add(cryptopp |
|||
URL https://github.com/mmoss/cryptopp/archive/v5.6.2.zip |
|||
BINARY_DIR cryptopp-prefix/src/cryptopp |
|||
CONFIGURE_COMMAND "" |
|||
BUILD_COMMAND scons --shared --prefix=${ETH_DEPENDENCY_INSTALL_DIR} |
|||
INSTALL_COMMAND "" |
|||
) |
|||
ExternalProject_Add(cryptopp |
|||
URL https://github.com/mmoss/cryptopp/archive/v5.6.2.zip |
|||
BINARY_DIR cryptopp-prefix/src/cryptopp |
|||
CONFIGURE_COMMAND "" |
|||
BUILD_COMMAND scons --shared --prefix=${ETH_DEPENDENCY_INSTALL_DIR} |
|||
INSTALL_COMMAND "" |
|||
) |
|||
endif() |
|||
|
|||
|
|||
|
@ -1,15 +1,16 @@ |
|||
if(APPLE) |
|||
if (APPLE) |
|||
|
|||
elseif(WIN32) |
|||
elseif (WIN32) |
|||
|
|||
file(MAKE_DIRECTORY ${ETH_DEPENDENCY_INSTALL_DIR}/include/jsoncpp) |
|||
ExternalProject_Add(jsoncpp |
|||
GIT_REPOSITORY https://github.com/open-source-parsers/jsoncpp |
|||
GIT_TAG svn-import |
|||
BINARY_DIR jsoncpp-prefix/src/jsoncpp |
|||
CONFIGURE_COMMAND cmake . |
|||
BUILD_COMMAND devenv jsoncpp.sln /build release |
|||
INSTALL_COMMAND cmd /c cp lib/Release/jsoncpp.lib ${ETH_DEPENDENCY_INSTALL_DIR}/lib && cp -R include/json ${ETH_DEPENDENCY_INSTALL_DIR}/include/jsoncpp |
|||
) |
|||
|
|||
file(MAKE_DIRECTORY ${ETH_DEPENDENCY_INSTALL_DIR}/include/jsoncpp) |
|||
ExternalProject_Add(jsoncpp |
|||
GIT_REPOSITORY https://github.com/open-source-parsers/jsoncpp |
|||
GIT_TAG svn-import |
|||
BINARY_DIR jsoncpp-prefix/src/jsoncpp |
|||
CONFIGURE_COMMAND cmake . |
|||
BUILD_COMMAND devenv jsoncpp.sln /build release |
|||
INSTALL_COMMAND cmd /c cp lib/Release/jsoncpp.lib ${ETH_DEPENDENCY_INSTALL_DIR}/lib && cp -R include/json ${ETH_DEPENDENCY_INSTALL_DIR}/include/jsoncpp |
|||
) |
|||
else() |
|||
endif() |
|||
|
Loading…
Reference in new issue