Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions ports/libmariadb/CONTROL
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,12 @@ Source: libmariadb
Version: 3.1.7-1
Comment thread
JackBoosY marked this conversation as resolved.
Outdated
Homepage: https://github.com/MariaDB/mariadb-connector-c
Description: MariaDB Connector/C is used to connect C/C++ applications to MariaDB and MySQL databases
Default-Features: zlib, openssl

Feature: zlib
Build-Depends: zlib
Description: Use internal zlib

Feature: openssl
Build-Depends: openssl
Description: Enable SSL support
12 changes: 11 additions & 1 deletion ports/libmariadb/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,23 @@ vcpkg_from_github(
fix-InstallPath.patch
)

set(WITH_ZLIB OFF)
if("zlib" IN_LIST FEATURES)
set(WITH_ZLIB ON)
endif()
set(WITH_SSL OFF)
if("openssl" IN_LIST FEATURES)
set(WITH_SSL ON)
endif()
Comment thread
JackBoosY marked this conversation as resolved.
Outdated

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
Comment thread
JackBoosY marked this conversation as resolved.
-DWITH_UNITTEST=OFF
-DWITH_SSL=OFF
-DWITH_SSL=${WITH_SSL}
-DWITH_CURL=OFF
-DWITH_EXTERNAL_ZLIB=${WITH_ZLIB}
Comment thread
JackBoosY marked this conversation as resolved.
Outdated
)

vcpkg_install_cmake()
Expand Down