Skip to content

Commit

Permalink
Deobfuscate CPACK_DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Oct 23, 2024
1 parent eb25a0d commit cc9cde2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions cmake/apple/MacDeployQt.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@
set(lmms "${CPACK_PROJECT_NAME}")
set(APP "${CPACK_TEMPORARY_INSTALL_DIRECTORY}/${CPACK_PROJECT_NAME_UCASE}.app")

# Toggle command echoing & verbosity
# 0 = no output, 1 = error/warning, 2 = normal, 3 = debug
set(VERBOSITY 1)
# Set to "STDOUT" to show all verbose commands
set(COMMAND_ECHO NONE)
if(NOT CPACK_DEBUG)
set(VERBOSITY 1)
set(COMMAND_ECHO NONE)
else()
set(VERBOSITY 2)
set(COMMAND_ECHO STDOUT)
endif()

# Detect release|debug build
if(NOT CPACK_STRIP_FILES_ORIG)
Expand All @@ -18,11 +23,6 @@ if(NOT CPACK_STRIP_FILES_ORIG)
endif()
endif()

if(CPACK_DEBUG)
set(VERBOSITY 2)
set(COMMAND_ECHO STDOUT)
endif()

# Cleanup CPack "External" json, txt files, old DMG files
file(GLOB cleanup "${CPACK_BINARY_DIR}/${lmms}-*.json"
"${CPACK_BINARY_DIR}/${lmms}-*.dmg"
Expand Down
16 changes: 8 additions & 8 deletions cmake/linux/LinuxDeploy.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@ set(APPIMAGE_BEFORE_RENAME "${CPACK_BINARY_DIR}/${LMMS}-${ARCH}.AppImage")

set(DESKTOP_FILE "${APP}/usr/share/applications/${lmms}.desktop")

# Toggle command echoing & verbosity
# 0 = no output, 1 = error/warning, 2 = normal, 3 = debug
set(VERBOSITY 1)
# Set to "STDOUT" to show all verbose commands
set(COMMAND_ECHO NONE)
set(OUTPUT_QUIET OUTPUT_QUIET)

if(CPACK_DEBUG)
if(NOT CPACK_DEBUG)
set(VERBOSITY 1)
set(COMMAND_ECHO NONE)
set(OUTPUT_QUIET OUTPUT_QUIET)
else()
set(VERBOSITY 2)
set(COMMAND_ECHO STDOUT)
unset(OUTPUT_QUIET)
Expand All @@ -36,13 +36,13 @@ file(REMOVE ${cleanup})
download_binary(LINUXDEPLOY_BIN
"https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-${ARCH}.AppImage"
linuxdeploy-${ARCH}.AppImage
false)
FALSE)

# Download linuxdeploy-plugin-qt
download_binary(LINUXDEPLOY_PLUGIN_BIN
"https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-${ARCH}.AppImage"
linuxdeploy-plugin-qt-${ARCH}.AppImage
false)
FALSE)

message(STATUS "Creating AppDir ${APP}...")

Expand Down

0 comments on commit cc9cde2

Please sign in to comment.