tomlplusplus/meson.build
Mark Gillard 40ffee43fb added json_formatter
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
2020-01-06 22:24:53 +02:00

43 lines
871 B
Meson

project(
'tomlplusplus', 'cpp',
version : '0.1.0',
license : 'MIT',
default_options : [
'cpp_std=c++17',
'warning_level=3',
'cpp_eh=default'
]
)
compiler = meson.get_compiler('cpp')
if compiler.get_id() == 'gcc'
add_project_arguments(['-fmax-errors=5', '-Wno-attributes'], language : 'cpp')
endif
if compiler.get_id() == 'clang'
add_project_arguments(['-ferror-limit=5', '-fchar8_t'], language : 'cpp')
endif
compiler_supports_char8_strings = compiler.compiles('''
#include <string_view>
#include <string>
using namespace std::string_view_literals;
std::u8string func()
{
return std::u8string{ u8"this is a test."sv };
}
''',
name : 'char8 string check',
args : [ '-std=c++2a' ]
)
#pymod = import('python')
#python = pymod.find_installation('python3')
inc = include_directories(['include', 'extern'])
subdir('tests')
# subdir('examples')