cmcmd.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #pragma once
  4. #include "cmConfigure.h" // IWYU pragma: keep
  5. #include <memory>
  6. #include <string>
  7. #include <vector>
  8. #include "cmCryptoHash.h"
  9. class cmConsoleBuf;
  10. class cmcmd
  11. {
  12. public:
  13. /**
  14. * Execute commands during the build process. Supports options such
  15. * as echo, remove file etc.
  16. */
  17. static int ExecuteCMakeCommand(std::vector<std::string> const&,
  18. std::unique_ptr<cmConsoleBuf> consoleBuf);
  19. protected:
  20. static int HandleCoCompileCommands(std::vector<std::string> const& args);
  21. static int HashSumFile(std::vector<std::string> const& args,
  22. cmCryptoHash::Algo algo);
  23. static int SymlinkLibrary(std::vector<std::string> const& args);
  24. static int SymlinkExecutable(std::vector<std::string> const& args);
  25. static bool SymlinkInternal(std::string const& file,
  26. std::string const& link);
  27. static int ExecuteEchoColor(std::vector<std::string> const& args);
  28. static int ExecuteLinkScript(std::vector<std::string> const& args);
  29. static int WindowsCEEnvironment(const char* version,
  30. const std::string& name);
  31. static int RunPreprocessor(const std::vector<std::string>& command,
  32. const std::string& intermediate_file);
  33. static int RunLLVMRC(std::vector<std::string> const& args);
  34. static int VisualStudioLink(std::vector<std::string> const& args, int type);
  35. };