1if not add_languages('cpp', native: false, required: get_option('modplug')) 2 subdir_done() 3endif 4 5modplug_dep = dependency('libmodplug', required: get_option('modplug')) 6 7if modplug_dep.found() 8 gstmodplug = library('gstmodplug', 9 'gstmodplug.cc', 10 cpp_args: gst_plugins_bad_args, 11 include_directories: [configinc], 12 dependencies: [gstaudio_dep, modplug_dep, libm], 13 install: true, 14 install_dir: plugins_install_dir, 15 ) 16 pkgconfig.generate(gstmodplug, install_dir: plugins_pkgconfig_install_dir) 17 plugins += [gstmodplug] 18endif 19