cmInstallGenerator.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*=========================================================================
  2. Program: CMake - Cross-Platform Makefile Generator
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Kitware, Inc., Insight Consortium. All rights reserved.
  8. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #ifndef cmInstallGenerator_h
  14. #define cmInstallGenerator_h
  15. #include "cmStandardIncludes.h"
  16. class cmLocalGenerator;
  17. /** \class cmInstallGenerator
  18. * \brief Support class for generating install scripts.
  19. *
  20. */
  21. class cmInstallGenerator
  22. {
  23. public:
  24. cmInstallGenerator();
  25. virtual ~cmInstallGenerator();
  26. void Generate(std::ostream& os, const char* config,
  27. std::vector<std::string> const& configurationTypes);
  28. static void AddInstallRule(
  29. std::ostream& os, const char* dest, int type,
  30. const char* file, bool optional = false,
  31. const char* properties = 0,
  32. const char* permissions = 0,
  33. std::vector<std::string> const& configurations
  34. = std::vector<std::string>(),
  35. const char* component = 0,
  36. const char* rename = 0
  37. );
  38. protected:
  39. virtual void GenerateScript(std::ostream& os)=0;
  40. const char* ConfigurationName;
  41. std::vector<std::string> const* ConfigurationTypes;
  42. };
  43. #endif