Add metadata to shared libraries

Update metadata information
pull/1/head
Timothy Pearson 11 years ago
parent d29f6d6b10
commit 836cbcaead

@ -755,6 +755,18 @@ macro( tde_add_library _arg_target )
endif( _destination ) endif( _destination )
# 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}\"" )
separate_arguments( ELF_EMBEDDING_METADATA )
if( EXISTS ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor )
add_custom_command(
TARGET ${_target}
POST_BUILD
COMMAND ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor -m ${CMAKE_CURRENT_BINARY_DIR}/${_soname} ${ELF_EMBEDDING_METADATA} || true
COMMAND ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor -e ${CMAKE_CURRENT_BINARY_DIR}/${_soname} || true
)
endif( EXISTS ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor )
endmacro( tde_add_library ) endmacro( tde_add_library )
@ -940,7 +952,7 @@ macro( tde_add_executable _arg_target )
endif( _destination ) endif( _destination )
# embed icon, name, and metadata # embed icon, name, and metadata
set( ELF_EMBEDDING_METADATA "\"${_target}\" \"${_description}\" \"${_license}\" \"${_copyright}\" \"${_authors}\" \"${_product}\" \"${_organization}\" \"${_version}\" \"${_datetime}\" \"${_target}\" \"${_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( EXISTS ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor )
add_custom_command( add_custom_command(

Loading…
Cancel
Save