mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 07:29:11 +08:00
9fb1585e7a
* [trantor] Update to 1.5.1 * Update ports/trantor/vcpkg.json Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Update ports/trantor/vcpkg.json Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * update cmake functiom * update version * fix ci baseline issue * update version * fix ci error * add port version * update version * Repair old drogon sha. Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> Co-authored-by: Jonliu1993 <13720414433@163.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
61 lines
1.6 KiB
CMake
61 lines
1.6 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO an-tao/drogon
|
|
REF v1.7.1
|
|
SHA512 8a7cb8aa87cc48b130a5b47558b3c9e2a0af13cd8b76681e42d14a366dac75c88e389f2e2fe03b4f0f1e0e31971a47eee2bf5df8fcb4b79f8ed00d2a592315b6
|
|
HEAD_REF master
|
|
PATCHES
|
|
vcpkg.patch
|
|
resolv.patch
|
|
drogon_config.patch
|
|
static-brotli.patch
|
|
)
|
|
|
|
vcpkg_check_features(
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
ctl BUILD_CTL
|
|
mysql BUILD_MYSQL
|
|
orm BUILD_ORM
|
|
postgres BUILD_POSTGRESQL
|
|
postgres LIBPQ_BATCH_MODE
|
|
redis BUILD_REDIS
|
|
sqlite3 BUILD_SQLITE
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
DISABLE_PARALLEL_CONFIGURE
|
|
OPTIONS
|
|
-DBUILD_EXAMPLES=OFF
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Boost=ON
|
|
${FEATURE_OPTIONS}
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
# Fix CMake files
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/Drogon)
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
# Copy drogon_ctl
|
|
if("ctl" IN_LIST FEATURES)
|
|
message("copying tools")
|
|
vcpkg_copy_tools(TOOL_NAMES drogon_ctl
|
|
AUTO_CLEAN)
|
|
endif()
|
|
|
|
# # Remove includes in debug
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
endif()
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
|
|
|
# Copy pdb files
|
|
vcpkg_copy_pdbs()
|