cmCPackSTGZGenerator.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc.
  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 cmCPackSTGZGenerator_h
  11. #define cmCPackSTGZGenerator_h
  12. #include "cmCPackTGZGenerator.h"
  13. /** \class cmCPackSTGZGenerator
  14. * \brief A generator for Self extractable TGZ files
  15. *
  16. */
  17. class cmCPackSTGZGenerator : public cmCPackTGZGenerator
  18. {
  19. public:
  20. cmCPackTypeMacro(cmCPackSTGZGenerator, cmCPackTGZGenerator);
  21. /**
  22. * Construct generator
  23. */
  24. cmCPackSTGZGenerator();
  25. ~cmCPackSTGZGenerator() CM_OVERRIDE;
  26. protected:
  27. int PackageFiles() CM_OVERRIDE;
  28. int InitializeInternal() CM_OVERRIDE;
  29. int GenerateHeader(std::ostream* os) CM_OVERRIDE;
  30. const char* GetOutputExtension() CM_OVERRIDE { return ".sh"; }
  31. };
  32. #endif