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. /** \class cmCPackNSISGenerator
  17. * \brief A generator for NSIS files
  18. *
  19. * http://people.freebsd.org/~kientzle/libarchive/
  20. */
  21. class cmCPackNSISGenerator : public cmCPackGenericGenerator
  22. {
  23. public:
  24. cmCPackTypeMacro(cmCPackNSISGenerator, cmCPackGenericGenerator);
  25. /**
  26. * Initialize generator
  27. */
  28. virtual int Initialize(const char* name, cmMakefile* mf);
  29. /**
  30. * Construct generator
  31. */
  32. cmCPackNSISGenerator();
  33. virtual ~cmCPackNSISGenerator();
  34. protected:
  35. int CompressFiles(const char* outFileName, const char* toplevel,
  36. const std::vector<std::string>& files);
  37. virtual const char* GetOutputExtension() { return "exe"; }
  38. virtual const char* GetOutputPostfix() { return "win32"; }
  39. bool GetListOfSubdirectories(const char* dir,
  40. std::vector<std::string>& dirs);
  41. };
  42. #endif