Changeset View
Changeset View
Standalone View
Standalone View
plugins/cmake/cmakeprojectdata.h
Show All 35 Lines | |||||
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 | QHash<QString, QString> defines; | 43 | QHash<QString, QString> defines; | ||
44 | | ||||
45 | bool isEmpty() const | ||||
46 | { | ||||
47 | return includes.isEmpty() && frameworkDirectories.isEmpty() | ||||
48 | && compileFlags.isEmpty() && defines.isEmpty(); | ||||
49 | } | ||||
44 | }; | 50 | }; | ||
45 | inline QDebug &operator<<(QDebug debug, const CMakeFile& file) | 51 | inline QDebug &operator<<(QDebug debug, const CMakeFile& file) | ||
46 | { | 52 | { | ||
47 | debug << "CMakeFile(-I" << file.includes << ", -F" << file.frameworkDirectories << ", -D" << file.defines << ")"; | 53 | debug << "CMakeFile(-I" << file.includes << ", -F" << file.frameworkDirectories << ", -D" << file.defines << ")"; | ||
48 | return debug.maybeSpace(); | 54 | return debug.maybeSpace(); | ||
49 | } | 55 | } | ||
50 | 56 | | |||
51 | struct CMakeFilesCompilationData | 57 | struct CMakeFilesCompilationData | ||
▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines |