attempt to fix compilation on macOS

This commit is contained in:
csoler 2019-09-08 13:57:38 +02:00
parent b620b63677
commit 0388702f3d
No known key found for this signature in database
GPG Key ID: 7BCA522266C0804C

View File

@ -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
}