cmConfigureFileCommand.h 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 "cmCommand.h"
  6. class cmConfigureFileCommand : public cmCommand
  7. {
  8. public:
  9. cmCommand* Clone() CM_OVERRIDE { return new cmConfigureFileCommand; }
  10. /**
  11. * This is called when the command is first encountered in
  12. * the input file.
  13. */
  14. bool InitialPass(std::vector<std::string> const& args,
  15. cmExecutionStatus& status) CM_OVERRIDE;
  16. /**
  17. * The name of the command as specified in CMakeList.txt.
  18. */
  19. std::string GetName() const CM_OVERRIDE { return "configure_file"; }
  20. /**
  21. * This determines if the command is invoked when in script mode.
  22. */
  23. bool IsScriptable() const CM_OVERRIDE { return true; }
  24. private:
  25. int ConfigureFile();
  26. cmNewLineStyle NewLineStyle;
  27. std::string InputFile;
  28. std::string OutputFile;
  29. bool CopyOnly;
  30. bool EscapeQuotes;
  31. bool AtOnly;
  32. };
  33. #endif