debris
10 years ago
4 changed files with 60 additions and 19 deletions
@ -1,13 +1,30 @@ |
|||||
if(APPLE) |
if(APPLE) |
||||
set(CONFIG_CMD ./configure --with-darwinssl --prefix=${ETH_DEPENDENCY_INSTALL_DIR} --exec-prefix=${ETH_DEPENDENCY_INSTALL_DIR}) |
ExternalProject_Add(curl |
||||
else() |
URL http://curl.haxx.se/download/curl-7.38.0.tar.bz2 |
||||
set (CONFIG_CMD ./configure --prefix=${ETH_DEPENDENCY_INSTALL_DIR} --exec-prefix=${ETH_DEPENDENCY_INSTALL_DIR}) |
BINARY_DIR curl-prefix/src/curl |
||||
endif() |
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 |
ExternalProject_Add(curl |
||||
URL http://curl.haxx.se/download/curl-7.38.0.tar.bz2 |
URL http://curl.haxx.se/download/curl-7.38.0.tar.bz2 |
||||
BINARY_DIR curl-prefix/src/curl |
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 |
BUILD_COMMAND make -j 3 |
||||
INSTALL_COMMAND make install |
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. |
# 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!! |
# DO NOT MESS WITH THESE SETTINGS! IF YOU HAVE TO MAKE CHANGES HERE, CONSULT sven@ethdev.com BEFOREHAND!! |
||||
|
|
||||
if(APPLE) |
# DO NOT CHANGE ANYTHING HERE! |
||||
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() |
|
||||
|
|
||||
|
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 |
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 |
# DEPENDS curl # re-enable later, when we build curl again |
||||
GIT_REPOSITORY https://github.com/cinemast/libjson-rpc-cpp.git |
GIT_REPOSITORY https://github.com/cinemast/libjson-rpc-cpp.git |
||||
GIT_TAG v0.3.2 |
GIT_TAG v0.3.2 |
||||
BINARY_DIR json-rpc-cpp-prefix/src/json-rpc-cpp |
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 |
BUILD_COMMAND make -j 3 |
||||
INSTALL_COMMAND make install |
INSTALL_COMMAND make install |
||||
) |
) |
||||
|
|
||||
|
endif() |
||||
|
|
||||
|
Loading…
Reference in new issue