mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-30 11:44:27 +01:00
Merge pull request #769 from rsmyth-ecmi/MesonConfig
Add some more Meson config options
This commit is contained in:
11
meson.build
11
meson.build
@@ -26,6 +26,7 @@ project('unity', 'c',
|
||||
build_fixture = get_option('extension_fixture')
|
||||
build_memory = get_option('extension_memory')
|
||||
support_double = get_option('support_double')
|
||||
fixture_help_message = get_option('fixture_help_message')
|
||||
|
||||
unity_args = []
|
||||
unity_src = []
|
||||
@@ -34,14 +35,16 @@ unity_inc = []
|
||||
subdir('src')
|
||||
|
||||
if build_fixture
|
||||
# Building the fixture extension implies building the memory
|
||||
# extension.
|
||||
build_memory = true
|
||||
subdir('extras/fixture/src')
|
||||
if fixture_help_message != ''
|
||||
unity_args += '-DUNITY_CUSTOM_HELP_MSG=' + fixture_help_message
|
||||
endif
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user