Browse Source
Linux. Main cpp-ethereum buildfile finds dependencies, but does not compile yetcl-refactor
sveneh
10 years ago
9 changed files with 44 additions and 50 deletions
@ -1,11 +1,18 @@ |
|||
# all dependencies that are not directly included in the cpp-ethereum distribution are defined here |
|||
# for this to work, download the dependency via the cmake script in extdep or install them manually! |
|||
|
|||
set(ETH_DEPENDENCY_INSTALL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/extdep/install") |
|||
# by defining this variable, cmake will look for dependencies first in our own repository before looking in system paths like /usr/local/ ... |
|||
# this must be set to point to the same directory as $ETH_DEPENDENCY_INSTALL_DIR in /extdep directory |
|||
set (CMAKE_FIND_ROOT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/extdep/install") |
|||
|
|||
set (CRYPTOPP_ROOT_DIR ${ETH_DEPENDENCY_INSTALL_DIR}) |
|||
find_package (CryptoPP 5.6.2 REQUIRED) |
|||
message("-- CryptoPP header: ${CRYPTOPP_INCLUDE_DIRS}") |
|||
message("-- CryptoPP libs : ${CRYPTOPP_LIBRARIES}") |
|||
message(" - CryptoPP header: ${CRYPTOPP_INCLUDE_DIRS}") |
|||
message(" - CryptoPP lib : ${CRYPTOPP_LIBRARIES}") |
|||
|
|||
|
|||
find_package (JsonRpcCpp REQUIRED) |
|||
if (${JSON_RPC_CPP_FOUND}) |
|||
message (" - json-rpc-cpp header: ${JSON_RPC_CPP_INCLUDE_DIRS}") |
|||
message (" - json-rpc-cpp lib : ${JSON_RPC_CPP_LIBRARIES}") |
|||
add_definitions(-DETH_JSONRPC) |
|||
endif() |
|||
|
@ -1,12 +1,20 @@ |
|||
|
|||
set (CONFIG_CMD ./configure --prefix=${ETH_DEPENDENCY_INSTALL_DIR} --exec-prefix=${ETH_DEPENDENCY_INSTALL_DIR}) |
|||
|
|||
if(${APPLE}) |
|||
ExternalProject_Add(curl |
|||
set(CONFIG_CMD ./configure --with-darwinssl --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} |
|||
CONFIGURE_COMMAND ${CONFIG_CMD} |
|||
BUILD_COMMAND make -j 3 |
|||
INSTALL_COMMAND make install |
|||
) |
|||
else() |
|||
) |
|||
|
|||
|
|||
endif() |
|||
|
|||
|
@ -0,0 +1,11 @@ |
|||
ExternalProject_Add(json-rpc-cpp |
|||
DEPENDS curl |
|||
GIT_REPOSITORY https://github.com/cinemast/libjson-rpc-cpp.git |
|||
GIT_TAG eaca2481e2889d5a5b748383fb02b1d395969cd4 |
|||
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 jsonrpc -j 3 |
|||
INSTALL_COMMAND make install |
|||
) |
|||
|
|||
|
Loading…
Reference in new issue