From 4d36be62387c9e5ea23ac5751d4fe87536333f70 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Fri, 13 May 2016 16:22:49 +0200 Subject: Doc: Show syntax for multiple files Change-Id: I3a2361865036573237f1f87e2967f149bbf218f2 Reviewed-by: Leena Miettinen Reviewed-by: Jake Petroules --- doc/qbs.qdoc | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.3