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. */
|
2008-10-12 18:41:06 +02:00
|
|
|
#ifndef cmFileCommand_h
|
|
|
|
#define cmFileCommand_h
|
|
|
|
|
2018-01-26 17:06:56 +01:00
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
2017-07-20 19:35:53 +02:00
|
|
|
|
2017-04-14 19:02:05 +02:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2008-10-12 18:41:06 +02:00
|
|
|
#include "cmCommand.h"
|
|
|
|
|
2017-04-14 19:02:05 +02:00
|
|
|
class cmExecutionStatus;
|
2008-10-12 18:41:06 +02:00
|
|
|
|
|
|
|
/** \class cmFileCommand
|
|
|
|
* \brief Command for manipulation of files
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
class cmFileCommand : public cmCommand
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
/**
|
|
|
|
* This is a virtual constructor for the command.
|
|
|
|
*/
|
2018-01-26 17:06:56 +01:00
|
|
|
cmCommand* Clone() override { return new cmFileCommand; }
|
2008-10-12 18:41:06 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This is called when the command is first encountered in
|
|
|
|
* the CMakeLists.txt file.
|
|
|
|
*/
|
2016-10-30 18:24:19 +01:00
|
|
|
bool InitialPass(std::vector<std::string> const& args,
|
2018-01-26 17:06:56 +01:00
|
|
|
cmExecutionStatus& status) override;
|
2008-10-12 18:41:06 +02:00
|
|
|
|
|
|
|
protected:
|
2009-10-04 10:30:41 +03:00
|
|
|
bool HandleRename(std::vector<std::string> const& args);
|
2008-10-12 18:41:06 +02:00
|
|
|
bool HandleRemove(std::vector<std::string> const& args, bool recurse);
|
|
|
|
bool HandleWriteCommand(std::vector<std::string> const& args, bool append);
|
|
|
|
bool HandleReadCommand(std::vector<std::string> const& args);
|
2012-02-18 12:40:36 +02:00
|
|
|
bool HandleHashCommand(std::vector<std::string> const& args);
|
2008-10-12 18:41:06 +02:00
|
|
|
bool HandleStringsCommand(std::vector<std::string> const& args);
|
|
|
|
bool HandleGlobCommand(std::vector<std::string> const& args, bool recurse);
|
2018-08-09 18:06:22 +02:00
|
|
|
bool HandleTouchCommand(std::vector<std::string> const& args, bool create);
|
2008-10-12 18:41:06 +02:00
|
|
|
bool HandleMakeDirectoryCommand(std::vector<std::string> const& args);
|
|
|
|
|
|
|
|
bool HandleRelativePathCommand(std::vector<std::string> const& args);
|
|
|
|
bool HandleCMakePathCommand(std::vector<std::string> const& args,
|
|
|
|
bool nativePath);
|
2017-07-20 19:35:53 +02:00
|
|
|
bool HandleReadElfCommand(std::vector<std::string> const& args);
|
2008-10-12 18:41:06 +02:00
|
|
|
bool HandleRPathChangeCommand(std::vector<std::string> const& args);
|
|
|
|
bool HandleRPathCheckCommand(std::vector<std::string> const& args);
|
|
|
|
bool HandleRPathRemoveCommand(std::vector<std::string> const& args);
|
2009-02-07 16:14:30 +02:00
|
|
|
bool HandleDifferentCommand(std::vector<std::string> const& args);
|
2008-10-12 18:41:06 +02:00
|
|
|
|
2009-10-04 10:30:41 +03:00
|
|
|
bool HandleCopyCommand(std::vector<std::string> const& args);
|
2008-10-12 18:41:06 +02:00
|
|
|
bool HandleInstallCommand(std::vector<std::string> const& args);
|
|
|
|
bool HandleDownloadCommand(std::vector<std::string> const& args);
|
2011-06-19 15:41:06 +03:00
|
|
|
bool HandleUploadCommand(std::vector<std::string> const& args);
|
2013-03-16 19:13:01 +02:00
|
|
|
|
|
|
|
bool HandleTimestampCommand(std::vector<std::string> const& args);
|
2013-11-03 12:27:13 +02:00
|
|
|
bool HandleGenerateCommand(std::vector<std::string> const& args);
|
2015-04-27 22:25:09 +02:00
|
|
|
bool HandleLockCommand(std::vector<std::string> const& args);
|
2013-11-03 12:27:13 +02:00
|
|
|
|
|
|
|
private:
|
2016-07-09 11:21:54 +02:00
|
|
|
void AddEvaluationFile(const std::string& inputName,
|
|
|
|
const std::string& outputExpr,
|
|
|
|
const std::string& condition, bool inputIsContent);
|
2008-10-12 18:41:06 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|