2015-04-21 01:26:23 +00:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_MODULE := ZeroTierOneJNI
|
2017-07-17 23:15:13 +00:00
|
|
|
LOCAL_C_INCLUDES := \
|
|
|
|
$(ZT1)/include \
|
|
|
|
$(ZT1)/node \
|
|
|
|
$(ZT1)/osdep \
|
|
|
|
$(ZT1)/ext/miniupnpc \
|
|
|
|
$(ZT1)/ext/libnatpmp
|
|
|
|
|
2016-10-13 21:34:54 +00:00
|
|
|
LOCAL_LDLIBS := -llog -latomic
|
2015-07-02 01:13:39 +00:00
|
|
|
# LOCAL_CFLAGS := -g
|
2015-04-21 03:32:29 +00:00
|
|
|
|
2017-07-17 23:15:13 +00:00
|
|
|
LOCAL_CFLAGS := -DZT_USE_MINIUPNPC
|
|
|
|
|
2015-04-21 03:32:29 +00:00
|
|
|
# ZeroTierOne SDK source files
|
2015-04-21 01:26:23 +00:00
|
|
|
LOCAL_SRC_FILES := \
|
2017-07-17 23:15:13 +00:00
|
|
|
$(ZT1)/node/C25519.cpp \
|
2016-09-05 21:42:36 +00:00
|
|
|
$(ZT1)/node/Capability.cpp \
|
2015-04-21 01:26:23 +00:00
|
|
|
$(ZT1)/node/CertificateOfMembership.cpp \
|
2017-02-23 20:47:07 +00:00
|
|
|
$(ZT1)/node/CertificateOfOwnership.cpp \
|
2015-04-21 01:26:23 +00:00
|
|
|
$(ZT1)/node/Identity.cpp \
|
|
|
|
$(ZT1)/node/IncomingPacket.cpp \
|
|
|
|
$(ZT1)/node/InetAddress.cpp \
|
2016-09-05 21:42:36 +00:00
|
|
|
$(ZT1)/node/Membership.cpp \
|
2015-04-21 01:26:23 +00:00
|
|
|
$(ZT1)/node/Multicaster.cpp \
|
|
|
|
$(ZT1)/node/Network.cpp \
|
|
|
|
$(ZT1)/node/NetworkConfig.cpp \
|
|
|
|
$(ZT1)/node/Node.cpp \
|
|
|
|
$(ZT1)/node/OutboundMulticast.cpp \
|
|
|
|
$(ZT1)/node/Packet.cpp \
|
2015-11-03 03:18:55 +00:00
|
|
|
$(ZT1)/node/Path.cpp \
|
2015-04-21 01:26:23 +00:00
|
|
|
$(ZT1)/node/Peer.cpp \
|
|
|
|
$(ZT1)/node/Poly1305.cpp \
|
2016-10-13 22:18:07 +00:00
|
|
|
$(ZT1)/node/Revocation.cpp \
|
2015-04-21 01:26:23 +00:00
|
|
|
$(ZT1)/node/Salsa20.cpp \
|
|
|
|
$(ZT1)/node/SelfAwareness.cpp \
|
|
|
|
$(ZT1)/node/SHA512.cpp \
|
|
|
|
$(ZT1)/node/Switch.cpp \
|
2016-09-05 21:42:36 +00:00
|
|
|
$(ZT1)/node/Tag.cpp \
|
2015-04-21 01:26:23 +00:00
|
|
|
$(ZT1)/node/Topology.cpp \
|
2017-07-12 18:34:53 +00:00
|
|
|
$(ZT1)/node/Trace.cpp \
|
2017-07-17 23:15:13 +00:00
|
|
|
$(ZT1)/node/Utils.cpp \
|
|
|
|
$(ZT1)/osdep/OSUtils.cpp \
|
|
|
|
$(ZT1)/osdep/PortMapper.cpp
|
2017-01-26 23:01:32 +00:00
|
|
|
|
2017-07-17 23:15:13 +00:00
|
|
|
# libminiupnpc and libnatpmp files
|
|
|
|
LOCAL_SRC_FILES += \
|
|
|
|
$(ZT1)/ext/miniupnpc/connecthostport.c \
|
|
|
|
$(ZT1)/ext/miniupnpc/igd_desc_parse.c \
|
|
|
|
$(ZT1)/ext/miniupnpc/minisoap.c \
|
|
|
|
$(ZT1)/ext/miniupnpc/minissdpc.c \
|
|
|
|
$(ZT1)/ext/miniupnpc/miniupnpc.c \
|
|
|
|
$(ZT1)/ext/miniupnpc/miniwget.c \
|
|
|
|
$(ZT1)/ext/miniupnpc/minixml.c \
|
|
|
|
$(ZT1)/ext/miniupnpc/portlistingparse.c \
|
|
|
|
$(ZT1)/ext/miniupnpc/receivedata.c \
|
|
|
|
$(ZT1)/ext/miniupnpc/upnpcommands.c \
|
|
|
|
$(ZT1)/ext/miniupnpc/upnpdev.c \
|
|
|
|
$(ZT1)/ext/miniupnpc/upnperrors.c \
|
|
|
|
$(ZT1)/ext/miniupnpc/upnpreplyparse.c \
|
|
|
|
$(ZT1)/ext/libnatpmp/natpmp.c \
|
|
|
|
$(ZT1)/ext/libnatpmp/getgateway.c
|
2015-04-21 01:26:23 +00:00
|
|
|
|
2015-04-21 03:32:29 +00:00
|
|
|
# JNI Files
|
|
|
|
LOCAL_SRC_FILES += \
|
2015-04-24 04:36:33 +00:00
|
|
|
com_zerotierone_sdk_Node.cpp \
|
2015-09-24 23:21:36 +00:00
|
|
|
ZT_jniutils.cpp \
|
2015-09-26 20:47:55 +00:00
|
|
|
ZT_jnilookup.cpp
|
2015-04-21 03:32:29 +00:00
|
|
|
|
2015-04-21 01:26:23 +00:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|