Changeset View
Changeset View
Standalone View
Standalone View
plugins/cmake/cmakeprojectdata.h
Show All 34 Lines | |||||
35 | * | 35 | * | ||
36 | * Contains the required information to compile it properly | 36 | * Contains the required information to compile it properly | ||
37 | */ | 37 | */ | ||
38 | struct CMakeFile | 38 | struct CMakeFile | ||
39 | { | 39 | { | ||
40 | KDevelop::Path::List includes; | 40 | KDevelop::Path::List includes; | ||
41 | KDevelop::Path::List frameworkDirectories; | 41 | KDevelop::Path::List frameworkDirectories; | ||
42 | QString compileFlags; | 42 | QString compileFlags; | ||
43 | QString language; | ||||
43 | QHash<QString, QString> defines; | 44 | QHash<QString, QString> defines; | ||
44 | }; | 45 | }; | ||
45 | inline QDebug &operator<<(QDebug debug, const CMakeFile& file) | 46 | inline QDebug &operator<<(QDebug debug, const CMakeFile& file) | ||
46 | { | 47 | { | ||
47 | debug << "CMakeFile(-I" << file.includes << ", -F" << file.frameworkDirectories << ", -D" << file.defines << ")"; | 48 | debug << "CMakeFile(-I" << file.includes << ", -F" << file.frameworkDirectories << ", -D" << file.defines << ", " << file.language << ")"; | ||
48 | return debug.maybeSpace(); | 49 | return debug.maybeSpace(); | ||
49 | } | 50 | } | ||
50 | 51 | | |||
51 | struct CMakeFilesCompilationData | 52 | struct CMakeFilesCompilationData | ||
52 | { | 53 | { | ||
53 | QHash<KDevelop::Path, CMakeFile> files; | 54 | QHash<KDevelop::Path, CMakeFile> files; | ||
54 | bool isValid = false; | 55 | bool isValid = false; | ||
55 | }; | 56 | }; | ||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |