1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-24 08:51:36 +01:00

Allow the memory extra and fixture extra to be enabled seperatly.

This commit is contained in:
Ross Smyth
2025-03-05 16:22:40 -05:00
parent cdf1d0297e
commit 0921c263f4
2 changed files with 6 additions and 7 deletions

View File

@@ -34,14 +34,13 @@ unity_inc = []
subdir('src')
if build_fixture
# Building the fixture extension implies building the memory
# extension.
build_memory = true
subdir('extras/fixture/src')
endif
if build_memory
if build_memory.enabled() or (build_memory.auto() and build_fixture)
subdir('extras/memory/src')
else
unity_args += '-DUNITY_FIXTURE_NO_EXTRAS'
endif
if support_double

View File

@@ -1,3 +1,3 @@
option('extension_fixture', type: 'boolean', value: 'false', description: 'Whether to enable the fixture extension.')
option('extension_memory', type: 'boolean', value: 'false', description: 'Whether to enable the memory extension.')
option('support_double', type: 'boolean', value: 'false', description: 'Whether to enable double precision floating point assertions.')
option('extension_fixture', type: 'boolean', value: false, description: 'Whether to enable the fixture extension.')
option('extension_memory', type: 'feature', value: 'auto', description: 'Whether to enable the memory extension. By default this is automatically enabled when extension_fixture is enabled.')
option('support_double', type: 'boolean', value: false, description: 'Whether to enable double precision floating point assertions.')