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.
|
- LOCAL_PATH := $(call my-dir)
-
- # change this folder path to yours
- NCNN_INSTALL_PATH := /home/nihui/osd/ncnn-release/ncnn-android-vulkan-lib
-
- include $(CLEAR_VARS)
- LOCAL_MODULE := ncnn
- LOCAL_SRC_FILES := $(NCNN_INSTALL_PATH)/$(TARGET_ARCH_ABI)/libncnn.a
- include $(PREBUILT_STATIC_LIBRARY)
-
- include $(CLEAR_VARS)
-
- LOCAL_MODULE := squeezencnn
- LOCAL_SRC_FILES := squeezencnn_jni.cpp
-
- LOCAL_C_INCLUDES := $(NCNN_INSTALL_PATH)/include
-
- LOCAL_STATIC_LIBRARIES := ncnn
-
- LOCAL_CFLAGS := -O2 -fvisibility=hidden -fomit-frame-pointer -fstrict-aliasing -ffunction-sections -fdata-sections -ffast-math
- LOCAL_CPPFLAGS := -O2 -fvisibility=hidden -fvisibility-inlines-hidden -fomit-frame-pointer -fstrict-aliasing -ffunction-sections -fdata-sections -ffast-math
- LOCAL_LDFLAGS += -Wl,--gc-sections
-
- LOCAL_CFLAGS += -fopenmp
- LOCAL_CPPFLAGS += -fopenmp
- LOCAL_LDFLAGS += -fopenmp
-
- LOCAL_LDLIBS := -lz -llog -ljnigraphics -lvulkan
-
- include $(BUILD_SHARED_LIBRARY)
|