2016-09-27 19:01:08 +00:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2007-01-10 20:30:26 +00:00
|
|
|
#ifndef cmCPackOSXX11Generator_h
|
|
|
|
#define cmCPackOSXX11Generator_h
|
|
|
|
|
2017-08-25 18:39:02 +00:00
|
|
|
#include "cmConfigure.h" // IWYU pragma: keep
|
2017-04-11 19:42:35 +00:00
|
|
|
|
2016-11-22 23:41:44 +00:00
|
|
|
#include <string>
|
|
|
|
|
2007-11-05 21:55:45 +00:00
|
|
|
#include "cmCPackGenerator.h"
|
2007-01-10 20:30:26 +00:00
|
|
|
|
|
|
|
/** \class cmCPackOSXX11Generator
|
|
|
|
* \brief A generator for OSX X11 modules
|
|
|
|
*
|
|
|
|
* Based on Gimp.app
|
|
|
|
*/
|
2007-11-05 21:55:45 +00:00
|
|
|
class cmCPackOSXX11Generator : public cmCPackGenerator
|
2007-01-10 20:30:26 +00:00
|
|
|
{
|
|
|
|
public:
|
2007-11-05 21:55:45 +00:00
|
|
|
cmCPackTypeMacro(cmCPackOSXX11Generator, cmCPackGenerator);
|
2007-01-10 20:30:26 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Construct generator
|
|
|
|
*/
|
|
|
|
cmCPackOSXX11Generator();
|
2017-09-15 13:56:26 +00:00
|
|
|
~cmCPackOSXX11Generator() override;
|
2007-01-10 20:30:26 +00:00
|
|
|
|
|
|
|
protected:
|
2017-09-15 13:56:26 +00:00
|
|
|
virtual int InitializeInternal() override;
|
|
|
|
int PackageFiles() override;
|
|
|
|
const char* GetPackagingInstallPrefix() override;
|
|
|
|
const char* GetOutputExtension() override { return ".dmg"; }
|
2007-01-10 20:30:26 +00:00
|
|
|
|
2016-05-16 14:34:04 +00:00
|
|
|
// bool CopyCreateResourceFile(const std::string& name,
|
2014-02-07 20:02:41 +00:00
|
|
|
// const std::string& dir);
|
2014-02-22 00:05:55 +00:00
|
|
|
bool CopyResourcePlistFile(const std::string& name, const std::string& dir,
|
2016-05-16 14:34:04 +00:00
|
|
|
const char* outputFileName = 0,
|
|
|
|
bool copyOnly = false);
|
2007-02-13 19:13:51 +00:00
|
|
|
std::string InstallPrefix;
|
2007-01-10 20:30:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|