]> git.sur5r.net Git - tio/blobdiff - meson.build
Update upstream source from tag 'upstream/2.0'
[tio] / meson.build
index 6f11ea41c5d9b2eea3ed91b4c2ae5fcdbe9410da..0291474a0e24b1e378b916934c0aec42083e74c2 100644 (file)
@@ -1,12 +1,12 @@
 project('tio', 'c',
-    version : '1.47',
+    version : '2.0',
     license : [ 'GPL-2'],
     meson_version : '>= 0.53.2',
     default_options : [ 'warning_level=2', 'buildtype=release', 'c_std=gnu99' ]
 )
 
 # The tag date of the project_version(), update when the version bumps.
-version_date = '2022-07-23'
+version_date = '2022-09-11'
 
 # Test for dynamic baudrate configuration interface
 compiler = meson.get_compiler('c')
@@ -71,5 +71,13 @@ foreach rate : test_baudrates
   endif
 endforeach
 
+# Test for RS-485 support on Linux
+enable_rs485 = false
+if host_machine.system() == 'linux'
+  if compiler.check_header('linux/serial.h')
+    enable_rs485 = compiler.has_header_symbol('sys/ioctl.h', 'TIOCSRS485')
+  endif
+endif
+
 subdir('src')
 subdir('man')