2018-12-17 00:11:16 +00:00
|
|
|
openexr_dep = dependency('OpenEXR', required: get_option('openexr'))
|
|
|
|
if openexr_dep.found()
|
2019-11-02 15:51:09 +00:00
|
|
|
openexr_cppargs = []
|
|
|
|
|
|
|
|
if openexr_dep.version().version_compare('< 2.4.0')
|
|
|
|
openexr_cppargs += cxx.get_supported_arguments(['-std=c++98'])
|
|
|
|
endif
|
|
|
|
|
2018-12-17 00:11:16 +00:00
|
|
|
gstopenexr = library('gstopenexr',
|
|
|
|
'gstopenexr.c',
|
|
|
|
'gstopenexrdec.cpp',
|
|
|
|
c_args: gst_plugins_bad_args,
|
2019-11-02 15:51:09 +00:00
|
|
|
cpp_args: gst_plugins_bad_args + openexr_cppargs,
|
2018-12-17 00:11:16 +00:00
|
|
|
link_args: noseh_link_args,
|
|
|
|
include_directories: [configinc, libsinc],
|
|
|
|
dependencies: [gstvideo_dep, openexr_dep],
|
|
|
|
install: true,
|
|
|
|
install_dir: plugins_install_dir,
|
|
|
|
)
|
|
|
|
pkgconfig.generate(gstopenexr, install_dir: plugins_pkgconfig_install_dir)
|
2019-05-29 10:28:00 +00:00
|
|
|
plugins += [gstopenexr]
|
2018-12-17 00:11:16 +00:00
|
|
|
endif
|