mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-24 06:59:27 -05:00
Fix MacOS build
Need to use: CONFIG+=rs_macos11.1 CONFIG+=no_rs_sam3 CONFIG+=no_rs_sam3_libsam3 CONFIG+=c++14
This commit is contained in:
parent
574e67e7d5
commit
36d3f1899e
@ -47,7 +47,9 @@
|
||||
#include <QTcpSocket>
|
||||
#include <QTimer>
|
||||
|
||||
#ifdef RS_USE_I2P_SAM3
|
||||
#include <libsam3.h>
|
||||
#endif
|
||||
|
||||
#define ICON_STATUS_UNKNOWN ":/images/ledoff1.png"
|
||||
#define ICON_STATUS_WORKING ":/images/yellowled.png"
|
||||
@ -1562,6 +1564,7 @@ void ServerPage::syncI2PProxyAddrSam(QString t)
|
||||
|
||||
void ServerPage::taskFinished(taskTicket *&ticket)
|
||||
{
|
||||
#ifdef RS_USE_I2P_SAM3
|
||||
switch (ticket->task) {
|
||||
case autoProxyTask::receiveKey:
|
||||
{
|
||||
@ -1629,6 +1632,7 @@ void ServerPage::taskFinished(taskTicket *&ticket)
|
||||
|
||||
delete ticket;
|
||||
ticket = nullptr;
|
||||
#endif //RS_USE_I2P_SAM3
|
||||
}
|
||||
|
||||
void ServerPage::connectionWithoutCert()
|
||||
|
@ -140,6 +140,7 @@ rs_macos10.12:CONFIG -= rs_macos10.11
|
||||
rs_macos10.13:CONFIG -= rs_macos10.11
|
||||
rs_macos10.14:CONFIG -= rs_macos10.11
|
||||
rs_macos10.15:CONFIG -= rs_macos10.11
|
||||
rs_macos11.1:CONFIG -= rs_macos10.11
|
||||
|
||||
# To enable JSON API append the following assignation to qmake command line
|
||||
# "CONFIG+=rs_jsonapi"
|
||||
@ -790,6 +791,13 @@ macx-* {
|
||||
QMAKE_CXXFLAGS += -Wno-nullability-completeness
|
||||
QMAKE_CFLAGS += -Wno-nullability-completeness
|
||||
}
|
||||
rs_macos11.1 {
|
||||
message(***retroshare.pri: Set Target and SDK to MacOS 11.1 )
|
||||
QMAKE_MACOSX_DEPLOYMENT_TARGET=11.1
|
||||
QMAKE_MAC_SDK = macosx11.1
|
||||
QMAKE_CXXFLAGS += -Wno-nullability-completeness
|
||||
QMAKE_CFLAGS += -Wno-nullability-completeness
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -798,6 +806,10 @@ macx-* {
|
||||
INCLUDEPATH += "/usr/local/include"
|
||||
RS_UPNP_LIB = miniupnpc
|
||||
QT += macextras
|
||||
INCLUDEPATH += "/usr/local/opt/openssl/include"
|
||||
QMAKE_LIBDIR += "/usr/local/opt/openssl/lib"
|
||||
QMAKE_LIBDIR += "/usr/local/opt/sqlcipher/lib"
|
||||
QMAKE_LIBDIR += "/usr/local/opt/miniupnpc/lib"
|
||||
}
|
||||
|
||||
# If not yet defined attempt UPnP library autodetection should works at least
|
||||
|
Loading…
Reference in New Issue
Block a user