diff options
author | Pawel Kowalski <p.kowalski2@partner.samsung.com> | 2019-08-28 14:31:23 +0200 |
---|---|---|
committer | Pawel Kowalski <p.kowalski2@partner.samsung.com> | 2019-08-28 16:56:31 +0200 |
commit | dee455252ad321c660b411b4ecd65aa5e08f8fc1 (patch) | |
tree | b55f9ec039e963e42605e9e9bdc186354cf9df42 /Makefile.am | |
parent | 5c7e0aaf17a296535495e3431db6a86ad64064b3 (diff) | |
parent | 26bea900a531662c6028ecc06f4adea825658434 (diff) | |
download | libtasn1-tizen_6.5.tar.gz libtasn1-tizen_6.5.tar.bz2 libtasn1-tizen_6.5.zip |
Merge tag 'upstream/4.14' into tizentizen_6.5.m2_releasetizen_6.0.m2_releasetizen_5.5.m2_releasesubmit/tizen_6.5/20211028.163501submit/tizen_6.0_hotfix/20201103.115102submit/tizen_6.0_hotfix/20201102.192902submit/tizen_6.0/20201029.205502submit/tizen_5.5_wearable_hotfix/20201026.184307submit/tizen_5.5_mobile_hotfix/20201026.185107submit/tizen_5.5/20191031.000007submit/tizen/20190904.070216submit/tizen/20190829.061506accepted/tizen/unified/20190904.110630accepted/tizen/6.5/unified/20211029.014057accepted/tizen/6.0/unified/hotfix/20201103.050702accepted/tizen/6.0/unified/hotfix/20201102.234932accepted/tizen/6.0/unified/20201030.110146accepted/tizen/5.5/unified/wearable/hotfix/20201027.100357accepted/tizen/5.5/unified/mobile/hotfix/20201027.074057accepted/tizen/5.5/unified/20191031.011500tizen_6.5tizen_6.0_hotfixtizen_6.0tizen_5.5_wearable_hotfixtizen_5.5_tvtizen_5.5_mobile_hotfixtizen_5.5accepted/tizen_6.5_unifiedaccepted/tizen_6.0_unified_hotfixaccepted/tizen_6.0_unifiedaccepted/tizen_5.5_unified_wearable_hotfixaccepted/tizen_5.5_unified_mobile_hotfixaccepted/tizen_5.5_unified
Change-Id: I6d4b47b2072db8e7c45daa6e269e2f0cc6f54a7f
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 88 |
1 files changed, 63 insertions, 25 deletions
diff --git a/Makefile.am b/Makefile.am index 2a8698b..e878df5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -24,42 +24,80 @@ EXTRA_DIST = windows/asn1-parser/asn1-parser.vcproj \ windows/gnulib/getopt.h windows/gnulib/gnulib.vcproj \ windows/libtasn1/libtasn1.vcproj \ windows/test-parser/test-parser.vcproj \ - windows/test-tree/test-tree.vcproj windows/libtasn14win.mk + windows/test-tree/test-tree.vcproj windows/libtasn14win.mk \ + CONTRIBUTING.md cfg.mk maint.mk AUTHORS NEWS ChangeLog \ + THANKS LICENSE -SUBDIRS = gl lib src tests +SUBDIRS = lib src tests if ENABLE_DOC SUBDIRS += doc examples endif -ACLOCAL_AMFLAGS = -I m4 -I gl/m4 -I lib/glm4 +include $(top_srcdir)/aminclude_static.am -EXTRA_DIST += cfg.mk maint.mk .clcopying +ACLOCAL_AMFLAGS = -I m4 -I m4-gl -gnulib-update: - gnulib-tool --add-import --dir=. --lib=libgnu --source-base=lib/gllib --m4-base=lib/glm4 --doc-base=doc --tests-base=tests --aux-dir=build-aux --lgpl=2 --no-conditional-dependencies --libtool --macro-prefix=lgl --no-vc-files +EXTRA_DIST += cfg.mk maint.mk .clcopying README.md -TMPFILE="abi-temp.xml" +ABIDW_COMMON = --no-show-locs --no-corpus-path +ABIGNORE_FILE = "$(top_srcdir)/devel/libtasn1.abignore" +LIBGNUTLS_ABI_LAST_FILE = "$(top_srcdir)/devel/libtasn1-latest-$$(uname -m).abi" -abi-check: - @rm -f $(TMPFILE) - @echo "Checking libtasn1 ABI" - @echo "<version>$(VERSION)</version>" >$(TMPFILE) - @echo "<headers>$(srcdir)/lib/libtasn1.h" >>$(TMPFILE) - @echo "$(builddir)/lib/libtasn1.h</headers>" >>$(TMPFILE) - @echo "<libs>$(builddir)/lib/.libs</libs>" >>$(TMPFILE) - test ! -f "$(srcdir)/devel/ABI-$$(uname -m).dump" || \ - abi-compliance-checker -abi -lib libtasn1 -old "$(srcdir)/devel/ABI-$$(uname -m).dump" -new $(TMPFILE) - @rm -f $(TMPFILE) +abi-dump-versioned: lib/libtasn1.la + @echo "**************************************************" + @echo "Generating versioned ABI files of current libtasn1" + @echo "**************************************************" + @abidw lib/.libs/libtasn1.so $(ABIDW_COMMON) --suppressions $(ABIGNORE_FILE) --out-file "$(srcdir)/devel/libtasn1-$(VERSION)-$$(uname -m).abi" -abi-dump: - @mkdir -p devel/headers-tmp - @cp lib/libtasn1.h devel/headers-tmp - @abi-dumper lib/.libs/libtasn1.so -o "./devel/ABI-$$(uname -m).dump" -public-headers devel/headers-tmp - @rm -rf devel/headers-tmp +abi-dump-latest: lib/libtasn1.la + @echo "****************************************" + @echo "Generating ABI files of current libtasn1" + @echo "****************************************" + @abidw lib/.libs/libtasn1.so $(ABIDW_COMMON) --suppressions $(ABIGNORE_FILE) --out-file $(LIBGNUTLS_ABI_LAST_FILE) + @rm -f "./devel/libtasn1-latest-$$(uname -m).tmp" +abi-check-latest: lib/libtasn1.la + @echo "Checking whether the latest ABI dump matches" + @abidiff --suppressions $(ABIGNORE_FILE) lib/.libs/libtasn1.so $(LIBGNUTLS_ABI_LAST_FILE) --hd2 "$(srcdir)/lib/includes/"; if test $$? != 0;then \ + echo "*********************************************************"; \ + echo "libtasn1 ABI has changed; use 'make files-update' "; \ + echo "and use 'git diff' to check correctness before committing"; \ + echo "*********************************************************"; \ + false; \ + fi + @echo "********************************" + @echo "Current release matches ABI dump" + @echo "********************************" -dist-hook: abi-check - make -C doc/ compare-makefile +ABICHECK_COMMON = --no-added-syms +abi-check: lib/libtasn1.la + @for file in $$(echo $(srcdir)/devel/libtasn1-*-$$(uname -m).abi);do \ + echo "Comparing libtasn1 with $$file"; \ + abidiff $${file} lib/.libs/libtasn1.so $(ABICHECK_COMMON) --suppressions $(ABIGNORE_FILE) --hd2 "$(srcdir)/lib/includes//"; \ + if test $$? != 0;then \ + echo "****************************************************************************"; \ + echo "ABI check failed; If intentional add suppression in devel/libtasn1.abignore"; \ + echo "****************************************************************************"; \ + false; \ + fi; \ + done + @echo "********************" + @echo "ABI checks completed" + @echo "********************" -.PHONY: abi-dump abi-check +files-update: abi-dump-latest + +local-code-coverage-output: code-coverage-capture + cat "GNU Libtasn1-$(VERSION)-coverage/index.html"|grep headerCovTableEntry|grep '%'|head -1|sed 's/^.*>\([0-9]\+\.[0-9]\+\s*%\)<.*$$/ coverage lines: \1/' || true + +clean-local: code-coverage-clean +distclean-local: code-coverage-dist-clean + +dist-hook: + if test -d "$(top_srcdir)/devel";then \ + $(MAKE) -C $(top_srcdir) abi-check-latest; \ + make -C doc/ compare-makefile; \ + fi + +.PHONY: abi-check abi-dump-versioned abi-dump-latest |