Skip to content

build: Adds native Meson build system support#245

Merged
hellobertrand merged 7 commits into
mainfrom
build/meson-support
May 27, 2026
Merged

build: Adds native Meson build system support#245
hellobertrand merged 7 commits into
mainfrom
build/meson-support

Conversation

@hellobertrand
Copy link
Copy Markdown
Owner

@hellobertrand hellobertrand commented May 25, 2026

Introduces comprehensive Meson build system support for the zxc library.

Summary

Provides an alternative, modern build system for projects that prefer Meson, particularly facilitating zxc's use as a subproject, and integrates continuous integration to validate its reliability.

Key Features

  • Integrates a native Meson build system, enabling zxc to be built using meson.build for both standalone projects and as a subproject.
  • Configures the build to support SIMD runtime dispatch for optimized performance across x86_64 (AVX2, AVX512) and AArch64 (NEON) architectures.
  • Adds a dedicated GitHub Actions workflow to automatically build and test the library with Meson on Linux ensuring compatibility and stability.
  • Updates documentation with clear instructions on how to consume zxc as a Meson subproject, simplifying integration for other Meson-based projects.

@hellobertrand hellobertrand linked an issue May 25, 2026 that may be closed by this pull request
3 tasks
@hellobertrand hellobertrand changed the title Adds native Meson build system support build: Adds native Meson build system support May 26, 2026
Introduces a new GitHub Actions workflow to validate the native Meson build system support. It builds and tests both static and shared library configurations on Linux and macOS.
This enhances discoverability and provides convenient access to the project's repository for downstream consumers.
Separates the Meson build and test job from the `build.yml` workflow into its own dedicated `meson.yml` file. This improves CI organization and maintainability by dedicating a specific workflow to Meson build validation.
The `disable_simd` option has been removed as SIMD variant selection is now handled implicitly based on the host CPU. This simplifies the build configuration by always enabling available SIMD paths where supported.

The CI workflow for Meson builds has been updated to include a `Linux ARM64` job, replacing the previous `macOS ARM64` configuration to reflect current testing priorities.
Introduce a `build_cli` Meson option to explicitly control whether the command-line interface (CLI) is built. This option defaults to `false`, allowing users to build only the library if the CLI is not needed.
Introduces a 'build_cli' Meson option, defaulting to 'false', to allow users to build only the library without the command-line interface executable.

The dedicated Meson build workflow (.github/workflows/meson.yml) has been merged into .github/workflows/multicomp.yml. This improves CI organization and centralizes build system compatibility checks. The 'multicomp.yml' workflow name is updated to reflect its broader scope.
@hellobertrand hellobertrand force-pushed the build/meson-support branch from 379da3e to d8364eb Compare May 27, 2026 07:35
@hellobertrand hellobertrand merged commit def30b0 into main May 27, 2026
65 checks passed
@hellobertrand hellobertrand deleted the build/meson-support branch May 27, 2026 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Meson build support, update documentation, and publish to WrapDB

1 participant