cmCPackOSXX11Generator.h 1.42 KB
Newer Older
1
2
3
/*============================================================================
  CMake - Cross Platform Makefile Generator
  Copyright 2000-2009 Kitware, Inc.
4

5
6
  Distributed under the OSI-approved BSD License (the "License");
  see accompanying file Copyright.txt for details.
7

8
9
10
11
  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.
============================================================================*/
12
13
14
15

#ifndef cmCPackOSXX11Generator_h
#define cmCPackOSXX11Generator_h

Bill Hoffman's avatar
Bill Hoffman committed
16
#include "cmCPackGenerator.h"
17
18
19
20
21
22

/** \class cmCPackOSXX11Generator
 * \brief A generator for OSX X11 modules
 *
 * Based on Gimp.app
 */
Bill Hoffman's avatar
Bill Hoffman committed
23
class cmCPackOSXX11Generator : public cmCPackGenerator
24
25
{
public:
Bill Hoffman's avatar
Bill Hoffman committed
26
  cmCPackTypeMacro(cmCPackOSXX11Generator, cmCPackGenerator);
27
28
29
30
31
32
33
34
35

  /**
   * Construct generator
   */
  cmCPackOSXX11Generator();
  virtual ~cmCPackOSXX11Generator();

protected:
  virtual int InitializeInternal();
36
  int PackageFiles();
37
  virtual const char* GetPackagingInstallPrefix();
38
  virtual const char* GetOutputExtension() { return ".dmg"; }
39

40
41
  //bool CopyCreateResourceFile(const std::string& name,
  //                            const std::string& dir);
42
  bool CopyResourcePlistFile(const std::string& name, const std::string& dir,
43
    const char* outputFileName = 0, bool copyOnly = false);
44
  std::string InstallPrefix;
45
46
47
};

#endif