2016-09-27 15:01:08 -04:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2001-05-07 18:11:16 -04:00
|
|
|
#ifndef cmConfigureFileCommand_h
|
|
|
|
#define cmConfigureFileCommand_h
|
2001-04-27 14:25:42 -04:00
|
|
|
|
2017-08-25 20:39:02 +02:00
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
2017-04-11 21:42:35 +02:00
|
|
|
|
2016-10-25 20:35:04 +02:00
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
|
|
|
|
2001-04-27 14:25:42 -04:00
|
|
|
#include "cmCommand.h"
|
2016-10-25 20:35:04 +02:00
|
|
|
#include "cmNewLineStyle.h"
|
|
|
|
|
|
|
|
class cmExecutionStatus;
|
2001-04-27 14:25:42 -04:00
|
|
|
|
2001-05-07 18:11:16 -04:00
|
|
|
class cmConfigureFileCommand : public cmCommand
|
2001-04-27 14:25:42 -04:00
|
|
|
{
|
|
|
|
public:
|
2017-09-15 09:56:26 -04:00
|
|
|
cmCommand* Clone() override { return new cmConfigureFileCommand; }
|
2001-04-27 14:25:42 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* This is called when the command is first encountered in
|
|
|
|
* the input file.
|
|
|
|
*/
|
2016-06-27 21:25:27 +02:00
|
|
|
bool InitialPass(std::vector<std::string> const& args,
|
2017-09-15 09:56:26 -04:00
|
|
|
cmExecutionStatus& status) override;
|
2001-04-27 14:25:42 -04:00
|
|
|
|
|
|
|
private:
|
2004-03-28 16:00:57 -05:00
|
|
|
int ConfigureFile();
|
2012-08-13 13:42:58 -04:00
|
|
|
|
2011-11-20 14:04:11 +01:00
|
|
|
cmNewLineStyle NewLineStyle;
|
|
|
|
|
2006-03-15 11:02:08 -05:00
|
|
|
std::string InputFile;
|
2009-09-16 15:09:19 -04:00
|
|
|
std::string OutputFile;
|
2018-04-03 22:18:48 +01:00
|
|
|
bool CopyOnly = false;
|
|
|
|
bool EscapeQuotes = false;
|
|
|
|
bool AtOnly = false;
|
2001-04-27 14:25:42 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|