mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-06 19:23:41 +02:00
Merge bitcoin/bitcoin#33428: depends: Boost 1.90.0
ca4a844eeddepends: Boost 1.90.0 (fanquake) Pull request description: Update [Boost to 1.90.0](https://www.boost.org/releases/1.90.0.beta1/) in depends. ACKs for top commit: hebasto: ACKca4a844eed. sedited: ACKca4a844eedTree-SHA512: d9fbef9f8f8b14b12281a252b17c79abb8bf5bcd5cbbccac0e509c010adca909f66d3f4739f6663741c5ff2829ec58e88185e67ed5815d2588b0980bba9b1b63
This commit is contained in:
@@ -1,9 +1,8 @@
|
|||||||
package=boost
|
package=boost
|
||||||
$(package)_version = 1.88.0
|
$(package)_version = 1.90.0
|
||||||
$(package)_download_path = https://github.com/boostorg/boost/releases/download/boost-$($(package)_version)
|
$(package)_download_path = https://github.com/boostorg/boost/releases/download/boost-$($(package)_version)
|
||||||
$(package)_file_name = boost-$($(package)_version)-cmake.tar.gz
|
$(package)_file_name = boost-$($(package)_version)-cmake.tar.gz
|
||||||
$(package)_sha256_hash = dcea50f40ba1ecfc448fdf886c0165cf3e525fef2c9e3e080b9804e8117b9694
|
$(package)_sha256_hash = 913ca43d49e93d1b158c9862009add1518a4c665e7853b349a6492d158b036d4
|
||||||
$(package)_patches = skip_compiled_targets.patch
|
|
||||||
$(package)_build_subdir = build
|
$(package)_build_subdir = build
|
||||||
|
|
||||||
define $(package)_set_vars
|
define $(package)_set_vars
|
||||||
@@ -16,10 +15,6 @@ define $(package)_set_vars
|
|||||||
$(package)_config_opts += -DCMAKE_DISABLE_FIND_PACKAGE_ICU=ON
|
$(package)_config_opts += -DCMAKE_DISABLE_FIND_PACKAGE_ICU=ON
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define $(package)_preprocess_cmds
|
|
||||||
patch -p1 < $($(package)_patch_dir)/skip_compiled_targets.patch
|
|
||||||
endef
|
|
||||||
|
|
||||||
define $(package)_config_cmds
|
define $(package)_config_cmds
|
||||||
$($(package)_cmake) -S .. -B .
|
$($(package)_cmake) -S .. -B .
|
||||||
endef
|
endef
|
||||||
|
|||||||
@@ -1,136 +0,0 @@
|
|||||||
cmake: Add `BOOST_TEST_HEADERS_ONLY` configuration variable
|
|
||||||
|
|
||||||
This change allows the build to be configured to install only the
|
|
||||||
Boost.Test headers required for using the headers-only variant of the
|
|
||||||
Unit Test Framework.
|
|
||||||
|
|
||||||
Upstream commit: 097e97820e654ead9c477b47443a545cef5d3b12
|
|
||||||
|
|
||||||
|
|
||||||
--- a/libs/test/CMakeLists.txt
|
|
||||||
+++ b/libs/test/CMakeLists.txt
|
|
||||||
@@ -30,60 +30,70 @@ set(_boost_test_dependencies
|
|
||||||
Boost::utility
|
|
||||||
)
|
|
||||||
|
|
||||||
-# Compiled targets
|
|
||||||
+option(BOOST_TEST_HEADERS_ONLY "Boost.Test: Only install headers" OFF)
|
|
||||||
|
|
||||||
-function(boost_test_add_library name)
|
|
||||||
+set(_boost_test_libraries "")
|
|
||||||
|
|
||||||
- add_library(boost_${name} ${ARGN})
|
|
||||||
- add_library(Boost::${name} ALIAS boost_${name})
|
|
||||||
+if (NOT BOOST_TEST_HEADERS_ONLY)
|
|
||||||
|
|
||||||
- target_include_directories(boost_${name} PUBLIC include)
|
|
||||||
- target_link_libraries(boost_${name} PUBLIC ${_boost_test_dependencies})
|
|
||||||
+ # Compiled targets
|
|
||||||
|
|
||||||
- target_compile_definitions(boost_${name}
|
|
||||||
- PUBLIC BOOST_TEST_NO_LIB
|
|
||||||
- # Source files already define BOOST_TEST_SOURCE
|
|
||||||
- # PRIVATE BOOST_TEST_SOURCE
|
|
||||||
- )
|
|
||||||
+ function(boost_test_add_library name)
|
|
||||||
|
|
||||||
- if(BUILD_SHARED_LIBS)
|
|
||||||
- target_compile_definitions(boost_${name} PUBLIC BOOST_TEST_DYN_LINK)
|
|
||||||
- else()
|
|
||||||
- target_compile_definitions(boost_${name} PUBLIC BOOST_TEST_STATIC_LINK)
|
|
||||||
- endif()
|
|
||||||
+ add_library(boost_${name} ${ARGN})
|
|
||||||
+ add_library(Boost::${name} ALIAS boost_${name})
|
|
||||||
|
|
||||||
-endfunction()
|
|
||||||
+ target_include_directories(boost_${name} PUBLIC include)
|
|
||||||
+ target_link_libraries(boost_${name} PUBLIC ${_boost_test_dependencies})
|
|
||||||
|
|
||||||
-boost_test_add_library(prg_exec_monitor
|
|
||||||
- src/cpp_main.cpp
|
|
||||||
- src/debug.cpp
|
|
||||||
- src/execution_monitor.cpp
|
|
||||||
-)
|
|
||||||
+ target_compile_definitions(boost_${name}
|
|
||||||
+ PUBLIC BOOST_TEST_NO_LIB
|
|
||||||
+ # Source files already define BOOST_TEST_SOURCE
|
|
||||||
+ # PRIVATE BOOST_TEST_SOURCE
|
|
||||||
+ )
|
|
||||||
|
|
||||||
-set(SOURCES
|
|
||||||
- src/compiler_log_formatter.cpp
|
|
||||||
- src/debug.cpp
|
|
||||||
- src/decorator.cpp
|
|
||||||
- src/execution_monitor.cpp
|
|
||||||
- src/framework.cpp
|
|
||||||
- src/junit_log_formatter.cpp
|
|
||||||
- src/plain_report_formatter.cpp
|
|
||||||
- src/progress_monitor.cpp
|
|
||||||
- src/results_collector.cpp
|
|
||||||
- src/results_reporter.cpp
|
|
||||||
- src/test_framework_init_observer.cpp
|
|
||||||
- src/test_tools.cpp
|
|
||||||
- src/test_tree.cpp
|
|
||||||
- src/unit_test_log.cpp
|
|
||||||
- src/unit_test_main.cpp
|
|
||||||
- src/unit_test_monitor.cpp
|
|
||||||
- src/unit_test_parameters.cpp
|
|
||||||
- src/xml_log_formatter.cpp
|
|
||||||
- src/xml_report_formatter.cpp
|
|
||||||
-)
|
|
||||||
+ if(BUILD_SHARED_LIBS)
|
|
||||||
+ target_compile_definitions(boost_${name} PUBLIC BOOST_TEST_DYN_LINK)
|
|
||||||
+ else()
|
|
||||||
+ target_compile_definitions(boost_${name} PUBLIC BOOST_TEST_STATIC_LINK)
|
|
||||||
+ endif()
|
|
||||||
+
|
|
||||||
+ endfunction()
|
|
||||||
|
|
||||||
-boost_test_add_library(test_exec_monitor STATIC ${SOURCES} src/test_main.cpp)
|
|
||||||
-boost_test_add_library(unit_test_framework ${SOURCES})
|
|
||||||
+ boost_test_add_library(prg_exec_monitor
|
|
||||||
+ src/cpp_main.cpp
|
|
||||||
+ src/debug.cpp
|
|
||||||
+ src/execution_monitor.cpp
|
|
||||||
+ )
|
|
||||||
+
|
|
||||||
+ set(SOURCES
|
|
||||||
+ src/compiler_log_formatter.cpp
|
|
||||||
+ src/debug.cpp
|
|
||||||
+ src/decorator.cpp
|
|
||||||
+ src/execution_monitor.cpp
|
|
||||||
+ src/framework.cpp
|
|
||||||
+ src/junit_log_formatter.cpp
|
|
||||||
+ src/plain_report_formatter.cpp
|
|
||||||
+ src/progress_monitor.cpp
|
|
||||||
+ src/results_collector.cpp
|
|
||||||
+ src/results_reporter.cpp
|
|
||||||
+ src/test_framework_init_observer.cpp
|
|
||||||
+ src/test_tools.cpp
|
|
||||||
+ src/test_tree.cpp
|
|
||||||
+ src/unit_test_log.cpp
|
|
||||||
+ src/unit_test_main.cpp
|
|
||||||
+ src/unit_test_monitor.cpp
|
|
||||||
+ src/unit_test_parameters.cpp
|
|
||||||
+ src/xml_log_formatter.cpp
|
|
||||||
+ src/xml_report_formatter.cpp
|
|
||||||
+ )
|
|
||||||
+
|
|
||||||
+ boost_test_add_library(test_exec_monitor STATIC ${SOURCES} src/test_main.cpp)
|
|
||||||
+ boost_test_add_library(unit_test_framework ${SOURCES})
|
|
||||||
+
|
|
||||||
+ set(_boost_test_libraries boost_prg_exec_monitor boost_test_exec_monitor boost_unit_test_framework)
|
|
||||||
+
|
|
||||||
+endif()
|
|
||||||
|
|
||||||
# Header-only targets
|
|
||||||
|
|
||||||
@@ -107,7 +117,7 @@ if(BOOST_SUPERPROJECT_VERSION AND NOT CMAKE_VERSION VERSION_LESS 3.13)
|
|
||||||
|
|
||||||
boost_install(
|
|
||||||
TARGETS
|
|
||||||
- boost_prg_exec_monitor boost_test_exec_monitor boost_unit_test_framework
|
|
||||||
+ ${_boost_test_libraries}
|
|
||||||
boost_included_prg_exec_monitor boost_included_test_exec_monitor boost_included_unit_test_framework
|
|
||||||
VERSION ${BOOST_SUPERPROJECT_VERSION}
|
|
||||||
HEADER_DIRECTORY include
|
|
||||||
Reference in New Issue
Block a user