[boost-context] fix linux -> windows cross compile (#16378)

* [boost-context] fix linux -> windows cross compile

* add version files
This commit is contained in:
autoantwort 2021-02-26 22:17:33 +01:00 committed by GitHub
parent 82034dbd5f
commit e25b620cf9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 23 additions and 2 deletions

View File

@ -0,0 +1,7 @@
if(@VCPKG_TARGET_IS_WINDOWS@)
list(APPEND B2_OPTIONS
abi=ms
binary-format=pe
)
endif()

View File

@ -15,7 +15,15 @@ file(WRITE "${SOURCE_PATH}/build/Jamfile.v2" "${_contents}")
file(COPY "${CURRENT_INSTALLED_DIR}/share/boost-config/checks" DESTINATION "${SOURCE_PATH}/build/config")
include(${CURRENT_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)
boost_modular_build(SOURCE_PATH ${SOURCE_PATH})
configure_file(
"${CMAKE_CURRENT_LIST_DIR}/b2-options.cmake.in"
"${CURRENT_BUILDTREES_DIR}/vcpkg-b2-options.cmake"
@ONLY
)
boost_modular_build(
SOURCE_PATH ${SOURCE_PATH}
BOOST_CMAKE_FRAGMENT "${CURRENT_BUILDTREES_DIR}/vcpkg-b2-options.cmake"
)
include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)
boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})

View File

@ -1,6 +1,7 @@
{
"name": "boost-context",
"version-string": "1.75.0",
"port-version": 1,
"description": "Boost context module",
"homepage": "https://github.com/boostorg/context",
"supports": "!uwp & !emscripten",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "7f3c7f2174e6d43195a6468272d27bf68b12b56b",
"version-string": "1.75.0",
"port-version": 1
},
{
"git-tree": "a122c48db7645becfa084e9af1e57035870cb806",
"version-string": "1.75.0",

View File

@ -494,7 +494,7 @@
},
"boost-context": {
"baseline": "1.75.0",
"port-version": 0
"port-version": 1
},
"boost-contract": {
"baseline": "1.75.0",