MCPcopy Create free account
hub / github.com/Kitware/CMake / start

Method start

Source/cmInstallScriptHandler.cxx:196–213  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196void InstallScriptRunner::start(cm::uv_loop_ptr& loop,
197 std::function<void()> callback)
198{
199 cmUVProcessChainBuilder builder;
200 builder.AddCommand(this->command)
201 .SetExternalLoop(*loop)
202 .SetMergedBuiltinStreams();
203 this->chain = cm::make_unique<cmUVProcessChain>(builder.Start());
204 this->streamHandler = cmUVStreamRead(
205 this->chain->OutputStream(),
206 [this](std::vector<char> data) {
207 std::string strdata;
208 cmProcessOutput(cmProcessOutput::Auto)
209 .DecodeText(data.data(), data.size(), strdata);
210 this->output.push_back(strdata);
211 },
212 std::move(callback));
213}
214
215void InstallScriptRunner::printResult(std::size_t n, std::size_t total)
216{

Callers 1

InstallMethod · 0.45

Calls 10

cmUVStreamReadFunction · 0.85
cmProcessOutputClass · 0.85
moveFunction · 0.85
OutputStreamMethod · 0.80
DecodeTextMethod · 0.80
push_backMethod · 0.80
AddCommandMethod · 0.45
StartMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected