meson: Generate pkg-config file for qmlgl plugin
authorNirbheek Chauhan <nirbheek@centricular.com>
Fri, 18 Jan 2019 21:09:32 +0000 (02:39 +0530)
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>
Fri, 18 Jan 2019 21:11:25 +0000 (21:11 +0000)
ext/qt/meson.build

index 3338265..18646d2 100644 (file)
@@ -118,13 +118,14 @@ if have_cxx and build_gstgl
     if have_qt_windowing
       # Build it!
       moc_files = qt5_mod.preprocess(moc_headers : moc_headers)
-      library('gstqmlgl', sources, moc_files,
+      gstqmlgl = library('gstqmlgl', sources, moc_files,
         cpp_args : gst_plugins_good_args + qt_defines,
         link_args : noseh_link_args,
         include_directories: [configinc, libsinc],
         dependencies : [glib_deps, gst_dep, gstvideo_dep, gstgl_dep, qt5qml_dep, optional_deps],
         install: true,
         install_dir : plugins_install_dir)
+      pkgconfig.generate(gstqmlgl, install_dir : plugins_pkgconfig_install_dir)
     endif
   endif
 endif