mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-21 13:54:15 -07:00
Add binary build of libminiupnpc for Mac x64.
This commit is contained in:
parent
9c87decba6
commit
569c5e77fd
23 changed files with 1628 additions and 5 deletions
|
@ -5,7 +5,7 @@ ifeq ($(origin CXX),default)
|
|||
CXX=$(shell if [ -e /usr/bin/clang++ ]; then echo clang++; else echo g++; fi)
|
||||
endif
|
||||
|
||||
INCLUDES=-I/usr/local/include
|
||||
INCLUDES=
|
||||
DEFS=
|
||||
LIBS=
|
||||
ARCH_FLAGS=-arch x86_64
|
||||
|
@ -13,6 +13,9 @@ ARCH_FLAGS=-arch x86_64
|
|||
include objects.mk
|
||||
OBJS+=osdep/OSXEthernetTap.o
|
||||
|
||||
# Comment out to disable building against shipped libminiupnpc binary for Mac
|
||||
ZT_USE_MINIUPNPC=1
|
||||
|
||||
# Disable codesign since open source users will not have ZeroTier's certs
|
||||
CODESIGN=echo
|
||||
PRODUCTSIGN=echo
|
||||
|
@ -35,7 +38,8 @@ endif
|
|||
|
||||
ifeq ($(ZT_USE_MINIUPNPC),1)
|
||||
DEFS+=-DZT_USE_MINIUPNPC
|
||||
LIBS+=/usr/local/lib/libminiupnpc.a
|
||||
INCLUDES+=-Iext/bin/miniupnpc/include
|
||||
LIBS+=ext/bin/miniupnpc/mac-x64/libminiupnpc.a
|
||||
OBJS+=osdep/UPNPClient.o
|
||||
endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue