Commit Graph

208 Commits

Author SHA1 Message Date
Jani Heikkinen 0143e2755e Add missing .gitattributes and .tag files
Fixes: QTBUG-92253
Pick-to: 6.1
Change-Id: Ia1e77addd5c569de399687f02c96217cd65aa83f
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
2021-03-31 10:45:59 +03:00
Jani Heikkinen b1fda2356e Drop documentation build
We will add additional libraries back to the qt5.git. Having
documentation build enabled in additional library will cause problems
in qt5.git integrations so we need to drop it from module builds.

At same time drop the qttools dependency which were added for
documentation build

Task-number: QTBUG-91796
Change-Id: Idfdfabdddeff304ec5d22b6d1e9675ac2fed2ee6
Reviewed-by: Toni Saario <toni.saario@qt.io>
(cherry picked from commit 0f1163ba55)
Reviewed-by: Akseli Salovaara <akseli.salovaara@qt.io>
2021-03-30 12:11:56 +03:00
Iikka Eklund 58cf2557cb Add "scm" attribute to conanfile.py
We want to match the commit ID along with the
RREV (recipe revision). This way we can pin exact Conan packages
to known sha1/tag which makes releasing easier.

https://docs.conan.io/en/latest/reference/conanfile/attributes.html#revision-mode

Pick-to: 6.1
Task-number: QTQAINFRA-4325
Change-Id: I1a06cc002ca1da4f723c2b9d1ddfb7fb2e25fe34
Reviewed-by: Toni Saario <toni.saario@qt.io>
2021-03-12 14:26:18 +02:00
Jani Heikkinen cb31a8b128 Update dependencies on 'dev' in qt/qtcoap
Change-Id: I84044dc141f3e0e32bd502b625a2cd24682dacd2
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
2021-03-02 08:12:22 +00:00
Jani Heikkinen f266599e0c Update dependencies on 'dev' in qt/qtcoap
Change-Id: I4da6605d6b0ee4838b416332280e65dfb7a17cd8
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
2021-02-23 05:52:12 +00:00
Jani Heikkinen a55e4d7238 Bump version
Change-Id: I185980e70bc8b29cb5035b18fe25b9d9890f7542
2021-02-18 07:21:31 +02:00
Jani Heikkinen b74d22e110 Update dependencies on 'dev' in qt/qtcoap
Change-Id: Ifa98dee632702a8fe520344118a6311debd18e02
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
2021-02-12 05:50:27 +00:00
Iikka Eklund 3b9fdf30ba Conan: Use the 'shared' option value of the Qt build
Default to the value of the prebuilt Qt build.

The 'default' needs to be added as valid option in the list which
will be used by default if no value is given by the user or via
the conan profile.

The user is still able to override this via the profile or from
command line if needed:

  "conan install ... -o shared=False"

CMakeCache.txt:

  - "conan install ..."
    - BUILD_SHARED_LIBS:BOOL=ON
  - "conan install ... -o shared=True"
    - BUILD_SHARED_LIBS:BOOL=ON
  - "conan install ... -o shared=False"
    - BUILD_SHARED_LIBS:BOOL=OFF

Pick-to: 6.1
Task-number: QTBUG-90901
Change-Id: I991516a804875475991e27c7265693b3a7adec5d
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2021-02-08 13:18:34 +00:00
Qt Submodule Update Bot 6034f1aa69 Update dependencies on 'dev' in qt/qtcoap
Change-Id: I824ed124a4e3097c8234a109329b68942eeb495e
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2021-02-08 08:18:13 +02:00
Iikka Eklund 7f32e902c8 conanfile.py: Use QTDIR instead of QT_PATH
There's an established environment variable for this though, QTDIR.
This environment variable is also set by Qt Creator by default.
So the Conan recipes should accept this environment variable instead.

This requires a change in the matching conan profile files
where the path to Qt installation is injected to env.

Pick-to: 6.1
Task-number: QTBUG-90583
Change-Id: I33e2ebc6b04f87027e039d0ae951179f5b2d5530
Reviewed-by: Antti Kokko <antti.kokko@qt.io>
2021-02-04 07:19:14 +00:00
Jani Heikkinen bdc84896e8 Update dependencies on 'dev' in qt/qtcoap
Change-Id: I4cd60fbb5f24cb0bd7496739b6ce891617296934
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
2021-02-03 09:58:14 +00:00
Jani Heikkinen 53445a5479 Update dependencies on 'dev' in qt/qtcoap
Change-Id: I80382eeced9d36382e8f32ef5535051ef9d08f55
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
2021-01-28 06:04:39 +00:00
Jani Heikkinen 22aa407eca Bump version to 6.1.0 in conanfile.py
Change-Id: I972e5610820feeb37d338b3386af004d065f2eb6
Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
2021-01-19 09:01:14 +02:00
Iikka Eklund b0e5eee296 Add conanfile.py to support builds with Conan
Support building with Conan against Qt6 base binary package.

The build recipe expects to locate QT_PATH from env.
The 'qt-cmake(.bat)' is used for the build.

'CMAKE_TOOLCHAIN_FILE' is used to pick the toolchain
file for cross compilations.

For Android builds 'ANDROID_SDK_ROOT' and
'ANDROID_NDK_ROOT' need to be passed from env.

Change-Id: I7068865a66a368c36485ca495629b3ca40b2053e
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
(cherry picked from commit ee6e01e58b)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2021-01-17 10:23:40 +00:00
Paul Wicking 108e95adb7 Bump version
CMake edition.

Task-number: QTQAINFRA-4126
Change-Id: Ibcddb24a2105725ad4d3170aac061d28a6d3ab05
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
2021-01-12 13:50:44 +01:00
Jani Heikkinen 7f8b86cecd Update dependencies on 'dev' in qt/qtcoap
Change-Id: I588408b3fad1748ab6ae990611037214cffe5e18
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
2021-01-12 10:59:09 +00:00
Sona Kurazyan 1eb23cdd2a Enable docker-based testserver in QtCoap tests
Change-Id: Ie5cc074dc7897997b33d174b0ddaed2495141ca4
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
2021-01-11 15:39:54 +01:00
Toni Saario 3d0cbbb601 Add a flag to build the documentation
The Qttools is required for the QDoc for building the docs.

Change-Id: I834d3c719b6436560b060eda70723904c5f0e6d3
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
(cherry picked from commit a2160c214f)
2021-01-11 10:11:43 +00:00
Jani Heikkinen 7c1d0c871e Update dependencies on 'dev' in qt/qtcoap
Change-Id: I155b90a3cbc57cf33c6820dcce9c0dd2161d19a6
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
2021-01-07 10:23:27 +00:00
Jani Heikkinen 869ab36d2b Update dependencies on 'dev' in qt/qtcoap
Change-Id: I39d3b7e2c73d7e07e8081ee811f8bb308311bd4c
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
2021-01-04 13:48:20 +00:00
Sona Kurazyan 2b3abacd15 Fix QCoapOption's copy assignment operator to work on moved-from this
Also added tests verifying copy and assignment operations.

Pick-to: 6.0
Change-Id: I56a995dc7e2029c2ce1761f0a0e42f43eeec5c60
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
2020-12-11 15:13:34 +01:00
Paul Wicking c728da31ce Bump version 2020-12-11 14:22:12 +01:00
Jani Heikkinen 1fc06e02f3 Update dependencies on 'dev' in qt/qtcoap
Change-Id: I50f79eabaadbd86d542ccd6eef6df7301d2f4159
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
2020-12-10 10:44:09 +00:00
Sona Kurazyan 432791f618 Fix a crash when adding a QCoapOption to options list
Due to recent changes, when calling any QList-modifying operations, the
previously saved iterators on the list may be invalidated. Use indexes
instead of iteratots when inserting into the list of QCoapOptions.

Fixes: QTBUG-88729
Change-Id: I73e9bb841594f0dab992fda37fed4ad29081ae7c
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
2020-11-24 21:02:22 +01:00
Jani Heikkinen 62d25482b6 Update dependencies on 'dev'
Update Qt 6.0 Beta5 SHA1s

Change-Id: Iceaaa22b634d20b6b8fa6f334881c071028a2407
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
2020-11-24 21:02:16 +01:00
Alexandru Croitor 7dd7398388 CMake: Regenerate examples to set the WIN32_EXECUTABLE property
As well as the MACOSX_BUNDLE properties as necessary.

Task-number: QTBUG-87664
Change-Id: Ib975f6c4fc6676a8a2abfa50dcc43a76efc7d369
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
2020-11-10 13:52:16 +01:00
Alexandru Croitor 97e9419230 CMake: Regenerate examples to use qt_add_executable
Task-number: QTBUG-87661
Change-Id: I4aa23dd654e90f6ebf789a3af64624e108d8859e
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
2020-11-10 11:51:00 +02:00
Jani Heikkinen 68baa6b8d0 Update dependencies on 'dev''
Update Qt 6.0 Beta4 content

Change-Id: I3c08ea0a22a30f9fcdac96d53569df7bf96d7439
Reviewed-by: Antti Kokko <antti.kokko@qt.io>
2020-11-09 10:36:11 +02:00
Jani Heikkinen f9c8b992f9 Bump module version to 6.0.0
Change-Id: Ifafe7f0ba178c7cc5e3f4f8f0afb2d105969be6e
Reviewed-by: Akseli Salovaara <akseli.salovaara@qt.io>
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
2020-11-06 13:53:15 +02:00
Jani Heikkinen 755cb9bc60 Update dependencies in 'dev'
Update Qt 6.0 Beta3 SHAs

Change-Id: I982969b5fd0789fce6024157db2102006fc6996d
Reviewed-by: Antti Kokko <antti.kokko@qt.io>
2020-11-05 08:23:33 +02:00
Antti Kokko 19e413e415 Add changes file for Qt 5.15.1
Change-Id: I0fee6798f7a439fee7cec200390d6ea25c2d92e5
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
(cherry picked from commit bd04726157)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2020-08-26 05:40:24 +00:00
Sona Kurazyan 5598329329 Fix the build with the latest dev and update dependencies
The build failing after d7ccd8cb4565c8643b158891c9de3187c1586dc9 and
update dependencies.yaml.

Fixes: QTBUG-85896
Change-Id: I52e4dfea4edf0b96de3387f36168bbd18b1cf097
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
2020-08-05 14:33:51 +02:00
Sona Kurazyan a0ab76a6f5 Use QList instead of QVector in qtcoap
And fix dependencies.

Task-number: QTBUG-84469
Change-Id: Ic68bcf0229b516a04ba3d9e515dfb992e12d1f49
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
2020-06-24 23:39:38 +02:00
Alexandru Croitor 0407987296 CMake: Update Coin instructions for CMake builds
Change-Id: Ib70948e6ade9d95188134a25f35c816708da5484
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2020-06-12 12:49:52 +02:00
Alexandru Croitor b184a38800 CMake: Regenerate projects to be up-to-date
Change-Id: Ice26152fc6a05cbde99a9dbc981427a79e222fc6
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@qt.io>
2020-06-12 12:49:49 +02:00
Alexandru Croitor 18c140612f Merge remote-tracking branch 'origin/wip/cmake' into dev
Change-Id: If53446f41c6576857fff305e587e8c9cc95b6656
2020-06-12 12:04:33 +02:00
Sona Kurazyan 05f0b7cb72 Add missing dependencies.yaml file
Change-Id: Ied955d47d8544b194d5a7c74214bc65f67252ef7
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
2020-06-10 17:12:08 +02:00
Sona Kurazyan 9a490bda44 Qt6: Port QtCoap to QStringView
And fix some warnings.

Task-number: QTBUG-84319
Change-Id: I17e887f5b68c0a75e861d186cfed9ea2afd24021
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
2020-06-10 17:12:02 +02:00
Sona Kurazyan 12d9af1cd1 Fix a failing test and do some cleanups
The tst_QCoapClient::socketError was failing because it was using the
old signal connection syntax and as a result a non-existing signal. Fixed
the connection syntax in other places as well.

Additionally fixed a few unrelated warnings.

Change-Id: Ie8ab95551d945d3991debfc628497515894d539e
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
2020-06-10 15:11:55 +00:00
Sona Kurazyan 3fdd85ec48 Do not overwrite the payload of a QCoapRequest
When sending POST and PUT requests via overloads taking QCoapRequest and
QByteArray data, the payload of the request will be overwritten by an empty
byte array, if no data has been passed when calling post()/put(). Do
not overwrite the payload of a QCoapRequest, if the data parameter is
empty.

Pick-to: 5.15
Change-Id: Iffa40b00ce841a5cebb09dcf59ea22a2a5f9df50
Reviewed-by: Karsten Heimrich <karsten.heimrich@qt.io>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
2020-06-02 15:35:07 +02:00
Qt Forward Merge Bot 83acbeace8 Merge remote-tracking branch 'origin/5.15' into dev
Change-Id: I903b266d7496e9241eecf1de0c27dfc871e8d561
2020-05-14 21:05:19 +02:00
Qt Forward Merge Bot 4ba91c4d09 Merge remote-tracking branch 'origin/5.15.0' into 5.15
Change-Id: Ib1603e5dbb29396f8a8a4254926a5cd0fd3df8a1
2020-05-14 14:08:29 +02:00
Konstantin Ritt 27a3aee37e Fix memory access violation for Empty/payload-less messages
as per https://tools.ietf.org/html/rfc7252#section-3

   Following the header, token, and options, if any, comes the optional
   payload.  If present and of non-zero length, it is prefixed by a
   fixed, one-byte Payload Marker (0xFF), which indicates the end of
   options and the start of the payload.

Change-Id: Ib3ce645970b8b78fa055a5807e12762220509427
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
2020-04-28 17:15:38 +03:00
Qt Forward Merge Bot df62ae01a7 Merge remote-tracking branch 'origin/5.15' into dev
Change-Id: I2b599c6c7894af318113e30b893b2e194dbd1017
2020-04-25 03:06:26 +02:00
Qt Forward Merge Bot e4ea8435ed Merge remote-tracking branch 'origin/5.15' into 5.15.0
Change-Id: Iec655dc115da76827a9fe37257ccd875fcea8eb3
2020-04-22 10:11:28 +02:00
Qt Forward Merge Bot ace0cfe10f Merge remote-tracking branch 'origin/5.14' into 5.15
Change-Id: Ifffdcc5f425a05742efbc091e6bc7688ddf6715b
2020-04-21 21:16:28 +02:00
Qt Forward Merge Bot 06f1001b83 Merge remote-tracking branch 'origin/5.14.2' into 5.14
Change-Id: I23ec4a01fc00e95006bd45c736927ffe7c6d73e8
2020-04-21 09:28:57 +02:00
Antti Kokko 4cc3f4cfaa Add changes file for Qt 5.15.0
Change-Id: Ia67679af92938d23870b9b1ac2cbe1b528d0b4e3
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
2020-04-20 12:59:05 +03:00
Qt Forward Merge Bot 1c533de109 Merge remote-tracking branch 'origin/5.15' into dev
Change-Id: I962bcc50c1f78898223b13ef9d9447c5e7a2fea7
2020-03-21 03:05:08 +01:00
Antti Kokko ce50878220 Add changes file for Qt 5.14.2
Change-Id: Id788bd8d7ea6d049eb9e774f8f9a0770d467c1a0
Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
2020-03-17 11:54:17 +02:00