diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-04-04 22:07:04 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-04-06 15:58:55 (GMT) |
commit | 1fe7f24c2b62734d501427750586d8063149ea58 (patch) | |
tree | 8c4147687adf4fa7d83deb44d7bce82360639525 /Source/cmake.h | |
parent | 08c642c6ae47fd075fe1060fc0e28d8a24cc3c00 (diff) | |
download | CMake-1fe7f24c2b62734d501427750586d8063149ea58.zip CMake-1fe7f24c2b62734d501427750586d8063149ea58.tar.gz CMake-1fe7f24c2b62734d501427750586d8063149ea58.tar.bz2 |
Add API for cache loading, deleting and saving to the cmake class.
Migrate existing users of the CacheManager API to use the new
API. The CacheManager will be going away soon.
Diffstat (limited to 'Source/cmake.h')
-rw-r--r-- | Source/cmake.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/Source/cmake.h b/Source/cmake.h index c22b329..3acf4a8 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -18,11 +18,11 @@ #include "cmPropertyDefinitionMap.h" #include "cmPropertyMap.h" #include "cmInstalledFile.h" +#include "cmCacheManager.h" class cmGlobalGeneratorFactory; class cmGlobalGenerator; class cmLocalGenerator; -class cmCacheManager; class cmMakefile; class cmCommand; class cmVariableWatch; @@ -173,7 +173,19 @@ class cmake int Configure(); int ActualConfigure(); + ///! Break up a line like VAR:type="value" into var, type and value + static bool ParseCacheEntry(const std::string& entry, + std::string& var, + std::string& value, + cmCacheManager::CacheEntryType& type); + int LoadCache(); + bool LoadCache(const std::string& path); + bool LoadCache(const std::string& path, bool internal, + std::set<std::string>& excludes, + std::set<std::string>& includes); + bool SaveCache(const std::string& path); + bool DeleteCache(const std::string& path); void PreLoadCMakeFiles(); ///! Create a GlobalGenerator |