mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-10-10 08:03:04 -04:00
rbutilqt/themeeditor: Move the CODESIGN_IDENTITY variable definition before the targets which depend on it.
Change-Id: I786be5b7dfaee94cf31ef9e72f43dce9700056c0
This commit is contained in:
parent
6719578e29
commit
7f01029439
2 changed files with 16 additions and 13 deletions
|
|
@ -124,6 +124,22 @@ else()
|
|||
set(QUAZIP_LIBRARY quazip)
|
||||
endif()
|
||||
|
||||
# Setup code signing for macOS
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||
set(CODESIGN_IDENTITY "-" CACHE STRING
|
||||
"Code signing identity to use for macOS signing")
|
||||
|
||||
if(DEFINED ENV{CODESIGN_IDENTITY})
|
||||
set(CODESIGN_IDENTITY "$ENV{CODESIGN_IDENTITY}")
|
||||
endif()
|
||||
|
||||
if("${CODESIGN_IDENTITY}" STREQUAL "-")
|
||||
message("-- Using ad-hoc Apple code signing")
|
||||
else()
|
||||
message("-- Using Apple code signing identity: ${CODESIGN_IDENTITY}")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
add_executable(ipodpatcher-bin
|
||||
ipodpatcher/main.c
|
||||
ipodpatcher/ipodpatcher_aupd.c
|
||||
|
|
|
|||
|
|
@ -94,19 +94,6 @@ endif()
|
|||
|
||||
# MacOS: Build dmg
|
||||
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||
set(CODESIGN_IDENTITY "-" CACHE STRING
|
||||
"Code signing identity to use for macOS signing")
|
||||
|
||||
if(DEFINED ENV{CODESIGN_IDENTITY})
|
||||
set(CODESIGN_IDENTITY "$ENV{CODESIGN_IDENTITY}")
|
||||
endif()
|
||||
|
||||
if("${CODESIGN_IDENTITY}" STREQUAL "-")
|
||||
message("-- Using ad-hoc Apple code signing")
|
||||
else()
|
||||
message("-- Using Apple code signing identity: ${CODESIGN_IDENTITY}")
|
||||
endif()
|
||||
|
||||
set(DMGBUILD_STAMP ${CMAKE_BINARY_DIR}/dmgbuild.stamp)
|
||||
add_custom_command(
|
||||
COMMENT "Setting up dmgbuild virtualenv"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue