cmInstallFilesGenerator.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 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 cmInstallFilesGenerator_h
  11. #define cmInstallFilesGenerator_h
  12. #include "cmInstallGenerator.h"
  13. /** \class cmInstallFilesGenerator
  14. * \brief Generate file installation rules.
  15. */
  16. class cmInstallFilesGenerator: public cmInstallGenerator
  17. {
  18. public:
  19. cmInstallFilesGenerator(std::vector<std::string> const& files,
  20. const char* dest, bool programs,
  21. const char* file_permissions,
  22. std::vector<std::string> const& configurations,
  23. const char* component,
  24. MessageLevel message,
  25. const char* rename,
  26. bool optional = false);
  27. virtual ~cmInstallFilesGenerator();
  28. void Compute(cmLocalGenerator* lg);
  29. std::string GetDestination(std::string const& config) const;
  30. protected:
  31. virtual void GenerateScriptActions(std::ostream& os, Indent const& indent);
  32. virtual void GenerateScriptForConfig(std::ostream& os,
  33. const std::string& config,
  34. Indent const& indent);
  35. void AddFilesInstallRule(std::ostream& os,
  36. const std::string config,
  37. Indent const& indent,
  38. std::vector<std::string> const& files);
  39. cmLocalGenerator* LocalGenerator;
  40. std::vector<std::string> Files;
  41. std::string FilePermissions;
  42. std::string Rename;
  43. bool Programs;
  44. bool Optional;
  45. };
  46. #endif