Skip to content

Commit

Permalink
Merge pull request #14 from ltanyc/macos
Browse files Browse the repository at this point in the history
OSX wallet updates
  • Loading branch information
cmelion authored Feb 12, 2018
2 parents ee500eb + 3a55c51 commit 1538ac0
Show file tree
Hide file tree
Showing 30 changed files with 22 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
docker/data/
src/newyorkcd
src/obj/*.o
21 changes: 11 additions & 10 deletions newyorkc-qt.pro
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ UI_DIR = build
# use: qmake "RELEASE=1"
contains(RELEASE, 1) {
# Mac: compile for maximum compatibility (10.5, 32-bit)
macx:QMAKE_CXXFLAGS += -mmacosx-version-min=10.5 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk
macx:QMAKE_CFLAGS += -mmacosx-version-min=10.5 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk
macx:QMAKE_LFLAGS += -mmacosx-version-min=10.5 -arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk
macx:QMAKE_CXXFLAGS += -mmacosx-version-min=10.7 -arch i386 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
macx:QMAKE_CFLAGS += -mmacosx-version-min=10.7 -arch i386 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
macx:QMAKE_LFLAGS += -mmacosx-version-min=10.7 -arch i386 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk
!windows:!macx {
# Linux: static link
LIBS += -Wl,-Bstatic
Expand Down Expand Up @@ -307,31 +307,31 @@ isEmpty(BOOST_THREAD_LIB_SUFFIX) {
}

isEmpty(BDB_LIB_PATH) {
macx:BDB_LIB_PATH = /usr/local/Cellar/berkeley-db/5.3.21/lib/
macx:BDB_LIB_PATH = /usr/local/Cellar/berkeley-db/5.3.28/lib/
}

isEmpty(BDB_LIB_SUFFIX) {
macx:BDB_LIB_SUFFIX = -5.3
}

isEmpty(BDB_INCLUDE_PATH) {
macx:BDB_INCLUDE_PATH = /usr/local/Cellar/berkeley-db/5.3.21/include/
macx:BDB_INCLUDE_PATH = /usr/local/Cellar/berkeley-db/5.3.28/include/
}

isEmpty(BOOST_LIB_PATH) {
macx:BOOST_LIB_PATH = /usr/local/Cellar/boost/1.55.0/lib/
macx:BOOST_LIB_PATH = /usr/local/Cellar/boost@1.55/1.55.0_1/lib/
}

isEmpty(BOOST_INCLUDE_PATH) {
macx:BOOST_LIB_PATH = /usr/local/Cellar/boost/1.55.0/include/
macx:BOOST_INCLUDE_PATH = /usr/local/Cellar/boost@1.55/1.55.0_1/include/
}

isEmpty(OPENSSL_INCLUDE_PATH) {
macx:OPENSSL_INCLUDE_PATH = /usr/local/Cellar/openssl/1.0.1f/include/
macx:OPENSSL_INCLUDE_PATH = /usr/local/Cellar/openssl/1.0.2n/include/
}

isEmpty(OPENSSL_LIB_PATH) {
macx:OPENSSL_LIB_PATH = /usr/local/Cellar/openssl/1.0.1f/lib/
macx:OPENSSL_LIB_PATH = /usr/local/Cellar/openssl/1.0.2n/lib/
}

windows:LIBS += -lws2_32 -lshlwapi -lmswsock
Expand Down Expand Up @@ -376,4 +376,5 @@ contains(RELEASE, 1) {
}
}

system($$QMAKE_LRELEASE -silent $$_PRO_FILE_)
system($$QMAKE_LRELEASE -silent $$_PRO_FILE_)

4 changes: 4 additions & 0 deletions src/makefile.osx
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,15 @@ CXX=llvm-g++
DEPSDIR=/usr/local

INCLUDEPATHS= \
-I/usr/local/opt/openssl/include \
-I/usr/local/opt/berkeley-db/include \
-I"$(CURDIR)" \
-I"$(CURDIR)"/obj \
-I"$(DEPSDIR)/include"

LIBPATHS= \
-L/usr/local/opt/openssl/lib \
-L/usr/local/opt/berkeley-db/lib \
-L"$(DEPSDIR)/lib"

USE_UPNP:=1
Expand Down
6 changes: 5 additions & 1 deletion src/net.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1032,10 +1032,14 @@ void ThreadMapPort2(void* parg)
#ifndef UPNPDISCOVER_SUCCESS
/* miniupnpc 1.5 */
devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0);
#else
#elif MINIUPNPC_API_VERSION < 14
/* miniupnpc 1.6 */
int error = 0;
devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, &error);
#else
/* miniupnpc 1.9 */
int error = 0;
devlist = upnpDiscover(2000, multicastif, minissdpdpath, 0, 0, 2, &error);
#endif

struct UPNPUrls urls;
Expand Down
Binary file removed src/newyorkcd
Binary file not shown.
Binary file removed src/obj/addrman.o
Binary file not shown.
Binary file removed src/obj/bitcoinrpc.o
Binary file not shown.
Binary file removed src/obj/checkpoints.o
Binary file not shown.
Binary file removed src/obj/crypter.o
Binary file not shown.
Binary file removed src/obj/db.o
Binary file not shown.
Binary file removed src/obj/init.o
Binary file not shown.
Binary file removed src/obj/irc.o
Binary file not shown.
Binary file removed src/obj/key.o
Binary file not shown.
Binary file removed src/obj/keystore.o
Binary file not shown.
Binary file removed src/obj/main.o
Binary file not shown.
Binary file removed src/obj/net.o
Binary file not shown.
Binary file removed src/obj/netbase.o
Binary file not shown.
Binary file removed src/obj/noui.o
Binary file not shown.
Binary file removed src/obj/protocol.o
Binary file not shown.
Binary file removed src/obj/rpcdump.o
Binary file not shown.
Binary file removed src/obj/rpcnet.o
Binary file not shown.
Binary file removed src/obj/rpcrawtransaction.o
Binary file not shown.
Binary file removed src/obj/script.o
Binary file not shown.
Binary file removed src/obj/scrypt.o
Binary file not shown.
Binary file removed src/obj/sync.o
Binary file not shown.
Binary file removed src/obj/util.o
Binary file not shown.
Binary file removed src/obj/version.o
Binary file not shown.
Binary file removed src/obj/wallet.o
Binary file not shown.
Binary file removed src/obj/walletdb.o
Binary file not shown.
Binary file modified src/qt/res/icons/bitcoin.icns
Binary file not shown.

0 comments on commit 1538ac0

Please sign in to comment.