mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-29 15:43:52 +00:00
Add build files for compiling ZeroTier One SDK for Android targets
Signed-off-by: Grant Limberg <glimberg@gmail.com>
This commit is contained in:
parent
ed107c4daf
commit
f40eb665c5
2
.gitignore
vendored
2
.gitignore
vendored
@ -44,3 +44,5 @@
|
||||
/testnet/local-testnet/*/local.conf
|
||||
/testnet/local-testnet/*/networks.d
|
||||
/netconf/netconf.db
|
||||
java/obj/
|
||||
java/libs/
|
||||
|
4
java/README.md
Normal file
4
java/README.md
Normal file
@ -0,0 +1,4 @@
|
||||
ZeroTier One SDK - Android JNI Wrapper
|
||||
=====
|
||||
|
||||
To Build: <path to Android-ndk>/ndk-build ZT1=<path to ZeroTierOne root>
|
34
java/jni/Android.mk
Normal file
34
java/jni/Android.mk
Normal file
@ -0,0 +1,34 @@
|
||||
LOCAL_PATH := $(call my-dir)
|
||||
|
||||
include $(CLEAR_VARS)
|
||||
|
||||
LOCAL_MODULE := ZeroTierOneJNI
|
||||
LOCAL_SRC_FILES := \
|
||||
$(ZT1)/ext/lz4/lz4.c \
|
||||
$(ZT1)/ext/json-parser/json.c \
|
||||
$(ZT1)/ext/http-parser/http_parser.c \
|
||||
$(ZT1)/node/C25519.cpp \
|
||||
$(ZT1)/node/CertificateOfMembership.cpp \
|
||||
$(ZT1)/node/Defaults.cpp \
|
||||
$(ZT1)/node/Dictionary.cpp \
|
||||
$(ZT1)/node/Identity.cpp \
|
||||
$(ZT1)/node/IncomingPacket.cpp \
|
||||
$(ZT1)/node/InetAddress.cpp \
|
||||
$(ZT1)/node/Multicaster.cpp \
|
||||
$(ZT1)/node/Network.cpp \
|
||||
$(ZT1)/node/NetworkConfig.cpp \
|
||||
$(ZT1)/node/Node.cpp \
|
||||
$(ZT1)/node/OutboundMulticast.cpp \
|
||||
$(ZT1)/node/Packet.cpp \
|
||||
$(ZT1)/node/Peer.cpp \
|
||||
$(ZT1)/node/Poly1305.cpp \
|
||||
$(ZT1)/node/Salsa20.cpp \
|
||||
$(ZT1)/node/SelfAwareness.cpp \
|
||||
$(ZT1)/node/SHA512.cpp \
|
||||
$(ZT1)/node/Switch.cpp \
|
||||
$(ZT1)/node/Topology.cpp \
|
||||
$(ZT1)/node/Utils.cpp \
|
||||
$(ZT1)/osdep/Http.cpp \
|
||||
$(ZT1)/osdep/OSUtils.cpp
|
||||
|
||||
include $(BUILD_SHARED_LIBRARY)
|
3
java/jni/Application.mk
Normal file
3
java/jni/Application.mk
Normal file
@ -0,0 +1,3 @@
|
||||
APP_ABI := armeabi armeabi-v7a arm64-v8a x86
|
||||
APP_STL := gnustl_static
|
||||
APP_CPPFLAGS += -fexceptions
|
Loading…
x
Reference in New Issue
Block a user