You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Android.mk 942 B

123456789101112131415161718192021222324252627282930
  1. LOCAL_PATH := $(call my-dir)
  2. # change this folder path to yours
  3. NCNN_INSTALL_PATH := /home/nihui/osd/ncnn-release/ncnn-android-vulkan-lib
  4. include $(CLEAR_VARS)
  5. LOCAL_MODULE := ncnn
  6. LOCAL_SRC_FILES := $(NCNN_INSTALL_PATH)/$(TARGET_ARCH_ABI)/libncnn.a
  7. include $(PREBUILT_STATIC_LIBRARY)
  8. include $(CLEAR_VARS)
  9. LOCAL_MODULE := squeezencnn
  10. LOCAL_SRC_FILES := squeezencnn_jni.cpp
  11. LOCAL_C_INCLUDES := $(NCNN_INSTALL_PATH)/include
  12. LOCAL_STATIC_LIBRARIES := ncnn
  13. LOCAL_CFLAGS := -O2 -fvisibility=hidden -fomit-frame-pointer -fstrict-aliasing -ffunction-sections -fdata-sections -ffast-math
  14. LOCAL_CPPFLAGS := -O2 -fvisibility=hidden -fvisibility-inlines-hidden -fomit-frame-pointer -fstrict-aliasing -ffunction-sections -fdata-sections -ffast-math
  15. LOCAL_LDFLAGS += -Wl,--gc-sections
  16. LOCAL_CFLAGS += -fopenmp
  17. LOCAL_CPPFLAGS += -fopenmp
  18. LOCAL_LDFLAGS += -fopenmp
  19. LOCAL_LDLIBS := -lz -llog -ljnigraphics -lvulkan
  20. include $(BUILD_SHARED_LIBRARY)