Fix compilation for plugins but miss RetroShare-gui library linking.

Get ld: symbol(s) not found for architecture ...
This commit is contained in:
Phenom 2015-12-24 18:54:45 +01:00
parent 3ea2e0f450
commit cb4579e8c7
5 changed files with 85 additions and 1 deletions

View file

@ -103,6 +103,28 @@ win32 {
INCLUDEPATH += . $$INC_DIR
}
macx {
DEFINES += CURL_STATICLIB LIBXML_STATIC LIBXSLT_STATIC LIBEXSLT_STATIC
XML2_FOUND =
for(inc, INC_DIR){
#message(Scanning $$inc)s
exists($$inc/libxml2){
isEmpty( XML2_FOUND) {
message(xml2 is first found here: $$inc .)
INC_DIR += "$$inc/libxml2"
XML2_FOUND = 1
}
}
}
DEPENDPATH += . $$INC_DIRs
INCLUDEPATH += . $$INC_DIR
LIBS = -lcurl -lxml2 -lxslt -lcrypto
error(Missing RetroShare-gui library. Remove Plugins from RetroShare.pro))
}
openbsd-* {
LIBXML2_DIR = /usr/local/include/libxml2
}