diff options
author | L. E. Segovia <amy@centricular.com> | 2023-09-01 19:54:45 -0300 |
---|---|---|
committer | L. E. Segovia <amy@centricular.com> | 2023-12-03 11:47:35 -0300 |
commit | d00b90ba6ca71faabf1822953536841a9fb8aeec (patch) | |
tree | 5086a8e325ad60b263d9fb59f5dc41c637ddb3a0 /recipes | |
parent | 81c473fcdcf9fa3fe720532456c84cb83ae1434d (diff) |
gst-plugins-rs: Super-strip plugins on Android
With the strip trick from FFmpeg, it's possible to keep only the
gst_plugin_* exports.
Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/1255>
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/gst-plugins-rs.recipe | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/recipes/gst-plugins-rs.recipe b/recipes/gst-plugins-rs.recipe index cfdb6af0..1d463c71 100644 --- a/recipes/gst-plugins-rs.recipe +++ b/recipes/gst-plugins-rs.recipe @@ -1,6 +1,7 @@ # -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python from custom import GStreamer from cerbero.utils import messages as m +from cerbero.utils import shell class Recipe(recipe.Recipe): name = 'gst-plugins-rs' @@ -155,4 +156,9 @@ class Recipe(recipe.Recipe): # if there's a .dll.a it also needs renaming if os.path.exists(src + '.a'): os.copy(src + '.a', dst + '.a') + libraries = [f for f in self.devel_files_list() + if f.endswith('.a')] + for f in libraries: + if self.config.target_platform == Platform.ANDROID: + shell.new_call([self.env['STRIP'], '--wildcard', '--strip-all', '--keep-symbol=gst_plugin_*', f], self.config.prefix, env=self.env) super().post_install() |