debris
10 years ago
4 changed files with 60 additions and 19 deletions
@ -1,13 +1,30 @@ |
|||
if(APPLE) |
|||
set(CONFIG_CMD ./configure --with-darwinssl --prefix=${ETH_DEPENDENCY_INSTALL_DIR} --exec-prefix=${ETH_DEPENDENCY_INSTALL_DIR}) |
|||
else() |
|||
set (CONFIG_CMD ./configure --prefix=${ETH_DEPENDENCY_INSTALL_DIR} --exec-prefix=${ETH_DEPENDENCY_INSTALL_DIR}) |
|||
endif() |
|||
ExternalProject_Add(curl |
|||
URL http://curl.haxx.se/download/curl-7.38.0.tar.bz2 |
|||
BINARY_DIR curl-prefix/src/curl |
|||
CONFIGURE_COMMAND ./configure --with-darwinssl --prefix=${ETH_DEPENDENCY_INSTALL_DIR} --exec-prefix=${ETH_DEPENDENCY_INSTALL_DIR} |
|||
BUILD_COMMAND make -j 3 |
|||
INSTALL_COMMAND make install |
|||
) |
|||
elseif(WIN32) |
|||
ExternalProject_Add(curl |
|||
GIT_REPOSITORY https://github.com/debris/libcurl-7.29 |
|||
GIT_TAG master |
|||
BINARY_DIR curl-prefix/src/curl |
|||
CONFIGURE_COMMAND "" |
|||
BUILD_COMMAND "" |
|||
INSTALL_COMMAND cmd /c cp lib/release/libcurl.lib ${ETH_DEPENDENCY_INSTALL_DIR}/lib && cp -R include/curl ${ETH_DEPENDENCY_INSTALL_DIR}/include |
|||
) |
|||
|
|||
else() |
|||
ExternalProject_Add(curl |
|||
URL http://curl.haxx.se/download/curl-7.38.0.tar.bz2 |
|||
BINARY_DIR curl-prefix/src/curl |
|||
CONFIGURE_COMMAND ${CONFIG_CMD} |
|||
CONFIGURE_COMMAND CONFIG_CMD ./configure --prefix=${ETH_DEPENDENCY_INSTALL_DIR} --exec-prefix=${ETH_DEPENDENCY_INSTALL_DIR} |
|||
BUILD_COMMAND make -j 3 |
|||
INSTALL_COMMAND make install |
|||
) |
|||
) |
|||
|
|||
endif() |
|||
|
|||
|
|||
|
@ -1,20 +1,41 @@ |
|||
# json-rpc-cpp is under heavy development, not yet stable, and multiplatform builds are not yet available. |
|||
# DO NOT MESS WITH THESE SETTINGS! IF YOU HAVE TO MAKE CHANGES HERE, CONSULT sven@ethdev.com BEFOREHAND!! |
|||
|
|||
if(APPLE) |
|||
set(CONFIG_CMD cmake -DCMAKE_INSTALL_PREFIX=${ETH_DEPENDENCY_INSTALL_DIR} -DCMAKE_MODULE_PATH:PATH=${CMAKE_CURRENT_SOURCE_DIR} -DETH_DEPENDENCY_INSTALL_DIR:PATH=${ETH_DEPENDENCY_INSTALL_DIR} -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev .) |
|||
else() |
|||
set(CONFIG_CMD cmake -DCMAKE_INSTALL_PREFIX=${ETH_DEPENDENCY_INSTALL_DIR} -DCMAKE_MODULE_PATH:PATH=${CMAKE_CURRENT_SOURCE_DIR} -DETH_DEPENDENCY_INSTALL_DIR:PATH=${ETH_DEPENDENCY_INSTALL_DIR} -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST .) |
|||
endif() |
|||
# DO NOT CHANGE ANYTHING HERE! |
|||
|
|||
if(APPLE) |
|||
ExternalProject_Add(json-rpc-cpp |
|||
# DEPENDS argtable2 jsoncpp |
|||
# DEPENDS curl # re-enable later, when we build curl again |
|||
GIT_REPOSITORY https://github.com/cinemast/libjson-rpc-cpp.git |
|||
GIT_TAG v0.3.2 |
|||
BINARY_DIR json-rpc-cpp-prefix/src/json-rpc-cpp |
|||
CONFIGURE_COMMAND cmake -DCMAKE_INSTALL_PREFIX=${ETH_DEPENDENCY_INSTALL_DIR} -DCMAKE_MODULE_PATH:PATH=${CMAKE_CURRENT_SOURCE_DIR} -DETH_DEPENDENCY_INSTALL_DIR:PATH=${ETH_DEPENDENCY_INSTALL_DIR} -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev . |
|||
BUILD_COMMAND make -j 3 |
|||
INSTALL_COMMAND make install |
|||
) |
|||
|
|||
# DO NOT CHANGE ANYTHING HERE! |
|||
elseif(WIN32) |
|||
ExternalProject_Add(json-rpc-cpp |
|||
DEPENDS argtable2 jsoncpp curl |
|||
GIT_REPOSITORY https://github.com/debris/libjson-rpc-cpp.git |
|||
GIT_TAG windows |
|||
BINARY_DIR json-rpc-cpp-prefix/src/json-rpc-cpp |
|||
CONFIGURE_COMMAND cmake -DCMAKE_INSTALL_PREFIX=${ETH_DEPENDENCY_INSTALL_DIR} -DJSONCPP_INCLUDE_DIRS=${ETH_DEPENDENCY_INSTALL_DIR}/include -DJSONCPP_LIBRARIES=${ETH_DEPENDENCY_INSTALL_DIR}/lib/jsoncpp.lib -DCURL_LIBRARIES=${ETH_DEPENDENCY_INSTALL_DIR}/lib/libcurl.lib -DCURL_INCLUDE_DIRS=${ETH_DEPENDENCY_INSTALL_DIR}/include . |
|||
BUILD_COMMAND devenv libjson-rpc-cpp.sln /build release |
|||
INSTALL_COMMAND cmd /c cp lib/Release/* ${ETH_DEPENDENCY_INSTALL_DIR}/lib && cp -R src/jsonrpccpp ${ETH_DEPENDENCY_INSTALL_DIR}/include |
|||
) |
|||
else() |
|||
ExternalProject_Add(json-rpc-cpp |
|||
# DEPENDS argtable2 jsoncpp |
|||
# DEPENDS curl # re-enable later, when we build curl again |
|||
GIT_REPOSITORY https://github.com/cinemast/libjson-rpc-cpp.git |
|||
GIT_TAG v0.3.2 |
|||
BINARY_DIR json-rpc-cpp-prefix/src/json-rpc-cpp |
|||
CONFIGURE_COMMAND ${CONFIG_CMD} |
|||
CONFIGURE_COMMAND cmake -DCMAKE_INSTALL_PREFIX=${ETH_DEPENDENCY_INSTALL_DIR} -DCMAKE_MODULE_PATH:PATH=${CMAKE_CURRENT_SOURCE_DIR} -DETH_DEPENDENCY_INSTALL_DIR:PATH=${ETH_DEPENDENCY_INSTALL_DIR} -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST . |
|||
BUILD_COMMAND make -j 3 |
|||
INSTALL_COMMAND make install |
|||
) |
|||
) |
|||
|
|||
endif() |
|||
|
|||
|
Loading…
Reference in new issue