vcpkg/ports/wt/portfile.cmake

38 lines
1.1 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 3.3.7
SHA512 f179b42eedcfd2e61f26ef92c6aad40c55c76c9a688269c4d5bd55dd48381073d6269d9c2ab305f15ef455616d48183a3fc0ba08c740a8e18318a2ad2fb13826
HEAD_REF master
)
2017-05-03 23:02:12 +08:00
vcpkg_apply_patches(
SOURCE_PATH ${SOURCE_PATH}
PATCHES ${CMAKE_CURRENT_LIST_DIR}/add-disable-boost-autolink-option.patch
)
2016-10-23 22:45:01 +08:00
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
2016-10-23 22:45:01 +08:00
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
2016-10-23 22:45:01 +08:00
)
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()