[poco] Fix feature sqlite3 (#16549)

* [poco] Fix feature sqlite3

* Update versions

* Add dependencies

* Update versions/p-/poco.json
This commit is contained in:
NancyLi1013 2021-03-25 03:57:51 +08:00 committed by GitHub
parent bce563ed58
commit a5ac469043
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 71 additions and 32 deletions

View File

@ -1,31 +0,0 @@
Source: poco
Version: 1.10.1
Port-Version: 3
Build-Depends: expat, pcre, zlib
Description: Modern, powerful open source C++ class libraries for building network and internet-based applications that run on desktop, server, mobile and embedded systems.
Homepage: https://github.com/pocoproject/poco
Supports: !uwp
Feature: mysql
Build-Depends: libmysql
Description: Mysql support for POCO
Feature: mariadb
Build-Depends: libmariadb
Description: MariaDB support for POCO
Feature: postgresql
Build-Depends: libpqxx
Description: PostgreSQL support for POCO
Feature: sqlite3
Build-Depends: sqlite3
Description: Sqlite3 support for POCO
Feature: netssl
Build-Depends: openssl
Description: NetSSL support for POCO
Feature: pdf
Build-Depends: libharu
Description: Haru support for POCO

View File

@ -0,0 +1,13 @@
diff --git a/Data/SQLite/cmake/PocoDataSQLiteConfig.cmake b/Data/SQLite/cmake/PocoDataSQLiteConfig.cmake
index 5478bab..c5d6d6d 100644
--- a/Data/SQLite/cmake/PocoDataSQLiteConfig.cmake
+++ b/Data/SQLite/cmake/PocoDataSQLiteConfig.cmake
@@ -5,7 +5,7 @@ if(@POCO_UNBUNDLED@)
if(CMAKE_VERSION VERSION_LESS "3.14")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/V313")
endif()
- find_dependency(SQLite3 REQUIRED)
+ find_dependency(unofficial-sqlite3 REQUIRED)
endif()
include("${CMAKE_CURRENT_LIST_DIR}/PocoDataSQLiteTargets.cmake")

View File

@ -12,6 +12,7 @@ vcpkg_from_github(
# Add the support of arm64-windows
arm64_pcre.patch
fix_dependency.patch
fix-feature-sqlite3.patch
)
file(REMOVE "${SOURCE_PATH}/Foundation/src/pcre.h")

51
ports/poco/vcpkg.json Normal file
View File

@ -0,0 +1,51 @@
{
"name": "poco",
"version-semver": "1.10.1",
"port-version": 4,
"description": "Modern, powerful open source C++ class libraries for building network and internet-based applications that run on desktop, server, mobile and embedded systems.",
"homepage": "https://github.com/pocoproject/poco",
"supports": "!uwp",
"dependencies": [
"expat",
"pcre",
"zlib"
],
"features": {
"mariadb": {
"description": "MariaDB support for POCO",
"dependencies": [
"libmariadb"
]
},
"mysql": {
"description": "Mysql support for POCO",
"dependencies": [
"libmysql"
]
},
"netssl": {
"description": "NetSSL support for POCO",
"dependencies": [
"openssl"
]
},
"pdf": {
"description": "Haru support for POCO",
"dependencies": [
"libharu"
]
},
"postgresql": {
"description": "PostgreSQL support for POCO",
"dependencies": [
"libpqxx"
]
},
"sqlite3": {
"description": "Sqlite3 support for POCO",
"dependencies": [
"sqlite3"
]
}
}
}

View File

@ -4710,7 +4710,7 @@
},
"poco": {
"baseline": "1.10.1",
"port-version": 3
"port-version": 4
},
"podofo": {
"baseline": "0.9.6",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "e5bc44534a1611fd4c61e92eb0e747d038225f02",
"version-semver": "1.10.1",
"port-version": 4
},
{
"git-tree": "cfe171c7ba27d9319ec61d5972aa249df4d025b8",
"version-string": "1.10.1",