Skip to content

Commit

Permalink
[boost] cmake build
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkvdb committed May 6, 2024
1 parent 476a9ee commit c069e04
Show file tree
Hide file tree
Showing 374 changed files with 3,918 additions and 2,290 deletions.
7 changes: 5 additions & 2 deletions ports/boost-accumulators/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ vcpkg_from_github(
HEAD_REF master
)

include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
set(FEATURE_OPTIONS "")
boost_configure_and_install(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS ${FEATURE_OPTIONS}
)
13 changes: 9 additions & 4 deletions ports/boost-accumulators/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
"name": "boost-accumulators",
"version": "1.84.0",
"port-version": 1,
"description": "Boost accumulators module",
"homepage": "https://github.com/boostorg/accumulators",
"license": "BSL-1.0",
Expand All @@ -18,6 +19,10 @@
"name": "boost-circular-buffer",
"version>=": "1.84.0"
},
{
"name": "boost-cmake",
"version>=": "1.84.0"
},
{
"name": "boost-concept-check",
"version>=": "1.84.0"
Expand All @@ -34,6 +39,10 @@
"name": "boost-fusion",
"version>=": "1.84.0"
},
{
"name": "boost-headers",
"version>=": "1.84.0"
},
{
"name": "boost-iterator",
"version>=": "1.84.0"
Expand Down Expand Up @@ -85,10 +94,6 @@
{
"name": "boost-ublas",
"version>=": "1.84.0"
},
{
"name": "boost-vcpkg-helpers",
"version>=": "1.84.0"
}
]
}
7 changes: 5 additions & 2 deletions ports/boost-algorithm/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ vcpkg_from_github(
HEAD_REF master
)

include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
set(FEATURE_OPTIONS "")
boost_configure_and_install(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS ${FEATURE_OPTIONS}
)
13 changes: 9 additions & 4 deletions ports/boost-algorithm/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
"name": "boost-algorithm",
"version": "1.84.0",
"port-version": 1,
"description": "Boost algorithm module",
"homepage": "https://github.com/boostorg/algorithm",
"license": "BSL-1.0",
Expand All @@ -18,6 +19,10 @@
"name": "boost-bind",
"version>=": "1.84.0"
},
{
"name": "boost-cmake",
"version>=": "1.84.0"
},
{
"name": "boost-concept-check",
"version>=": "1.84.0"
Expand All @@ -38,6 +43,10 @@
"name": "boost-function",
"version>=": "1.84.0"
},
{
"name": "boost-headers",
"version>=": "1.84.0"
},
{
"name": "boost-iterator",
"version>=": "1.84.0"
Expand Down Expand Up @@ -73,10 +82,6 @@
{
"name": "boost-unordered",
"version>=": "1.84.0"
},
{
"name": "boost-vcpkg-helpers",
"version>=": "1.84.0"
}
]
}
7 changes: 5 additions & 2 deletions ports/boost-align/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ vcpkg_from_github(
HEAD_REF master
)

include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
set(FEATURE_OPTIONS "")
boost_configure_and_install(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS ${FEATURE_OPTIONS}
)
9 changes: 7 additions & 2 deletions ports/boost-align/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
"name": "boost-align",
"version": "1.84.0",
"port-version": 1,
"description": "Boost align module",
"homepage": "https://github.com/boostorg/align",
"license": "BSL-1.0",
Expand All @@ -10,6 +11,10 @@
"name": "boost-assert",
"version>=": "1.84.0"
},
{
"name": "boost-cmake",
"version>=": "1.84.0"
},
{
"name": "boost-config",
"version>=": "1.84.0"
Expand All @@ -19,11 +24,11 @@
"version>=": "1.84.0"
},
{
"name": "boost-static-assert",
"name": "boost-headers",
"version>=": "1.84.0"
},
{
"name": "boost-vcpkg-helpers",
"name": "boost-static-assert",
"version>=": "1.84.0"
}
]
Expand Down
7 changes: 5 additions & 2 deletions ports/boost-any/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ vcpkg_from_github(
HEAD_REF master
)

include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
set(FEATURE_OPTIONS "")
boost_configure_and_install(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS ${FEATURE_OPTIONS}
)
11 changes: 8 additions & 3 deletions ports/boost-any/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
"name": "boost-any",
"version": "1.84.0",
"port-version": 1,
"description": "Boost any module",
"homepage": "https://github.com/boostorg/any",
"license": "BSL-1.0",
Expand All @@ -10,20 +11,24 @@
"name": "boost-assert",
"version>=": "1.84.0"
},
{
"name": "boost-cmake",
"version>=": "1.84.0"
},
{
"name": "boost-config",
"version>=": "1.84.0"
},
{
"name": "boost-throw-exception",
"name": "boost-headers",
"version>=": "1.84.0"
},
{
"name": "boost-type-index",
"name": "boost-throw-exception",
"version>=": "1.84.0"
},
{
"name": "boost-vcpkg-helpers",
"name": "boost-type-index",
"version>=": "1.84.0"
}
]
Expand Down
7 changes: 5 additions & 2 deletions ports/boost-array/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ vcpkg_from_github(
HEAD_REF master
)

include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
set(FEATURE_OPTIONS "")
boost_configure_and_install(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS ${FEATURE_OPTIONS}
)
11 changes: 8 additions & 3 deletions ports/boost-array/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
"name": "boost-array",
"version": "1.84.0",
"port-version": 1,
"description": "Boost array module",
"homepage": "https://github.com/boostorg/array",
"license": "BSL-1.0",
Expand All @@ -10,6 +11,10 @@
"name": "boost-assert",
"version>=": "1.84.0"
},
{
"name": "boost-cmake",
"version>=": "1.84.0"
},
{
"name": "boost-config",
"version>=": "1.84.0"
Expand All @@ -19,15 +24,15 @@
"version>=": "1.84.0"
},
{
"name": "boost-static-assert",
"name": "boost-headers",
"version>=": "1.84.0"
},
{
"name": "boost-throw-exception",
"name": "boost-static-assert",
"version>=": "1.84.0"
},
{
"name": "boost-vcpkg-helpers",
"name": "boost-throw-exception",
"version>=": "1.84.0"
}
]
Expand Down
28 changes: 28 additions & 0 deletions ports/boost-asio/opt-dep.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2ad3c1de2f..c918c7707d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -17,13 +17,21 @@ target_link_libraries(boost_asio
Boost::align
Boost::assert
Boost::config
- Boost::context
- Boost::coroutine
+ $<TARGET_NAME_IF_EXISTS:Boost::context>
+ $<TARGET_NAME_IF_EXISTS:Boost::coroutine>
Boost::date_time
Boost::system
Boost::throw_exception
)

+if(NOT TARGET Boost::context)
+ target_compile_definitions(boost_asio INTERFACE $<$<NOT:$<TARGET_EXISTS:Boost::context>>:BOOST_ASIO_DISABLE_BOOST_CONTEXT_FIBER>)
+endif()
+
+if(NOT TARGET Boost::coroutine)
+ target_compile_definitions(boost_asio INTERFACE $<$<NOT:$<TARGET_EXISTS:Boost::coroutine>>:BOOST_ASIO_DISABLE_BOOST_COROUTINE>)
+endif()
+
target_compile_features(boost_asio INTERFACE cxx_std_11)

if(BUILD_TESTING AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/test/CMakeLists.txt")
11 changes: 8 additions & 3 deletions ports/boost-asio/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ vcpkg_from_github(
REF boost-${VERSION}
SHA512 88d1d8d1bbea29149d9747ab9ccb99a7bfbd928f8ed1aff90adb6382fcefd32dc9687e6832f8ac21ddf918f0608623aa123d7943aa5f697a6b946fe2311e05f6
HEAD_REF master
PATCHES windows_alloca_header.patch
PATCHES
windows_alloca_header.patch
opt-dep.diff
)

include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
set(FEATURE_OPTIONS "")
boost_configure_and_install(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS ${FEATURE_OPTIONS}
)
11 changes: 8 additions & 3 deletions ports/boost-asio/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
"name": "boost-asio",
"version": "1.84.0",
"port-version": 1,
"description": "Boost asio module",
"homepage": "https://github.com/boostorg/asio",
"license": "BSL-1.0",
Expand All @@ -14,6 +15,10 @@
"name": "boost-assert",
"version>=": "1.84.0"
},
{
"name": "boost-cmake",
"version>=": "1.84.0"
},
{
"name": "boost-config",
"version>=": "1.84.0"
Expand All @@ -33,15 +38,15 @@
"version>=": "1.84.0"
},
{
"name": "boost-system",
"name": "boost-headers",
"version>=": "1.84.0"
},
{
"name": "boost-throw-exception",
"name": "boost-system",
"version>=": "1.84.0"
},
{
"name": "boost-vcpkg-helpers",
"name": "boost-throw-exception",
"version>=": "1.84.0"
}
],
Expand Down
7 changes: 5 additions & 2 deletions ports/boost-assert/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ vcpkg_from_github(
HEAD_REF master
)

include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
set(FEATURE_OPTIONS "")
boost_configure_and_install(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS ${FEATURE_OPTIONS}
)
7 changes: 6 additions & 1 deletion ports/boost-assert/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,21 @@
"$comment": "Automatically generated by scripts/boost/generate-ports.ps1",
"name": "boost-assert",
"version": "1.84.0",
"port-version": 1,
"description": "Boost assert module",
"homepage": "https://github.com/boostorg/assert",
"license": "BSL-1.0",
"dependencies": [
{
"name": "boost-cmake",
"version>=": "1.84.0"
},
{
"name": "boost-config",
"version>=": "1.84.0"
},
{
"name": "boost-vcpkg-helpers",
"name": "boost-headers",
"version>=": "1.84.0"
}
]
Expand Down
7 changes: 5 additions & 2 deletions ports/boost-assign/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@ vcpkg_from_github(
HEAD_REF master
)

include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})
set(FEATURE_OPTIONS "")
boost_configure_and_install(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS ${FEATURE_OPTIONS}
)
Loading

0 comments on commit c069e04

Please sign in to comment.