--libdir=lib/$(DEB_HOST_MULTIARCH) --bindir=lib/nntrainer/bin \
--includedir=include -Dinstall-app=true \
-Dreduce-tolerance=$(ENABLE_REDUCE_TOLERANCE) \
- -Denable-debug=$(ENABLE_DEBUG) build
+ -Denable-debug=$(ENABLE_DEBUG) \
+ -Dml-api-support=enabled -Denable-nnstreamer-tensor-filter=true \
+ build
override_dh_auto_build:
ninja -C build
option('enable-test', type: 'boolean', value: true)
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)
option('enable-cublas', type: 'boolean', value: false)
option('enable-openmp', type: 'boolean', value: true)
+# ml-api dependency (to enable, install capi-inference from github.com/nnstreamer/api )
+# To inter-operate with nnstreamer and ML-API packages, you need to enable this.
+# If this is disabled, related options (capi-ml-*) are ignored.
+option('ml-api-support', type: 'feature', value: 'auto')
+# @todo : make them use 'feature' and depend on ml-api-support
+option('enable-nnstreamer-tensor-filter', type: 'boolean', value: false)
+option('nnstreamer-subplugin-install-path', type: 'string', value: '/usr/lib/nnstreamer') # where nnstreamer subplugin should be installed
\ No newline at end of file
%{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} %{configure_subplugin_install_path} %{enable_debug} build
+ %{enable_reduce_tolerance} %{configure_subplugin_install_path} %{enable_debug} \
+ -Dml-api-support=enabled -Denable-nnstreamer-tensor-filter=true \
+ build
ninja -C build %{?_smp_mflags}