mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-13 08:29:32 -05:00
Two different improvements:
- since libretroshare doesn't use Qt at all, we remove it from the CONFIG directive, - adding files in HEADERS doesn't include them for compilation but only for installation. Instead we must use gpg-error-config and gpgme-config to fill correctly INCLUDEPATH. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2856 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
b0c4022ef1
commit
c85fa705ba
@ -1,5 +1,6 @@
|
|||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
CONFIG += staticlib release
|
CONFIG += staticlib release
|
||||||
|
CONFIG -= qt
|
||||||
TARGET = retroshare
|
TARGET = retroshare
|
||||||
|
|
||||||
profiling {
|
profiling {
|
||||||
@ -33,8 +34,16 @@ linux-* {
|
|||||||
INCLUDEPATH += . $${SSL_DIR} $${UPNP_DIR}
|
INCLUDEPATH += . $${SSL_DIR} $${UPNP_DIR}
|
||||||
|
|
||||||
#gpg files
|
#gpg files
|
||||||
HEADERS += /usr/include/gpg-error.h
|
system(which gpg-error-config >/dev/null 2>&1) {
|
||||||
HEADERS += /usr/include/gpgme.h
|
INCLUDEPATH += $$system(gpg-error-config --cflags | sed -e "s/-I//g")
|
||||||
|
} else {
|
||||||
|
message(Could not find gpg-error-config on your system, assuming gpg-error.h is in /usr/include)
|
||||||
|
}
|
||||||
|
system(which gpgme-config >/dev/null 2>&1) {
|
||||||
|
INCLUDEPATH += $$system(gpgme-config --cflags | sed -e "s/-I//g")
|
||||||
|
} else {
|
||||||
|
message(Could not find gpgme-config on your system, assuming gpgme.h is in /usr/include)
|
||||||
|
}
|
||||||
|
|
||||||
#libupnp implementation files
|
#libupnp implementation files
|
||||||
HEADERS += upnp/UPnPBase.h
|
HEADERS += upnp/UPnPBase.h
|
||||||
|
Loading…
Reference in New Issue
Block a user