aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorIvan Komissarov <ABBAPOH@gmail.com>2018-11-28 21:08:30 +0100
committerIvan Komissarov <ABBAPOH@gmail.com>2019-02-11 18:51:43 +0000
commit17058d1fc537e40e7dda9d6e48ccfb24ea1220f7 (patch)
tree05882ff141e6d7542e6b2c2ced6999c43bf83f9a /doc
parent4fbf66673c7210df5ea5475245c42868b38fa97b (diff)
Doc: Add information about FrameworkProbe
Task-number: QBS-1187 Change-Id: Id53b6dbd33a4999d409c713035acb460831eff65 Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com> Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'doc')
-rw-r--r--doc/reference/items/probe/framework-probe.qdoc60
1 files changed, 60 insertions, 0 deletions
diff --git a/doc/reference/items/probe/framework-probe.qdoc b/doc/reference/items/probe/framework-probe.qdoc
new file mode 100644
index 000000000..23ee57b3b
--- /dev/null
+++ b/doc/reference/items/probe/framework-probe.qdoc
@@ -0,0 +1,60 @@
+/****************************************************************************
+**
+** Copyright (C) 2019 Ivan Komissarov
+** Contact: https://www.qt.io/licensing/
+**
+** This file is part of Qbs.
+**
+** $QT_BEGIN_LICENSE:FDL$
+** Commercial License Usage
+** Licensees holding valid commercial Qt licenses may use this file in
+** accordance with the commercial license agreement provided with the
+** Software or, alternatively, in accordance with the terms contained in
+** a written agreement between you and The Qt Company. For licensing terms
+** and conditions see https://www.qt.io/terms-conditions. For further
+** information use the contact form at https://www.qt.io/contact-us.
+**
+** GNU Free Documentation License Usage
+** Alternatively, this file may be used under the terms of the GNU Free
+** Documentation License version 1.3 as published by the Free Software
+** Foundation and appearing in the file included in the packaging of
+** this file. Please review the following information to ensure
+** the GNU Free Documentation License version 1.3 requirements
+** will be met: https://www.gnu.org/licenses/fdl-1.3.html.
+** $QT_END_LICENSE$
+**
+****************************************************************************/
+
+/*!
+ \contentspage list-of-probes.html
+ \qmltype FrameworkProbe
+ \ingroup list-of-probes
+ \ingroup list-of-items
+ \keyword QML.FrameworkProbe
+ \inherits PathProbe
+
+ \brief Locates \macos frameworks outside the project.
+
+ Finds \macos frameworks that have the specified file names.
+
+ By default, FrameworkProbe searches for frameworks in \c ~/Library/Frameworks,
+ \c /usr/local/lib, \c /Library/Frameworks, and in \c /System/Library/Frameworks.
+
+ Also, if \l {qbs::sysroot}{qbs.sysroot} is specified (for example, when compiling using XCode
+ SDK), the probe searches in the \c sysroot/System/Library/Frameworks folder first.
+
+ For example, a simple FrameworkProbe that searches for the Foundation framework can be used as
+ follows:
+
+ \code
+ import qbs.Probes
+ Product {
+ Depends { name: "cpp"; }
+ Probes.FrameworkProbe {
+ id: foundationProbe
+ names: ["Foundation"]
+ }
+ cpp.frameworkPaths: foundationProbe.found ? [foundationProbe.path] : []
+ }
+ \endcode
+*/