mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 00:07:53 +08:00
0d29d2fe86
I was a bit confused to see a reference to "1.65.1" while I was installing 1.66.0, but it turns out this URL is just not updated. This updates it.
66 lines
2.5 KiB
CMake
66 lines
2.5 KiB
CMake
include(vcpkg_common_functions)
|
|
|
|
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
|
|
|
if(NOT VCPKG_TARGET_ARCHITECTURE STREQUAL "x64" AND NOT VCPKG_TARGET_ARCHITECTURE STREQUAL "x86")
|
|
return()
|
|
endif()
|
|
|
|
# This fixes the lib path to use desktop libs instead of uwp -- TODO: improve this with better "host" compilation
|
|
string(REPLACE "\\store\\;" "\\;" LIB "$ENV{LIB}")
|
|
set(ENV{LIB} "${LIB}")
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO boostorg/build
|
|
REF boost-1.66.0
|
|
SHA512 db94eefa0c2fe410cfdf7599102670377a069d52a7c8d4181f6209e3e65860e9d92f86ec5994e402b8a773a47a4ad5c074acf9763eabbe293266af19380e7ca9
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
URLS "https://raw.githubusercontent.com/boostorg/boost/boost-1.66.0/LICENSE_1_0.txt"
|
|
FILENAME "boost_LICENSE_1_0.txt"
|
|
SHA512 d6078467835dba8932314c1c1e945569a64b065474d7aced27c9a7acc391d52e9f234138ed9f1aa9cd576f25f12f557e0b733c14891d42c16ecdc4a7bd4d60b8
|
|
)
|
|
|
|
vcpkg_download_distfile(BOOSTCPP_ARCHIVE
|
|
URLS "https://raw.githubusercontent.com/boostorg/boost/boost-1.66.0/boostcpp.jam"
|
|
FILENAME "boost-1.66.0-boostcpp.jam"
|
|
SHA512 ef2ae1d6a53a7f93654950e2e8e679da6b0359f02baafc03db970801634c1f5d4229633b5b6d74ad96a306e6efe3429d436669dc165b1fa655917e0ec74714e4
|
|
)
|
|
|
|
file(COPY
|
|
${SOURCE_PATH}/
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/tools/boost-build
|
|
)
|
|
|
|
file(READ "${CURRENT_PACKAGES_DIR}/tools/boost-build/src/tools/msvc.jam" _contents)
|
|
string(REPLACE " /ZW /EHsc " "" _contents "${_contents}")
|
|
string(REPLACE "-nologo" "" _contents "${_contents}")
|
|
string(REPLACE "/nologo" "" _contents "${_contents}")
|
|
string(REPLACE "/Zm800" "" _contents "${_contents}")
|
|
string(REPLACE "<define>_WIN32_WINNT=0x0602" "" _contents "${_contents}")
|
|
file(WRITE "${CURRENT_PACKAGES_DIR}/tools/boost-build/src/tools/msvc.jam" "${_contents}")
|
|
|
|
message(STATUS "Bootstrapping...")
|
|
vcpkg_execute_required_process(
|
|
COMMAND "${CURRENT_PACKAGES_DIR}/tools/boost-build/bootstrap.bat" msvc
|
|
WORKING_DIRECTORY ${CURRENT_PACKAGES_DIR}/tools/boost-build
|
|
LOGNAME bootstrap-${TARGET_TRIPLET}
|
|
)
|
|
|
|
file(INSTALL ${ARCHIVE} DESTINATION ${CURRENT_PACKAGES_DIR}/share/boost-build RENAME copyright)
|
|
file(INSTALL ${BOOSTCPP_ARCHIVE} DESTINATION ${CURRENT_PACKAGES_DIR}/tools/boost-build RENAME boostcpp.jam)
|
|
|
|
|
|
|
|
file(
|
|
COPY
|
|
${CMAKE_CURRENT_LIST_DIR}/boost-modular-build.cmake
|
|
${CMAKE_CURRENT_LIST_DIR}/Jamroot.jam
|
|
${CMAKE_CURRENT_LIST_DIR}/nothing.bat
|
|
${CMAKE_CURRENT_LIST_DIR}/user-config.jam
|
|
DESTINATION ${CURRENT_PACKAGES_DIR}/share/boost-build
|
|
)
|