--- /dev/null
+#------------------------------------------------------
+# MXNet Deep learning framework
+# https://github.com/apache/incubator-mxnet
+#
+# This mk file defines prebuilt libraries for mxnet module.
+# (mxnet core libraries, arm64-v8a only)
+#------------------------------------------------------
+LOCAL_PATH := $(call my-dir)
+
+ifndef MXNET_LIB_PATH
+$(error MXNET_LIB_PATH is not defined!)
+endif
+
+MXNET_PREBUILT_LIBS :=
+
+#------------------------------------------------------
+# mxnet prebuilt shared libraries
+#------------------------------------------------------
+include $(CLEAR_VARS)
+LOCAL_MODULE := mxnet
+LOCAL_SRC_FILES := $(MXNET_LIB_PATH)/libmxnet.so
+include $(PREBUILT_SHARED_LIBRARY)
+MXNET_PREBUILT_LIBS += mxnet
\ No newline at end of file
--- /dev/null
+LOCAL_PATH := $(call my-dir)
+
+MXNET_DIR := $(LOCAL_PATH)/mxnet
+MXNET_INCLUDES := $(MXNET_DIR)/include
+MXNET_LIB_PATH := $(MXNET_DIR)/lib
+
+$(info MXNET_DIR is $(MXNET_DIR))
+$(info MXNET_INCLUDES is $(MXNET_INCLUDES))
+
+#------------------------------------------------------
+# mxnet prebuilt shared libraries
+#------------------------------------------------------
+include $(LOCAL_PATH)/Android-mxnet-prebuilt.mk
+
+#------------------------------------------------------
+# tensor-filter sub-plugin for mxnet
+#------------------------------------------------------
+include $(CLEAR_VARS)
+LOCAL_MODULE := mxnet-subplugin
+LOCAL_SRC_FILES := $(NNSTREAMER_FILTER_MXNET_SRCS)
+LOCAL_CXXFLAGS := -O3 -fPIC -frtti -fexceptions $(NNS_API_FLAGS) $(PYTORCH_FLAGS)
+LOCAL_C_INCLUDES := $(MXNET_INCLUDES) $(NNSTREAMER_INCLUDES) $(GST_HEADERS_COMMON)
+LOCAL_STATIC_LIBRARIES := nnstreamer
+LOCAL_SHARED_LIBRARIES := $(MXNET_PREBUILT_LIBS)
+
+include $(BUILD_STATIC_LIBRARY)
#------------------------------------------------------
# external libs and sub-plugins
#------------------------------------------------------
+
+# MXNET
+NNS_SUBPLUGINS += mxnet-subplugin
+include $(LOCAL_PATH)/Android-mxnet.mk
+
+
ifeq ($(ENABLE_TF_LITE),true)
NNS_API_FLAGS += -DENABLE_TENSORFLOW_LITE=1
NNS_SUBPLUGINS += tensorflow-lite-subplugin
extern void init_filter_torch (void);
#endif
+extern void init_filter_mxnet (void);
+
/**
* @brief External function from GStreamer Android.
*/
#if defined (ENABLE_PYTORCH)
init_filter_torch ();
#endif
+ init_filter_mxnet() ;
#endif /* __ANDROID__ */
nns_is_initilaized = TRUE;
}