cmake/Source/cmcmd.h

44 lines
1.6 KiB
C
Raw Normal View History

2016-10-30 18:24:19 +01:00
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
2021-09-14 00:13:48 +02:00
#pragma once
2014-08-03 19:52:23 +02:00
2017-07-20 19:35:53 +02:00
#include "cmConfigure.h" // IWYU pragma: keep
2016-10-30 18:24:19 +01:00
2021-09-14 00:13:48 +02:00
#include <memory>
2016-10-30 18:24:19 +01:00
#include <string>
#include <vector>
2014-08-03 19:52:23 +02:00
2021-09-14 00:13:48 +02:00
#include "cmsys/Status.hxx"
2020-02-01 23:06:01 +01:00
#include "cmCryptoHash.h"
2021-09-14 00:13:48 +02:00
class cmConsoleBuf;
2014-08-03 19:52:23 +02:00
class cmcmd
{
public:
/**
* Execute commands during the build process. Supports options such
* as echo, remove file etc.
*/
2021-09-14 00:13:48 +02:00
static int ExecuteCMakeCommand(std::vector<std::string> const&,
std::unique_ptr<cmConsoleBuf> consoleBuf);
2014-08-03 19:52:23 +02:00
2016-07-09 11:21:54 +02:00
protected:
2019-11-11 23:01:05 +01:00
static int HandleCoCompileCommands(std::vector<std::string> const& args);
static int HashSumFile(std::vector<std::string> const& args,
2018-01-26 17:06:56 +01:00
cmCryptoHash::Algo algo);
2019-11-11 23:01:05 +01:00
static int SymlinkLibrary(std::vector<std::string> const& args);
static int SymlinkExecutable(std::vector<std::string> const& args);
2021-09-14 00:13:48 +02:00
static cmsys::Status SymlinkInternal(std::string const& file,
std::string const& link);
2019-11-11 23:01:05 +01:00
static int ExecuteEchoColor(std::vector<std::string> const& args);
static int ExecuteLinkScript(std::vector<std::string> const& args);
2014-08-03 19:52:23 +02:00
static int WindowsCEEnvironment(const char* version,
const std::string& name);
2020-08-30 11:54:41 +02:00
static int RunPreprocessor(const std::vector<std::string>& command,
const std::string& intermediate_file);
static int RunLLVMRC(std::vector<std::string> const& args);
2018-01-26 17:06:56 +01:00
static int VisualStudioLink(std::vector<std::string> const& args, int type);
2014-08-03 19:52:23 +02:00
};