ui: Added ui for compiler flags to project setup summary

bug id = 37
This commit is contained in:
Eberhard Graether
2016-03-02 11:59:55 +01:00
parent 2ebfbbf88e
commit 346a6f706d
11 changed files with 170 additions and 20 deletions
+7 -1
View File
@@ -51,7 +51,8 @@ bool ProjectSettings::operator==(const ProjectSettings& other) const
getUseSourcePathsForHeaderSearch() == other.getUseSourcePathsForHeaderSearch() &&
utility::isPermutation<FilePath>(getSourcePaths(), other.getSourcePaths()) &&
utility::isPermutation<FilePath>(getHeaderSearchPaths(), other.getHeaderSearchPaths()) &&
utility::isPermutation<FilePath>(getFrameworkSearchPaths(), other.getFrameworkSearchPaths());
utility::isPermutation<FilePath>(getFrameworkSearchPaths(), other.getFrameworkSearchPaths()) &&
utility::isPermutation<std::string>(getCompilerFlags(), other.getCompilerFlags());
}
void ProjectSettings::save(const FilePath& filePath)
@@ -122,6 +123,11 @@ std::vector<std::string> ProjectSettings::getCompilerFlags() const
return getValues("source/compiler_flags/compiler_flag", defaultValues);
}
bool ProjectSettings::setCompilerFlags(const std::vector<std::string>& compilerFlags)
{
return setValues("source/compiler_flags/compiler_flag", compilerFlags);
}
std::vector<std::string> ProjectSettings::getHeaderExtensions() const
{
return getValues("source/extensions/header_extensions", getDefaultHeaderExtensions());