cmConfigureFileCommand.h 1022 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmConfigureFileCommand_h
  4. #define cmConfigureFileCommand_h
  5. #include "cmConfigure.h"
  6. #include <string>
  7. #include <vector>
  8. #include "cmCommand.h"
  9. #include "cmNewLineStyle.h"
  10. class cmExecutionStatus;
  11. class cmConfigureFileCommand : public cmCommand
  12. {
  13. public:
  14. cmCommand* Clone() CM_OVERRIDE { return new cmConfigureFileCommand; }
  15. /**
  16. * This is called when the command is first encountered in
  17. * the input file.
  18. */
  19. bool InitialPass(std::vector<std::string> const& args,
  20. cmExecutionStatus& status) CM_OVERRIDE;
  21. /**
  22. * The name of the command as specified in CMakeList.txt.
  23. */
  24. std::string GetName() const CM_OVERRIDE { return "configure_file"; }
  25. private:
  26. int ConfigureFile();
  27. cmNewLineStyle NewLineStyle;
  28. std::string InputFile;
  29. std::string OutputFile;
  30. bool CopyOnly;
  31. bool EscapeQuotes;
  32. bool AtOnly;
  33. };
  34. #endif