cmCPackOSXX11Generator.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 cmCPackOSXX11Generator_h
  11. #define cmCPackOSXX11Generator_h
  12. #include "cmCPackGenerator.h"
  13. /** \class cmCPackOSXX11Generator
  14. * \brief A generator for OSX X11 modules
  15. *
  16. * Based on Gimp.app
  17. */
  18. class cmCPackOSXX11Generator : public cmCPackGenerator
  19. {
  20. public:
  21. cmCPackTypeMacro(cmCPackOSXX11Generator, cmCPackGenerator);
  22. /**
  23. * Construct generator
  24. */
  25. cmCPackOSXX11Generator();
  26. virtual ~cmCPackOSXX11Generator();
  27. protected:
  28. virtual int InitializeInternal();
  29. int PackageFiles();
  30. virtual const char* GetPackagingInstallPrefix();
  31. virtual const char* GetOutputExtension() { return ".dmg"; }
  32. //bool CopyCreateResourceFile(const char* name, const char* dir);
  33. bool CopyResourcePlistFile(const char* name, const char* dir,
  34. const char* outputFileName = 0, bool copyOnly = false);
  35. std::string InstallPrefix;
  36. };
  37. #endif