diff options
author | Matthew Waters <matthew@centricular.com> | 2019-03-14 23:37:33 +1100 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2019-03-18 03:23:20 +0530 |
commit | 4d72b4b8f061b30ca51f4f783cbf185a96f9b47c (patch) | |
tree | 503bfc6267d3590d8121ce999bbeb7f4c53d6460 /recipes/ffmpeg.recipe | |
parent | 85ce5b06ada21a4ed304ca08d082aa275d511e01 (diff) |
filesprovider: implement library type selection
Some recipes will never be able to produce both static and shared
libraries on some platforms so we need a way to select the devel library
file list depending on the builds capabilities.
Diffstat (limited to 'recipes/ffmpeg.recipe')
-rw-r--r-- | recipes/ffmpeg.recipe | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/recipes/ffmpeg.recipe b/recipes/ffmpeg.recipe index d0bdfb81..0f7cf50c 100644 --- a/recipes/ffmpeg.recipe +++ b/recipes/ffmpeg.recipe @@ -33,7 +33,9 @@ class Recipe(recipe.Recipe): # Populate self.files_devel files_devel_tpl = ['lib/{}.la', 'lib/pkgconfig/{}.pc', 'include/{}'] # ffmpeg can only build either shared or static on Windows, not both - if self.config.target_platform != Platform.WINDOWS: + if self.config.target_platform == Platform.WINDOWS: + self.library_type = LibraryType.SHARED + else: files_devel_tpl += ['lib/{}.a'] for lib in self.files_libs: self.files_devel += [tpl.format(lib) for tpl in files_devel_tpl] |