diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2016-09-09 08:01:44 (GMT) |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2016-09-22 14:30:02 (GMT) |
commit | 277ffa2881d4073a660490f959cb58ad0dcb3f82 (patch) | |
tree | 977673e28b98ca17782990d8a3325291b2317b10 /Source/cmServerProtocol.cxx | |
parent | f4475eb92beade22fca16f21b40df19b48c6559b (diff) | |
download | CMake-277ffa2881d4073a660490f959cb58ad0dcb3f82.zip CMake-277ffa2881d4073a660490f959cb58ad0dcb3f82.tar.gz CMake-277ffa2881d4073a660490f959cb58ad0dcb3f82.tar.bz2 |
server-mode: Move constants for server mode into its own file
This removes some duplication and makes it easier to reuse the
vocabulary.
Diffstat (limited to 'Source/cmServerProtocol.cxx')
-rw-r--r-- | Source/cmServerProtocol.cxx | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/Source/cmServerProtocol.cxx b/Source/cmServerProtocol.cxx index 26942d3..030b0fd 100644 --- a/Source/cmServerProtocol.cxx +++ b/Source/cmServerProtocol.cxx @@ -14,23 +14,17 @@ #include "cmExternalMakefileProjectGenerator.h" #include "cmServer.h" +#include "cmServerDictionary.h" #include "cmSystemTools.h" #include "cmake.h" +#include "cmServerDictionary.h" + #if defined(CMAKE_BUILD_WITH_CMAKE) #include "cm_jsoncpp_reader.h" #include "cm_jsoncpp_value.h" #endif -// Vocabulary: - -static const std::string kBUILD_DIRECTORY_KEY = "buildDirectory"; -static const std::string kCOOKIE_KEY = "cookie"; -static const std::string kEXTRA_GENERATOR_KEY = "extraGenerator"; -static const std::string kGENERATOR_KEY = "generator"; -static const std::string kSOURCE_DIRECTORY_KEY = "sourceDirectory"; -static const std::string kTYPE_KEY = "type"; - cmServerRequest::cmServerRequest(cmServer* server, const std::string& t, const std::string& c, const Json::Value& d) : Type(t) |