cmInstallFilesGenerator.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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, MessageLevel message,
  24. bool exclude_from_all, const char* rename,
  25. bool optional = false);
  26. virtual ~cmInstallFilesGenerator();
  27. void Compute(cmLocalGenerator* lg);
  28. std::string GetDestination(std::string const& config) const;
  29. protected:
  30. virtual void GenerateScriptActions(std::ostream& os, Indent const& indent);
  31. virtual void GenerateScriptForConfig(std::ostream& os,
  32. const std::string& config,
  33. Indent const& indent);
  34. void AddFilesInstallRule(std::ostream& os, std::string const& config,
  35. Indent const& indent,
  36. std::vector<std::string> const& files);
  37. cmLocalGenerator* LocalGenerator;
  38. std::vector<std::string> Files;
  39. std::string FilePermissions;
  40. std::string Rename;
  41. bool Programs;
  42. bool Optional;
  43. };
  44. #endif