summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-07-10 22:22:26 +0530
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-07-10 20:04:52 +0000
commitc24f23c6700655720475437d5bc37beb007bcb04 (patch)
tree9b0adb39e703fbc8d5f8b1771478bfd56f76a0fd
parent24deb8687ec8b431fde398e0d973a16fc30a4122 (diff)
cerbero: Ship plugin .pc files for all modules
We use the .la entries for this. This will always be correct because we generate the .la files from the .pc files in the first place. Fixes https://gitlab.freedesktop.org/gstreamer/cerbero/-/issues/157 Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/550>
-rw-r--r--cerbero/build/filesprovider.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/cerbero/build/filesprovider.py b/cerbero/build/filesprovider.py
index d67960f6..45b056da 100644
--- a/cerbero/build/filesprovider.py
+++ b/cerbero/build/filesprovider.py
@@ -319,6 +319,11 @@ class FilesProvider(object):
f = Path(f)
return str(f.with_name(f.name[3:]))
+ @staticmethod
+ def _get_plugin_pc(f):
+ f = Path(f)
+ return str(f.parent / 'pkgconfig' / (f.name[3:-3] + '.pc'))
+
def _search_files(self, files):
'''
Search plugin files and arbitrary files in the prefix, doing the
@@ -343,6 +348,11 @@ class FilesProvider(object):
m = self._FILES_STATIC_PLUGIN_REGEX.match(f)
if m:
fs += self._search_pdb_files(f, ''.join(m.groups()))
+ # For plugins, the .la file is generated using the .pc file, but we
+ # don't add the .pc to files_devel. It has the same name, so we can
+ # add it using the .la entry.
+ if f.startswith('lib/gstreamer-1.0/') and f.endswith('.la'):
+ fs.append(self._get_plugin_pc(f))
# fill directories
dirs = [x for x in fs if
os.path.isdir(os.path.join(self.config.prefix, x))]