Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
CMake
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2,684
Issues
2,684
List
Boards
Labels
Milestones
Merge Requests
19
Merge Requests
19
Packages
Packages
Container Registry
External Wiki
External Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
CMake
CMake
Commits
79e255a7
Commit
79e255a7
authored
Jun 18, 2008
by
David Cole
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: Apply patch for feature request
#7170
. Thanks to Tim Shead for contributing...
parent
edaa6d3a
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
375 additions
and
1 deletion
+375
-1
Modules/CPack.cmake
Modules/CPack.cmake
+3
-1
Source/CMakeLists.txt
Source/CMakeLists.txt
+1
-0
Source/CPack/cmCPackBundleGenerator.cxx
Source/CPack/cmCPackBundleGenerator.cxx
+319
-0
Source/CPack/cmCPackBundleGenerator.h
Source/CPack/cmCPackBundleGenerator.h
+49
-0
Source/CPack/cmCPackGeneratorFactory.cxx
Source/CPack/cmCPackGeneratorFactory.cxx
+3
-0
No files found.
Modules/CPack.cmake
View file @
79e255a7
...
...
@@ -114,6 +114,7 @@ if(NOT CPACK_GENERATOR)
option
(
CPACK_BINARY_CYGWIN
"Enable to build Cygwin binary packages"
ON
)
else
(
CYGWIN
)
if
(
APPLE
)
option
(
CPACK_BINARY_BUNDLE
"Enable to build OSX bundles"
OFF
)
option
(
CPACK_BINARY_PACKAGEMAKER
"Enable to build PackageMaker packages"
ON
)
option
(
CPACK_BINARY_OSXX11
"Enable to build OSX X11 packages"
OFF
)
else
(
APPLE
)
...
...
@@ -131,6 +132,7 @@ if(NOT CPACK_GENERATOR)
option
(
CPACK_BINARY_ZIP
"Enable to build ZIP packages"
ON
)
endif
(
UNIX
)
cpack_optional_append
(
CPACK_GENERATOR CPACK_BINARY_BUNDLE Bundle
)
cpack_optional_append
(
CPACK_GENERATOR CPACK_BINARY_PACKAGEMAKER PackageMaker
)
cpack_optional_append
(
CPACK_GENERATOR CPACK_BINARY_OSXX11 OSXX11
)
cpack_optional_append
(
CPACK_GENERATOR CPACK_BINARY_CYGWIN CygwinBinary
)
...
...
@@ -171,7 +173,7 @@ endif(NOT CPACK_SOURCE_GENERATOR)
mark_as_advanced
(
CPACK_BINARY_CYGWIN CPACK_BINARY_PACKAGEMAKER CPACK_BINARY_OSXX11
CPACK_BINARY_STGZ CPACK_BINARY_TGZ CPACK_BINARY_TBZ2
CPACK_BINARY_DEB CPACK_BINARY_RPM CPACK_BINARY_TZ
CPACK_BINARY_NSIS CPACK_BINARY_ZIP
CPACK_BINARY_NSIS CPACK_BINARY_ZIP
CPACK_BINARY_BUNDLE
CPACK_SOURCE_CYGWIN CPACK_SOURCE_TBZ2 CPACK_SOURCE_TGZ
CPACK_SOURCE_TZ CPACK_SOURCE_ZIP
)
...
...
Source/CMakeLists.txt
View file @
79e255a7
...
...
@@ -374,6 +374,7 @@ ENDIF(UNIX)
IF
(
APPLE
)
SET
(
CPACK_SRCS
${
CPACK_SRCS
}
CPack/cmCPackBundleGenerator.cxx
CPack/cmCPackOSXX11Generator.cxx
CPack/cmCPackPackageMakerGenerator.cxx
)
...
...
Source/CPack/cmCPackBundleGenerator.cxx
0 → 100644
View file @
79e255a7
This diff is collapsed.
Click to expand it.
Source/CPack/cmCPackBundleGenerator.h
0 → 100644
View file @
79e255a7
/*=========================================================================
Program: CMake - Cross-Platform Makefile Generator
Module: $RCSfile$
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Kitware, Inc. All rights reserved.
See Copyright.txt or http://www.cmake.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notices for more information.
=========================================================================*/
#ifndef cmCPackBundleGenerator_h
#define cmCPackBundleGenerator_h
#include "cmCPackGenerator.h"
/** \class cmCPackBundleGenerator
* \brief A generator for OSX bundles
*
* Based on Gimp.app
*/
class
cmCPackBundleGenerator
:
public
cmCPackGenerator
{
public:
cmCPackTypeMacro
(
cmCPackBundleGenerator
,
cmCPackGenerator
);
cmCPackBundleGenerator
();
virtual
~
cmCPackBundleGenerator
();
protected:
virtual
int
InitializeInternal
();
virtual
const
char
*
GetOutputExtension
();
virtual
const
char
*
GetPackagingInstallPrefix
();
int
CompressFiles
(
const
char
*
outFileName
,
const
char
*
toplevel
,
const
std
::
vector
<
std
::
string
>&
files
);
bool
CopyFile
(
cmOStringStream
&
source
,
cmOStringStream
&
target
);
bool
RunCommand
(
cmOStringStream
&
command
);
std
::
string
InstallPrefix
;
};
#endif
Source/CPack/cmCPackGeneratorFactory.cxx
View file @
79e255a7
...
...
@@ -25,6 +25,7 @@
#include "cmCPackSTGZGenerator.h"
#include "cmCPackNSISGenerator.h"
#ifdef __APPLE__
# include "cmCPackBundleGenerator.h"
# include "cmCPackPackageMakerGenerator.h"
# include "cmCPackOSXX11Generator.h"
#endif
...
...
@@ -66,6 +67,8 @@ cmCPackGeneratorFactory::cmCPackGeneratorFactory()
this
->
RegisterGenerator
(
"TZ"
,
"Tar Compress compression"
,
cmCPackTarCompressGenerator
::
CreateGenerator
);
#ifdef __APPLE__
this
->
RegisterGenerator
(
"Bundle"
,
"Mac OSX bundle"
,
cmCPackBundleGenerator
::
CreateGenerator
);
this
->
RegisterGenerator
(
"PackageMaker"
,
"Mac OSX Package Maker installer"
,
cmCPackPackageMakerGenerator
::
CreateGenerator
);
this
->
RegisterGenerator
(
"OSXX11"
,
"Mac OSX X11 bundle"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment