Skip to content

Commit

Permalink
vcpkg: Add dbd-postgresql feature.
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1921033 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Ivan Zhakov committed Sep 30, 2024
1 parent 8afd358 commit d799a54
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build/vcpkg/apr-2/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ if (VCPKG_TARGET_IS_WINDOWS)
xlate FEATURE_XLATE
dbd-odbc FEATURE_DBD_ODBC
dbd-sqlite3 FEATURE_DBD_SQLITE3
dbd-postgresql FEATURE_DBD_PGQL
)

vcpkg_cmake_configure(
Expand All @@ -30,6 +31,7 @@ if (VCPKG_TARGET_IS_WINDOWS)
-DAPU_HAVE_ICONV=${FEATURE_XLATE}
-DAPU_HAVE_ODBC=${FEATURE_DBD_ODBC}
-DAPU_HAVE_SQLITE3=${FEATURE_DBD_SQLITE3}
-DAPU_HAVE_PGSQL=${FEATURE_DBD_PGQL}
-DAPU_USE_EXPAT=${APU_USE_EXPAT}
-DAPR_INSTALL_PRIVATE_H=${INSTALL_PRIVATE_H}
)
Expand Down
10 changes: 10 additions & 0 deletions build/vcpkg/apr-2/vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@
"sqlite3"
]
},
"dbd-postgresql": {
"description": "Build PostgreSQL DBD driver",
"dependencies": [
{
"name": "libpq",
"default-features": false,
"features": []
}
]
},
"private-headers": {
"description": "Install non-standard files required for building Apache httpd"
},
Expand Down

0 comments on commit d799a54

Please sign in to comment.