Browse Source

AES-NI enabled for Android ARM64

Grant Limberg 4 years ago
parent
commit
8131680735
1 changed files with 4 additions and 0 deletions
  1. 4 0
      java/jni/Android.mk

+ 4 - 0
java/jni/Android.mk

@@ -15,6 +15,10 @@ LOCAL_CFLAGS := -DZT_USE_MINIUPNPC
 ifeq ($(TARGET_ARCH_ABI),x86_64)
 ifeq ($(TARGET_ARCH_ABI),x86_64)
     LOCAL_CXXFLAGS := -maes -mpclmul -msse4.1
     LOCAL_CXXFLAGS := -maes -mpclmul -msse4.1
 endif
 endif
+ifeq ($(TARGET_ARCH_ABI),arm64-v8a)
+    LOCAL_ARM_NEON := true
+    LOCAL_CXXFLAGS := -mfloat-abi=softfp -mfpu=neon
+endif
 
 
 # ZeroTierOne SDK source files
 # ZeroTierOne SDK source files
 LOCAL_SRC_FILES := \
 LOCAL_SRC_FILES := \