mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-24 05:30:26 +08:00
0e759709dd
* Update boost to 1.69. Fixes #5023 - Remove boost-signal (rationale: deprecated and removed in 1.69) - Remove boost-hana workaround by xiangfan-ms #4186 #3579 (rationale: 1.69 incorporates required fixes in hana master branch; builds fine in VS2017 15.9) * [boost-signals] Restore signals from boost 1.68 because it is required by wt * [boost-vcpkg-helpers] Improve dependency detection * [boost-iostreams] Revert to cmake build to enable dependencies * [boost-iostreams] Fix use of zstd in static builds * [libtorrent] Update to 1.2.0 * [wt] Update to 4.0.5 * [boost-safe-numerics] [boost-vcpkg-helpers] Added safe_numerics; slight mod to regex match * [hpx] Backport boost 1.69 fixes * [libtorrent] Clean up cmake file installation * [boost-type-traits] Fix MSVC arm
54 lines
1.5 KiB
CMake
54 lines
1.5 KiB
CMake
include(vcpkg_common_functions)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO emweb/wt
|
|
REF 4.0.5
|
|
SHA512 5513b428bfd3e778726c947606677f3e0774b38e640e61cd94906a2e0c75d204a68072b54ddeb3614a7ba08f5668e6eb3a96d9c8df3744b09dc36ad9be12d924
|
|
HEAD_REF master
|
|
PATCHES
|
|
0002-link-glew.patch
|
|
0003-disable-boost-autolink.patch
|
|
0004-link-ssl.patch
|
|
)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SHARED_LIBS)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DSHARED_LIBS=${SHARED_LIBS}
|
|
-DBOOST_DYNAMIC=ON
|
|
-DDISABLE_BOOST_AUTOLINK=ON
|
|
-DBUILD_EXAMPLES=OFF
|
|
|
|
-DENABLE_SSL=ON
|
|
-DENABLE_HARU=OFF
|
|
-DENABLE_PANGO=ON
|
|
-DENABLE_SQLITE=ON
|
|
-DENABLE_POSTGRES=ON
|
|
-DENABLE_FIREBIRD=OFF
|
|
-DENABLE_MYSQL=OFF
|
|
-DENABLE_QT4=OFF
|
|
-DENABLE_LIBWTTEST=OFF
|
|
-DENABLE_OPENGL=ON
|
|
|
|
-DUSE_SYSTEM_SQLITE3=ON
|
|
-DUSE_SYSTEM_GLEW=ON
|
|
|
|
-DCMAKE_INSTALL_DIR=share
|
|
)
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/wt)
|
|
|
|
# There is no way to suppress installation of the headers and resource files in debug build.
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/var)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/var)
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/wt RENAME copyright)
|
|
vcpkg_copy_pdbs()
|