cmake/Source/cmcmd.h

37 lines
1.2 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. */
2014-08-03 19:52:23 +02:00
#ifndef cmcmd_h
#define cmcmd_h
2017-07-20 19:35:53 +02:00
#include "cmConfigure.h" // IWYU pragma: keep
2018-01-26 17:06:56 +01:00
#include "cmCryptoHash.h"
2016-10-30 18:24:19 +01:00
#include <string>
#include <vector>
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.
*/
static int ExecuteCMakeCommand(std::vector<std::string>&);
2016-07-09 11:21:54 +02:00
protected:
2018-01-26 17:06:56 +01:00
static int HandleCoCompileCommands(std::vector<std::string>& args);
static int HashSumFile(std::vector<std::string>& args,
cmCryptoHash::Algo algo);
2014-08-03 19:52:23 +02:00
static int SymlinkLibrary(std::vector<std::string>& args);
static int SymlinkExecutable(std::vector<std::string>& args);
static bool SymlinkInternal(std::string const& file,
std::string const& link);
static int ExecuteEchoColor(std::vector<std::string>& args);
static int ExecuteLinkScript(std::vector<std::string>& args);
static int WindowsCEEnvironment(const char* version,
const std::string& name);
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
};
#endif