mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 12:14:14 +08:00
[libodb-mysql] Fix usage (#16975)
* [libodb-mysql] Fix usage * update version record * Revert changes about target name, add usage * [libodb] Add component mysql * update version record
This commit is contained in:
parent
ff615bb6a9
commit
7c89056c07
@ -1,5 +0,0 @@
|
||||
Source: libodb-mysql
|
||||
Version: 2.4.0-7
|
||||
Homepage: https://www.codesynthesis.com/products/odb/
|
||||
Description: MySQL support for the ODB ORM library
|
||||
Build-Depends: libodb, libmysql
|
@ -18,8 +18,9 @@ file(COPY
|
||||
DESTINATION ${SOURCE_PATH})
|
||||
|
||||
set(MYSQL_INCLUDE_DIR "${CURRENT_INSTALLED_DIR}/include/mysql")
|
||||
set(MYSQL_LIB "${CURRENT_INSTALLED_DIR}/lib/libmysql.lib")
|
||||
set(MYSQL_LIB_DEBUG "${CURRENT_INSTALLED_DIR}/debug/lib/libmysql.lib")
|
||||
find_library(MYSQL_LIB NAMES libmysql mysqlclient PATH_SUFFIXES lib PATHS "${CURRENT_INSTALLED_DIR}" NO_DEFAULT_PATH REQUIRED)
|
||||
find_library(MYSQL_LIB_DEBUG NAMES libmysql mysqlclient PATH_SUFFIXES lib PATHS "${CURRENT_INSTALLED_DIR}/debug" NO_DEFAULT_PATH REQUIRED)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
DISABLE_PARALLEL_CONFIGURE
|
||||
@ -35,11 +36,9 @@ vcpkg_configure_cmake(
|
||||
|
||||
vcpkg_install_cmake()
|
||||
|
||||
file(READ ${CURRENT_PACKAGES_DIR}/debug/share/odb/odb_mysqlConfig-debug.cmake LIBODB_DEBUG_TARGETS)
|
||||
string(REPLACE "\${_IMPORT_PREFIX}" "\${_IMPORT_PREFIX}/debug" LIBODB_DEBUG_TARGETS "${LIBODB_DEBUG_TARGETS}")
|
||||
file(WRITE ${CURRENT_PACKAGES_DIR}/share/odb/odb_mysqlConfig-debug.cmake "${LIBODB_DEBUG_TARGETS}")
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH share/odb TARGET_PATH share/odb)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
|
||||
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
||||
|
4
ports/libodb-mysql/usage
Normal file
4
ports/libodb-mysql/usage
Normal file
@ -0,0 +1,4 @@
|
||||
The package libodb-mysql provides CMake integration:
|
||||
|
||||
find_package(odb CONFIG COMPONENTS libodb mysql REQUIRED)
|
||||
target_link_libraries(main PRIVATE odb::libodb-mysql)
|
11
ports/libodb-mysql/vcpkg.json
Normal file
11
ports/libodb-mysql/vcpkg.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "libodb-mysql",
|
||||
"version": "2.4.0",
|
||||
"port-version": 8,
|
||||
"description": "MySQL support for the ODB ORM library",
|
||||
"homepage": "https://www.codesynthesis.com/products/odb/",
|
||||
"dependencies": [
|
||||
"libmysql",
|
||||
"libodb"
|
||||
]
|
||||
}
|
@ -1,4 +0,0 @@
|
||||
Source: libodb
|
||||
Version: 2.4.0-6
|
||||
Homepage: https://www.codesynthesis.com/products/odb/
|
||||
Description: ODB library, base runtime for the ODB ORM solution
|
@ -1,4 +1,4 @@
|
||||
set(_supported_components libodb sqlite pgsql)
|
||||
set(_supported_components libodb sqlite mysql pgsql)
|
||||
|
||||
foreach(_comp ${odb_FIND_COMPONENTS})
|
||||
if(NOT ";${_supported_components};" MATCHES _comp)
|
||||
|
7
ports/libodb/vcpkg.json
Normal file
7
ports/libodb/vcpkg.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "libodb",
|
||||
"version": "2.4.0",
|
||||
"port-version": 7,
|
||||
"description": "ODB library, base runtime for the ODB ORM solution",
|
||||
"homepage": "https://www.codesynthesis.com/products/odb/"
|
||||
}
|
@ -3289,16 +3289,16 @@
|
||||
"port-version": 0
|
||||
},
|
||||
"libodb": {
|
||||
"baseline": "2.4.0-6",
|
||||
"port-version": 0
|
||||
"baseline": "2.4.0",
|
||||
"port-version": 7
|
||||
},
|
||||
"libodb-boost": {
|
||||
"baseline": "2.4.0-3",
|
||||
"port-version": 0
|
||||
},
|
||||
"libodb-mysql": {
|
||||
"baseline": "2.4.0-7",
|
||||
"port-version": 0
|
||||
"baseline": "2.4.0",
|
||||
"port-version": 8
|
||||
},
|
||||
"libodb-pgsql": {
|
||||
"baseline": "2.4.0-3",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "208d05d2a1a41329632318e2950c1300cf75eb51",
|
||||
"version": "2.4.0",
|
||||
"port-version": 8
|
||||
},
|
||||
{
|
||||
"git-tree": "684fea6cb54563fb4d54b05b259ecb6b5cbd0266",
|
||||
"version-string": "2.4.0-7",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "6be9a8547e11c2b30077c90504c6dc714f854076",
|
||||
"version": "2.4.0",
|
||||
"port-version": 7
|
||||
},
|
||||
{
|
||||
"git-tree": "cc5f10b9764952399ce497cf82615ea730dace28",
|
||||
"version-string": "2.4.0-6",
|
||||
|
Loading…
x
Reference in New Issue
Block a user