~ubuntu-branches/ubuntu/jaunty/cmake/jaunty-security

« back to all changes in this revision

Viewing changes to Source/CPack/cmCPackPackageMakerGenerator.h

  • Committer: Bazaar Package Importer
  • Author(s): A. Maitland Bottoms
  • Date: 2006-06-18 16:34:11 UTC
  • mfrom: (1.4.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060618163411-pi234s3v6jwlcmof
Tags: 2.4.2-1
* New upstream release (Closes: #338324)
* Put cmake .vim files into /usr/share/vim/addons/plugin/
  where they can be used. (Closes: #366663)
* Install cmake-mode.el so it can be used. (Closes: #366664)
* Ensure cmake FindKDE locates KDE libraries on Debian
  based distributions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*=========================================================================
 
2
 
 
3
  Program:   CMake - Cross-Platform Makefile Generator
 
4
  Module:    $RCSfile: cmCPackPackageMakerGenerator.h,v $
 
5
  Language:  C++
 
6
  Date:      $Date: 2006/04/15 17:02:17 $
 
7
  Version:   $Revision: 1.7 $
 
8
 
 
9
  Copyright (c) 2002 Kitware, Inc. All rights reserved.
 
10
  See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
 
11
 
 
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.
 
15
 
 
16
=========================================================================*/
 
17
 
 
18
#ifndef cmCPackPackageMakerGenerator_h
 
19
#define cmCPackPackageMakerGenerator_h
 
20
 
 
21
 
 
22
#include "cmCPackGenericGenerator.h"
 
23
 
 
24
/** \class cmCPackPackageMakerGenerator
 
25
 * \brief A generator for PackageMaker files
 
26
 *
 
27
 * http://developer.apple.com/documentation/Darwin
 
28
 * /Reference/ManPages/man1/packagemaker.1.html
 
29
 */
 
30
class cmCPackPackageMakerGenerator : public cmCPackGenericGenerator
 
31
{
 
32
public:
 
33
  cmCPackTypeMacro(cmCPackPackageMakerGenerator, cmCPackGenericGenerator);
 
34
 
 
35
  /**
 
36
   * Construct generator
 
37
   */
 
38
  cmCPackPackageMakerGenerator();
 
39
  virtual ~cmCPackPackageMakerGenerator();
 
40
 
 
41
protected:
 
42
  virtual int InitializeInternal();
 
43
  int CompressFiles(const char* outFileName, const char* toplevel,
 
44
    const std::vector<std::string>& files);
 
45
  virtual const char* GetOutputExtension() { return "dmg"; }
 
46
  virtual const char* GetOutputPostfix() { return "darwin"; }
 
47
  virtual const char* GetInstallPrefix() { return "/usr"; }
 
48
 
 
49
  bool CopyCreateResourceFile(const char* name);
 
50
  bool CopyResourcePlistFile(const char* name);
 
51
 
 
52
  float PackageMakerVersion;
 
53
};
 
54
 
 
55
#endif