Sun, 23 Oct 2022 22:21:46 -0500
Flatten Meson build files
We use a new enough version that we can take advantage of a few shortcuts so that entire files don't need to be wrapped in a huge if.
Also, passing the dependency object directly to summary prints `YES`+the version, instead of just `YES`. Unfortunately, there's a bug with using a disabler, so some of them can't do that ([yet](https://github.com/mesonbuild/meson/pull/10949)).
Testing Done:
Configured with defaults and configured with
```
$ meson setup \
-Davahi=disabled \
-Dconsoleui=false \
-Dgtkui=false \
-Dintrospection=false \
-Dkwallet=disabled \
-Dlibgadu=disabled \
-Dlibsecret=disabled \
-Dmeanwhile=disabled \
-Dsilc=disabled \
-Dx=false \
-Dzephyr=disabled \
-Dunity-integration=disabled \
-Dgplugin:lua=false \
-Dgplugin:python3=false \
-Dgplugin:vapi=false \
-Ddynamic-prpls=bonjour
```
to disable almost everything.
Reviewed at https://reviews.imfreedom.org/r/1953/
kwallet_moc = qt5.preprocess( moc_headers: 'purplekwallet.h', dependencies: qt5_dep, ) kwallet_sources = [ 'purplekwallet.cpp', 'purplekwallet.h', kwallet_moc, ] kwallet_plugin = library('purplekwallet', kwallet_sources, c_args : ['-DG_LOG_USE_STRUCTURED', '-DG_LOG_DOMAIN="Purple-KWalletKeyring"'], dependencies : [kwallet, qt5_dep, libpurple_dep], name_prefix : '', install : true, install_dir : PURPLE_PLUGINDIR) devenv.append('PURPLE_PLUGIN_PATH', meson.current_build_dir())