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
|
2018-12-15 09:00:47 +08:00
|
|
|
REF 4.0.5
|
|
|
|
SHA512 5513b428bfd3e778726c947606677f3e0774b38e640e61cd94906a2e0c75d204a68072b54ddeb3614a7ba08f5668e6eb3a96d9c8df3744b09dc36ad9be12d924
|
2017-05-03 23:02:12 +08:00
|
|
|
HEAD_REF master
|
2017-12-06 05:01:50 +08:00
|
|
|
PATCHES
|
2018-09-18 17:28:21 +08:00
|
|
|
0001-boost-1.66.patch
|
|
|
|
0002-link-glew.patch
|
|
|
|
0003-disable-boost-autolink.patch
|
2018-12-18 08:30:27 +08:00
|
|
|
0004-link-ssl.patch
|
2017-01-25 06:55:07 +08:00
|
|
|
)
|
|
|
|
|
2017-12-06 05:01:50 +08:00
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SHARED_LIBS)
|
2017-06-10 14:13:19 +08:00
|
|
|
|
2016-10-23 22:45:01 +08:00
|
|
|
vcpkg_configure_cmake(
|
2017-01-25 06:55:07 +08:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2018-02-23 19:36:35 +08:00
|
|
|
PREFER_NINJA
|
2016-10-23 22:45:01 +08:00
|
|
|
OPTIONS
|
2017-06-10 14:13:19 +08:00
|
|
|
-DSHARED_LIBS=${SHARED_LIBS}
|
|
|
|
-DBOOST_DYNAMIC=ON
|
|
|
|
-DDISABLE_BOOST_AUTOLINK=ON
|
2016-10-23 22:45:01 +08:00
|
|
|
-DBUILD_EXAMPLES=OFF
|
2017-06-10 14:13:19 +08:00
|
|
|
|
|
|
|
-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
|
2017-01-25 06:55:07 +08:00
|
|
|
-DENABLE_LIBWTTEST=OFF
|
2017-06-10 14:13:19 +08:00
|
|
|
-DENABLE_OPENGL=ON
|
|
|
|
|
|
|
|
-DUSE_SYSTEM_SQLITE3=ON
|
2018-02-23 19:36:35 +08:00
|
|
|
-DUSE_SYSTEM_GLEW=ON
|
2018-12-18 08:30:27 +08:00
|
|
|
|
|
|
|
-DCMAKE_INSTALL_DIR=share
|
2016-10-23 22:45:01 +08:00
|
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
2018-12-18 08:30:27 +08:00
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH share/wt)
|
2018-02-23 19:36:35 +08:00
|
|
|
|
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
|
|
|
|
2018-12-18 08:30:27 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/var)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/var)
|
|
|
|
|
2016-10-23 22:45:01 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/wt RENAME copyright)
|
|
|
|
vcpkg_copy_pdbs()
|