FrameworkProbe

Locates macOS frameworks outside the project. More...

Inherits:

PathProbe

Detailed Description

Finds macOS frameworks that have the specified file names.

By default, FrameworkProbe searches for frameworks in ~/Library/Frameworks, /usr/local/lib, /Library/Frameworks, and in /System/Library/Frameworks.

Also, if qbs.sysroot is specified (for example, when compiling using XCode SDK), the probe searches in the sysroot/System/Library/Frameworks folder first.

For example, a simple FrameworkProbe that searches for the Foundation framework can be used as follows:

import qbs.Probes
Product {
    Depends { name: "cpp"; }
    Probes.FrameworkProbe {
        id: foundationProbe
        names: ["Foundation"]
    }
    cpp.frameworkPaths: foundationProbe.found ? [foundationProbe.path] : []
}

© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.