-
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #146 from stephengtuggy/chore/more_cpack_0.9.x
More On Packaging -- 0.9.x
- Loading branch information
Showing
4 changed files
with
14 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -193,7 +193,7 @@ ENDIF (DEFINED ENV{TAG_NAME}) | |
SET(CPACK_SOURCE_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}_${vsUTCS_PACKAGE_VERSION_STR}-Source") | ||
SET(CPACK_SOURCE_GENERATOR "TXZ") | ||
|
||
IF (WIN32 AND NOT UNIX) | ||
IF (CMAKE_SYSTEM_NAME STREQUAL Windows) | ||
MESSAGE(STATUS "Configuring Packaging for Windows") | ||
# NSIS - See https://cmake.org/cmake/help/v3.3/module/CPackNSIS.html | ||
# NSI bug requires at least 1 set of 4 forwards slashes?? | ||
|
@@ -206,7 +206,7 @@ IF (WIN32 AND NOT UNIX) | |
|
||
SET(CPACK_GENERATOR "NSIS") | ||
SET(CPACK_PACKAGE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/packages") | ||
SET(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}_v${vsUTCS_PKG_VERSION_STR}_Windows_${CMAKE_SYSTEM_VERSION}_${CMAKE_SYSTEM_PROCESSOR}") | ||
SET(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}_v${vsUTCS_PACKAGE_VERSION_STR}_Windows_${CMAKE_SYSTEM_VERSION}_${CMAKE_SYSTEM_PROCESSOR}") | ||
ELSEIF (CMAKE_SYSTEM_NAME STREQUAL Darwin) | ||
MESSAGE(STATUS "Configuring Packaging for macOS") | ||
# There's a few options for MacOSX; not sure what we want to use | ||
|
@@ -216,14 +216,14 @@ ELSEIF (CMAKE_SYSTEM_NAME STREQUAL Darwin) | |
# PackageMaker - see https://cmake.org/cmake/help/v3.3/module/CPackPackageMaker.html | ||
SET(CPACK_GENERATOR "DragNDrop") | ||
SET(CPACK_PACKAGE_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/packages") | ||
SET(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}_v${vsUTCS_PKG_VERSION_STR}_macOS_${CMAKE_SYSTEM_VERSION}_${CMAKE_SYSTEM_PROCESSOR}") | ||
SET(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}_v${vsUTCS_PACKAGE_VERSION_STR}_macOS_${CMAKE_SYSTEM_VERSION}_${CMAKE_SYSTEM_PROCESSOR}") | ||
ELSEIF (CMAKE_SYSTEM_NAME STREQUAL Linux) | ||
MESSAGE("-- Configuring Packaging for Linux") | ||
MESSAGE(STATUS "Configuring Packaging for Linux") | ||
SET(CPACK_GENERATOR "TXZ") | ||
|
||
# "DEB" | ||
IF (VS_CAN_BUILD_DEB) | ||
MESSAGE("-- Configuring Debian Packaging") | ||
MESSAGE(STATUS "Configuring Debian Packaging") | ||
# See https://cmake.org/cmake/help/v3.3/module/CPackDeb.html | ||
SET(CPACK_DEBIAN_PACKAGE_NAME "vsUTCS") | ||
SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "[email protected]") | ||
|
@@ -239,7 +239,7 @@ ELSEIF (CMAKE_SYSTEM_NAME STREQUAL Linux) | |
|
||
# "RPM" | ||
IF (VS_CAN_BUILD_RPM) | ||
MESSAGE("-- Configuring RPM Packaging") | ||
MESSAGE(STATUS "Configuring RPM Packaging") | ||
# See https://cmake.org/cmake/help/v3.3/module/CPackRPM.html | ||
SET(CPACK_RPM_PACKAGE_LICENSE "GPLv3") # See ../LICENSE | ||
SET(CPACK_RPM_PACKAGE_URL "https://www.vega-strike.org") | ||
|
@@ -256,10 +256,10 @@ ELSEIF (CMAKE_SYSTEM_NAME STREQUAL Linux) | |
SET(CPACK_PACKAGE_FILE_NAME "${CPACK_RPM_PACKAGE_NAME}_${vsUTCS_PACKAGE_VERSION_STR}-${LINUX_ID}-${vsUTCS_LINUX_VERSION_STR}") | ||
SET(CPACK_GENERATOR "RPM") | ||
ENDIF () | ||
ELSE (WIN32 AND NOT UNIX) | ||
MESSAGE("-- Configuring Packaging for Unknown Platforms - \"${CMAKE_SYSTEM_NAME}\"") | ||
ELSE () | ||
MESSAGE(STATUS "Configuring Packaging for Unknown Platforms - \"${CMAKE_SYSTEM_NAME}\"") | ||
# Unknown Platform --> Just do compressed tarball | ||
SET(CPACK_GENERATOR "TXZ") | ||
ENDIF (WIN32 AND NOT UNIX) | ||
ENDIF () | ||
|
||
INCLUDE(CPack) |