|
|
@ -835,23 +835,23 @@ macro( tde_add_library _arg_target )
|
|
|
|
# embed name and metadata
|
|
|
|
# embed name and metadata
|
|
|
|
set( ELF_EMBEDDING_METADATA "\"${_target}\" \"${_description}\" \"${_license}\" \"${_copyright}\" \"${_authors}\" \"${_product}\" \"${_organization}\" \"${_version}\" \"${_datetime}\" \"x-sharedlib\" \"${TDE_SCM_MODULE_NAME}\" \"${TDE_SCM_MODULE_REVISION}\" \"${_notes}\"" )
|
|
|
|
set( ELF_EMBEDDING_METADATA "\"${_target}\" \"${_description}\" \"${_license}\" \"${_copyright}\" \"${_authors}\" \"${_product}\" \"${_organization}\" \"${_version}\" \"${_datetime}\" \"x-sharedlib\" \"${TDE_SCM_MODULE_NAME}\" \"${TDE_SCM_MODULE_REVISION}\" \"${_notes}\"" )
|
|
|
|
separate_arguments( ELF_EMBEDDING_METADATA )
|
|
|
|
separate_arguments( ELF_EMBEDDING_METADATA )
|
|
|
|
if( EXISTS ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor AND _soname )
|
|
|
|
if( TDELFEDITOR_EXECUTABLE AND _soname )
|
|
|
|
if( _version )
|
|
|
|
if( _version )
|
|
|
|
add_custom_command(
|
|
|
|
add_custom_command(
|
|
|
|
TARGET ${_target}
|
|
|
|
TARGET ${_target}
|
|
|
|
POST_BUILD
|
|
|
|
POST_BUILD
|
|
|
|
COMMAND ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor -m ${CMAKE_CURRENT_BINARY_DIR}/${_soname}.${_version} ${ELF_EMBEDDING_METADATA} || true
|
|
|
|
COMMAND ${TDELFEDITOR_EXECUTABLE} -m ${CMAKE_CURRENT_BINARY_DIR}/${_soname}.${_version} ${ELF_EMBEDDING_METADATA} || true
|
|
|
|
COMMAND ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor -e ${CMAKE_CURRENT_BINARY_DIR}/${_soname}.${_version} || true
|
|
|
|
COMMAND ${TDELFEDITOR_EXECUTABLE} -e ${CMAKE_CURRENT_BINARY_DIR}/${_soname}.${_version} || true
|
|
|
|
)
|
|
|
|
)
|
|
|
|
else( )
|
|
|
|
else( )
|
|
|
|
add_custom_command(
|
|
|
|
add_custom_command(
|
|
|
|
TARGET ${_target}
|
|
|
|
TARGET ${_target}
|
|
|
|
POST_BUILD
|
|
|
|
POST_BUILD
|
|
|
|
COMMAND ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor -m ${CMAKE_CURRENT_BINARY_DIR}/${_soname} ${ELF_EMBEDDING_METADATA} || true
|
|
|
|
COMMAND ${TDELFEDITOR_EXECUTABLE} -m ${CMAKE_CURRENT_BINARY_DIR}/${_soname} ${ELF_EMBEDDING_METADATA} || true
|
|
|
|
COMMAND ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor -e ${CMAKE_CURRENT_BINARY_DIR}/${_soname} || true
|
|
|
|
COMMAND ${TDELFEDITOR_EXECUTABLE} -e ${CMAKE_CURRENT_BINARY_DIR}/${_soname} || true
|
|
|
|
)
|
|
|
|
)
|
|
|
|
endif( )
|
|
|
|
endif( )
|
|
|
|
endif( EXISTS ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor AND _soname )
|
|
|
|
endif( TDELFEDITOR_EXECUTABLE AND _soname )
|
|
|
|
|
|
|
|
|
|
|
|
endmacro( tde_add_library )
|
|
|
|
endmacro( tde_add_library )
|
|
|
|
|
|
|
|
|
|
|
@ -1047,15 +1047,15 @@ macro( tde_add_executable _arg_target )
|
|
|
|
# embed icon, name, and metadata
|
|
|
|
# embed icon, name, and metadata
|
|
|
|
set( ELF_EMBEDDING_METADATA "\"${_target}\" \"${_description}\" \"${_license}\" \"${_copyright}\" \"${_authors}\" \"${_product}\" \"${_organization}\" \"${_version}\" \"${_datetime}\" \"${_target}\" \"${TDE_SCM_MODULE_NAME}\" \"${TDE_SCM_MODULE_REVISION}\" \"${_notes}\"" )
|
|
|
|
set( ELF_EMBEDDING_METADATA "\"${_target}\" \"${_description}\" \"${_license}\" \"${_copyright}\" \"${_authors}\" \"${_product}\" \"${_organization}\" \"${_version}\" \"${_datetime}\" \"${_target}\" \"${TDE_SCM_MODULE_NAME}\" \"${TDE_SCM_MODULE_REVISION}\" \"${_notes}\"" )
|
|
|
|
separate_arguments( ELF_EMBEDDING_METADATA )
|
|
|
|
separate_arguments( ELF_EMBEDDING_METADATA )
|
|
|
|
if( EXISTS ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor )
|
|
|
|
if( TDELFEDITOR_EXECUTABLE )
|
|
|
|
add_custom_command(
|
|
|
|
add_custom_command(
|
|
|
|
TARGET ${_target}
|
|
|
|
TARGET ${_target}
|
|
|
|
POST_BUILD
|
|
|
|
POST_BUILD
|
|
|
|
COMMAND ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor -m ${CMAKE_CURRENT_BINARY_DIR}/${_target} ${ELF_EMBEDDING_METADATA} || true
|
|
|
|
COMMAND ${TDELFEDITOR_EXECUTABLE} -m ${CMAKE_CURRENT_BINARY_DIR}/${_target} ${ELF_EMBEDDING_METADATA} || true
|
|
|
|
COMMAND ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor -e ${CMAKE_CURRENT_BINARY_DIR}/${_target} || true
|
|
|
|
COMMAND ${TDELFEDITOR_EXECUTABLE} -e ${CMAKE_CURRENT_BINARY_DIR}/${_target} || true
|
|
|
|
COMMAND ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor -t ${CMAKE_CURRENT_BINARY_DIR}/${_target} ${_target} || true
|
|
|
|
COMMAND ${TDELFEDITOR_EXECUTABLE} -t ${CMAKE_CURRENT_BINARY_DIR}/${_target} ${_target} || true
|
|
|
|
)
|
|
|
|
)
|
|
|
|
endif( EXISTS ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor )
|
|
|
|
endif( TDELFEDITOR_EXECUTABLE )
|
|
|
|
|
|
|
|
|
|
|
|
endmacro( tde_add_executable )
|
|
|
|
endmacro( tde_add_executable )
|
|
|
|
|
|
|
|
|
|
|
|