mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
added CONFIG+=NO_SQLCIPHER support to unittests (travis wants this)
This commit is contained in:
parent
9f9221273a
commit
8d15f44c0e
@ -45,24 +45,28 @@ linux-* {
|
|||||||
|
|
||||||
#LIBS += ../../supportlibs/pegmarkdown/lib/libpegmarkdown.a
|
#LIBS += ../../supportlibs/pegmarkdown/lib/libpegmarkdown.a
|
||||||
|
|
||||||
# We need a explicit path here, to force using the home version of sqlite3 that really encrypts the database.
|
contains(CONFIG, NO_SQLCIPHER) {
|
||||||
|
DEFINES *= NO_SQLCIPHER
|
||||||
|
PKGCONFIG *= sqlite3
|
||||||
|
} else {
|
||||||
|
# We need a explicit path here, to force using the home version of sqlite3 that really encrypts the database.
|
||||||
|
|
||||||
SQLCIPHER_OK = $$system(pkg-config --exists sqlcipher && echo yes)
|
SQLCIPHER_OK = $$system(pkg-config --exists sqlcipher && echo yes)
|
||||||
isEmpty(SQLCIPHER_OK) {
|
isEmpty(SQLCIPHER_OK) {
|
||||||
# We need a explicit path here, to force using the home version of sqlite3 that really encrypts the database.
|
# We need a explicit path here, to force using the home version of sqlite3 that really encrypts the database.
|
||||||
|
|
||||||
! exists(../../../lib/sqlcipher/.libs/libsqlcipher.a) {
|
! exists(../../../lib/sqlcipher/.libs/libsqlcipher.a) {
|
||||||
message(../../../lib/sqlcipher/.libs/libsqlcipher.a does not exist)
|
message(../../../lib/sqlcipher/.libs/libsqlcipher.a does not exist)
|
||||||
error(Please fix this and try again. Will stop now.)
|
error(Please fix this and try again. Will stop now.)
|
||||||
}
|
}
|
||||||
|
|
||||||
LIBS += ../../../lib/sqlcipher/.libs/libsqlcipher.a
|
LIBS += ../../../lib/sqlcipher/.libs/libsqlcipher.a
|
||||||
INCLUDEPATH += ../../../lib/sqlcipher/src/
|
INCLUDEPATH += ../../../lib/sqlcipher/src/
|
||||||
INCLUDEPATH += ../../../lib/sqlcipher/tsrc/
|
INCLUDEPATH += ../../../lib/sqlcipher/tsrc/
|
||||||
|
} else {
|
||||||
} else {
|
LIBS += -lsqlcipher
|
||||||
LIBS += -lsqlcipher
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
LIBS *= -lglib-2.0
|
LIBS *= -lglib-2.0
|
||||||
|
Loading…
Reference in New Issue
Block a user