mirror of
https://github.com/marzer/tomlplusplus.git
synced 2024-11-02 11:26:26 +00:00
40ffee43fb
also: - added `toml_version.h` - added version number to toml.hpp - added `node::visit()` - added `table::empty()` - added `array::empty()` - added version number to `toml.hpp` - added ostream operator overload for `source_position` - added tests for string escape sequences - added tests for + in bare keys (toml/issues/687) - added tests for hexfloat literals (toml/issues/562) - added c++20 char8_t detection to meson - moved third party submodules to `/extern` - refactored noexcept version of `parse_result` to be more useful - refactored all code to 'mostly' stick to a 120 column limit - fixed some minor stuff picked up by gcc9
96 lines
2.2 KiB
Meson
96 lines
2.2 KiB
Meson
test_sources = [
|
|
'lifetimes.cpp',
|
|
'main.cpp',
|
|
'parsing_arrays.cpp',
|
|
'parsing_booleans.cpp',
|
|
'parsing_comments.cpp',
|
|
'parsing_dates_and_times.cpp',
|
|
'parsing_floats.cpp',
|
|
'parsing_integers.cpp',
|
|
'parsing_key_value_pairs.cpp',
|
|
'parsing_spec_example.cpp',
|
|
'parsing_strings.cpp',
|
|
'parsing_tables.cpp'
|
|
]
|
|
|
|
disable_exceptions = 'cpp_eh=none'
|
|
no_unreleased_features = '-DTOML_UNRELEASED_FEATURES=0'
|
|
define_toml_use_char8_strings = '-DTOML_CHAR_8_STRINGS=1'
|
|
manually_set_cpp_std = 'cpp_std=none'
|
|
cpp20 = '-std=c++2a'
|
|
|
|
char = executable(
|
|
'char',
|
|
test_sources,
|
|
include_directories : inc
|
|
)
|
|
test('char', char)
|
|
|
|
|
|
char_noexcept = executable(
|
|
'char_noexcept',
|
|
test_sources,
|
|
include_directories : inc,
|
|
override_options : [ disable_exceptions ]
|
|
)
|
|
test('char_noexcept', char_noexcept)
|
|
|
|
|
|
strict_char = executable(
|
|
'strict_char',
|
|
test_sources,
|
|
include_directories : inc,
|
|
cpp_args : [ no_unreleased_features ]
|
|
)
|
|
test('strict_char', strict_char)
|
|
|
|
|
|
strict_char_noexcept = executable(
|
|
'strict_char_noexcept',
|
|
test_sources,
|
|
include_directories : inc,
|
|
override_options : [ disable_exceptions ],
|
|
cpp_args : [ no_unreleased_features ]
|
|
)
|
|
test('strict_char_noexcept', strict_char_noexcept)
|
|
|
|
|
|
if compiler_supports_char8_strings
|
|
|
|
char8 = executable(
|
|
'char8',
|
|
test_sources,
|
|
include_directories : inc,
|
|
override_options : [ manually_set_cpp_std ],
|
|
cpp_args : [ cpp20, define_toml_use_char8_strings ]
|
|
)
|
|
test('char8', char8)
|
|
|
|
char8_noexcept = executable(
|
|
'char8_noexcept',
|
|
test_sources,
|
|
include_directories : inc,
|
|
override_options : [ manually_set_cpp_std, disable_exceptions ],
|
|
cpp_args : [ cpp20, define_toml_use_char8_strings ]
|
|
)
|
|
test('char8_noexcept', char8_noexcept)
|
|
|
|
strict_char8 = executable(
|
|
'strict_char8',
|
|
test_sources,
|
|
include_directories : inc,
|
|
override_options : [ manually_set_cpp_std ],
|
|
cpp_args : [ cpp20, define_toml_use_char8_strings, no_unreleased_features ]
|
|
)
|
|
test('strict_char8', strict_char8)
|
|
|
|
strict_char8_noexcept = executable(
|
|
'strict_char8_noexcept',
|
|
test_sources,
|
|
include_directories : inc,
|
|
override_options : [ manually_set_cpp_std, disable_exceptions ],
|
|
cpp_args : [ cpp20, define_toml_use_char8_strings, no_unreleased_features ]
|
|
)
|
|
test('strict_char8_noexcept', strict_char8_noexcept)
|
|
|
|
endif |