cmCustomCommandGenerator.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2010 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef cmCustomCommandGenerator_h
  11. #define cmCustomCommandGenerator_h
  12. #include "cmStandardIncludes.h"
  13. class cmCustomCommand;
  14. class cmMakefile;
  15. class cmLocalGenerator;
  16. class cmGeneratorExpression;
  17. class cmCustomCommandGenerator
  18. {
  19. cmCustomCommand const& CC;
  20. std::string Config;
  21. cmMakefile* Makefile;
  22. cmLocalGenerator* LG;
  23. bool OldStyle;
  24. bool MakeVars;
  25. cmGeneratorExpression* GE;
  26. public:
  27. cmCustomCommandGenerator(cmCustomCommand const& cc,
  28. const std::string& config,
  29. cmMakefile* mf);
  30. ~cmCustomCommandGenerator();
  31. cmCustomCommand const& GetCC() const { return this->CC; }
  32. unsigned int GetNumberOfCommands() const;
  33. std::string GetCommand(unsigned int c) const;
  34. void AppendArguments(unsigned int c, std::string& cmd) const;
  35. const char* GetComment() const;
  36. std::string GetWorkingDirectory() const;
  37. std::vector<std::string> const& GetOutputs() const;
  38. std::vector<std::string> const& GetDepends() const;
  39. };
  40. #endif