vcpkg/ports/wt/portfile.cmake

53 lines
1.5 KiB
CMake
Raw Normal View History

2016-10-23 22:45:01 +08:00
include(vcpkg_common_functions)
2017-05-03 23:02:12 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO emweb/wt
REF 4.0.3
SHA512 5985f72cbd3065ac696aad4d11711f2d69e066ee17141b56fd7c2616c7f7353586ab8d13db2baa90fa8f3cb116aa7c9044ee3cc42e99e8f5c8704f886ac3b2b6
2017-05-03 23:02:12 +08:00
HEAD_REF master
)
2017-05-03 23:02:12 +08:00
vcpkg_apply_patches(
SOURCE_PATH ${SOURCE_PATH}
PATCHES
2018-02-23 19:36:35 +08:00
${CMAKE_CURRENT_LIST_DIR}/0001-boost-1.66.patch
${CMAKE_CURRENT_LIST_DIR}/0002-link-glew.patch
${CMAKE_CURRENT_LIST_DIR}/0003-disable-boost-autolink.patch
)
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SHARED_LIBS)
2016-10-23 22:45:01 +08:00
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
2018-02-23 19:36:35 +08:00
PREFER_NINJA
2016-10-23 22:45:01 +08:00
OPTIONS
-DSHARED_LIBS=${SHARED_LIBS}
-DBOOST_DYNAMIC=ON
-DDISABLE_BOOST_AUTOLINK=ON
2016-10-23 22:45:01 +08:00
-DBUILD_EXAMPLES=OFF
-DENABLE_SSL=ON
-DENABLE_HARU=OFF
-DENABLE_PANGO=ON
-DENABLE_SQLITE=ON
-DENABLE_POSTGRES=ON
2016-10-23 22:45:01 +08:00
-DENABLE_FIREBIRD=OFF
-DENABLE_MYSQL=OFF
-DENABLE_QT4=OFF
-DENABLE_LIBWTTEST=OFF
-DENABLE_OPENGL=ON
-DUSE_SYSTEM_SQLITE3=ON
2018-02-23 19:36:35 +08:00
-DUSE_SYSTEM_GLEW=ON
2016-10-23 22:45:01 +08:00
)
vcpkg_install_cmake()
2018-02-23 19:36:35 +08:00
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/wt)
2016-10-23 22:45:01 +08:00
# There is no way to suppress installation of the headers and resource files in debug build.
2018-02-23 19:36:35 +08:00
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR}/debug/share)
2016-10-23 22:45:01 +08:00
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/wt RENAME copyright)
vcpkg_copy_pdbs()