Skip to content

Commit

Permalink
[sqlcipher] Fix the sqlcipher.pc file (microsoft#32548)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimwang118 authored Jul 18, 2023
1 parent 93806d3 commit 7f37cd6
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
8 changes: 8 additions & 0 deletions ports/sqlcipher/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ if(NOT SQLITE3_SKIP_TOOLS)
)
endif()

SET(prefix "${CMAKE_INSTALL_PREFIX}")
SET(exec_prefix "\${prefix}")
SET(libdir "\${exec_prefix}/${CMAKE_INSTALL_LIBDIR}")
SET(includedir "\${prefix}/include")
SET(PACKAGE_VERSION "4.5.3")
configure_file("${CMAKE_CURRENT_SOURCE_DIR}/sqlcipher.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/sqlcipher.pc" @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/sqlcipher.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")

install(
TARGETS sqlcipher
EXPORT sqlcipher-targets
Expand Down
1 change: 1 addition & 0 deletions ports/sqlcipher/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,4 @@ file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share

vcpkg_copy_pdbs()
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/tools/${PORT}")
vcpkg_fixup_pkgconfig()
2 changes: 1 addition & 1 deletion ports/sqlcipher/vcpkg.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sqlcipher",
"version": "4.5.3",
"port-version": 1,
"port-version": 2,
"description": "SQLCipher extends the SQLite database library to add security enhancements that make it more suitable for encrypted local data storage.",
"homepage": "https://www.zetetic.net/sqlcipher",
"license": null,
Expand Down
2 changes: 1 addition & 1 deletion versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -7770,7 +7770,7 @@
},
"sqlcipher": {
"baseline": "4.5.3",
"port-version": 1
"port-version": 2
},
"sqlite-modern-cpp": {
"baseline": "3.2-936cd0c8",
Expand Down
5 changes: 5 additions & 0 deletions versions/s-/sqlcipher.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "d270ac9cc648113c540f9f29e9ab0ebece65e369",
"version": "4.5.3",
"port-version": 2
},
{
"git-tree": "1debf9d86243c81b196302225f7c382958240a30",
"version": "4.5.3",
Expand Down

0 comments on commit 7f37cd6

Please sign in to comment.