Skip to content

Commit

Permalink
update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Shareong committed Mar 10, 2024
1 parent 60672ca commit d7c51fa
Show file tree
Hide file tree
Showing 21 changed files with 35 additions and 179 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@

# build
build
deps

# scritps
scripts/ca*
Expand Down
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ hunter_add_package(jsoncpp)
find_package(jsoncpp CONFIG REQUIRED)

# bcos-utilities
hunter_add_package(bcos-utilities)
find_package(bcos-utilities CONFIG REQUIRED)
include(ProjectBcosUtilities)

include_directories(${CMAKE_INSTALL_INCLUDEDIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
Expand Down
2 changes: 1 addition & 1 deletion bcos-boostssl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ file(GLOB_RECURSE SRCS "*.cpp")
file(GLOB_RECURSE HEADERS "*.h")

add_library(${BOOSTSSL_TARGET} ${SRCS} ${HEADERS})
target_link_libraries(${BOOSTSSL_TARGET} ${UTILITIES_TARGET} Boost::system Boost::filesystem
target_link_libraries(${BOOSTSSL_TARGET} PUBLIC bcos-utilities Boost::system Boost::filesystem
Boost::log Boost::chrono Boost::iostreams Boost::thread OpenSSL::SSL OpenSSL::Crypto)
8 changes: 0 additions & 8 deletions cmake/InstallBcosCryptoDependencies.cmake

This file was deleted.

13 changes: 0 additions & 13 deletions cmake/InstallBcosExecutorDependencies.cmake

This file was deleted.

9 changes: 0 additions & 9 deletions cmake/InstallBcosFrameworkDependencies.cmake

This file was deleted.

3 changes: 0 additions & 3 deletions cmake/InstallBcosFrontDependencies.cmake

This file was deleted.

10 changes: 0 additions & 10 deletions cmake/InstallBcosGateWayDependencies.cmake

This file was deleted.

3 changes: 0 additions & 3 deletions cmake/InstallBcosGroupManager.cmake

This file was deleted.

5 changes: 0 additions & 5 deletions cmake/InstallBcosLedgerDependencies.cmake

This file was deleted.

5 changes: 0 additions & 5 deletions cmake/InstallBcosPBFTDependencies.cmake

This file was deleted.

3 changes: 0 additions & 3 deletions cmake/InstallBcosRpcDependencies.cmake

This file was deleted.

3 changes: 0 additions & 3 deletions cmake/InstallBcosScheduler.cmake

This file was deleted.

9 changes: 0 additions & 9 deletions cmake/InstallBcosStorageDependencies.cmake

This file was deleted.

5 changes: 0 additions & 5 deletions cmake/InstallBcosSyncDependencies.cmake

This file was deleted.

4 changes: 0 additions & 4 deletions cmake/InstallBcosTarsProtocolDependencies.cmake

This file was deleted.

5 changes: 0 additions & 5 deletions cmake/InstallBcosTxPoolDependencies.cmake

This file was deleted.

1 change: 0 additions & 1 deletion cmake/InstallBoostSSL.cmake
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
hunter_add_package(bcos-boostssl)
find_package(bcos-framework CONFIG REQUIRED)
hunter_add_package(OpenSSL)
find_package(OpenSSL REQUIRED)
find_package(bcos-boostssl CONFIG REQUIRED)
23 changes: 23 additions & 0 deletions cmake/ProjectBcosUtilities.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
include(ExternalProject)

ExternalProject_Add(BcosUtilitiesLib
PREFIX ${CMAKE_SOURCE_DIR}/deps
GIT_REPOSITORY https://github.com/Shareong//bcos-utilities.git
GIT_TAG a59f0673386a82c8ed89d88690264e1b02bc7347
BUILD_IN_SOURCE 1
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=<INSTALL_DIR>
LOG_CONFIGURE 1
LOG_BUILD 1
LOG_INSTALL 1
)

ExternalProject_Get_Property(BcosUtilitiesLib INSTALL_DIR)
add_library(bcos-utilities STATIC IMPORTED)
set(BCOS_UTILITIES_LIBRARY ${INSTALL_DIR}/lib/libbcos-utilities.a)
set(BCOS_UTILITIES_INCLUDE_DIR ${INSTALL_DIR}/include)
file(MAKE_DIRECTORY ${INSTALL_DIR}/lib) # Must exist.
file(MAKE_DIRECTORY ${BCOS_UTILITIES_INCLUDE_DIR}) # Must exist.
set_property(TARGET bcos-utilities PROPERTY IMPORTED_LOCATION ${BCOS_UTILITIES_LIBRARY})
set_property(TARGET bcos-utilities PROPERTY INTERFACE_INCLUDE_DIRECTORIES ${BCOS_UTILITIES_INCLUDE_DIR})
add_dependencies(bcos-utilities BcosUtilitiesLib)
unset(INSTALL_DIR)
75 changes: 0 additions & 75 deletions cmake/ProjectExecutor.cmake

This file was deleted.

24 changes: 9 additions & 15 deletions cmake/config.cmake
Original file line number Diff line number Diff line change
@@ -1,22 +1,16 @@
hunter_config(
Boost VERSION "1.76.0-local"
URL
"https://osp-1257653870.cos.ap-guangzhou.myqcloud.com/FISCO-BCOS/FISCO-BCOS/deps/boost_1_76_0.tar.bz2
https://downloads.sourceforge.net/project/boost/boost/1.76.0/source/boost_1_76_0.tar.bz2
https://nchc.dl.sourceforge.net/project/boost/boost/1.76.0/boost_1_76_0.tar.bz2"
SHA1
8064156508312dde1d834fec3dca9b11006555b6
CMAKE_ARGS
CONFIG_MACRO=BOOST_UUID_RANDOM_PROVIDER_FORCE_POSIX
Boost VERSION "1.83"
URL "https://psychz.dl.sourceforge.net/project/boost/boost/1.83.0/boost_1_83_0.tar.bz2"
SHA1 75b1f569134401d178ad2aaf97a2993898dd7ee3
CMAKE_ARGS CONFIG_MACRO=BOOST_UUID_RANDOM_PROVIDER_FORCE_POSIX
)

hunter_config(bcos-utilities VERSION 1.0.0-rc3-local
URL https://${URL_BASE}/FISCO-BCOS/bcos-utilities/archive/632cbeb0412d6ffa3c5217630fe6039f4092f3a4.tar.gz
SHA1 37b46cd3174ec1b66e28f19e6e8f31f209b61e4b
CMAKE_ARGS HUNTER_PACKAGE_LOG_BUILD=ON HUNTER_PACKAGE_LOG_INSTALL=ON
)
# hunter_config(bcos-utilities VERSION 1.0.0
# URL https://github.com/Shareong//bcos-utilities/archive/a59f0673386a82c8ed89d88690264e1b02bc7347.tar.gz
# SHA1 7b0ef2ea5c05b7c71b39875cd0df94a5670b0e57
# )

hunter_config(OpenSSL VERSION tassl_1.1.1b_v1.4-local
URL https://${URL_BASE}/FISCO-BCOS/TASSL-1.1.1b/archive/f9d60fa510e5fbe24413b4abdf1ea3a48f9ee6aa.tar.gz
SHA1 e56121278bf07587d58d154b4615f96575957d6f
)
)

0 comments on commit d7c51fa

Please sign in to comment.