cmcmd.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  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 cmcmd_h
  4. #define cmcmd_h
  5. #include "cmConfigure.h" // IWYU pragma: keep
  6. #include "cmCryptoHash.h"
  7. #include <string>
  8. #include <vector>
  9. class cmcmd
  10. {
  11. public:
  12. /**
  13. * Execute commands during the build process. Supports options such
  14. * as echo, remove file etc.
  15. */
  16. static int ExecuteCMakeCommand(std::vector<std::string>&);
  17. protected:
  18. static int HandleCoCompileCommands(std::vector<std::string>& args);
  19. static int HashSumFile(std::vector<std::string>& args,
  20. cmCryptoHash::Algo algo);
  21. static int SymlinkLibrary(std::vector<std::string>& args);
  22. static int SymlinkExecutable(std::vector<std::string>& args);
  23. static bool SymlinkInternal(std::string const& file,
  24. std::string const& link);
  25. static int ExecuteEchoColor(std::vector<std::string>& args);
  26. static int ExecuteLinkScript(std::vector<std::string>& args);
  27. static int WindowsCEEnvironment(const char* version,
  28. const std::string& name);
  29. static int VisualStudioLink(std::vector<std::string> const& args, int type);
  30. };
  31. #endif