mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-26 07:16:11 -05:00
patch from serhaf to fix auto-detection of sqlcipher
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7445 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
eb22610145
commit
e7489ea2dc
@ -75,8 +75,19 @@ linux-* {
|
||||
gxs {
|
||||
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.
|
||||
LIBS += ../../../lib/sqlcipher/.libs/libsqlcipher.a
|
||||
SQLCIPHER_OK = $$system(pkg-config --exists sqlcipher && echo yes)
|
||||
isEmpty(SQLCIPHER_OK) {
|
||||
# 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) {
|
||||
message(../../../lib/sqlcipher/.libs/libsqlcipher.a does not exist)
|
||||
error(Please fix this and try again. Will stop now.)
|
||||
}
|
||||
|
||||
LIBS += ../../../lib/sqlcipher/.libs/libsqlcipher.a
|
||||
} else {
|
||||
LIBS += -lsqlcipher
|
||||
}
|
||||
}
|
||||
|
||||
LIBS *= -lglib-2.0
|
||||
|
@ -32,8 +32,19 @@ linux-* {
|
||||
LIBS *= -rdynamic
|
||||
|
||||
gxs {
|
||||
# We need a explicit path here, to force using the home version of sqlite3 that really encrypts the database.
|
||||
LIBS += ../../../lib/sqlcipher/.libs/libsqlcipher.a
|
||||
SQLCIPHER_OK = $$system(pkg-config --exists sqlcipher && echo yes)
|
||||
isEmpty(SQLCIPHER_OK) {
|
||||
# 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) {
|
||||
message(../../../lib/sqlcipher/.libs/libsqlcipher.a does not exist)
|
||||
error(Please fix this and try again. Will stop now.)
|
||||
}
|
||||
|
||||
LIBS += ../../../lib/sqlcipher/.libs/libsqlcipher.a
|
||||
} else {
|
||||
LIBS += -lsqlcipher
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user