diff options
author | Balint Reczey <balint@balintreczey.hu> | 2013-02-25 18:12:20 +0000 |
---|---|---|
committer | Balint Reczey <balint@balintreczey.hu> | 2013-02-25 18:12:20 +0000 |
commit | d2e0724afc9631bcca59ce045debb9bb686dff1f (patch) | |
tree | f36678afeaa3e57328149d469876d19e72adb925 /wsutil | |
parent | 32c23fba25e7a5900e5176875b35fbe5aefafcb0 (diff) |
Add dumpabi targets to CMake builds
Also update automake generated targets to match CMake generated ones
svn path=/trunk/; revision=47879
Diffstat (limited to 'wsutil')
-rw-r--r-- | wsutil/CMakeLists.txt | 23 | ||||
-rw-r--r-- | wsutil/Makefile.am | 2 |
2 files changed, 23 insertions, 2 deletions
diff --git a/wsutil/CMakeLists.txt b/wsutil/CMakeLists.txt index 4ff35f07c5..a83c77d52e 100644 --- a/wsutil/CMakeLists.txt +++ b/wsutil/CMakeLists.txt @@ -60,8 +60,11 @@ set(wsutil_LIBS add_library(wsutil ${LINK_MODE_LIB} ${WSUTIL_FILES} ) + +set(FULL_SO_VERSION "0.0.0") + set_target_properties(wsutil PROPERTIES LINK_FLAGS "${WS_LINK_FLAGS}") -set_target_properties(wsutil PROPERTIES VERSION "0.0.0" SOVERSION 0) +set_target_properties(wsutil PROPERTIES VERSION ${FULL_SO_VERSION} SOVERSION 0) # discover and substitute list of include directories for ABI compatibility # checks @@ -70,6 +73,24 @@ list(REMOVE_DUPLICATES INCLUDE_DIRS) string(REGEX REPLACE ";" "\n" INCLUDE_DIRS "${INCLUDE_DIRS}") configure_file(../abi-descriptor.template abi-descriptor.xml) +# ABI compliance checker can be obtained from +# http://ispras.linux-foundation.org/index.php/ABI_compliance_checker +# Checked using version 1.21.12 +file(GLOB HEADERS *.h) +file(MAKE_DIRECTORY abi-check-headers) + +file(COPY ${HEADERS} DESTINATION abi-check-headers) + +add_custom_command(OUTPUT libwsutil.abi.tar.gz + COMMAND cp ../config.h abi-check-headers/ + COMMAND abi-compliance-checker -l libwsutil -v1 ${FULL_SO_VERSION} + -relpath ${CMAKE_CURRENT_BINARY_DIR} -dump-abi abi-descriptor.xml + || cat logs/libwsutil/[0-9]*/log.txt + COMMAND cp abi_dumps/libwsutil/libwsutil_* libwsutil.abi.tar.gz + COMMAND rm -rf abi-check-headers/* abi_dumps + DEPENDS ../config.h ${HEADERS} wsutil) +add_custom_target(dumpabi-libwsutil DEPENDS libwsutil.abi.tar.gz) + target_link_libraries(wsutil ${wsutil_LIBS}) if(NOT ${ENABLE_STATIC}) diff --git a/wsutil/Makefile.am b/wsutil/Makefile.am index e6da9ec369..0781f96af1 100644 --- a/wsutil/Makefile.am +++ b/wsutil/Makefile.am @@ -129,7 +129,7 @@ MAINTAINERCLEANFILES = \ # ABI compliance checker can be obtained from # http://ispras.linux-foundation.org/index.php/ABI_compliance_checker # Checked using version 1.21.12 -dumpabi: all abi-descriptor.xml +dumpabi-libwsutil: all abi-descriptor.xml rm -rf abi-check-headers abi_dumps .libs/*.abi.tar.gz mkdir abi-check-headers cp ../config.h *.h abi-check-headers/ |