1 if get_option('onnx').disabled()
6 onnxrt_dep = dependency('libonnxruntime', version : '>= 1.13.1', required : get_option('onnx'))
9 onnxrt_include_root = onnxrt_dep.get_variable('includedir')
10 onnxrt_includes = [onnxrt_include_root / 'core/session', onnxrt_include_root / 'core']
13 compiler = meson.get_compiler('cpp')
14 if compiler.has_header(onnxrt_include_root / 'core/providers/cuda/cuda_provider_factory.h')
15 onnxrt_dep_args = ['-DGST_ML_ONNX_RUNTIME_HAVE_CUDA']
17 gstonnx = library('gstonnx',
20 'gstonnxobjectdetector.cpp',
22 c_args : gst_plugins_bad_args,
23 cpp_args: onnxrt_dep_args,
24 link_args : noseh_link_args,
25 include_directories : [configinc, libsinc, onnxrt_includes],
26 dependencies : [gstbase_dep, gstvideo_dep, onnxrt_dep, libm],
28 install_dir : plugins_install_dir,