diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2014-11-20 18:32:12 +0530 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-11-24 12:08:42 +0100 |
commit | 54fc21e185b43972d4e3e30c66af798951929b71 (patch) | |
tree | c279ed4a372a70ff8b2c9ace00dbc33ecb8942d9 /recipes/libsrtp.recipe | |
parent | 405f4260e416e5f8b7177046ff3115d0e6919718 (diff) |
libsrtp: Fix build on Windows, and fix library name on OS X
Fixes CI build failure:
https://ci.gstreamer.net/job/cerbero-cross-mingw32/1160/console
Diffstat (limited to 'recipes/libsrtp.recipe')
-rw-r--r-- | recipes/libsrtp.recipe | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/recipes/libsrtp.recipe b/recipes/libsrtp.recipe index 1cf90ced..2a9dbf5b 100644 --- a/recipes/libsrtp.recipe +++ b/recipes/libsrtp.recipe @@ -2,6 +2,7 @@ from cerbero.tools.libtool import LibtoolLibrary from cerbero.utils import shell +import shutil class Recipe(recipe.Recipe): name = 'libsrtp' @@ -17,13 +18,13 @@ class Recipe(recipe.Recipe): def prepare(self): # Don't accidentially build with pcap support self.append_env['ac_cv_lib_pcap_pcap_create'] = 'no' - if self.config.target_platform in (Platform.LINUX, Platform.ANDROID): - # libsrtp.so is not built with 'all' - self.make += ' all libsrtp.so' - elif self.config.target_platform in (Platform.DARWIN, Platform.IOS): - self.make += ' all libsrtp.dylib' - elif self.config.target_platform == Platform.WINDOWS: - self.make += ' all libsrtp.dll' + self.make += ' all shared_library' + + def install(self): + super(Recipe, self).install() + libdir = os.path.join(self.config.prefix, + 'lib' + self.config.lib_suffix) + shutil.copy(os.path.join(self.build_dir, 'srtp.def'), libdir) def post_install(self): libtool_la = LibtoolLibrary('srtp', 0, None, None, self.config.libdir, |