]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/boost-context/portfile.cmake
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / boost-context / portfile.cmake
diff --git a/ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/boost-context/portfile.cmake b/ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/boost-context/portfile.cmake
new file mode 100644 (file)
index 0000000..8563ece
--- /dev/null
@@ -0,0 +1,37 @@
+# Automatically generated by scripts/boost/generate-ports.ps1\r
+\r
+vcpkg_from_github(\r
+    OUT_SOURCE_PATH SOURCE_PATH\r
+    REPO boostorg/context\r
+    REF boost-1.75.0\r
+    SHA512 e1ba126cf1c785c38e196c1eddc347b5b06badf980d3b83d7b1c41d77ca060fbe18b34758d5beadcb53d54e13ce76775fcea24963f1754fab4e482da099cfade\r
+    HEAD_REF master\r
+    PATCHES fix_exports_for_32bit_GNU_asm_for_windows.patch\r
+)\r
+\r
+file(READ "${SOURCE_PATH}/build/Jamfile.v2" _contents)\r
+string(REPLACE "import ../../config/checks/config" "import config/checks/config" _contents "${_contents}")\r
+file(WRITE "${SOURCE_PATH}/build/Jamfile.v2" "${_contents}")\r
+file(COPY "${CURRENT_INSTALLED_DIR}/share/boost-config/checks" DESTINATION "${SOURCE_PATH}/build/config")\r
+\r
+if(NOT DEFINED CURRENT_HOST_INSTALLED_DIR)\r
+    message(FATAL_ERROR "boost-context requires a newer version of vcpkg in order to build.")\r
+endif()\r
+include(${CURRENT_HOST_INSTALLED_DIR}/share/boost-build/boost-modular-build.cmake)\r
+configure_file(\r
+    "${CMAKE_CURRENT_LIST_DIR}/b2-options.cmake.in"\r
+    "${CURRENT_BUILDTREES_DIR}/vcpkg-b2-options.cmake"\r
+    @ONLY\r
+)\r
+boost_modular_build(\r
+    SOURCE_PATH ${SOURCE_PATH}\r
+    BOOST_CMAKE_FRAGMENT "${CURRENT_BUILDTREES_DIR}/vcpkg-b2-options.cmake"\r
+)\r
+include(${CURRENT_INSTALLED_DIR}/share/boost-vcpkg-helpers/boost-modular-headers.cmake)\r
+boost_modular_headers(SOURCE_PATH ${SOURCE_PATH})\r
+\r
+# boost-context removed all.hpp, which is used by FindBoost to determine that context is installed\r
+if(NOT EXISTS ${CURRENT_PACKAGES_DIR}/include/boost/context/all.hpp)\r
+    file(WRITE ${CURRENT_PACKAGES_DIR}/include/boost/context/all.hpp\r
+        "#error \"#include <boost/context/all.hpp> is no longer supported by boost_context.\"")\r
+endif()\r