cmCPackSTGZGenerator.h 883 B

123456789101112131415161718192021222324252627282930313233343536
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmCPackSTGZGenerator_h
  4. #define cmCPackSTGZGenerator_h
  5. #include <cmConfigure.h>
  6. #include "cmCPackGenerator.h"
  7. #include "cmCPackTGZGenerator.h"
  8. #include "cmTypeMacro.h"
  9. #include <iosfwd>
  10. /** \class cmCPackSTGZGenerator
  11. * \brief A generator for Self extractable TGZ files
  12. *
  13. */
  14. class cmCPackSTGZGenerator : public cmCPackTGZGenerator
  15. {
  16. public:
  17. cmCPackTypeMacro(cmCPackSTGZGenerator, cmCPackTGZGenerator);
  18. /**
  19. * Construct generator
  20. */
  21. cmCPackSTGZGenerator();
  22. ~cmCPackSTGZGenerator() CM_OVERRIDE;
  23. protected:
  24. int PackageFiles() CM_OVERRIDE;
  25. int InitializeInternal() CM_OVERRIDE;
  26. int GenerateHeader(std::ostream* os) CM_OVERRIDE;
  27. const char* GetOutputExtension() CM_OVERRIDE { return ".sh"; }
  28. };
  29. #endif