Changeset View
Changeset View
Standalone View
Standalone View
plugins/custom-definesandincludes/tests/projectsgenerator.cpp
Show First 20 Lines • Show All 86 Lines • ▼ Show 20 Line(s) | 85 | { | |||
---|---|---|---|---|---|
87 | createFile( file ); | 87 | createFile( file ); | ||
88 | } | 88 | } | ||
89 | { | 89 | { | ||
90 | QFile file( rootFolder.filePath( QStringLiteral(".kdev4/simpleproject.kdev4") ) ); | 90 | QFile file( rootFolder.filePath( QStringLiteral(".kdev4/simpleproject.kdev4") ) ); | ||
91 | createFile( file ); | 91 | createFile( file ); | ||
92 | QTextStream stream( &file ); | 92 | QTextStream stream( &file ); | ||
93 | stream << "[Buildset]\n" << | 93 | stream << "[Buildset]\n" << | ||
94 | "BuildItems=@Variant(\\x00\\x00\\x00\\t\\x00\\x00\\x00\\x00\\x01\\x00\\x00\\x00\\x0b\\x00\\x00\\x00\\x00\\x01\\x00\\x00\\x00\\x1a\\x00S\\x00i\\x00m\\x00p\\x00l\\x00e\\x00P\\x00r\\x00o\\x00j\\x00e\\x00c\\x00t)\n" << | 94 | "BuildItems=@Variant(\\x00\\x00\\x00\\t\\x00\\x00\\x00\\x00\\x01\\x00\\x00\\x00\\x0b\\x00\\x00\\x00\\x00\\x01\\x00\\x00\\x00\\x1a\\x00S\\x00i\\x00m\\x00p\\x00l\\x00e\\x00P\\x00r\\x00o\\x00j\\x00e\\x00c\\x00t)\n" << | ||
95 | "[CustomBuildSystem]\n" << "CurrentConfiguration=BuildConfig0\n" << | | |||
96 | "[CustomDefinesAndIncludes][ProjectPath0]\n" << | 95 | "[CustomDefinesAndIncludes][ProjectPath0]\n" << | ||
97 | "Defines=\\x00\\x00\\x00\\x02\\x00\\x00\\x00\\x0c\\x00_\\x00D\\x00E\\x00B\\x00U\\x00G\\x00\\x00\\x00\\n\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x10\\x00V\\x00A\\x00R\\x00I\\x00A\\x00B\\x00L\\x00E\\x00\\x00\\x00\\n\\x00\\x00\\x00\\x00\\n\\x00V\\x00A\\x00L\\x00U\\x00E\n" << | | |||
98 | "Includes=\\x00\\x00\\x00\\x01\\x00\\x00\\x00$\\x00/\\x00u\\x00s\\x00r\\x00/\\x00i\\x00n\\x00c\\x00l\\x00u\\x00d\\x00e\\x00/\\x00m\\x00y\\x00d\\x00i\\x00r\n" << | | |||
99 | "Path=/\n" << | 96 | "Path=/\n" << | ||
97 | "[CustomDefinesAndIncludes][ProjectPath0][Defines]\n" << | ||||
98 | "_DEBUG=\n" << | ||||
99 | "VARIABLE=VALUE\n" << | ||||
100 | "[CustomDefinesAndIncludes][ProjectPath0][Includes]\n" << | ||||
101 | "1=" << QDir::rootPath() << "usr/include/mydir\n" << | ||||
100 | "[Project]\n" << | 102 | "[Project]\n" << | ||
101 | "VersionControlSupport=\n"; | 103 | "VersionControlSupport=\n"; | ||
102 | } | 104 | } | ||
103 | return loadProject( QDir::tempPath() + "/simpleproject/simpleproject.kdev4", QStringLiteral("SimpleProject") ); | 105 | return loadProject( QDir::tempPath() + "/simpleproject/simpleproject.kdev4", QStringLiteral("SimpleProject") ); | ||
104 | } | 106 | } | ||
105 | 107 | | |||
106 | IProject* ProjectsGenerator::GenerateMultiPathProject() | 108 | IProject* ProjectsGenerator::GenerateMultiPathProject() | ||
107 | { | 109 | { | ||
Show All 26 Lines | 132 | { | |||
134 | createFile( file2 ); | 136 | createFile( file2 ); | ||
135 | } | 137 | } | ||
136 | { | 138 | { | ||
137 | QFile file( rootFolder.filePath( QStringLiteral(".kdev4/multipathproject.kdev4") ) ); | 139 | QFile file( rootFolder.filePath( QStringLiteral(".kdev4/multipathproject.kdev4") ) ); | ||
138 | createFile( file ); | 140 | createFile( file ); | ||
139 | QTextStream stream( &file ); | 141 | QTextStream stream( &file ); | ||
140 | stream << "[Buildset]\n" << | 142 | stream << "[Buildset]\n" << | ||
141 | "BuildItems=@Variant(\\x00\\x00\\x00\\t\\x00\\x00\\x00\\x00\\x01\\x00\\x00\\x00\\x0b\\x00\\x00\\x00\\x00\\x01\\x00\\x00\\x00 \\x00M\\x00u\\x00l\\x00t\\x00i\\x00P\\x00a\\x00t\\x00h\\x00P\\x00r\\x00o\\x00j\\x00e\\x00c\\x00t)\n" << | 143 | "BuildItems=@Variant(\\x00\\x00\\x00\\t\\x00\\x00\\x00\\x00\\x01\\x00\\x00\\x00\\x0b\\x00\\x00\\x00\\x00\\x01\\x00\\x00\\x00 \\x00M\\x00u\\x00l\\x00t\\x00i\\x00P\\x00a\\x00t\\x00h\\x00P\\x00r\\x00o\\x00j\\x00e\\x00c\\x00t)\n" << | ||
142 | "[CustomBuildSystem]\n" << | | |||
143 | "CurrentConfiguration=BuildConfig0\n" << | | |||
144 | "[CustomDefinesAndIncludes][ProjectPath0]\n" << | 144 | "[CustomDefinesAndIncludes][ProjectPath0]\n" << | ||
145 | "Defines=\\x00\\x00\\x00\\x02\\x00\\x00\\x00\\n\\x00_\\x00C\\x00O\\x00P\\x00Y\\x00\\x00\\x00\\n\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x0c\\x00S\\x00O\\x00U\\x00R\\x00C\\x00E\\x00\\x00\\x00\\n\\x00\\x00\\x00\\x00\\x0e\\x00C\\x00O\\x00N\\x00T\\x00E\\x00N\\x00T\n" << | | |||
146 | "Includes=\\x00\\x00\\x00\\x01\\x00\\x00\\x00*\\x00/\\x00u\\x00s\\x00r\\x00/\\x00i\\x00n\\x00c\\x00l\\x00u\\x00d\\x00e\\x00/\\x00o\\x00t\\x00h\\x00e\\x00r\\x00d\\x00i\\x00r\n" << | | |||
147 | "Path=.\n" << | 145 | "Path=.\n" << | ||
146 | "[CustomDefinesAndIncludes][ProjectPath0][Defines]\n" << | ||||
147 | "SOURCE=CONTENT\n" << | ||||
148 | "_COPY=\n" << | ||||
149 | "[CustomDefinesAndIncludes][ProjectPath0][Includes]\n" << | ||||
150 | "1=" << QDir::rootPath() << "usr/include/otherdir\n" << | ||||
148 | "[CustomDefinesAndIncludes][ProjectPath1]\n" << | 151 | "[CustomDefinesAndIncludes][ProjectPath1]\n" << | ||
149 | "Defines=\\x00\\x00\\x00\\x01\\x00\\x00\\x00\\n\\x00B\\x00U\\x00I\\x00L\\x00D\\x00\\x00\\x00\\n\\x00\\x00\\x00\\x00\\n\\x00d\\x00e\\x00b\\x00u\\x00g\n" << | | |||
150 | "Includes=\\x00\\x00\\x00\\x01\\x00\\x00\\x000\\x00/\\x00u\\x00s\\x00r\\x00/\\x00l\\x00o\\x00c\\x00a\\x00l\\x00/\\x00i\\x00n\\x00c\\x00l\\x00u\\x00d\\x00e\\x00/\\x00m\\x00y\\x00d\\x00i\\x00r\n" << | | |||
151 | "Path=src\n" << | 152 | "Path=src\n" << | ||
153 | "[CustomDefinesAndIncludes][ProjectPath1][Defines]\n" << | ||||
154 | "BUILD=debug\n" << | ||||
155 | "[CustomDefinesAndIncludes][ProjectPath1][Includes]\n" << | ||||
156 | "1=" << QDir::rootPath() << "usr/local/include/mydir\n" << | ||||
152 | "[CustomDefinesAndIncludes][ProjectPath2]\n" << | 157 | "[CustomDefinesAndIncludes][ProjectPath2]\n" << | ||
153 | "Defines=\\x00\\x00\\x00\\x01\\x00\\x00\\x00\\x0c\\x00H\\x00I\\x00D\\x00D\\x00E\\x00N\\x00\\x00\\x00\\n\\x00\\x00\\x00\\x00\\x00\n" << | | |||
154 | "Path=anotherFolder\n" << | 158 | "Path=anotherFolder\n" << | ||
159 | "[CustomDefinesAndIncludes][ProjectPath2][Defines]\n" << | ||||
160 | "HIDDEN=\n" << | ||||
155 | "[Project]\n" << | 161 | "[Project]\n" << | ||
156 | "VersionControlSupport=\n"; | 162 | "VersionControlSupport=\n"; | ||
157 | } | 163 | } | ||
158 | return loadProject( QDir::tempPath() + "/multipathproject/multipathproject.kdev4", QStringLiteral("MultiPathProject") ); | 164 | return loadProject( QDir::tempPath() + "/multipathproject/multipathproject.kdev4", QStringLiteral("MultiPathProject") ); | ||
159 | } | 165 | } | ||
160 | 166 | | |||
161 | IProject* ProjectsGenerator::GenerateSimpleProjectWithOutOfProjectFiles() | 167 | IProject* ProjectsGenerator::GenerateSimpleProjectWithOutOfProjectFiles() | ||
162 | { | 168 | { | ||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |