diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-03-27 02:36:04 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-03-27 02:36:04 -0500 |
commit | 836cbcaead88584a141c7c715128f5243661953a (patch) | |
tree | 250fba58d10d1663c54fb1d76ccfdd26ea8f56d1 /modules/TDEMacros.cmake | |
parent | d29f6d6b10fe1748c2a5fb1f9f2cdcecc473d354 (diff) | |
download | tde-cmake-836cbcaead88584a141c7c715128f5243661953a.tar.gz tde-cmake-836cbcaead88584a141c7c715128f5243661953a.zip |
Add metadata to shared libraries
Update metadata information
Diffstat (limited to 'modules/TDEMacros.cmake')
-rw-r--r-- | modules/TDEMacros.cmake | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index beeee18..500ebaa 100644 --- a/modules/TDEMacros.cmake +++ b/modules/TDEMacros.cmake @@ -755,6 +755,18 @@ macro( tde_add_library _arg_target ) 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 ) @@ -940,7 +952,7 @@ macro( tde_add_executable _arg_target ) endif( _destination ) # 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 ) if( EXISTS ${CMAKE_INSTALL_PREFIX}/bin/tdelfeditor ) add_custom_command( |