mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 18:31:15 +08:00
[boost-context] fix linux -> windows cross compile (#16378)
* [boost-context] fix linux -> windows cross compile * add version files
This commit is contained in:
parent
82034dbd5f
commit
e25b620cf9
7
ports/boost-context/b2-options.cmake.in
Normal file
7
ports/boost-context/b2-options.cmake.in
Normal file
@ -0,0 +1,7 @@
|
||||
|
||||
if(@VCPKG_TARGET_IS_WINDOWS@)
|
||||
list(APPEND B2_OPTIONS
|
||||
abi=ms
|
||||
binary-format=pe
|
||||
)
|
||||
endif()
|
@ -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})
|
||||
|
||||
|
@ -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",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "7f3c7f2174e6d43195a6468272d27bf68b12b56b",
|
||||
"version-string": "1.75.0",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "a122c48db7645becfa084e9af1e57035870cb806",
|
||||
"version-string": "1.75.0",
|
||||
|
@ -494,7 +494,7 @@
|
||||
},
|
||||
"boost-context": {
|
||||
"baseline": "1.75.0",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"boost-contract": {
|
||||
"baseline": "1.75.0",
|
||||
|
Loading…
x
Reference in New Issue
Block a user