From 0388702f3d07524e871e16760063b8fa2e4f6505 Mon Sep 17 00:00:00 2001 From: csoler Date: Sun, 8 Sep 2019 13:57:38 +0200 Subject: [PATCH] attempt to fix compilation on macOS --- retroshare-service/src/retroshare-service.pro | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/retroshare-service/src/retroshare-service.pro b/retroshare-service/src/retroshare-service.pro index 612288d9b..357e1ce1b 100644 --- a/retroshare-service/src/retroshare-service.pro +++ b/retroshare-service/src/retroshare-service.pro @@ -40,3 +40,25 @@ unix { target.path = "$${RS_BIN_DIR}" INSTALLS += target } + +macx { + # ENABLE THIS OPTION FOR Univeral Binary BUILD. + #CONFIG += ppc x86 + #QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.4 + LIBS += -lz + #LIBS += -lssl -lcrypto -lz -lgpgme -lgpg-error -lassuan + + for(lib, LIB_DIR):exists($$lib/libminiupnpc.a){ LIBS += $$lib/libminiupnpc.a} + + LIBS += -framework CoreFoundation + LIBS += -framework Security + LIBS += -framework Carbon + + for(lib, LIB_DIR):LIBS += -L"$$lib" + for(bin, BIN_DIR):LIBS += -L"$$bin" + + DEPENDPATH += . $$INC_DIR + INCLUDEPATH += . $$INC_DIR +} + +