mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 12:45:52 +08:00
[soci] Fix feature mysql (#16296)
* [soci] Fix feature mysql * update version record
This commit is contained in:
parent
eb1ba2a113
commit
99dc49dae7
@ -1,24 +0,0 @@
|
|||||||
Source: soci
|
|
||||||
Version: 4.0.1
|
|
||||||
Port-Version: 1
|
|
||||||
Homepage: https://github.com/SOCI/soci
|
|
||||||
Description: SOCI database access library
|
|
||||||
|
|
||||||
Feature: boost
|
|
||||||
Build-Depends: boost-date-time, boost-fusion, boost-optional, boost-preprocessor, boost-tuple
|
|
||||||
Description: Integration with Boost
|
|
||||||
|
|
||||||
Feature: sqlite3
|
|
||||||
Build-Depends: sqlite3
|
|
||||||
Description: Build sqlite3 backend
|
|
||||||
|
|
||||||
Feature: postgresql
|
|
||||||
Build-Depends: libpq
|
|
||||||
Description: Build postgresql backend
|
|
||||||
|
|
||||||
Feature: odbc
|
|
||||||
Description: Build odbc backend
|
|
||||||
|
|
||||||
Feature: mysql
|
|
||||||
Build-Depends: libmysql
|
|
||||||
Description: Build mysql backend
|
|
13
ports/soci/fix-dependency-libmysql.patch
Normal file
13
ports/soci/fix-dependency-libmysql.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
diff --git a/cmake/modules/FindMySQL.cmake b/cmake/modules/FindMySQL.cmake
|
||||||
|
index 1233568..6110c36 100644
|
||||||
|
--- a/cmake/modules/FindMySQL.cmake
|
||||||
|
+++ b/cmake/modules/FindMySQL.cmake
|
||||||
|
@@ -13,6 +13,8 @@
|
||||||
|
#
|
||||||
|
# Redistribution and use is allowed according to the terms of the BSD license.
|
||||||
|
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
||||||
|
+find_package(libmysql REQUIRED)
|
||||||
|
+return()
|
||||||
|
|
||||||
|
include(CheckCXXSourceCompiles)
|
||||||
|
|
@ -4,6 +4,7 @@ vcpkg_from_github(
|
|||||||
REF 334cc55d9fa7b42d7214a8533a246d637bc92899 #version 4.0.1 commit on 2020.10.19
|
REF 334cc55d9fa7b42d7214a8533a246d637bc92899 #version 4.0.1 commit on 2020.10.19
|
||||||
SHA512 b300b13f68347d78252812e09efffb1735072cf5019940da53366a5cdee997f4b8b03a584a87a95ba764b0a78640ad6eb4966b53f9156280cb452465607afbc7
|
SHA512 b300b13f68347d78252812e09efffb1735072cf5019940da53366a5cdee997f4b8b03a584a87a95ba764b0a78640ad6eb4966b53f9156280cb452465607afbc7
|
||||||
HEAD_REF master
|
HEAD_REF master
|
||||||
|
PATCHES fix-dependency-libmysql.patch
|
||||||
)
|
)
|
||||||
|
|
||||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SOCI_DYNAMIC)
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SOCI_DYNAMIC)
|
||||||
@ -40,7 +41,6 @@ vcpkg_configure_cmake(
|
|||||||
-DSOCI_STATIC=${SOCI_STATIC}
|
-DSOCI_STATIC=${SOCI_STATIC}
|
||||||
-DSOCI_SHARED=${SOCI_DYNAMIC}
|
-DSOCI_SHARED=${SOCI_DYNAMIC}
|
||||||
${_COMPONENT_FLAGS}
|
${_COMPONENT_FLAGS}
|
||||||
|
|
||||||
${MYSQL_OPT}
|
${MYSQL_OPT}
|
||||||
-DWITH_ORACLE=OFF
|
-DWITH_ORACLE=OFF
|
||||||
-DWITH_FIREBIRD=OFF
|
-DWITH_FIREBIRD=OFF
|
||||||
@ -48,6 +48,7 @@ vcpkg_configure_cmake(
|
|||||||
)
|
)
|
||||||
|
|
||||||
vcpkg_install_cmake()
|
vcpkg_install_cmake()
|
||||||
|
vcpkg_copy_pdbs()
|
||||||
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
|
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
|
||||||
# Correct the config file name
|
# Correct the config file name
|
||||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/SOCI.cmake ${CURRENT_PACKAGES_DIR}/share/${PORT}/SOCI-config.cmake)
|
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/SOCI.cmake ${CURRENT_PACKAGES_DIR}/share/${PORT}/SOCI-config.cmake)
|
||||||
@ -56,5 +57,3 @@ file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include ${CURRENT_PACKAGES_DIR
|
|||||||
|
|
||||||
# Handle copyright
|
# Handle copyright
|
||||||
file(INSTALL ${SOURCE_PATH}/LICENSE_1_0.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
file(INSTALL ${SOURCE_PATH}/LICENSE_1_0.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||||
|
|
||||||
vcpkg_copy_pdbs()
|
|
||||||
|
40
ports/soci/vcpkg.json
Normal file
40
ports/soci/vcpkg.json
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
{
|
||||||
|
"name": "soci",
|
||||||
|
"version-string": "4.0.1",
|
||||||
|
"port-version": 2,
|
||||||
|
"description": "SOCI database access library",
|
||||||
|
"homepage": "https://github.com/SOCI/soci",
|
||||||
|
"features": {
|
||||||
|
"boost": {
|
||||||
|
"description": "Integration with Boost",
|
||||||
|
"dependencies": [
|
||||||
|
"boost-date-time",
|
||||||
|
"boost-fusion",
|
||||||
|
"boost-optional",
|
||||||
|
"boost-preprocessor",
|
||||||
|
"boost-tuple"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"mysql": {
|
||||||
|
"description": "Build mysql backend",
|
||||||
|
"dependencies": [
|
||||||
|
"libmysql"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"odbc": {
|
||||||
|
"description": "Build odbc backend"
|
||||||
|
},
|
||||||
|
"postgresql": {
|
||||||
|
"description": "Build postgresql backend",
|
||||||
|
"dependencies": [
|
||||||
|
"libpq"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"sqlite3": {
|
||||||
|
"description": "Build sqlite3 backend",
|
||||||
|
"dependencies": [
|
||||||
|
"sqlite3"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -5450,7 +5450,7 @@
|
|||||||
},
|
},
|
||||||
"soci": {
|
"soci": {
|
||||||
"baseline": "4.0.1",
|
"baseline": "4.0.1",
|
||||||
"port-version": 1
|
"port-version": 2
|
||||||
},
|
},
|
||||||
"socket-io-client": {
|
"socket-io-client": {
|
||||||
"baseline": "1.6.1-1",
|
"baseline": "1.6.1-1",
|
||||||
|
@ -1,5 +1,10 @@
|
|||||||
{
|
{
|
||||||
"versions": [
|
"versions": [
|
||||||
|
{
|
||||||
|
"git-tree": "8127c6d88c6b673066ea41b061dd79d600c442d4",
|
||||||
|
"version-string": "4.0.1",
|
||||||
|
"port-version": 2
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"git-tree": "b3715b7475ac7a9dd45c1d46c0f72b7c84f67c09",
|
"git-tree": "b3715b7475ac7a9dd45c1d46c0f72b7c84f67c09",
|
||||||
"version-string": "4.0.1",
|
"version-string": "4.0.1",
|
||||||
|
Loading…
Reference in New Issue
Block a user