GNOME Bugzilla – Bug 794627
Meson: drop library_format option to build both shared and static
Last modified: 2018-04-24 23:44:18 UTC
Once this PR gets merged/release in Meson: https://github.com/mesonbuild/meson/pull/2711 Then instead of using shared_library() and static_library() we can use just library() and it will build both shared and static when passing option --default-library=both. Bonus, it will compile only once instead of building everything twice like current GStreamer's library_format=both option.
Created attachment 370060 [details] [review] Meson: Use library() to build both static and shared libs Meson supports building both static and shared libraries in a single library() call. It has the advantage of reusing the same .o objects and thus avoid double compilation.
Nice. We'll also need this in a Meson release though as we don't want to depend on Meson from git.
commit b00b1d536141b00fa196639630b0d43d72b9fb55 Author: Xavier Claessens <xavier.claessens@collabora.com> Date: Fri Mar 23 12:48:37 2018 -0400 Meson: Use library() to build both static and shared libs Meson supports building both static and shared libraries in a single library() call. It has the advantage of reusing the same .o objects and thus avoid double compilation. https://bugzilla.gnome.org/show_bug.cgi?id=794627