)
endif
-run_command('sh', '-c', 'touch filter_snpe_list', check : true)
if snpe_support_is_available
+ run_command('sh', '-c', 'touch $MESON_BUILD_ROOT/$MESON_SUBDIR/filter_snpe_list', check : true)
filter_sub_snpe_sources = ['tensor_filter_snpe.cc']
snpe_cpp_args = []
install: true,
install_dir: nnstreamer_libdir
)
- run_command('sh', '-c', 'echo "%{_prefix}/lib/nnstreamer/filters/libnnstreamer_filter_snpe.so" >> filter_snpe_list', check : true)
+ run_command('sh', '-c', 'echo "%{_prefix}/lib/nnstreamer/filters/libnnstreamer_filter_snpe.so" >> $MESON_BUILD_ROOT/$MESON_SUBDIR/filter_snpe_list', check : true)
endif
if tensorrt_support_is_available
export NNSTREAMER_CONVERTERS=${NNSTREAMER_BUILD_ROOT_PATH}/ext/nnstreamer/tensor_converter
export NNSTREAMER_TRAINERS=${NNSTREAMER_BUILD_ROOT_PATH}/ext/nnstreamer/tensor_trainer
+%define files_opetion_for_snpe_subpackage %( if [ -f %{builddir}/ext/nnstreamer/tensor_filter/filter_snpe_list ] ; then \
+ echo "-f %{builddir}/ext/nnstreamer/tensor_filter/filter_snpe_list" ; else echo ""; fi )
%define test_script $(pwd)/packaging/run_unittests_binaries.sh
# if it's tizen && non-TV, run unittest even if "unit_test"==0 for build-time sanity checks.
%if 0%{?snpe_support}
# Workaround: Conditionally enable nnstreamer-snpe rpm package
# when existing actual snpe library (snpe.pc)
-%files snpe -f ext/nnstreamer/tensor_filter/filter_snpe_list
+%files snpe %{files_opetion_for_snpe_subpackage}
%manifest nnstreamer.manifest
%defattr(-,root,root,-)
%endif