latest OSX patches

This commit is contained in:
Jenster 2015-11-20 08:10:59 -08:00
parent 47328a4ec9
commit 699299ae8a
7 changed files with 28 additions and 8 deletions

View File

@ -31,9 +31,14 @@ libmicrohttpd{
linux { linux {
CONFIG += link_pkgconfig CONFIG += link_pkgconfig
PKGCONFIG *= libmicrohttpd PKGCONFIG *= libmicrohttpd
} else {
mac {
INCLUDEPATH += /usr/local/include
LIBS *= /usr/local/lib/libmicrohttpd.a
} else { } else {
LIBS *= -lmicrohttpd LIBS *= -lmicrohttpd
} }
}
SOURCES += \ SOURCES += \
api/ApiServerMHD.cpp api/ApiServerMHD.cpp

View File

@ -225,7 +225,9 @@ private:
void handleLowLevelTransactionAckItem(RsGRouterTransactionAcknItem*) ; void handleLowLevelTransactionAckItem(RsGRouterTransactionAcknItem*) ;
static Sha1CheckSum computeDataItemHash(RsGRouterGenericDataItem *data_item); static Sha1CheckSum computeDataItemHash(RsGRouterGenericDataItem *data_item);
#ifdef __APPLE__
public:
#endif
class nullstream: public std::ostream {}; class nullstream: public std::ostream {};
std::ostream& grouter_debug() const std::ostream& grouter_debug() const
@ -234,7 +236,9 @@ private:
return _debug_enabled?(std::cerr):null; return _debug_enabled?(std::cerr):null;
} }
#ifdef __APPLE__
private:
#endif
void routePendingObjects() ; void routePendingObjects() ;
void handleTunnels() ; void handleTunnels() ;
void autoWash() ; void autoWash() ;

View File

@ -274,7 +274,7 @@ mac {
# Beautiful Hack to fix 64bit file access. # Beautiful Hack to fix 64bit file access.
QMAKE_CXXFLAGS *= -Dfseeko64=fseeko -Dftello64=ftello -Dfopen64=fopen -Dvstatfs64=vstatfs QMAKE_CXXFLAGS *= -Dfseeko64=fseeko -Dftello64=ftello -Dfopen64=fopen -Dvstatfs64=vstatfs
UPNPC_DIR = ../../../miniupnpc-1.3 UPNPC_DIR = /usr/local/include
#GPG_ERROR_DIR = ../../../../libgpg-error-1.7 #GPG_ERROR_DIR = ../../../../libgpg-error-1.7
#GPGME_DIR = ../../../../gpgme-1.1.8 #GPGME_DIR = ../../../../gpgme-1.1.8
@ -283,7 +283,7 @@ mac {
#INCLUDEPATH += . $${UPNPC_DIR} $${GPGME_DIR}/src $${GPG_ERROR_DIR}/src #INCLUDEPATH += . $${UPNPC_DIR} $${GPGME_DIR}/src $${GPG_ERROR_DIR}/src
# We need a explicit path here, to force using the home version of sqlite3 that really encrypts the database. # We need a explicit path here, to force using the home version of sqlite3 that really encrypts the database.
LIBS += ../../../lib/libsqlcipher.a LIBS += /usr/local/lib/libsqlcipher.a
#LIBS += -lsqlite3 #LIBS += -lsqlite3
} }

View File

@ -365,7 +365,11 @@ int RsInit::InitRetroShare(int argcIgnored, char **argvIgnored, bool strictCheck
#ifdef LOCALNET_TESTING #ifdef LOCALNET_TESTING
>> parameter('R',"restrict-port" ,portRestrictions ,"port1-port2","Apply port restriction" ,false) >> parameter('R',"restrict-port" ,portRestrictions ,"port1-port2","Apply port restriction" ,false)
#endif #endif
#ifdef __APPLE__
>> help('h',"help","Display this Help") ;
#else
>> help() ; >> help() ;
#endif
as.defaultErrorHandling(true) ; as.defaultErrorHandling(true) ;

View File

@ -141,9 +141,15 @@ namespace
inline OptionHolder(char s, inline OptionHolder(char s,
const char* l, const char* l,
const char* desc); const char* desc);
#ifdef __APPLE__
friend OptionHolder help(char s,
const char* l,
const char* desc);
#else
friend OptionHolder help(char s='h', friend OptionHolder help(char s='h',
const char* l="help", const char* l="help",
const char* desc="Display this help"); const char* desc="Display this help");
#endif
private: private:
std::string shortName_; std::string shortName_;
std::string longName_; std::string longName_;

View File

@ -212,12 +212,12 @@ macx {
CONFIG += version_detail_bash_script CONFIG += version_detail_bash_script
LIBS += -lssl -lcrypto -lz LIBS += -lssl -lcrypto -lz
#LIBS += -lssl -lcrypto -lz -lgpgme -lgpg-error -lassuan #LIBS += -lssl -lcrypto -lz -lgpgme -lgpg-error -lassuan
LIBS += ../../../miniupnpc-1.3/libminiupnpc.a LIBS += /usr/local/lib/libminiupnpc.a
LIBS += -framework CoreFoundation LIBS += -framework CoreFoundation
LIBS += -framework Security LIBS += -framework Security
LIBS += -framework Carbon LIBS += -framework Carbon
INCLUDEPATH += . /usr/local/include INCLUDEPATH += . /usr/local/include
DEFINES *= MAC_IDLE # for idle feature #DEFINES *= MAC_IDLE # for idle feature
CONFIG -= uitools CONFIG -= uitools
} }

View File

@ -96,9 +96,10 @@ macx {
LIBS += -Wl,-search_paths_first LIBS += -Wl,-search_paths_first
LIBS += -lssl -lcrypto -lz LIBS += -lssl -lcrypto -lz
LIBS += ../../../miniupnpc-1.0/libminiupnpc.a LIBS += /usr/local/lib/libminiupnpc.a
LIBS += -framework CoreFoundation LIBS += -framework CoreFoundation
LIBS += -framework Security LIBS += -framework Security
INCLUDEPATH += /usr/local/include
sshserver { sshserver {
LIBS += -L../../../lib LIBS += -L../../../lib