cmCPackNSISGenerator.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. * Construct generator
  27. */
  28. cmCPackNSISGenerator();
  29. virtual ~cmCPackNSISGenerator();
  30. protected:
  31. virtual int InitializeInternal();
  32. int CompressFiles(const char* outFileName, const char* toplevel,
  33. const std::vector<std::string>& files);
  34. virtual const char* GetOutputExtension() { return "exe"; }
  35. virtual const char* GetOutputPostfix() { return "win32"; }
  36. bool GetListOfSubdirectories(const char* dir,
  37. std::vector<std::string>& dirs);
  38. };
  39. #endif