mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-22 16:05:58 +01:00
Add fixture help message option for UNITY_CUSTOM_HELP_MSG
This commit is contained in:
@@ -26,6 +26,7 @@ project('unity', 'c',
|
|||||||
build_fixture = get_option('extension_fixture')
|
build_fixture = get_option('extension_fixture')
|
||||||
build_memory = get_option('extension_memory')
|
build_memory = get_option('extension_memory')
|
||||||
support_double = get_option('support_double')
|
support_double = get_option('support_double')
|
||||||
|
fixture_help_message = get_option('fixture_help_message')
|
||||||
|
|
||||||
unity_args = []
|
unity_args = []
|
||||||
unity_src = []
|
unity_src = []
|
||||||
@@ -35,6 +36,9 @@ subdir('src')
|
|||||||
|
|
||||||
if build_fixture
|
if build_fixture
|
||||||
subdir('extras/fixture/src')
|
subdir('extras/fixture/src')
|
||||||
|
if fixture_help_message != ''
|
||||||
|
unity_args += '-DUNITY_CUSTOM_HELP_MSG=' + fixture_help_message
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if build_memory.enabled() or (build_memory.auto() and build_fixture)
|
if build_memory.enabled() or (build_memory.auto() and build_fixture)
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
option('extension_fixture', type: 'boolean', value: false, description: 'Whether to enable the fixture extension.')
|
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('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.')
|
option('support_double', type: 'boolean', value: false, description: 'Whether to enable double precision floating point assertions.')
|
||||||
|
option('fixture_help_message', type: 'string', description: 'If the fixture extension is enabled, this allows a custom help message to be defined.')
|
||||||
|
|||||||
Reference in New Issue
Block a user