Changeset View
Changeset View
Standalone View
Standalone View
projectmanagers/cmake/tests/testhelpers.h
Show All 27 Lines | |||||
28 | #include <QDir> | 28 | #include <QDir> | ||
29 | #include <QDebug> | 29 | #include <QDebug> | ||
30 | #include <interfaces/iproject.h> | 30 | #include <interfaces/iproject.h> | ||
31 | #include <interfaces/icore.h> | 31 | #include <interfaces/icore.h> | ||
32 | #include <interfaces/iprojectcontroller.h> | 32 | #include <interfaces/iprojectcontroller.h> | ||
33 | #include <QSignalSpy> | 33 | #include <QSignalSpy> | ||
34 | 34 | | |||
35 | static QString currentBuildDirKey = "Build Directory Path"; | 35 | static QString currentBuildDirKey = "Build Directory Path"; | ||
36 | static QString currentCMakeBinaryKey = "CMake Binary"; | 36 | static QString currentCMakeExecutableKey = "CMake Binary"; | ||
flherne: The QMake one has a //TODO | |||||
Well, spotted, +1 for closely reading all changes :) Would add a TODO to all such places on pushing. kossebau: Well, spotted, +1 for closely reading all changes :) Would add a TODO to all such places on… | |||||
37 | static QString currentBuildTypeKey = "Build Type"; | 37 | static QString currentBuildTypeKey = "Build Type"; | ||
38 | static QString currentInstallDirKey = "Install Directory"; | 38 | static QString currentInstallDirKey = "Install Directory"; | ||
39 | static QString currentExtraArgumentsKey = "Extra Arguments"; | 39 | static QString currentExtraArgumentsKey = "Extra Arguments"; | ||
40 | static QString currentBuildDirectoryIndexKey = "Current Build Directory Index"; | 40 | static QString currentBuildDirectoryIndexKey = "Current Build Directory Index"; | ||
41 | static QString projectBuildDirectoryCount = "Build Directory Count"; | 41 | static QString projectBuildDirectoryCount = "Build Directory Count"; | ||
42 | static QString projectRootRelativeKey = "ProjectRootRelative"; | 42 | static QString projectRootRelativeKey = "ProjectRootRelative"; | ||
43 | static QString projectBuildDirs = "BuildDirs"; | 43 | static QString projectBuildDirs = "BuildDirs"; | ||
44 | 44 | | |||
▲ Show 20 Lines • Show All 60 Lines • ▼ Show 20 Line(s) | 99 | { | |||
105 | } | 105 | } | ||
106 | } | 106 | } | ||
107 | 107 | | |||
108 | cmakeGrp.writeEntry( projectBuildDirectoryCount, 1); | 108 | cmakeGrp.writeEntry( projectBuildDirectoryCount, 1); | ||
109 | cmakeGrp.writeEntry( currentBuildDirectoryIndexKey, 0); | 109 | cmakeGrp.writeEntry( currentBuildDirectoryIndexKey, 0); | ||
110 | 110 | | |||
111 | KConfigGroup buildDirGrp = cmakeGrp.group(QStringLiteral("CMake Build Directory 0")); | 111 | KConfigGroup buildDirGrp = cmakeGrp.group(QStringLiteral("CMake Build Directory 0")); | ||
112 | buildDirGrp.writeEntry( currentBuildDirKey, bd.buildFolder().toLocalFile() ); | 112 | buildDirGrp.writeEntry( currentBuildDirKey, bd.buildFolder().toLocalFile() ); | ||
113 | buildDirGrp.writeEntry( currentCMakeBinaryKey, bd.cmakeBinary().toLocalFile() ); | 113 | buildDirGrp.writeEntry(currentCMakeExecutableKey, bd.cmakeExecutable().toLocalFile()); | ||
114 | buildDirGrp.writeEntry( currentInstallDirKey, bd.installPrefix().toLocalFile() ); | 114 | buildDirGrp.writeEntry( currentInstallDirKey, bd.installPrefix().toLocalFile() ); | ||
115 | buildDirGrp.writeEntry( currentExtraArgumentsKey, bd.extraArguments() ); | 115 | buildDirGrp.writeEntry( currentExtraArgumentsKey, bd.extraArguments() ); | ||
116 | buildDirGrp.writeEntry( currentBuildTypeKey, bd.buildType() ); | 116 | buildDirGrp.writeEntry( currentBuildTypeKey, bd.buildType() ); | ||
117 | buildDirGrp.writeEntry( projectBuildDirs, QStringList() << bd.buildFolder().toLocalFile()); | 117 | buildDirGrp.writeEntry( projectBuildDirs, QStringList() << bd.buildFolder().toLocalFile()); | ||
118 | 118 | | |||
119 | config.sync(); | 119 | config.sync(); | ||
120 | } | 120 | } | ||
121 | 121 | | |||
Show All 24 Lines |
The QMake one has a //TODO