MCPcopy Create free account
hub / github.com/KDE/kdevelop / flatpakBuildDirPath

Function flatpakBuildDirPath

plugins/flatpak/flatpakplugin.cpp:122–139  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122static Path flatpakBuildDirPath(const IProject* project, const QString& arch)
123{
124 // TODO: Should we offer building a runtime if it's outside a project?
125 if (!project || !project->path().isLocalFile()) {
126 qCWarning(FLATPAK) << "Cannot create the flatpak-builder directory for" << project << arch;
127 return {};
128 }
129
130 auto ret = project->path();
131 ret.addPath(QStringLiteral(".kdev4"));
132 ret.addPath(QStringLiteral("flatpak"));
133 ret.addPath(arch);
134 if (!QDir().mkpath(ret.toLocalFile())) {
135 qCWarning(FLATPAK) << "Cannot create path" << ret;
136 return {};
137 }
138 return ret;
139}
140
141void FlatpakPlugin::createRuntime(const KDevelop::Path &file, const QString &arch)
142{

Callers 1

createRuntimeMethod · 0.85

Calls 5

isLocalFileMethod · 0.80
toLocalFileMethod · 0.80
QDirClass · 0.50
pathMethod · 0.45
addPathMethod · 0.45

Tested by

no test coverage detected