summaryrefslogtreecommitdiffstats
path: root/Source/cmServer.cxx
Commit message (Collapse)AuthorAgeFilesLines
* cmServer: add braces around conditional statementsDaniel Pfeifer2016-09-231-12/+24
|
* server-mode: Allow for sending signalsTobias Hunger2016-09-221-0/+13
| | | | Enable the server to send signals.
* server-mode: Pass server into cmServerProtocolTobias Hunger2016-09-221-1/+1
| | | | The information will be needed to send signals.
* server-mode: Move constants for server mode into its own fileTobias Hunger2016-09-221-35/+29
| | | | | This removes some duplication and makes it easier to reuse the vocabulary.
* server-mode: Introduce cmServerConnectionTobias Hunger2016-09-221-126/+19
| | | | | | | | Use it to split pipe and stdin/out handling out of cmServer itself. The server will shut down when it looses its connection to the client. This has the nice property that a crashing client will cause the server to terminate as the OS will close the connection on behave of the client.
* server-mode: Add debug supportTobias Hunger2016-09-201-13/+69
| | | | | | | | | | Enable the server to support development with some helper tools: You can now request debug information with statistics on how long execution of a command took, how long it took to serialize the JSON files, and how big the serialized JSON string is. Also allow to dump results into a file.
* server-mode: Report Messages from cmake to clientsTobias Hunger2016-09-201-1/+37
| | | | | Pass messages sent from cmake via Error(...) or Message(...) on to clients.
* server-mode: Automate progress reportingTobias Hunger2016-09-201-2/+18
| | | | | Wire up cmake::SetProgressUpdate to do progress reporting via the cmake server.
* cmake-server: Use consistent constant naming styleTobias Hunger2016-09-201-22/+21
|
* server-mode: Add --experimental flagTobias Hunger2016-09-201-4/+15
| | | | | | | | Allow for experimental cmProtocolVersions, which will only ever get listed if the server was started with the (undocumented) "--experimental" flag. Mark current protocol version 1.0 as experimental.
* cmake-server: Implement ServerProtocol 1.0Tobias Hunger2016-09-191-0/+3
| | | | | | | | | | | | | | Enable the initial handshake of the client to complete the connection to the server. The handshake sets the protocol version that client and server will use to talk to each other. The only way to change this is to quit the server and start over. CMake specific information is also set during the initial handshake. Since cmake so far never had to change basic information about any project while running, it was decided to keep this information static and require a restart of the cmake server to change any of these.
* cmake-server: Bare-bones server implementationTobias Hunger2016-09-191-0/+352
Adds a bare-bones cmake-server implementation and makes it possible to start that with "cmake -E server". Communication happens via stdin/stdout for now. Protocol is based on Json objects surrounded by magic strings ("[== CMake Server ==[" and "]== CMake Server ==]"), which simplifies Json parsing significantly. This patch also defines an interface used to implement different versions of the protocol spoken by the server, but does not include any protocol implementaiton.