mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-03 07:10:10 +01:00
Add targets for packaging DMG and InnoSetup
Fixes configure.sh Fixes Windows code signing Fixes an issue with conan cache on windows Fixes build manual script Fixes build manual Remove unused props Use long options Yet another manual fix Fixes iss
This commit is contained in:
committed by
Dmitry Vedenko
parent
d21ee922e1
commit
6da25e1646
39
cmake-proxies/cmake-modules/AudacityInnoSetup.cmake
Normal file
39
cmake-proxies/cmake-modules/AudacityInnoSetup.cmake
Normal file
@@ -0,0 +1,39 @@
|
||||
# Defines innosetup target
|
||||
# The target will be only generated if InnoSetup 6 is installed.
|
||||
|
||||
find_program(
|
||||
INNO_SETUP_COMPILER
|
||||
NAMES iscc ISCC
|
||||
HINTS
|
||||
"C:/Program Files (x86)/Inno Setup 6"
|
||||
"C:/Program Files/Inno Setup 6"
|
||||
)
|
||||
|
||||
if( INNO_SETUP_COMPILER )
|
||||
message(STATUS "Creating target innosetup...")
|
||||
|
||||
set( TEMP_PACKAGE_PATH "${CMAKE_BINARY_DIR}/innosetup" )
|
||||
|
||||
add_custom_target(
|
||||
innosetup
|
||||
COMMAND
|
||||
${CMAKE_COMMAND}
|
||||
-DBUILD_DIR=${CMAKE_BINARY_DIR}
|
||||
-DSOURCE_DIR=${CMAKE_SOURCE_DIR}
|
||||
-DOUTPUT_DIR=${TEMP_PACKAGE_PATH}
|
||||
-DINNO_SETUP_COMPILER=${INNO_SETUP_COMPILER}
|
||||
-DEMBED_MANUAL=${${_OPT}package_manual}
|
||||
-DBUILDING_64_BIT=${IS_64BIT}
|
||||
-DSIGN=${${_OPT}perform_codesign}
|
||||
-DWINDOWS_CERTIFICATE=${WINDOWS_CERTIFICATE}
|
||||
-D WINDOWS_CERTIFICATE_PASSWORD=${WINDOWS_CERTIFICATE_PASSWORD}
|
||||
-P "${CMAKE_SOURCE_DIR}/win/Inno_Setup_Wizard/BuildInnoSetupInstaller.cmake"
|
||||
VERBATIM
|
||||
)
|
||||
|
||||
if( ${_OPT}package_manual )
|
||||
add_dependencies( innosetup manual )
|
||||
endif()
|
||||
|
||||
set_target_properties( innosetup PROPERTIES FOLDER "packaging" )
|
||||
endif()
|
||||
Reference in New Issue
Block a user