Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qlibraryinfo.cpp File Reference

(b299ec64b12e002fa8b2173dee82b2fe91cdf6bf)

#include "qdir.h"
#include "qstringlist.h"
#include "qfile.h"
#include "qlibraryinfo.h"
#include "qlibraryinfo_p.h"
#include "qcoreapplication.h"
#include "private/qcoreapplication_p.h"
#include "private/qfilesystementry_p.h"
#include "archdetect.cpp"
#include "qconfig.cpp"
#include <memory>
Include dependency graph for qlibraryinfo.cpp:

Go to the source code of this file.

Classes

struct  QLibraryPrefixes

Macros

#define COMPILER_STRING   "<unknown compiler>"
#define DEBUG_STRING   " debug"
#define SHARED_STRING   " static"

Functions

void qDumpCPUFeatures ()
static QString fromRawStringView (QStringView string)
static bool pathIsRelative (const QString &path)
static const char * qt_build_string () noexcept
static bool haveUserQtConf ()
 Returns whether we have a user-written qt.conf with explicit paths.
static QStringList makeAbsolute (QStringList paths, QString(*resolveBaseDir)())

Macro Definition Documentation

◆ COMPILER_STRING

#define COMPILER_STRING   "<unknown compiler>"

Definition at line 312 of file qlibraryinfo.cpp.

◆ DEBUG_STRING

#define DEBUG_STRING   " debug"

Definition at line 317 of file qlibraryinfo.cpp.

◆ SHARED_STRING

#define SHARED_STRING   " static"

Definition at line 322 of file qlibraryinfo.cpp.

Function Documentation

◆ fromRawStringView()

QString fromRawStringView ( QStringView string)
static

Definition at line 43 of file qlibraryinfo.cpp.

◆ haveUserQtConf()

bool haveUserQtConf ( )
static

Returns whether we have a user-written qt.conf with explicit paths.

A user-written qt.conf is an expression of exclusivity: the application declares the layout it follows, so its paths replace the Qt ones, and the stable fallback-values from locationInfo() are rooted at the application prefix for the locations the qt.conf leaves out.

A qt.conf with MergeQtConf = true is an artifact generated by the Qt QML CMake machinery to support development builds, and does not qualify as a user-written qt.conf.

Definition at line 772 of file qlibraryinfo.cpp.

◆ makeAbsolute()

QStringList makeAbsolute ( QStringList paths,
QString(* resolveBaseDir )() )
static

Roots any relative entries in paths at the directory returned by resolveBaseDir, which is resolved lazily (only when there's actually a relative path to root, and at most once).

Definition at line 826 of file qlibraryinfo.cpp.

◆ pathIsRelative()

bool pathIsRelative ( const QString & path)
static

Definition at line 48 of file qlibraryinfo.cpp.

◆ qDumpCPUFeatures()

QT_FUNCTION_TARGET_BASELINE void qDumpCPUFeatures ( )
extern

Definition at line 683 of file qsimd.cpp.

References detectProcessorFeatures(), features_indices, features_string, qCompilerCpuFeatures, and SimdInitialized.

Here is the call graph for this function:

◆ qt_build_string()

const char * qt_build_string ( )
staticnoexcept

Definition at line 324 of file qlibraryinfo.cpp.