[Ext/Filter/Meson] Update meson.build for the OpenVino sub-plugin
authorWook Song <wook16.song@samsung.com>
Thu, 2 Jan 2020 07:14:58 +0000 (16:14 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 7 Jan 2020 01:48:27 +0000 (10:48 +0900)
This patch updates the meson build script for the tensor filter
sub-plugins to support OpenVino.

Signed-off-by: Wook Song <wook16.song@samsung.com>
ext/nnstreamer/tensor_filter/meson.build
meson_options.txt

index d70602c..6fc3ac5 100644 (file)
@@ -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
index 1c36db6..5809aee 100644 (file)
@@ -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)