capi_src = []
capi_src += meson.current_source_dir() / 'src' / 'nntrainer.cpp'
-if not nnstreamer_capi_dep.found()
+if not nnstreamer_capi_dep.found() and get_option('platform') != 'android'
error('nnstreamer capi dependency not found for tizen')
endif
LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include
include $(PREBUILT_SHARED_LIBRARY)
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE := nntrainer
+
+LOCAL_SRC_FILES := $(LOCAL_PATH)/lib/$(TARGET_ARCH_ABI)/libnntrainer.so
+LOCAL_EXPORT_C_INCLUDES := $(LOCAL_PATH)/include $(LOCAL_PATH)/include/nntrainer
+
+include $(PREBUILT_SHARED_LIBRARY)
copy: true
)
+# below is list of file that meson acknowledges this is the output of custom target so that
+# this has to be installed by meson
outputs= [
'libc++_shared.so',
'libcapi-nntrainer.so',
'libccapi-nntrainer.so',
- 'libnnstreamer-native.so',
'libnntrainer.so'
]
run_command(meson.source_root() / 'jni' / 'prepare_ml-api.sh', meson.build_root() / 'ml-api-inference', check: true)
ml_api_common_root = meson.build_root() / 'ml-api-inference'
ml_api_common_dep = found_dummy_dep
- nnstreamer_capi_dep = found_dummy_dep
endif
-if get_option('enable-nnstreamer-backbone')
+if get_option('enable-nnstreamer-backbone') and get_option('platform') != 'android'
extra_defines += '-DENABLE_NNSTREAMER_BACKBONE=1'
endif
if get_option('platform') == 'android'
warning('android app is not supported for now, building app skipped')
else
+ # this is needed for reinforcement application. We can move this to reinforecement app dependency
jsoncpp_dep = dependency('jsoncpp') # jsoncpp
libcurl_dep = dependency('libcurl')
if not tflite_dep.found()
layer_deps = []
-if get_option('enable-nnstreamer-backbone')
+# for android, it is disabled until we have support for the nnstreamer package
+if get_option('enable-nnstreamer-backbone') and get_option('platform') != 'android'
if not nnstreamer_capi_dep.found()
error('NNStreamer CAPI dependency not found')
endif