2009-09-28 19:43:28 +04:00
|
|
|
/*============================================================================
|
|
|
|
CMake - Cross Platform Makefile Generator
|
|
|
|
Copyright 2000-2009 Kitware, Inc.
|
2006-01-02 07:21:05 +03:00
|
|
|
|
2009-09-28 19:43:28 +04:00
|
|
|
Distributed under the OSI-approved BSD License (the "License");
|
|
|
|
see accompanying file Copyright.txt for details.
|
2006-01-02 07:21:05 +03:00
|
|
|
|
2009-09-28 19:43:28 +04:00
|
|
|
This software is distributed WITHOUT ANY WARRANTY; without even the
|
|
|
|
implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
See the License for more information.
|
|
|
|
============================================================================*/
|
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
|