2015-04-20 18:26:23 -07:00
|
|
|
LOCAL_PATH := $(call my-dir)
|
|
|
|
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
|
|
|
|
LOCAL_MODULE := ZeroTierOneJNI
|
2017-07-17 16:15:13 -07:00
|
|
|
LOCAL_C_INCLUDES := \
|
|
|
|
$(ZT1)/include \
|
|
|
|
$(ZT1)/node \
|
2019-04-22 11:35:35 -07:00
|
|
|
$(ZT1)/osdep
|
2017-07-17 16:15:13 -07:00
|
|
|
|
2019-04-22 11:35:35 -07:00
|
|
|
LOCAL_LDLIBS := -llog
|
2015-07-01 18:13:39 -07:00
|
|
|
# LOCAL_CFLAGS := -g
|
2015-04-20 20:32:29 -07:00
|
|
|
|
2017-07-17 16:15:13 -07:00
|
|
|
LOCAL_CFLAGS := -DZT_USE_MINIUPNPC
|
|
|
|
|
2015-04-20 20:32:29 -07:00
|
|
|
# ZeroTierOne SDK source files
|
2015-04-20 18:26:23 -07:00
|
|
|
LOCAL_SRC_FILES := \
|
2017-07-17 16:15:13 -07:00
|
|
|
$(ZT1)/node/C25519.cpp \
|
2016-09-05 14:42:36 -07:00
|
|
|
$(ZT1)/node/Capability.cpp \
|
2015-04-20 18:26:23 -07:00
|
|
|
$(ZT1)/node/CertificateOfMembership.cpp \
|
2017-02-23 12:47:07 -08:00
|
|
|
$(ZT1)/node/CertificateOfOwnership.cpp \
|
2015-04-20 18:26:23 -07:00
|
|
|
$(ZT1)/node/Identity.cpp \
|
|
|
|
$(ZT1)/node/IncomingPacket.cpp \
|
|
|
|
$(ZT1)/node/InetAddress.cpp \
|
2016-09-05 14:42:36 -07:00
|
|
|
$(ZT1)/node/Membership.cpp \
|
2015-04-20 18:26:23 -07: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-02 19:18:55 -08:00
|
|
|
$(ZT1)/node/Path.cpp \
|
2015-04-20 18:26:23 -07:00
|
|
|
$(ZT1)/node/Peer.cpp \
|
|
|
|
$(ZT1)/node/Poly1305.cpp \
|
2016-10-13 15:18:07 -07:00
|
|
|
$(ZT1)/node/Revocation.cpp \
|
2015-04-20 18:26:23 -07:00
|
|
|
$(ZT1)/node/Salsa20.cpp \
|
|
|
|
$(ZT1)/node/SelfAwareness.cpp \
|
|
|
|
$(ZT1)/node/SHA512.cpp \
|
|
|
|
$(ZT1)/node/Switch.cpp \
|
2016-09-05 14:42:36 -07:00
|
|
|
$(ZT1)/node/Tag.cpp \
|
2015-04-20 18:26:23 -07:00
|
|
|
$(ZT1)/node/Topology.cpp \
|
2017-07-12 11:34:53 -07:00
|
|
|
$(ZT1)/node/Trace.cpp \
|
2017-07-17 16:15:13 -07:00
|
|
|
$(ZT1)/node/Utils.cpp \
|
2019-04-22 11:35:35 -07:00
|
|
|
$(ZT1)/osdep/OSUtils.cpp
|
2015-04-20 18:26:23 -07:00
|
|
|
|
2015-04-20 20:32:29 -07:00
|
|
|
# JNI Files
|
|
|
|
LOCAL_SRC_FILES += \
|
2015-04-23 21:36:33 -07:00
|
|
|
com_zerotierone_sdk_Node.cpp \
|
2015-09-24 16:21:36 -07:00
|
|
|
ZT_jniutils.cpp \
|
2015-09-26 13:47:55 -07:00
|
|
|
ZT_jnilookup.cpp
|
2015-04-20 20:32:29 -07:00
|
|
|
|
2015-04-20 18:26:23 -07:00
|
|
|
include $(BUILD_SHARED_LIBRARY)
|