Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add meson build system support #1619

Closed
wants to merge 14 commits into from
Closed

Add meson build system support #1619

wants to merge 14 commits into from

Conversation

jubalh
Copy link
Member

@jubalh jubalh commented Nov 30, 2021

It's not yet decided whether we will switch to meson or support both autotools and meson.
Even when switching we will support both systems for some releases so that packagers have time to adjust and we can slowly iron out the meson build files.

Run:
meson build or meson setup --wipe build
Followed by ninja -C build or cd build && ninja.

Take a look at meson_options.txt for the various flags. Enable/disable them with meson build -Domemo=disabled.

Can only build minimal profanity without optional dependencies yet.
Not all functionality from autoconf is in here yet.
@jubalh jubalh added the build label Nov 30, 2021
@jubalh jubalh self-assigned this Nov 30, 2021
meson.build Outdated Show resolved Hide resolved
meson.build Outdated Show resolved Hide resolved
meson.build Show resolved Hide resolved
* Used the wrong define BUILD_PGP instead of HAVE_LIBGPGME
* Need to add the sources conditionally
src/meson.build Outdated Show resolved Hide resolved
src/meson.build Outdated Show resolved Hide resolved
We need to add the header files to the include dir conditionally too.
According to @eli-schwartz review
#1619 (comment):

```
"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.
```
meson.build Outdated Show resolved Hide resolved
meson.build Outdated Show resolved Hide resolved
@jubalh
Copy link
Member Author

jubalh commented Feb 18, 2022

After some internal discussions we decided to stay with autotools for now.
Instead of working on meson support we cleaned up our build files in #1641.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants