Browse Source

cleanup, Readme

cl-refactor
sveneh 10 years ago
parent
commit
39f0fd1320
  1. 4
      extdep/CMakeLists.txt
  2. 16
      extdep/Readme.md
  3. 13
      extdep/json-rpc-cpp_linux.patch
  4. 9
      extdep/json-rpc-cpp_osx.patch

4
extdep/CMakeLists.txt

@ -4,8 +4,8 @@ include(ExternalProject)
# all dependencies will be installed into this directory, separated by platform # all dependencies will be installed into this directory, separated by platform
string(TOLOWER ${CMAKE_SYSTEM_NAME} SYSTEM_NAME) string(TOLOWER ${CMAKE_SYSTEM_NAME} _system_name)
set(ETH_DEPENDENCY_INSTALL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/install/${SYSTEM_NAME}") set(ETH_DEPENDENCY_INSTALL_DIR "${CMAKE_CURRENT_SOURCE_DIR}/install/${_system_name}")
file(MAKE_DIRECTORY ${ETH_DEPENDENCY_INSTALL_DIR}) file(MAKE_DIRECTORY ${ETH_DEPENDENCY_INSTALL_DIR})
include(cryptopp.cmake) include(cryptopp.cmake)

16
extdep/Readme.md

@ -0,0 +1,16 @@
# cpp-ethereum external dependencies
**This is Work-in-Progress!**
This directory hosts the external libraries that are needed to build cpp-ethereum.
To automatically download, build, and link libraries, do
```
cd extdep; mkdir build; cd build; cmake ..; make
```
this will take some time.
To check which libraries are already included, check `CMakeLists.txt`. Other libraries still need to be fetched via the system's package manager.
Libraries will be installed in `cpp-ethereum/extdep/install/<platform-name>`

13
extdep/json-rpc-cpp_linux.patch

@ -1,13 +0,0 @@
diff --git a/src/jsonrpc/CMakeLists.txt b/src/jsonrpc/CMakeLists.txt
index 79e8515..4e93eef 100644
--- a/src/jsonrpc/CMakeLists.txt
+++ b/src/jsonrpc/CMakeLists.txt
@@ -12,7 +12,7 @@ set(VERSION_STRING ${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION})
set_target_properties(jsonrpc jsonrpcStatic PROPERTIES VERSION "${VERSION_STRING}" SOVERSION "${VERSION_MAJOR}")
-target_link_libraries(jsonrpc ${CURL_LIBRARIES})
+target_link_libraries(jsonrpc ${CURL_LIBRARIES} dl pthread)
target_link_libraries(jsonrpcStatic ${CURL_LIBRARIES})
install(FILES ${jsonrpc_header} DESTINATION include/jsonrpc)

9
extdep/json-rpc-cpp_osx.patch

@ -1,9 +0,0 @@
--- ./src/example/CMakeLists.txt 2014-11-12 17:20:52.000000000 +0100
+++ CMakeListsPatch.txt 2014-11-12 17:26:42.000000000 +0100
@@ -12,6 +12,3 @@
add_executable(stubserversample stubserver.cpp)
target_link_libraries(stubserversample jsonrpc)
-
-add_executable(xbmcremote xbmcremote.cpp)
-target_link_libraries(xbmcremote jsonrpc)
Loading…
Cancel
Save