diff options
author | Karsten Heimrich <karsten.heimrich@theqtcompany.com> | 2015-09-10 12:46:27 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@theqtcompany.com> | 2015-09-10 13:24:17 +0000 |
commit | 99a6d0b2ed9a0f6520aa0fe013821176ce357773 (patch) | |
tree | 2dfdf3cfd4156cc7e590185e506703e9bcb51468 /qtserialbus.pro | |
parent | 5bad528789b98c259920424ad530a4e40f91a590 (diff) |
Initial import of libmodbus version 3.1.2
Link libmodbus statically against the related modbus plugin.
This enables us to deploy the library on all platforms.
Note: In order to do so a small patch had to be applied for
Windows. See the patches folder while upgrading the library.
The library is LGPL 2.1 or later. Therefore we cannot statically
link it against the library. The libmodbus plugin
has to remain forever. However the plugin will eventually
be invisible to the user.
Another commit will add the option to dynamically link
against the platforms version.
Change-Id: I1e08ea90f8517afa38e059aed35441dc048286ff
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
Diffstat (limited to 'qtserialbus.pro')
-rw-r--r-- | qtserialbus.pro | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/qtserialbus.pro b/qtserialbus.pro index 37adfc2..76c3fce 100644 --- a/qtserialbus.pro +++ b/qtserialbus.pro @@ -9,11 +9,13 @@ lessThan(QT_MAJOR_VERSION, 5) { load(configure) qtCompileTest(socketcan) qtCompileTest(socketcan_fd) -qtCompileTest(libmodbus) +qtCompileTest(libmodbus_accept4) +qtCompileTest(libmodbus_byteswap) +qtCompileTest(libmodbus_rs485) +qtCompileTest(libmodbus_strlcpy) +qtCompileTest(libmodbus_tiocmrts) load(qt_parts) -!config_libmodbus:warning("Cannot build libmodbus plugin. No libmodbus found") - linux { !config_socketcan:warning("You need linux/can.h and linux/can/raw.h linux headers for socketCAN support, disabling it") !config_socketcan_fd:warning("Newer kernel needed for flexible data-rate frame support 'canfd_frame'") |