[Bug 794568] New: Meson: Should generate a .pc file for each plugin

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Wed Mar 21 15:32:21 UTC 2018


https://bugzilla.gnome.org/show_bug.cgi?id=794568

            Bug ID: 794568
           Summary: Meson: Should generate a .pc file for each plugin
    Classification: Platform
           Product: GStreamer
           Version: 1.12.x
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gstreamer (core)
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: xclaesse at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

Currently static builds of GStreamer rely on libtool's .la files to get the
list of libraries a plugin depends on and pull them when doing a static build.
Meson won't generate those .la files and thus static link is close to
impossible, as far as I understand.

I think the proper solution in a post-autotools world is to rely on .pc file,
and this we need one for each plugin. Lucky enough meson has a generator for pc
files that will deal with dependencies automatically, so that's pretty much a
one liner.

I guess we should install them in /usr/lib/gstreamer-1.0/pkgconfig with names
like gstapp.pc to match the library name with 'lib' prefix and '.so' suffix
removed.

Maybe we could get a "generate_pc_file: true" arg added to the library() method
in meson to autogen them all.

Does that make sense?

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list