From c9ecd28c79e2464fcd05678dbbdc5fd0639fd219 Mon Sep 17 00:00:00 2001 From: Ivan Komissarov Date: Thu, 20 Apr 2023 01:33:42 +0300 Subject: doc: fix intro Change-Id: I403a5a8f7716c88ed7c36d610cb1762e78be3e14 Reviewed-by: Christian Kandeler --- doc/qbs.qdoc | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/doc/qbs.qdoc b/doc/qbs.qdoc index 45d6dfc91..29f4266de 100644 --- a/doc/qbs.qdoc +++ b/doc/qbs.qdoc @@ -1207,27 +1207,17 @@ } \endcode - A module can implicitly depend on other modules. For example, the - \l{Qt.core} module depends on the \l{cpp} module. However, to set the - properties of a module, you must make the dependency explicit. + A module can depend on other modules. For example, the + \l{Qt.core} module depends on the \l{cpp} module. The module dependencies are transitive, + i.e. in a Product, all dependent modules are accessible: \code - // THIS DOES NOT WORK Application { name: "helloworld" files: ["main.cpp"] Depends { name: "Qt.core" } - cpp.optimization: "ludicrousSpeed" - // ERROR! We do not know about "cpp" here, - // though "Qt.core" depends on "cpp". - } - - // THIS WORKS - Application { - name: "helloworld" - files: ["main.cpp"] - Depends { name: "Qt.core" } - Depends { name: "cpp" } + // the "cpp" module is available since + // "Qt.core" depends on "cpp". cpp.optimization: "ludicrousSpeed" } \endcode -- cgit v1.2.1