cmCPackBundleGenerator.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 ConstructBundle();
  28. int SignBundle(const std::string& src_dir);
  29. int PackageFiles();
  30. bool SupportsComponentInstallation() const;
  31. std::string InstallPrefix;
  32. };
  33. #endif