4 meson_version : '>= 0.53.2',
5 default_options : [ 'warning_level=2', 'buildtype=release', 'c_std=gnu99' ]
8 # The tag date of the project_version(), update when the version bumps.
9 version_date = '2022-02-15'
11 # Test for dynamic baudrate configuration interface
12 compiler = meson.get_compiler('c')
13 enable_setspeed2 = false
14 if compiler.check_header('asm-generic/ioctls.h')
15 enable_setspeed2 = compiler.has_header_symbol('asm-generic/ioctls.h', 'TCGETS2')
18 # Test for supported baudrates
58 foreach rate : test_baudrates
59 baudrate = rate.to_string()
60 value = compiler.get_define('B' + baudrate, prefix: '#include <termios.h>')
62 baudrates = baudrates + baudrate + ' '
63 baudrate_cases = baudrate_cases + ' case ' + baudrate + ': baudrate = B' + baudrate + '; break;'