cmCustomCommandGenerator.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 cmCustomCommandGenerator
  17. {
  18. cmCustomCommand const& CC;
  19. const char* Config;
  20. cmMakefile* Makefile;
  21. cmLocalGenerator* LG;
  22. bool OldStyle;
  23. bool MakeVars;
  24. public:
  25. cmCustomCommandGenerator(cmCustomCommand const& cc, const char* config,
  26. cmMakefile* mf);
  27. unsigned int GetNumberOfCommands() const;
  28. std::string GetCommand(unsigned int c) const;
  29. void AppendArguments(unsigned int c, std::string& cmd) const;
  30. };
  31. #endif