meson: Add option for UNITY_SUPPORT_64

This commit is contained in:
Dariqq
2026-01-20 18:10:14 +00:00
parent 51d2db98e2
commit 4d35efd1bc
2 changed files with 6 additions and 0 deletions
+5
View File
@@ -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')
support_int64 = get_option('support_int64')
fixture_help_message = get_option('fixture_help_message') fixture_help_message = get_option('fixture_help_message')
unity_args = [] unity_args = []
@@ -51,6 +52,10 @@ if support_double
unity_args += '-DUNITY_INCLUDE_DOUBLE' unity_args += '-DUNITY_INCLUDE_DOUBLE'
endif endif
if support_int64
unity_args += '-DUNITY_SUPPORT_64'
endif
unity_lib = static_library(meson.project_name(), unity_lib = static_library(meson.project_name(),
sources: unity_src, sources: unity_src,
c_args: unity_args, c_args: unity_args,
+1
View File
@@ -1,4 +1,5 @@
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('support_int64', type: 'boolean', value: false, description: 'Whether to enable support for 64bit integers. false means autodetect.')
option('fixture_help_message', type: 'string', description: 'If the fixture extension is enabled, this allows a custom help message to be defined.') option('fixture_help_message', type: 'string', description: 'If the fixture extension is enabled, this allows a custom help message to be defined.')