2016-09-27 22:01:08 +03:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2006-01-02 07:21:05 +03:00
|
|
|
#ifndef cmCPackSTGZGenerator_h
|
|
|
|
#define cmCPackSTGZGenerator_h
|
|
|
|
|
2016-09-07 01:21:35 +03:00
|
|
|
#include <cmConfigure.h>
|
|
|
|
|
|
|
|
#include "cmCPackGenerator.h"
|
2006-01-02 07:21:05 +03:00
|
|
|
#include "cmCPackTGZGenerator.h"
|
2016-09-07 01:21:35 +03:00
|
|
|
#include "cmTypeMacro.h"
|
|
|
|
|
|
|
|
#include <iosfwd>
|
2006-01-02 07:21:05 +03:00
|
|
|
|
|
|
|
/** \class cmCPackSTGZGenerator
|
|
|
|
* \brief A generator for Self extractable TGZ files
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
class cmCPackSTGZGenerator : public cmCPackTGZGenerator
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
cmCPackTypeMacro(cmCPackSTGZGenerator, cmCPackTGZGenerator);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Construct generator
|
|
|
|
*/
|
|
|
|
cmCPackSTGZGenerator();
|
2016-06-27 22:25:27 +03:00
|
|
|
~cmCPackSTGZGenerator() CM_OVERRIDE;
|
2006-01-02 07:21:05 +03:00
|
|
|
|
|
|
|
protected:
|
2016-06-27 22:25:27 +03:00
|
|
|
int PackageFiles() CM_OVERRIDE;
|
|
|
|
int InitializeInternal() CM_OVERRIDE;
|
|
|
|
int GenerateHeader(std::ostream* os) CM_OVERRIDE;
|
|
|
|
const char* GetOutputExtension() CM_OVERRIDE { return ".sh"; }
|
2006-01-02 07:21:05 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|