Qbs

Blog Documentation Get Qbs
  • Qbs Manual
  • QbsProbes
  • FrameworkProbe
  • Qbs 2.1.1
  • FrameworkProbe QML Type

    Locates macOS frameworks outside the project. More...

    Import Statement: import QbsProbes
    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] : []
    }