| 193 | } |
| 194 | |
| 195 | IProject* ProjectsGenerator::GenerateEmptyBuildDirProject() |
| 196 | { |
| 197 | const QString ebp = QStringLiteral( "emptybuilddirproject" ); |
| 198 | auto rootFolder = QDir::temp(); |
| 199 | QDir(rootFolder.absolutePath() + QStringLiteral( "/" ) + ebp).removeRecursively(); |
| 200 | rootFolder.mkdir( ebp ); |
| 201 | rootFolder.cd( ebp ); |
| 202 | rootFolder.mkdir( QStringLiteral("src") ); |
| 203 | rootFolder.mkdir( QStringLiteral(".kdev4") ); |
| 204 | |
| 205 | { |
| 206 | QFile file( rootFolder.filePath( QStringLiteral("emptybuilddirproject.kdev4") ) ); |
| 207 | createFile( file ); |
| 208 | QTextStream stream1( &file ); |
| 209 | stream1 << "[Project]\nName=EmptyBuildDirProject\nManager=KDevCustomBuildSystem"; |
| 210 | } |
| 211 | { |
| 212 | QFile file( rootFolder.filePath( QStringLiteral("src/main.cpp") ) ); |
| 213 | createFile( file ); |
| 214 | } |
| 215 | { |
| 216 | QFile file( rootFolder.filePath( QStringLiteral(".kdev4/emptybuilddirproject.kdev4") ) ); |
| 217 | createFile( file ); |
| 218 | QTextStream stream( &file ); |
| 219 | stream << "[Buildset]\n" << |
| 220 | "BuildItems=@Variant(\x00\x00\x00\t\x00\x00\x00\x00\x01\x00\x00\x00\x0b\x00\x00\x00\x00\x01\x00\x00\x00(\x00E\x00m\x00p\x00t\x00y\x00B\x00u\x00i\x00l\x00d\x00d\x00i\x00r\x00P\x00r\x00o\x00j\x00e\x00c\x00t)\n\n" << |
| 221 | "[CustomBuildSystem]\n" << |
| 222 | "CurrentConfiguration=BuildConfig0\n\n" << |
| 223 | "[CustomBuildSystem][BuildConfig0]\n" << |
| 224 | "BuildDir=" << |
| 225 | "Title=mainbuild\n\n" << |
| 226 | |
| 227 | "[CustomDefinesAndIncludes][ProjectPath0]\n" << |
| 228 | "Path=/\n" << |
| 229 | "[CustomDefinesAndIncludes][ProjectPath0][Defines]\n" << |
| 230 | "_DEBUG=\n" << |
| 231 | "VARIABLE=VALUE\n" << |
| 232 | "[CustomDefinesAndIncludes][ProjectPath0][Includes]\n" << |
| 233 | "1=" << QDir::rootPath() << "usr/include/mydir\n" << |
| 234 | "[Project]\n" << |
| 235 | "VersionControlSupport=\n"; |
| 236 | } |
| 237 | return loadProject( QDir::tempPath() + QStringLiteral( "/simpleproject/simpleproject.kdev4" ), QStringLiteral("SimpleProject") ); |
| 238 | } |
| 239 | |
| 240 | |
| 241 | } // KDevelop |
nothing calls this directly
no test coverage detected