Add WITH_CLUB_FANTASTIC build option
This commit is contained in:
+18
-1
@@ -15,6 +15,7 @@ set(CPACK_RESOURCE_FILE_LICENSE "${SM_CMAKE_DIR}/license_install.txt")
|
||||
|
||||
if(WIN32)
|
||||
set(CPACK_GENERATOR NSIS)
|
||||
set(CPACK_SYSTEM_NAME "Windows")
|
||||
|
||||
# By setting these install keys manually, The default directory of "StepMania
|
||||
# major.minor.patch" is lost. This is currently done to maintain backwards
|
||||
@@ -57,8 +58,24 @@ elseif(MACOSX)
|
||||
set(CPACK_GENERATOR DragNDrop)
|
||||
set(CPACK_DMG_VOLUME_NAME "${CPACK_PACKAGE_NAME} ${CPACK_PACKAGE_VERSION}")
|
||||
set(CPACK_DMG_FORMAT ULMO) # lzma-compressed image
|
||||
|
||||
if(CMAKE_OSX_ARCHITECTURES STREQUAL "arm64")
|
||||
set(CPACK_SYSTEM_NAME "macOS-M1")
|
||||
elseif(CMAKE_OSX_ARCHITECTURES STREQUAL "x86_64")
|
||||
set(CPACK_SYSTEM_NAME "macOS-Intel")
|
||||
else()
|
||||
message(FATAL_ERROR
|
||||
"Unsupported macOS architecture: ${CMAKE_OSX_ARCHITECTURES}, set CMAKE_OSX_ARCHITECTURES to either arm64 or x86_64"
|
||||
)
|
||||
endif()
|
||||
else()
|
||||
set(CPACK_GENERATOR TGZ TXZ STGZ)
|
||||
set(CPACK_GENERATOR TGZ)
|
||||
set(CPACK_SYSTEM_NAME "Linux")
|
||||
endif()
|
||||
|
||||
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-${CPACK_SYSTEM_NAME}")
|
||||
if(NOT WITH_CLUB_FANTASTIC)
|
||||
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}-no-songs")
|
||||
endif()
|
||||
|
||||
include(CPack)
|
||||
|
||||
@@ -15,6 +15,9 @@ option(WITH_SSE2 "Build with SSE2 Optimizations." ON)
|
||||
# Turn this on to set this to a specific release mode.
|
||||
option(WITH_FULL_RELEASE "Build as a proper, full release." OFF)
|
||||
|
||||
# Turn this on to include Club Fantastic songs
|
||||
option(WITH_CLUB_FANTASTIC "Include Club Fantastic songs." OFF)
|
||||
|
||||
# Turn this on to compile tomcrypt with no assembly data. This is a portable
|
||||
# mode.
|
||||
option(WITH_PORTABLE_TOMCRYPT
|
||||
|
||||
Reference in New Issue
Block a user