cmInstallGenerator.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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_file = 0,
  33. const char* permissions_dir = 0,
  34. std::vector<std::string> const& configurations
  35. = std::vector<std::string>(),
  36. const char* component = 0,
  37. const char* rename = 0,
  38. const char* literal_args = 0
  39. );
  40. protected:
  41. virtual void GenerateScript(std::ostream& os)=0;
  42. const char* ConfigurationName;
  43. std::vector<std::string> const* ConfigurationTypes;
  44. };
  45. #endif