summaryrefslogtreecommitdiffstats
path: root/tdelfeditor
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-03-28 18:00:28 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-03-28 18:00:28 -0500
commitf348cf011d160868ddd7c0caa47b208604adadaf (patch)
tree1eea3b8eab16cdb350687d56d2c384445fb38bae /tdelfeditor
parentacab47877a4f64772fed12afb076dc43c6a7b336 (diff)
downloadtdelibs-f348cf011d160868ddd7c0caa47b208604adadaf.tar.gz
tdelibs-f348cf011d160868ddd7c0caa47b208604adadaf.zip
Export elf metadata extraction methods and header
Properly embed versioning information into major libraries
Diffstat (limited to 'tdelfeditor')
-rw-r--r--tdelfeditor/CMakeLists.txt27
1 files changed, 23 insertions, 4 deletions
diff --git a/tdelfeditor/CMakeLists.txt b/tdelfeditor/CMakeLists.txt
index ebc99ab62..46e6215f6 100644
--- a/tdelfeditor/CMakeLists.txt
+++ b/tdelfeditor/CMakeLists.txt
@@ -44,11 +44,12 @@ if( EXISTS "${CMAKE_SOURCE_DIR}/.tdescmrevision" )
endif( EXISTS "${CMAKE_SOURCE_DIR}/.tdescmrevision" )
tde_curdatetime( _datetime )
-set( ELF_EMBEDDING_METADATA "\"\" \"\" \"\" \"\" \"\" \"Trinity Desktop Environment\" \"\" \"\" \"${_datetime}\" \"x-sharedlib\" \"${TDE_SCM_MODULE_NAME}\" \"${TDE_SCM_MODULE_REVISION}\" \"\"" )
-separate_arguments( ELF_EMBEDDING_METADATA )
if( NOT "${TDE_SCM_MODULE_NAME}" STREQUAL "" )
if( NOT "${TDE_SCM_MODULE_REVISION}" STREQUAL "" )
+ get_target_property( _version DCOP-shared VERSION )
+ set( ELF_EMBEDDING_METADATA "\"DCOP-shared\" \"\" \"\" \"\" \"\" \"Trinity Desktop Environment\" \"\" \"${_version}\" \"${_datetime}\" \"x-sharedlib\" \"${TDE_SCM_MODULE_NAME}\" \"${TDE_SCM_MODULE_REVISION}\" \"\"" )
+ separate_arguments( ELF_EMBEDDING_METADATA )
add_custom_target(
# embed name and metadata
update_libDCOP_metadata ALL
@@ -59,6 +60,9 @@ if( NOT "${TDE_SCM_MODULE_NAME}" STREQUAL "" )
COMMENT "Storing SCM metadata in dcop/libDCOP.so"
)
+ get_target_property( _version tdecore-shared VERSION )
+ set( ELF_EMBEDDING_METADATA "\"tdecore-shared\" \"\" \"\" \"\" \"\" \"Trinity Desktop Environment\" \"\" \"${_version}\" \"${_datetime}\" \"x-sharedlib\" \"${TDE_SCM_MODULE_NAME}\" \"${TDE_SCM_MODULE_REVISION}\" \"\"" )
+ separate_arguments( ELF_EMBEDDING_METADATA )
add_custom_target(
# embed name and metadata
update_libtdecore_metadata ALL
@@ -69,6 +73,9 @@ if( NOT "${TDE_SCM_MODULE_NAME}" STREQUAL "" )
COMMENT "Storing SCM metadata in tdecore/libtdecore.so"
)
+ get_target_property( _version tdeio-shared VERSION )
+ set( ELF_EMBEDDING_METADATA "\"tdeio-shared\" \"\" \"\" \"\" \"\" \"Trinity Desktop Environment\" \"\" \"${_version}\" \"${_datetime}\" \"x-sharedlib\" \"${TDE_SCM_MODULE_NAME}\" \"${TDE_SCM_MODULE_REVISION}\" \"\"" )
+ separate_arguments( ELF_EMBEDDING_METADATA )
add_custom_target(
# embed name and metadata
update_libtdeio_metadata ALL
@@ -79,6 +86,9 @@ if( NOT "${TDE_SCM_MODULE_NAME}" STREQUAL "" )
COMMENT "Storing SCM metadata in tdeui/libtdeio.so"
)
+ get_target_property( _version tdeui-shared VERSION )
+ set( ELF_EMBEDDING_METADATA "\"tdeui-shared\" \"\" \"\" \"\" \"\" \"Trinity Desktop Environment\" \"\" \"${_version}\" \"${_datetime}\" \"x-sharedlib\" \"${TDE_SCM_MODULE_NAME}\" \"${TDE_SCM_MODULE_REVISION}\" \"\"" )
+ separate_arguments( ELF_EMBEDDING_METADATA )
add_custom_target(
# embed name and metadata
update_libtdeui_metadata ALL
@@ -89,6 +99,9 @@ if( NOT "${TDE_SCM_MODULE_NAME}" STREQUAL "" )
COMMENT "Storing SCM metadata in tdeui/libtdeui.so"
)
+ get_target_property( _version tdeutils-shared VERSION )
+ set( ELF_EMBEDDING_METADATA "\"tdeutils-shared\" \"\" \"\" \"\" \"\" \"Trinity Desktop Environment\" \"\" \"${_version}\" \"${_datetime}\" \"x-sharedlib\" \"${TDE_SCM_MODULE_NAME}\" \"${TDE_SCM_MODULE_REVISION}\" \"\"" )
+ separate_arguments( ELF_EMBEDDING_METADATA )
add_custom_target(
# embed name and metadata
update_libtdeutils_metadata ALL
@@ -99,6 +112,9 @@ if( NOT "${TDE_SCM_MODULE_NAME}" STREQUAL "" )
COMMENT "Storing SCM metadata in tdeutils/libtdeutils.so"
)
+ get_target_property( _version tdeprint-shared VERSION )
+ set( ELF_EMBEDDING_METADATA "\"tdeprint-shared\" \"\" \"\" \"\" \"\" \"Trinity Desktop Environment\" \"\" \"${_version}\" \"${_datetime}\" \"x-sharedlib\" \"${TDE_SCM_MODULE_NAME}\" \"${TDE_SCM_MODULE_REVISION}\" \"\"" )
+ separate_arguments( ELF_EMBEDDING_METADATA )
add_custom_target(
# embed name and metadata
update_libtdeprint_metadata ALL
@@ -109,6 +125,9 @@ if( NOT "${TDE_SCM_MODULE_NAME}" STREQUAL "" )
COMMENT "Storing SCM metadata in tdeprint/libtdeprint.so"
)
+ get_target_property( _version tdehtml-shared VERSION )
+ set( ELF_EMBEDDING_METADATA "\"tdehtml-shared\" \"\" \"\" \"\" \"\" \"Trinity Desktop Environment\" \"\" \"${_version}\" \"${_datetime}\" \"x-sharedlib\" \"${TDE_SCM_MODULE_NAME}\" \"${TDE_SCM_MODULE_REVISION}\" \"\"" )
+ separate_arguments( ELF_EMBEDDING_METADATA )
add_custom_target(
# embed name and metadata
update_libtdehtml_metadata ALL
@@ -118,5 +137,5 @@ if( NOT "${TDE_SCM_MODULE_NAME}" STREQUAL "" )
DEPENDS tdehtml-shared
COMMENT "Storing SCM metadata in tdehtml/libtdehtml.so"
)
- endif( NOT "${TDE_SCM_MODULE_REVISION}" STREQUAL "" )
-endif( NOT "${TDE_SCM_MODULE_NAME}" STREQUAL "" ) \ No newline at end of file
+ endif( )
+endif( ) \ No newline at end of file