GNOME Bugzilla – Bug 792129
meson: skip optional linux/unix deps that default to true when building on Windows
Last modified: 2018-01-07 12:09:36 UTC
Created attachment 366204 [details] [review] meson: skip optional linux/unix deps that default to true when building on Windows This is a result of getting rid of 'auto' options. It seems a bit silly that one should have to specify -Dselinux=false when building for Windows.
Review of attachment 366204 [details] [review]: lgtm. I tested this under msys2 Is libmount available on macOS?
(In reply to Christoph Reiter (lazka) from comment #1) > Review of attachment 366204 [details] [review] [review]: > > lgtm. I tested this under msys2 > > Is libmount available on macOS? No, libmount is Linux-only, as far as I know.
Review of attachment 366204 [details] [review]: ::: meson.build @@ +1505,3 @@ # pkg-config file below libmount_dep = [] +if get_option('libmount') and host_system != 'windows' I'd flip around the conditions: if host_system != 'windows' and get_option('libmount') here and below; in this case, I'd also check for `linux`, because libmount is Linux-only as far as I know.
Created attachment 366452 [details] [review] meson: skip optional linux deps that default to true when building on Windows (v2)
Comment on attachment 366452 [details] [review] meson: skip optional linux deps that default to true when building on Windows (v2) Pushed as commit 7c8906dcdabf30ac248e0f6838f71a3af9645aa5