Skip to content

[Feature]: meson.build support #759

@mochaaP

Description

@mochaaP

Problem Description

I'd like to add this library to https://meson.build's wrapdb.

Proposed Solution

  • Maintaining meson build files in this repository.
  • Add CI build tests for meson.

🚀 Compiler Explorer Example (Optional)

No response

Alternatives Considered

Maintaining build files in wrapdb as patches. This can work but will need a manual sync for every version.

Feature Category

Build System

Example Usage

meson wrap install mp-units
executable('user', 'main.cc', dependency: dependency('mp-units'))
meson setup builddir && meson compile -C builddir

Priority

Blocking my adoption

Implementation Ideas

I'm currently writing an implementation; it would be nice if it could be accepted upstream.

Additional Context

meson have many features built in that are currently implemented as CMake scripts.

  • clang-format && clang-tidy support (auto-detecting configuration files and adding build targets for linting and autofixes)
  • ccache / sccache support
  • libc++ detection
  • c++ modules (soon OOTB, requires testing on more different environment setups)

if you want some nice additions for making development more enjoyable, please let me know, and I will try to implement them in meson core :)

Checklist

  • I have searched existing issues to avoid duplicates
  • I have read the project documentation
  • This feature aligns with the project's goals

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttriageTriage a new issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions