cmCPackNSISGenerator.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*=========================================================================
  2. Program: CMake - Cross-Platform Makefile Generator
  3. Module: $RCSfile$
  4. Language: C++
  5. Date: $Date$
  6. Version: $Revision$
  7. Copyright (c) 2002 Kitware, Inc. All rights reserved.
  8. See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
  9. This software is distributed WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE. See the above copyright notices for more information.
  12. =========================================================================*/
  13. #ifndef cmCPackNSISGenerator_h
  14. #define cmCPackNSISGenerator_h
  15. #include "cmCPackGenericGenerator.h"
  16. #include "CPack/cmCPackConfigure.h" // for ssize_t
  17. /** \class cmCPackNSISGenerator
  18. * \brief A generator for NSIS files
  19. *
  20. * http://people.freebsd.org/~kientzle/libarchive/
  21. */
  22. class cmCPackNSISGenerator : public cmCPackGenericGenerator
  23. {
  24. public:
  25. cmCPackTypeMacro(cmCPackNSISGenerator, cmCPackGenericGenerator);
  26. /**
  27. * Initialize generator
  28. */
  29. virtual int Initialize(const char* name, cmMakefile* mf);
  30. /**
  31. * Construct generator
  32. */
  33. cmCPackNSISGenerator();
  34. virtual ~cmCPackNSISGenerator();
  35. protected:
  36. int CompressFiles(const char* outFileName, const char* toplevel,
  37. const std::vector<std::string>& files);
  38. virtual const char* GetOutputExtension() { return "exe"; }
  39. virtual const char* GetOutputPostfix() { return "win32"; }
  40. };
  41. #endif