Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wcdb-sqlcipher] add new port wcdb-sqlcipher which maintained by WeChat team #41145

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions ports/wcdb-sqlcipher/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#if(EXISTS "${CURRENT_INSTALLED_DIR}/share/libressl/copyright"
# OR EXISTS "${CURRENT_INSTALLED_DIR}/share/boringssl/copyright")
# message(FATAL_ERROR "Can't build openssl if libressl/boringssl is installed. Please remove libressl/boringssl, and try install openssl again if you need it.")
#endif()

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO RightFS/sqlcipher
REF 5f7ef74d1b0134ec505e8341eabcf62170347b68
HEAD_REF wcdb
SHA512 ddd883c48a65873f8160518c932ee21e71c8876972aa708e234bb951b4687d5f96b6cd9b2daf565676af0db91dae3d379269780880d89e52008f81026c077e5a
)

vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(PACKAGE_NAME "sqlcipher")

file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
5 changes: 5 additions & 0 deletions ports/wcdb-sqlcipher/usage
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sqlcipher is compatible with built-in CMake targets:

find_package(sqlcipher REQUIRED)
target_link_libraries(main PRIVATE sqlcipher::sqlcipher)

26 changes: 26 additions & 0 deletions ports/wcdb-sqlcipher/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"name": "wcdb-sqlcipher",
"version": "1.4.6",
"description": "The sqlcipher which is maintained by WeChat team. The repo in homepage is just a wrap for vcpkg",
"homepage": "https://github.com/RightFS/sqlcipher",
"license": "BSD-3-Clause",
"builtin-baseline": "509f71e53f45e46c13fa7935d2f6a45803580c07",
"dependencies": [
{
"name": "openssl",
"version>=": "3.3.2#1"
},
{
"name": "vcpkg-cmake",
"host": true
},
{
"name": "vcpkg-cmake-config",
"host": true
},
{
"name": "vcpkg-cmake-get-vars",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -9512,6 +9512,10 @@
"baseline": "1.31",
"port-version": 1
},
"wcdb-sqlcipher": {
"baseline": "1.4.6",
"port-version": 0
},
"wcslib": {
"baseline": "8.2.1",
"port-version": 0
Expand Down
9 changes: 9 additions & 0 deletions versions/w-/wcdb-sqlcipher.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "01247e29c67beebc3fa19be3e8d691e4c685ecf2",
"version": "1.4.6",
"port-version": 0
}
]
}
Loading