summaryrefslogtreecommitdiffstats
path: root/tools
Commit message (Collapse)AuthorAgeFilesLines
* Always add a comma to the last entry of an enumJannis Voelker2024-02-291-1/+1
| | | | | | Pick-to: 6.7 Change-Id: I17ed482908d50b0f16f695b0b6a61d744f21fd0a Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
* tools: silence -Wimplicit-fallthroughTim Blechmann2024-02-291-0/+1
| | | | | | | Pick-to: 6.7 Change-Id: Ie2d797fccd6f6360268943c3aad453fd5b91499a Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com> Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com>
* Add encoding and decoding support for Variant and DataValueJannis Voelker2023-12-061-2/+5
| | | | | | | | | | | This change adds support for the built-in types Variant and DataValue to QOpcUaBinaryDataEncoding and QOpcUaGenericStructHandler. Structures containing fields of these types can now be decoded and encoded. Change-Id: If3f5dd18910f668f61bf37eed10b5d5f947e2f31 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Rewrite the internal generator to also handle status codesJannis Voelker2023-10-246-184/+312
| | | | | | | | | | | | | | | | The input arguments are now the paths to NodeIds.csv, StatusCode.csv and to the base directory of the Qt OPC UA repository. The following files will be updated: - qopcuanodeids.h - qopcuanodeids.cpp - qopcuatype.h - qopcuatype.cpp, - opcuastatus_p.h - opcuastatus.cpp Change-Id: I29fa75a845bfc70012a21b8565594b19e36021df Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Update status codes, namespace 0 IDs and reference types to OPC UA 1.05Jannis Voelker2023-09-281-5/+5
| | | | | | Change-Id: Ie6d9b433deb60f8d7094354420cd604f7c3843e2 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Add data type code generatorMartin Klos2023-09-2830-0/+3998
| | | | | | | | | | | | | | | | | | | | | This change adds a code generator which generates data classes, enums and encoder/decoder methods for OPC UA data type descriptions in a .bsd file. The generated data classes provide a getter and setter based API that follows the structure of the types available in Qt OPC UA. If a structure field's type is already available in Qt OPC UA, it will be used in the data class instead of generating a new data class for it. The decoder/encoder operates on QOpcUaExtensionObject as well as QByteArray and can be used to turn received binary encoded values into easily accessible structured data as well as to create binary encoded extension objects for writing custom types or for parameters in method calls. Change-Id: I8090dcb9b5f2d26d9ad02e3d6d5c45b3baa5c777 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Remove remains of qmake conversion from CMakeLists.txt filesFriedemann Kleint2023-02-102-4/+0
| | | | | | | Pick-to: 6.5 Change-Id: I17b48757cf0de6b123c96db4dfc7d227c6384071 Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io> Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Change the license of all CMakeLists.txt and *.cmake files to BSDLucie Gérard2022-08-252-2/+2
| | | | | | | Task-number: QTBUG-105718 Change-Id: Ia8401e033fc4b7414e798d1cc5da90977ad5f29b Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Add license headers to cmake filesLucie Gérard2022-07-072-0/+6
| | | | | | | | | | | | CMakeLists.txt and .cmake files of significant size (more than 2 lines according to our check in tst_license.pl) now have the copyright and license header. Existing copyright statements remain intact Task-number: QTBUG-88621 Change-Id: I775b4a5dd13b8e930cef494af42f81ec6f8b242a Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Use SPDX license identifiersLucie Gérard2022-06-161-76/+6
| | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. License files are organized under LICENSES directory. Pick-to: 6.4 Task-number: QTBUG-67283 Change-Id: I5678b086dc1da06fc2045a82b5678949b40f267e Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io>
* Use up-to date LGPL license headerKai Köhne2021-12-021-22/+28
| | | | | | | | | | | | Remove usages of outdated LGPL3 header that references LICENSES.LGPLv3 instead of LICENSES.LGPL3. Use BSD instead in the examples, updated LGPL otherwise. Also remove the now unreferenced LICENSE.LGPLv3, LICENSE.GPLv2 files. Change-Id: I331898db70f1a566baffe57d0bb6a72d4bfbd382 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
* Skip unnecessary commands when cross-building toolsJoerg Bornemann2021-10-051-0/+1
| | | | | | | | | | Call qt_internal_return_unless_building_tools() directly after qt_internal_add_tool() to avoid having to special-case code for when this function only creates imported targets in cross-builds. Task-number: QTBUG-85084 Change-Id: I11e0aa0985d3d0ba928489f247bbede0898dabe7 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
* Bump the year in the header written by the namespace 0 ids generatorJannis Voelker2021-09-271-1/+1
| | | | | Change-Id: Ie8d8a2e82dea166f27b4650e2ed67513149b0737 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Fix namespace 0 generator buildJannis Voelker2021-09-271-1/+1
| | | | | | | | The CMake function qt_add_tool has been renamed to qt_internal_add_tool. Change-Id: I54372a86d8367dcc9548f53dab72d74e708afcfb Pick-to: 6.2 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* CMake: Fix CMake build for open62541Jannis Voelker2020-08-071-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Fix -Wno flags to be assigned to the correct property as a list of values. Remove unnecessary Q_DECLARE_METATYPE because the type is already registered automatically somewhere. Fix standalone example using private API and not having the C language enabled. Remove optimization flags for open62541.c like the qmake project does, to circumvent some miscompilation on MSVC which makes the test server not start, and thus hangs CI integrations. We do this for the test and example, but not the plugin, just to be safe for now. It's done by a public OpcUA function called qt_opcua_disable_optimizations_in_current_dir. Regenerate some projects that used old APIs. Task-number: QTBUG-85939 Change-Id: I2aea0e64371e99da3e2330f477c754728a8a5dd5 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com>
* Add CMake support for building Qt OPC UAJannis Voelker2020-06-042-0/+15
| | | | | Change-Id: I1cf9c7f4914a665d7a057950eb6528929034e039 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
* Rename QOpcUa::NodeIds::NS0 to QOpcUa::NodeIds::Namespace0Jannis Voelker2018-09-171-6/+6
| | | | | | | | The abbreviation "ns0" is also removed from the converter functions in qopcuatype.cpp. Change-Id: Ic8e9aed4891f9e550f4e00105182744f1eb9b2e3 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
* Add generated header and source files with known node idsJannis Voelker2018-08-093-0/+259
The NodeIds.csv file distributed by the OPC Foundation contains the node ids of the default nodes in namespace 0. This patch adds a generated header file with all node ids from NodeIds.csv and a generated .cpp file with documentation. The generator used to generate the files has been added in the tools directory. Change-Id: Iec8d58ca71fa5d29e691b064ec8bacf0abcd94d2 Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>