1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-06-23 21:45:30 +00:00
Commit Graph

3 Commits

Author SHA1 Message Date
Michael Vetter
3e6926f82a build: transform all options to feature options
According to @eli-schwartz review
https://github.com/profanity-im/profanity/pull/1619#discussion_r760421795:

```
"notifications" is a feature object. When configured with
-Dnotifications=disabled it logs:

Dependency libnotify skipped: feature notifications disabled
[...]
    notifications      : disabled

    and builds without support.

    pgp is a boolean option, which IMHO it shouldn't be. When configured
    with -Dpgp=false it logs:

    Run-time dependency gpgme found: YES 1.16.0
    [...]
        pgp                : false

        which is contradictory and misleading, because it was available
        and detected, just not required. So it tries to build with PGP
        support.

        BUILD_PGP is the Makefile.am define, not the C define. This
        should set HAVE_LIBGPGME.

        Later, in core_sources_c, check if pgp_dep.found() and add
        'src/pgp/gpg.c' as an additional source.
```
2021-12-01 19:06:48 +01:00
Michael Vetter
c001acc13b build: add optional build deps to meson 2021-11-30 19:53:48 +01:00
Michael Vetter
208bcd4269 build: add libnotify option to meson 2021-10-21 22:51:38 +02:00