cmCPackOSXX11Generator.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file Copyright.txt or https://cmake.org/licensing for details. */
  3. #ifndef cmCPackOSXX11Generator_h
  4. #define cmCPackOSXX11Generator_h
  5. #include <cmConfigure.h>
  6. #include <string>
  7. #include "cmCPackGenerator.h"
  8. /** \class cmCPackOSXX11Generator
  9. * \brief A generator for OSX X11 modules
  10. *
  11. * Based on Gimp.app
  12. */
  13. class cmCPackOSXX11Generator : public cmCPackGenerator
  14. {
  15. public:
  16. cmCPackTypeMacro(cmCPackOSXX11Generator, cmCPackGenerator);
  17. /**
  18. * Construct generator
  19. */
  20. cmCPackOSXX11Generator();
  21. virtual ~cmCPackOSXX11Generator();
  22. protected:
  23. virtual int InitializeInternal() CM_OVERRIDE;
  24. int PackageFiles() CM_OVERRIDE;
  25. const char* GetPackagingInstallPrefix() CM_OVERRIDE;
  26. const char* GetOutputExtension() CM_OVERRIDE { return ".dmg"; }
  27. // bool CopyCreateResourceFile(const std::string& name,
  28. // const std::string& dir);
  29. bool CopyResourcePlistFile(const std::string& name, const std::string& dir,
  30. const char* outputFileName = 0,
  31. bool copyOnly = false);
  32. std::string InstallPrefix;
  33. };
  34. #endif