cmInstallExportGenerator.h 1.9 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 cmInstallExportGenerator_h
  11. #define cmInstallExportGenerator_h
  12. #include "cmInstallGenerator.h"
  13. class cmExportInstallFileGenerator;
  14. class cmInstallFilesGenerator;
  15. class cmInstallTargetGenerator;
  16. class cmExportSet;
  17. class cmMakefile;
  18. /** \class cmInstallExportGenerator
  19. * \brief Generate rules for creating an export files.
  20. */
  21. class cmInstallExportGenerator: public cmInstallGenerator
  22. {
  23. public:
  24. cmInstallExportGenerator(const char* name,
  25. const char* dest, const char* file_permissions,
  26. const std::vector<std::string>& configurations,
  27. const char* component,
  28. const char* filename, const char* name_space,
  29. cmMakefile* mf);
  30. ~cmInstallExportGenerator();
  31. protected:
  32. virtual void GenerateScript(std::ostream& os);
  33. virtual void GenerateScriptConfigs(std::ostream& os, Indent const& indent);
  34. virtual void GenerateScriptActions(std::ostream& os, Indent const& indent);
  35. void GenerateImportFile(cmExportSet const* exportSet);
  36. void GenerateImportFile(const char* config, cmExportSet const* exportSet);
  37. void ComputeTempDir();
  38. std::string Name;
  39. std::string FilePermissions;
  40. std::string FileName;
  41. std::string Namespace;
  42. cmMakefile* Makefile;
  43. std::string TempDir;
  44. std::string MainImportFile;
  45. cmExportInstallFileGenerator* EFGen;
  46. };
  47. #endif