From 17058d1fc537e40e7dda9d6e48ccfb24ea1220f7 Mon Sep 17 00:00:00 2001 From: Ivan Komissarov Date: Wed, 28 Nov 2018 21:08:30 +0100 Subject: Doc: Add information about FrameworkProbe Task-number: QBS-1187 Change-Id: Id53b6dbd33a4999d409c713035acb460831eff65 Reviewed-by: Denis Shienkov Reviewed-by: Christian Kandeler --- doc/reference/items/probe/framework-probe.qdoc | 60 ++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 doc/reference/items/probe/framework-probe.qdoc 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 +*/ -- cgit v1.2.3