build: disable gpg signatures by default

Add the GPG_SIGNATURES cmake option to control creating gpg clearsign
signatures for the translations and exe zips for UPSTREAM_RELEASE,
defaulting to OFF.

Signed-off-by: Rafael Kitover <rkitover@gmail.com>
This commit is contained in:
Rafael Kitover 2024-05-07 02:59:17 +00:00
parent 82eda48e8f
commit df89beb256
No known key found for this signature in database
GPG Key ID: 08AB596679D86240
2 changed files with 3 additions and 1 deletions

View File

@ -162,3 +162,5 @@ endif()
if(TRANSLATIONS_ONLY AND (ENABLE_SDL OR ENABLE_WX)) if(TRANSLATIONS_ONLY AND (ENABLE_SDL OR ENABLE_WX))
message(FATAL_ERROR "The SDL and wxWidgets ports can't be built when TRANSLATIONS_ONLY is enabled") message(FATAL_ERROR "The SDL and wxWidgets ports can't be built when TRANSLATIONS_ONLY is enabled")
endif() endif()
option(GPG_SIGNATURES "Create GPG signatures for release files" OFF)

View File

@ -793,7 +793,7 @@ if(UPSTREAM_RELEASE AND WIN32)
WORKING_DIRECTORY ${CMAKE_BINARY_DIR} WORKING_DIRECTORY ${CMAKE_BINARY_DIR}
) )
if(GPG_KEYS) if(GPG_SIGNATURES AND GPG_KEYS)
add_custom_command( add_custom_command(
OUTPUT ${CMAKE_BINARY_DIR}/translations.zip.asc OUTPUT ${CMAKE_BINARY_DIR}/translations.zip.asc
COMMAND ${CMAKE_COMMAND} -E remove ${CMAKE_BINARY_DIR}/translations.zip.asc COMMAND ${CMAKE_COMMAND} -E remove ${CMAKE_BINARY_DIR}/translations.zip.asc