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

(194565a371aca8c69a3cd0fd03b7fb2fcfcf5db3)

#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 keepQtBuildDefaults ()
 Returns whether the existence of a qt.conf with explicit paths should not trigger the stable fallback-values from QLibraryInfoPrivate::locationInfo() as usual, but instead fall back to the Qt configure defaults (which may differ from Qt installation to Qt installtion).
static QList< QStringmakeAbsolute (QList< QString > 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.

◆ keepQtBuildDefaults()

bool keepQtBuildDefaults ( )
static

Returns whether the existence of a qt.conf with explicit paths should not trigger the stable fallback-values from QLibraryInfoPrivate::locationInfo() as usual, but instead fall back to the Qt configure defaults (which may differ from Qt installation to Qt installtion).

This mechanism is used by QtQml's internal build machinery for making QML modules across different paths available during development.

Definition at line 720 of file qlibraryinfo.cpp.

◆ makeAbsolute()

QList< QString > makeAbsolute ( QList< QString > 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 769 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.