-/usr/lib/*/nnstreamer/filters/libnnstreamer_filter_nntrainer.so
+/usr/lib/nnstreamer/filters/libnnstreamer_filter_nntrainer.so
option('enable-logging', type: 'boolean', value: true)
option('enable-tizen-feature-check', type: 'boolean', value: true)
option('enable-nnstreamer-tensor-filter', type: 'boolean', value: true)
+option('nnstreamer-subplugin-install-path', type: 'string', value: '/usr/lib/nnstreamer') # where nnstreamer subplugin should be installed
option('enable-nnstreamer-backbone', type: 'boolean', value: true)
option('enable-tflite-backbone', type: 'boolean', value: true)
option('enable-profile', type: 'boolean', value: false)
nnstreamer_filter_nntrainer_deps = [glib_dep, gmodule_dep, gst_dep, nntrainer_ccapi_dep, nnstreamer_dep]
nnstreamer_libdir = nntrainer_prefix / get_option('libdir')
-subplugin_install_prefix = nnstreamer_libdir / 'nnstreamer'
+subplugin_install_prefix = get_option('nnstreamer-subplugin-install-path')
filter_subplugin_install_dir = subplugin_install_prefix / 'filters'
shared_library('nnstreamer_filter_nntrainer',
# Execute gbs with --define "testcoverage 1" in case that you must get unittest coverage statistics
%define use_cblas 1
%define nnstreamer_filter 1
+%define nnstreamer_subplugin_path /usr/lib/nnstreamer
%define use_gym 0
%define support_ccapi 1
%define support_nnstreamer_backbone 1
%define nntrainerapplicationdir %{_libdir}/nntrainer/bin
%define gen_input $(pwd)/test/input_gen/genInput.py
%define support_data_augmentation_opencv 1
+%define configure_subplugin_install_path -Dnnstreamer-subplugin-install-path=%{nnstreamer_subplugin_path}
%bcond_with tizen
%{enable_gym} %{enable_nnstreamer_tensor_filter} %{enable_profile} \
%{enable_nnstreamer_backbone} %{enable_tflite_backbone} \
%{enable_tflite_interpreter} %{capi_ml_pkg_dep_resolution} \
- %{enable_reduce_tolerance} %{enable_debug} build
+ %{enable_reduce_tolerance} %{configure_subplugin_install_path} %{enable_debug} build
ninja -C build %{?_smp_mflags}
%manifest nntrainer.manifest
%defattr(-,root,root,-)
%license LICENSE
-%{_libdir}/nnstreamer/filters/libnnstreamer_filter_nntrainer.so
+%{nnstreamer_subplugin_path}/filters/libnnstreamer_filter_nntrainer.so
%files -n nnstreamer-nntrainer-devel-static
%manifest nntrainer.manifest