diff options
Diffstat (limited to 'recipes')
-rw-r--r-- | recipes/libvpx.recipe | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/recipes/libvpx.recipe b/recipes/libvpx.recipe index 0985d049..de808cc2 100644 --- a/recipes/libvpx.recipe +++ b/recipes/libvpx.recipe @@ -15,7 +15,6 @@ class Recipe(recipe.Recipe): licenses = [{License.BSD: ['LICENSE'], License.Misc: ['PATENTS']}] btype = BuildType.MESON - library_type = LibraryType.STATIC meson_options = { 'size_limit': '16384x16384', 'unit_tests': 'disabled', @@ -44,14 +43,11 @@ class Recipe(recipe.Recipe): # make sure the linker uses the correct stdlib when building with # 10.13 which makes the usage of libstdc++ a hard error. self.append_env('LDFLAGS', '-stdlib=libc++') - if self.config.target_platform == Platform.DARWIN: - self.library_type = LibraryType.SHARED - elif self.config.target_platform == Platform.IOS: - self.library_type = LibraryType.STATIC - elif self.config.target_platform == Platform.WINDOWS: - self.library_type = LibraryType.STATIC - elif self.config.target_platform == Platform.ANDROID: + + if self.config.target_platform in (Platform.IOS, Platform.ANDROID, Platform.WINDOWS): self.library_type = LibraryType.STATIC + + if self.config.target_platform == Platform.ANDROID: # See https://gitlab.freedesktop.org/pixman/pixman/-/merge_requests/71 self.meson_options['cpu_features_path'] = os.path.join(self.config.toolchain_prefix, 'sources', 'android', 'cpufeatures') |