libpurple/plugins/meson.build

Sun, 23 Oct 2022 22:21:46 -0500

author
Elliott Sales de Andrade <quantum.analyst@gmail.com>
date
Sun, 23 Oct 2022 22:21:46 -0500
changeset 41827
c0c9eeca7d4b
parent 41663
301b7d002cf1
child 42343
8fa022dce28e
permissions
-rw-r--r--

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/

subdir('autoaccept')
subdir('buddynote')
subdir('idle')
subdir('joinpart')
subdir('keychain-access')
subdir('kwallet', if_found : kwallet)
subdir('libsecret', if_found : libsecret)
subdir('notification-sound')
subdir('psychic')
subdir('purple-toast')
subdir('statenotify')
subdir('wincred')

mercurial