cmCPackCygwinBinaryGenerator.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 cmCPackCygwinBinaryGenerator_h
  11. #define cmCPackCygwinBinaryGenerator_h
  12. #include "cmCPackTarBZip2Generator.h"
  13. /** \class cmCPackCygwinBinaryGenerator
  14. * \brief A generator for TarBZip2 files
  15. */
  16. class cmCPackCygwinBinaryGenerator : public cmCPackTarBZip2Generator
  17. {
  18. public:
  19. cmCPackTypeMacro(cmCPackCygwinBinaryGenerator, cmCPackTarBZip2Generator);
  20. /**
  21. * Construct generator
  22. */
  23. cmCPackCygwinBinaryGenerator();
  24. virtual ~cmCPackCygwinBinaryGenerator();
  25. protected:
  26. virtual int InitializeInternal();
  27. int CompressFiles(const char* outFileName, const char* toplevel,
  28. const std::vector<std::string>& files);
  29. virtual const char* GetOutputExtension();
  30. std::string OutputExtension;
  31. };
  32. #endif