[wt] Fix static builds. Enable sqlite3, postgres, and pango backends.

This commit is contained in:
Robert Schumacher 2017-06-09 23:13:19 -07:00
parent 09764bfab7
commit 6259ae99e8
2 changed files with 20 additions and 7 deletions

View File

@ -1,4 +1,4 @@
Source: wt
Version: 3.3.7
Version: 3.3.7-1
Description: Wt is a C++ library for developing web applications
Build-Depends: boost, openssl
Build-Depends: boost, openssl, sqlite3, libpq, pango

View File

@ -13,19 +13,32 @@ vcpkg_apply_patches(
PATCHES ${CMAKE_CURRENT_LIST_DIR}/add-disable-boost-autolink-option.patch
)
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
set(SHARED_LIBS ON)
else()
set(SHARED_LIBS OFF)
endif()
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DSHARED_LIBS=ON
-DENABLE_SSL=ON
-DSHARED_LIBS=${SHARED_LIBS}
-DBOOST_DYNAMIC=ON
-DDISABLE_BOOST_AUTOLINK=ON
-DBUILD_EXAMPLES=OFF
-DENABLE_POSTGRES=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
-DBOOST_DYNAMIC=ON
-DDISABLE_BOOST_AUTOLINK=ON
-DENABLE_LIBWTTEST=OFF
-DENABLE_OPENGL=ON
-DUSE_SYSTEM_SQLITE3=ON
)
vcpkg_install_cmake()