gstreamer/ext/openni2/meson.build
Nirbheek Chauhan e3d5849225 meson: Pass native: false to add_languages()
This is needed for cross-compiling without a build machine compiler
available. The option was added in 0.54, but we only need this in
Cerbero and it doesn't affect older versions so it should be ok.
Will only cause a spurious warning.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1266>
2020-05-13 13:59:36 +05:30

18 lines
617 B
Meson

if not add_languages('cpp', native: false, 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)
plugins += [gstopenni2]
endif