File tree Expand file tree Collapse file tree 10 files changed +1112
-0
lines changed
Expand file tree Collapse file tree 10 files changed +1112
-0
lines changed Original file line number Diff line number Diff line change 1+ build
Original file line number Diff line number Diff line change 1+ cmake_minimum_required (VERSION 3.0)
2+ project (qsqlcipher)
3+
4+ find_package (Qt5Sql REQUIRED)
5+ find_package (PkgConfig REQUIRED)
6+ pkg_check_modules(SQLCIPHER REQUIRED sqlcipher)
7+
8+ set (CMAKE_INCLUDE_CURRENT_DIR ON )
9+ set (CMAKE_AUTOMOC ON )
10+
11+ # Arrange output paths so that the plugin is found in the default search path
12+ # relative to the test binary.
13+ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} )
14+ set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /sqldrivers)
15+
16+ add_library (qsqlcipher MODULE
17+ smain.cpp
18+ qt-private /qsql_sqlite.cpp
19+ )
20+
21+ target_include_directories (qsqlcipher PRIVATE
22+ ${Qt5Sql_PRIVATE_INCLUDE_DIRS}
23+ ${SQLCIPHER_INCLUDE_DIRS}
24+ )
25+
26+ target_link_libraries (qsqlcipher
27+ Qt5::Sql
28+ ${SQLCIPHER_LIBRARIES}
29+ )
30+
31+ add_subdirectory (test )
Original file line number Diff line number Diff line change 1+ Qt SQL driver plugin for SQLCipher
2+ ==================================
3+
4+ This is a [ QSqlDriverPlugin] ( http://doc.qt.io/qt-5/qsqldriverplugin.html ) for
5+ [ SQLCipher] ( https://www.zetetic.net/sqlcipher/open-source/ ) . It is quite
6+ simple - it uses Qt's own SQLite driver code but links against SQLCipher
7+ instead of SQLite.
8+
9+ ## Dependencies
10+
11+ - Qt 5
12+ - SQLCipher
13+ - CMake >= 3.0
14+ - pkg-config
15+
16+
17+ ## Tested platforms
18+
19+ - OS X 10.10 Yosemite
20+
21+ - Qt 5.5.0 from Homebrew
22+ - SQLCipher 3.3.0 from Homebrew
23+
24+ - Ubuntu 15.04 Vivid Vervet
25+
26+ - Qt 5.4.1
27+ - SQLCipher 3.2.0
28+ - Also requires `` qtbase5-private-dev `` for Qt's private headers.
29+
30+
31+ ## Deployment
32+
33+ Follow [ Qt's plugin deployment guide] ( http://doc.qt.io/qt-5/deployment-plugins.html ) .
34+ In short, put the plugin at `` sqldrivers/libqsqlcipher.so `` relative to your
35+ executable.
36+
37+ -----
38+
39+ ## Old version
40+
41+ This repository used to contain a different method of achieving the same
42+ result, but which required you to have the full Qt source tree available. That
43+ code is available in the `` old `` branch of this repository.
44+
Original file line number Diff line number Diff line change 1+ The files in this directory were copied directly from src/sql/drivers/sqlite/
2+ in the qtbase repository. Licensing information is provided at the top of
3+ each file.
You can’t perform that action at this time.
0 commit comments