Android.mk 785 B

12345678910111213141516171819202122232425262728
  1. # Makefile for native JNI libraries. To be built with ndk-build.
  2. #
  3. # To view the commands that will be run when building the application, run
  4. #
  5. # ndk-build -B --dry-run
  6. #
  7. # NOTE: Do not use `$(wildcard ...)` in this script! It makes the linking order
  8. # non-deterministic.
  9. LOCAL_PATH := $(call my-dir)
  10. TARGET_PLATFORM := android-33
  11. # libnacl
  12. include $(CLEAR_VARS)
  13. LOCAL_MODULE := nacl-jni
  14. LOCAL_SRC_FILES := $(LOCAL_PATH)/nacl/salsa20-jni.c
  15. LOCAL_SRC_FILES += $(LOCAL_PATH)/nacl/poly1305-jni.c
  16. LOCAL_SRC_FILES += $(LOCAL_PATH)/nacl/curve25519-jni.c
  17. LOCAL_SRC_FILES += $(LOCAL_PATH)/nacl/smult_donna.c
  18. LOCAL_SRC_FILES += $(LOCAL_PATH)/nacl/smult_donna-c64.c
  19. LOCAL_LDFLAGS += -Wl,--build-id=none # Reproducible builds
  20. include $(BUILD_SHARED_LIBRARY)