[Android] Add prebuilt android for the built library
authorJihoon Lee <jhoon.it.lee@samsung.com>
Fri, 22 Oct 2021 10:22:51 +0000 (19:22 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Tue, 26 Oct 2021 00:04:49 +0000 (09:04 +0900)
This patch provides prebuilt android when making android zip file

**Self evaluation:**
1. Build test: [X]Passed [ ]Failed [ ]Skipped
2. Run test: [X]Passed [ ]Failed [ ]Skipped

Signed-off-by: Jihoon Lee <jhoon.it.lee@samsung.com>
jni/Android-prebuilt.mk [new file with mode: 0644]
jni/meson.build

diff --git a/jni/Android-prebuilt.mk b/jni/Android-prebuilt.mk
new file mode 100644 (file)
index 0000000..7ef09ae
--- /dev/null
@@ -0,0 +1,9 @@
+LOCAL_PATH := $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := ccapi-nntrainer
+
+LOCAL_SRC_FILES := $(LOCAL_PATH)/lib/arm64-v8a/libccapi-nntrainer.so
+LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
+
+include $(PREBUILT_SHARED_LIBRARY)
index 7462eaf..e032bb8 100644 (file)
@@ -35,6 +35,8 @@ configure_file(input: 'Android.mk.in', output: 'Android.mk',
   configuration: and_conf
 )
 
+install_data(sources: 'Android-prebuilt.mk', rename: 'Android.mk', install_dir: nntrainer_prefix)
+
 configure_file(input: 'Application.mk', output: 'Application.mk',
   copy: true
 )