From f65e06285bb715eece57b63c15ee501c09928241 Mon Sep 17 00:00:00 2001 From: Wook Song Date: Thu, 2 Jan 2020 16:14:58 +0900 Subject: [PATCH] [Ext/Filter/Meson] Update meson.build for the OpenVino sub-plugin This patch updates the meson build script for the tensor filter sub-plugins to support OpenVino. Signed-off-by: Wook Song --- ext/nnstreamer/tensor_filter/meson.build | 31 +++++++++++++++++++++++++++++++ meson_options.txt | 1 + 2 files changed, 32 insertions(+) diff --git a/ext/nnstreamer/tensor_filter/meson.build b/ext/nnstreamer/tensor_filter/meson.build index d70602c..6fc3ac5 100644 --- a/ext/nnstreamer/tensor_filter/meson.build +++ b/ext/nnstreamer/tensor_filter/meson.build @@ -302,3 +302,34 @@ if get_option('enable-edgetpu') install_dir: filter_subplugin_install_dir ) endif + +if get_option('enable-openvino') + openvino_deps = [] + openvino_cpp_args = [] + openvino_deps += dependency('openvino', required: true) + filter_sub_openvino_sources = ['tensor_filter_openvino.cc'] + + nnstreamer_filter_openvino_sources = [] + foreach s : filter_sub_openvino_sources + nnstreamer_filter_openvino_sources += join_paths(meson.current_source_dir(), s) + endforeach + + nnstreamer_filter_openvino_deps = [glib_dep, gst_dep, nnstreamer_dep, openvino_deps] + + shared_library('nnstreamer_filter_openvino', + nnstreamer_filter_openvino_sources, + cpp_args: openvino_cpp_args, + dependencies: nnstreamer_filter_openvino_deps, + install: false, + install_dir: filter_subplugin_install_dir + ) + + static_library('nnstreamer_filter_openvino', + nnstreamer_filter_openvino_sources, + cpp_args: openvino_cpp_args, + dependencies: nnstreamer_filter_openvino_deps, + install: false, + install_dir: nnstreamer_libdir + ) + +endif diff --git a/meson_options.txt b/meson_options.txt index 1c36db6..5809aee 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -24,3 +24,4 @@ option('enable-cppfilter', type: 'boolean', value: true) option('enable-tizen-sensor', type: 'boolean', value: false) option('enable-edgetpu', type: 'boolean', value: false) option('enable-armnn', type: 'boolean', value: false) +option('enable-openvino', type: 'boolean', value: false) -- 2.7.4