Commit Graph

9 Commits

Author SHA1 Message Date
aditya 43956bd0bc meson: restore extension_memory as feature (fixes #829)
Commit 6502a67 (merge of PR #764) accidentally downgraded the
`extension_memory` option from `type: 'feature'` to `type: 'boolean'`
during conflict resolution. The PR itself just removed quotes around
boolean values (the Meson 1.1 deprecation fix), but its branch was
based on an older master where extension_memory was still boolean;
the merge resolution chose that stale version over master's `feature`.

meson.build still calls `build_memory.enabled()` and `.auto()`, which
are feature-option methods; on a boolean option they raise:

    ERROR: Unknown method "enabled" in object
    <[BooleanHolder] holds [bool]: False> of type BooleanHolder.

Restore the `type: 'feature', value: 'auto'` declaration that existed
on master before the merge. No change needed in meson.build; its usage
of enabled() + auto() is correct for a feature option.

Verified:
  - `meson setup` now succeeds (pre-fix: failed with the error above)
  - `meson configure -Dextension_memory=enabled` applies cleanly
  - `ninja -C build` builds libunity.a including the memory extension
2026-05-22 15:41:36 +05:30
Mark VanderVoord ff30792124 Merge branch 'master' into fix-meson-depreciation 2026-03-27 12:52:19 -04:00
Dariqq 4d35efd1bc meson: Add option for UNITY_SUPPORT_64 2026-01-20 18:10:14 +00:00
Ross Smyth 8badc0e070 Add fixture help message option for UNITY_CUSTOM_HELP_MSG 2025-03-05 16:31:34 -05:00
Ross Smyth 0921c263f4 Allow the memory extra and fixture extra to be enabled seperatly. 2025-03-05 16:22:46 -05:00
Dominik Loidolt c4d4c656b3 fix: update meson options to avoid deprecation warnings
- Remove quotes from boolean values in meson_options.txt
- see https://mesonbuild.com/Release-notes-for-1-1-0.html#coercing-values-in-the-option-function-is-deprecated
2025-01-22 14:39:56 +01:00
Jason Heeris 8a5918b81d Expose double support as an option. 2023-07-13 15:27:48 +08:00
Andrew McNulty 43378c4262 Implement review feedback for Meson updates.
1. Call the version extraction script directly instead
   of through a Python returned from `find_program()`.

2. We don't need to use `meson.project_source_root()` as
   `find_program()` will search relative to the current meson.build
   script.

3. Lower the required version back to `>= 0.37.0`, and modify
   some things to get rid of warnings with this version selected.
   The use of `summary()`, `dict`, and positional arguments in
   `pkgconfig.generate()` generate warnings with this version so
   remove `summary()` and dict()`, also pass keyword arguments to
   `pkgconfig.generate()`.
2023-02-14 09:23:14 +01:00
Andrew McNulty 44bc9e6dbe Update Meson build system
The following features from the CMake build have been implemented:
 * Library version retrieved from unity.h.
 * Extension support.
 * Library, header, and package configuration file installation.

This commit is entirely based on existing work by Owen Torres.
2023-02-13 17:22:52 +01:00