2018-12-17 00:26:47 +00:00
|
|
|
if not add_languages('cpp', required: get_option('openni2'))
|
|
|
|
subdir_done()
|
|
|
|
endif
|
|
|
|
|
|
|
|
openni2_dep = dependency('libopenni2', version: '>= 0.26', required: get_option('openni2'))
|
|
|
|
if openni2_dep.found()
|
|
|
|
gstopenni2 = library('gstopenni2',
|
|
|
|
'gstopenni2.cpp', 'gstopenni2src.cpp',
|
|
|
|
cpp_args: gst_plugins_bad_args,
|
|
|
|
link_args: noseh_link_args,
|
|
|
|
include_directories: [configinc],
|
|
|
|
dependencies: [gstvideo_dep, openni2_dep],
|
|
|
|
install: true,
|
|
|
|
install_dir: plugins_install_dir,
|
|
|
|
)
|
|
|
|
pkgconfig.generate(gstopenni2, install_dir: plugins_pkgconfig_install_dir)
|
2019-05-29 10:28:00 +00:00
|
|
|
plugins += [gstopenni2]
|
2018-12-17 00:26:47 +00:00
|
|
|
endif
|