summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2021-05-27 11:25:09 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2021-05-28 11:25:34 +0200
commit2d375b868871ccf0f664255d1893a6365ea2a638 (patch)
tree8fdb186a9c85f3d5efad999bdbfed1636adb3970
parente0e8c264f49aa484f2d7c32d897c6283aef6b071 (diff)
Update porting guide with CMake instructions for repc-generation
Task-number: QTBUG-93855 Change-Id: I7337288310fac94ef4ec289fa105bbed37a44720 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Michael Brasser <michael.brasser@live.com>
-rw-r--r--src/remoteobjects/doc/src/qt6-changes.qdoc32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/remoteobjects/doc/src/qt6-changes.qdoc b/src/remoteobjects/doc/src/qt6-changes.qdoc
index 8cd70f1..1ef82e1 100644
--- a/src/remoteobjects/doc/src/qt6-changes.qdoc
+++ b/src/remoteobjects/doc/src/qt6-changes.qdoc
@@ -51,4 +51,36 @@
no longer accepts implicit conversion from string literals
(i.e. \c{node.instances("abc");}). Instead, you could use a UTF-16
string literal (\c{node.instances(u"abc")}).
+
+ \section1 CMake changes
+
+ The \c cmake instructions for calling \l repc and adding the generated
+ \c .rep files to a CMake project have slightly changed. Instead of the
+ \c qt5_generate_repc macro, you should now use \c qt6_add_repc_source,
+ \c qt6_add_repc_replica and \c qt6_add_repc_merged functions.
+ For example, the following code:
+
+ \code
+ set(SOURCES
+ main.cpp
+ simpleswitch.cpp
+ )
+
+ qt5_generate_repc(SOURCES simpleswitch.rep SOURCE)
+ add_executable(directconnectserver ${SOURCES})
+ \endcode
+
+ Should change to:
+
+ \code
+ set(SOURCES
+ main.cpp
+ simpleswitch.cpp
+ )
+ add_executable(directconnectserver ${SOURCES})
+ qt6_add_repc_source(directconnectserver simpleswitch.rep)
+ \endcode
+
+ More detailed descriptions for these CMake functions can be found
+ \l {CMake functions} {here}.
*/