mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-29 03:34:26 +08:00
43 lines
1.5 KiB
CMake
43 lines
1.5 KiB
CMake
include(vcpkg_common_functions)
|
|
set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/wt-3.3.6)
|
|
|
|
vcpkg_download_distfile(ARCHIVE_FILE
|
|
URLS "https://github.com/kdeforche/wt/archive/3.3.6.tar.gz"
|
|
FILENAME "wt-3.3.6.tar.gz"
|
|
SHA512 d6135713d300bcd3956a4fd673af73be0561eb5d6aa91c47255b966950ddb411217e6a826c1d11c0d941dbb6d006c9926231d7334b21de6256cca331066e18a6
|
|
)
|
|
vcpkg_extract_source_archive(${ARCHIVE_FILE})
|
|
vcpkg_download_distfile(PATCH_FILE
|
|
URLS "https://github.com/emweb/wt/commit/b944cdc0961f683cd12fc6e60db3d0b328cd46dd.diff"
|
|
FILENAME "wt-fix-boost-1-63.diff"
|
|
SHA512 0766837ed8852da675b02b45bfbe7a6705ab20f67aa20849df4cc4b93b00dec0b73acea3568bca1046e203119445044c5ea06e33bac5d5d991f6a56b8fe282e1
|
|
)
|
|
vcpkg_apply_patches(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PATCHES ${CMAKE_CURRENT_LIST_DIR}/add-disable-boost-autolink-option.patch
|
|
${PATCH_FILE}
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
OPTIONS
|
|
-DSHARED_LIBS=ON
|
|
-DENABLE_SSL=ON
|
|
-DBUILD_EXAMPLES=OFF
|
|
-DENABLE_POSTGRES=OFF
|
|
-DENABLE_FIREBIRD=OFF
|
|
-DENABLE_MYSQL=OFF
|
|
-DENABLE_QT4=OFF
|
|
-DBOOST_DYNAMIC=ON
|
|
-DDISABLE_BOOST_AUTOLINK=ON
|
|
-DENABLE_LIBWTTEST=OFF
|
|
)
|
|
vcpkg_install_cmake()
|
|
|
|
# There is no way to suppress installation of the headers and resource files in debug build.
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/wt RENAME copyright)
|
|
vcpkg_copy_pdbs()
|