Android.mk 566 B

123456789101112131415161718192021
  1. LOCAL_PATH := $(call my-dir)
  2. TARGET_PLATFORM := android-26
  3. include $(CLEAR_VARS)
  4. LOCAL_MODULE := scrypt
  5. LOCAL_SRC_FILES := $(wildcard $(LOCAL_PATH)/scrypt/c/*.c)
  6. LOCAL_C_INCLUDES := $(LOCAL_PATH)/scrypt/include
  7. LOCAL_CFLAGS += -DANDROID -DHAVE_CONFIG_H -DANDROID_TARGET_ARCH="$(TARGET_ARCH)"
  8. LOCAL_CFLAGS += -D_FORTIFY_SOURCE=2
  9. LOCAL_LDFLAGS += -lc -llog
  10. include $(BUILD_SHARED_LIBRARY)
  11. include $(CLEAR_VARS)
  12. LOCAL_MODULE := nacl-jni
  13. LOCAL_SRC_FILES := salsa20-jni.c poly1305-jni.c curve25519-jni.c
  14. include $(BUILD_SHARED_LIBRARY)