Resync.
[CMakeLuaTailorHgBridge.git] / CMakeLua / Source / CPack / cmCPackPackageMakerGenerator.h
blob2eb74905ce5a35cbc6c4366fc3f9464b4f43f775
1 /*=========================================================================
3 Program: CMake - Cross-Platform Makefile Generator
4 Module: $RCSfile: cmCPackPackageMakerGenerator.h,v $
5 Language: C++
6 Date: $Date: 2008/02/19 19:26:19 $
7 Version: $Revision: 1.12 $
9 Copyright (c) 2002 Kitware, Inc. All rights reserved.
10 See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
16 =========================================================================*/
18 #ifndef cmCPackPackageMakerGenerator_h
19 #define cmCPackPackageMakerGenerator_h
22 #include "cmCPackGenerator.h"
24 /** \class cmCPackPackageMakerGenerator
25 * \brief A generator for PackageMaker files
27 * http://developer.apple.com/documentation/Darwin
28 * /Reference/ManPages/man1/packagemaker.1.html
30 class cmCPackPackageMakerGenerator : public cmCPackGenerator
32 public:
33 cmCPackTypeMacro(cmCPackPackageMakerGenerator, cmCPackGenerator);
35 /**
36 * Construct generator
38 cmCPackPackageMakerGenerator();
39 virtual ~cmCPackPackageMakerGenerator();
41 protected:
42 int CopyInstallScript(const char* resdir,
43 const char* script,
44 const char* name);
45 virtual int InitializeInternal();
46 int CompressFiles(const char* outFileName, const char* toplevel,
47 const std::vector<std::string>& files);
48 virtual const char* GetOutputExtension() { return ".dmg"; }
49 virtual const char* GetOutputPostfix() { return "darwin"; }
51 bool CopyCreateResourceFile(const char* name);
52 bool CopyResourcePlistFile(const char* name);
54 double PackageMakerVersion;
57 #endif