Improve macOS and Linux package naming.
This commit is contained in:
parent
47221924f6
commit
7961be11ed
|
@ -593,6 +593,8 @@ endif ()
|
||||||
# Windows
|
# Windows
|
||||||
# MSI - this needs WiX Tooset installed and a path to candle.exe
|
# MSI - this needs WiX Tooset installed and a path to candle.exe
|
||||||
# EXE - this needs NSIS tools to be in path
|
# EXE - this needs NSIS tools to be in path
|
||||||
|
# Everything Else
|
||||||
|
# RPM required to build RPM's, and might not be installed by default.
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
if (WIN32)
|
if (WIN32)
|
||||||
set(CPACK_GENERATOR "NSIS;WIX;ZIP")
|
set(CPACK_GENERATOR "NSIS;WIX;ZIP")
|
||||||
|
@ -632,26 +634,44 @@ set(CPACK_RESOURCE_FILE_WELCOME "${CMAKE_CURRENT_SOURCE_DIR}/README/README.html"
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
set(CPACK_DEBIAN_PACKAGE_MAINTAINER ${CPACK_PACKAGE_CONTACT})
|
set(CPACK_DEBIAN_PACKAGE_MAINTAINER ${CPACK_PACKAGE_CONTACT})
|
||||||
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE ${LIBTIDY_URL})
|
set(CPACK_DEBIAN_PACKAGE_HOMEPAGE ${LIBTIDY_URL})
|
||||||
#set(CPACK_DEBIAN_PACKAGE_DEPENDS "libc")
|
|
||||||
set(CPACK_DEBIAN_PACKAGE_SECTION "Libraries")
|
set(CPACK_DEBIAN_PACKAGE_SECTION "Libraries")
|
||||||
set(CPACK_SOURCE_IGNORE_FILES
|
set(CPACK_SOURCE_IGNORE_FILES "${PROJECT_SOURCE_DIR}/build" )
|
||||||
"${PROJECT_SOURCE_DIR}/build"
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
# RPM config
|
# RPM config
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "/usr/share/man" "/usr/share/man/man1")
|
set(CPACK_RPM_EXCLUDE_FROM_AUTO_FILELIST_ADDITION "/usr/share/man" "/usr/share/man/man1")
|
||||||
|
|
||||||
set(CPACK_SOURCE_IGNORE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/test/;${CMAKE_CURRENT_SOURCE_DIR}/build/;${CMAKE_CURRENT_SOURCE_DIR}/.git/")
|
set(CPACK_SOURCE_IGNORE_FILES "${CMAKE_CURRENT_SOURCE_DIR}/test/;${CMAKE_CURRENT_SOURCE_DIR}/build/;${CMAKE_CURRENT_SOURCE_DIR}/.git/")
|
||||||
|
|
||||||
if (NOT WIN32 AND NOT APPLE)
|
|
||||||
set( CPACK_PACKAGE_FILE_NAME "${LIB_NAME}-${CPACK_PACKAGE_VERSION}-${BITNESS}bit" )
|
#------------------------------------------------------------------------
|
||||||
|
# Package name configuration
|
||||||
|
# The default is LIB_NAME-CPACK_PACKAGE_VERSION-CMAKE_SYSTEM_NAME,
|
||||||
|
# but we want to include system name for Unixes, and correct the
|
||||||
|
# system name on Apple targets.
|
||||||
|
#------------------------------------------------------------------------
|
||||||
|
if (UNIX AND NOT APPLE)
|
||||||
|
set(CPACK_PACKAGE_FILE_NAME "${LIB_NAME}-${CPACK_PACKAGE_VERSION}-${CMAKE_SYSTEM_NAME}-${BITNESS}bit")
|
||||||
|
endif ()
|
||||||
|
if (APPLE AND NOT IOS)
|
||||||
|
if (CMAKE_OSX_ARCHITECTURES)
|
||||||
|
set(CPACK_PACKAGE_FILE_NAME "${LIB_NAME}-${CPACK_PACKAGE_VERSION}-macOS-${CMAKE_OSX_ARCHITECTURES}")
|
||||||
|
else ()
|
||||||
|
set(CPACK_PACKAGE_FILE_NAME "${LIB_NAME}-${CPACK_PACKAGE_VERSION}-macOS-${BITNESS}bit")
|
||||||
|
endif ()
|
||||||
|
endif ()
|
||||||
|
if (IOS)
|
||||||
|
set(CPACK_PACKAGE_FILE_NAME "${LIB_NAME}-${CPACK_PACKAGE_VERSION}-iOS-${BITNESS}bit")
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------
|
||||||
|
# Build the Package
|
||||||
|
#------------------------------------------------------------------------
|
||||||
include(CPack)
|
include(CPack)
|
||||||
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
# pkg-config
|
# pkg-config
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue