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:
leander-256 2010-05-06 11:06:14 +00:00
parent b0c4022ef1
commit c85fa705ba

View File

@ -1,5 +1,6 @@
TEMPLATE = lib
CONFIG += staticlib release
CONFIG -= qt
TARGET = retroshare
profiling {
@ -33,8 +34,16 @@ linux-* {
INCLUDEPATH += . $${SSL_DIR} $${UPNP_DIR}
#gpg files
HEADERS += /usr/include/gpg-error.h
HEADERS += /usr/include/gpgme.h
system(which gpg-error-config >/dev/null 2>&1) {
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
HEADERS += upnp/UPnPBase.h