Since Meson 0.46.0 'default_library' can be set to 'both' when user wants both shared and static libraries.