1if get_option('remoting') 2 user_hint = 'If you rather not build this, set \'-Dremoting=false\'.' 3 4 if not get_option('backend-drm') or not get_option('renderer-gl') 5 error('Attempting to build the remoting plugin without the required DRM backend and GL renderer. ' + user_hint) 6 endif 7 8 depnames = [ 9 'gstreamer-1.0', 'gstreamer-allocators-1.0', 10 'gstreamer-app-1.0', 'gstreamer-video-1.0', 11 'gobject-2.0', 'glib-2.0' 12 ] 13 deps_remoting = [ dep_libweston_private, dep_libdrm_headers ] 14 foreach depname : depnames 15 dep = dependency(depname, required: false) 16 if not dep.found() 17 error('Remoting plugin requires @0@ which was not found. '.format(depname) + user_hint) 18 endif 19 deps_remoting += dep 20 endforeach 21 22 plugin_remoting = shared_library( 23 'remoting-plugin', 24 'remoting-plugin.c', 25 include_directories: common_inc, 26 dependencies: deps_remoting, 27 name_prefix: '', 28 install: true, 29 install_dir: dir_module_libweston 30 ) 31 env_modmap += 'remoting-plugin.so=@0@;'.format(plugin_remoting.full_path()) 32 install_headers('remoting-plugin.h', subdir: dir_include_libweston_install) 33endif 34