cmCPackBundleGenerator.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 cmCPackBundleGenerator_h
  11. #define cmCPackBundleGenerator_h
  12. #include "cmCPackDragNDropGenerator.h"
  13. /** \class cmCPackBundleGenerator
  14. * \brief A generator for OSX bundles
  15. *
  16. * Based on Gimp.app
  17. */
  18. class cmCPackBundleGenerator : public cmCPackDragNDropGenerator
  19. {
  20. public:
  21. cmCPackTypeMacro(cmCPackBundleGenerator, cmCPackDragNDropGenerator);
  22. cmCPackBundleGenerator();
  23. virtual ~cmCPackBundleGenerator();
  24. protected:
  25. virtual int InitializeInternal();
  26. virtual const char* GetPackagingInstallPrefix();
  27. int CompressFiles(const char* outFileName, const char* toplevel,
  28. const std::vector<std::string>& files);
  29. std::string InstallPrefix;
  30. };
  31. #endif