Meson 1.3 Released with Improved Build Systems for Developers

Learn what's new in the Meson 1.3 release, which brings improvements and fixes to this open-source build system for developers.1 min


Meson 1.3 is now out with new features and enhancements. If you are a Linux developer and frequently compile projects then you should check out this release.

Meson is a Python-based build system licensed under Apache 2.0. Designed with a focus on speed, convenience, and user-friendly development, Meson replaces the traditional make utility with the Ninja toolkit by default. It is widely used by mainstream open-source projects like X.Org Server, Mesa, Lighttpd, systemd, GStreamer, Wayland, GNOME, and GTK.

Meson build system
Meson build system

Meson 1.3 Highlights: What’s New?

Here’s a brief rundown of the new features & updates of this release:

  1. Stricter Code Checks: Meson now allows you to treat compiler warnings as errors with the addition of the “werror: true” option in compiler checks.
  2. Enhanced Preprocessor Symbol Checks: The new has_define method lets you check symbol definitions by the preprocessor.
  3. Configure Files Made Easier: The configure_file() method gets an upgrade with the addition of a macro_name parameter and support for JSON output.
  4. Advanced Language Options: Meson now supports lists of values for c_std and cpp_std parameters, providing more flexibility in language options.
  5. Customizing Ninja Output: Customize messages output by the Ninja utility in modules using CustomTarget to process files.
  6. Deprecation Alert: The build_target “jar” is now deprecated, and the “jar()” call is recommended instead.
  7. Environment Variable Control: The ‘env’ parameter is now available in the generator.process() method to set the environment variable for input processing.
  8. Executable Suffix Support: You can now specify suffixes when naming build targets associated with executables.
  9. Introducing “fill” Parameter: The int.to_string() method now includes a “fill” parameter for incrementally filling strings with leading zeros.
  10. clang-tidy-fix Target: A new build target, clang-tidy-fix, specifies running the clang-tidy utility with the “-fix” flag.
  11. Suffix for Build Targets: Specify a suffix (TARGET_SUFFIX) for the build target in the compile command.
  12. Cache Control: Manage your package cache with the MESON_PACKAGE_CACHE_DIR environment variable and the “meson setup –clearcache” option.
  13. Compiler Check Improvements: All “has_*” compiler check methods now support the “required” keyword.
  14. Rust Development Enhancement: A new keyword, rust_abi, is added for improved control in shared_library(), static_library(), library(), and shared_module() functions.

To learn more or grab the latest Meson source, visit the official GitHub repo.

Via Meson@GItHub


arindam

Creator of debugpointnews.com. All time Linux user and open-source supporter. Connect with me via Telegram, Twitter, LinkedIn, or send us an email.
Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments