aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@qt.io>2016-05-13 16:22:49 +0200
committerJake Petroules <jake.petroules@qt.io>2016-06-12 00:49:07 +0000
commit4d36be62387c9e5ea23ac5751d4fe87536333f70 (patch)
tree31138c4d7e6ebb5bf33a5370a15657855f3b86af
parentaa4370b16af58032129bf9526605a11e79cf8f75 (diff)
Doc: Show syntax for multiple files
Change-Id: I3a2361865036573237f1f87e2967f149bbf218f2 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Jake Petroules <jake.petroules@qt.io>
-rw-r--r--doc/qbs.qdoc6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/qbs.qdoc b/doc/qbs.qdoc
index 3db14b6ee..80b4764cc 100644
--- a/doc/qbs.qdoc
+++ b/doc/qbs.qdoc
@@ -325,9 +325,15 @@
The \a name is the name of the product. In this case it is also the
name of the produced executable (on Windows, the ".exe" extension is added by default).
+
In the property \a files, we specify the source files for our product.
Unlike QML, the right-hand side can be either a string or a string list.
A single string is converted to a stringlist containing just one element.
+ So we could have also written
+
+ \code
+ files: [ "main.cpp" ]
+ \endcode
\a Depends adds the dependency to the module \l{Module cpp}{cpp}. This is necessary to let \QBS know that
we have a C++ project and want to compile main.cpp with a C++ compiler. For more information