Skip to content

Add experimental Meson build system - #885

Open
yegorich wants to merge 1 commit into
stephane:masterfrom
yegorich:meson-support
Open

yegorich wants to merge 1 commit into
stephane:masterfrom
yegorich:meson-support

Conversation

@yegorich

Copy link
Copy Markdown
Contributor

Provide Meson support alongside the autotools build. Based on the work by Jon Ringle in #666, updated for the current tree:

  • derive the shared library version from the libtool current:revision:age numbers so the library file names match libtool (libmodbus.so.5.1.0)
  • port the TIOCSRS485, TIOCM_RTS, struct termios2 and CYGWIN checks, plus the missing function/header checks
  • force-include config.h and define the system extension macros like AC_USE_SYSTEM_EXTENSIONS does
  • link the platform socket libraries (ws2_32, nsl/socket, network)
  • generate libmodbus.pc, build all test programs and run the unit and proxy tests serially (they use fixed TCP ports)
  • add a 'tests' option equivalent to --disable-tests
  • add a GitHub workflow building and testing with Meson

The Meson files are also shipped in the autotools dist tarball.

Provide Meson support alongside the autotools build. Based on the work
by Jon Ringle in stephane#666, updated
for the current tree:

- derive the shared library version from the libtool current:revision:age
  numbers so the library file names match libtool (libmodbus.so.5.1.0)
- port the TIOCSRS485, TIOCM_RTS, struct termios2 and __CYGWIN__ checks,
  plus the missing function/header checks
- force-include config.h and define the system extension macros like
  AC_USE_SYSTEM_EXTENSIONS does
- link the platform socket libraries (ws2_32, nsl/socket, network)
- generate libmodbus.pc, build all test programs and run the unit and
  proxy tests serially (they use fixed TCP ports)
- add a 'tests' option equivalent to --disable-tests
- add a GitHub workflow building and testing with Meson

The Meson files are also shipped in the autotools dist tarball.

Co-authored-by: Jon Ringle <jringle@gridpoint.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@cla-bot

cla-bot Bot commented Oct 18, 2026

Copy link
Copy Markdown

We require contributors to sign our Contributor License Agreement. In order for us to review and merge your code, please fill https://forms.gle/5635zjphDo5JEJQSA to get added. Your document will be manually checked by the maintainer. Be patient...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant