This patch updates the meson build script for tensor filter sub-plugins
to support the CPU extensions of the OpenVino toolkit.
Signed-off-by: Wook Song <wook16.song@samsung.com>
openvino_deps = []
openvino_cpp_args = []
openvino_deps += dependency('openvino', required: true)
+ if cxx.has_header('ext_list.hpp')
+ openvino_cpuext_lib = cxx.find_library('cpu_extension', required: true)
+ if openvino_cpuext_lib.found()
+ openvino_cpp_args += '-D__OPENVINO_CPU_EXT__=1'
+ openvino_deps += openvino_cpuext_lib
+ else
+ error('Cannot find the shared object, libcpu_extension.')
+ endif
+ endif
filter_sub_openvino_sources = ['tensor_filter_openvino.cc']
nnstreamer_filter_openvino_sources = []