From c6eb5e852c24e12fec3138cf9def5eb76acedfd6 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Fri, 19 Oct 2018 10:14:25 +0330 Subject: [PATCH] Don't report deprecated symbols as unused symbols --- src/Makefile.am | 2 ++ test/api/Makefile.am | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index c74bab5d9..b2b9ad54a 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -283,6 +283,8 @@ harfbuzz-icu.def: $(HB_ICU_headers) $(AM_V_GEN) $(srcdir)/gen-def.py "$@" $^ harfbuzz-gobject.def: $(HB_GOBJECT_headers) $(AM_V_GEN) $(srcdir)/gen-def.py "$@" $^ +harfbuzz-deprecated.def: $(srcdir)/hb-deprecated.h + $(AM_V_GEN) $(srcdir)/gen-def.py "$@" $^ GENERATORS = \ diff --git a/test/api/Makefile.am b/test/api/Makefile.am index bae01d2c9..2a50148a6 100644 --- a/test/api/Makefile.am +++ b/test/api/Makefile.am @@ -166,11 +166,13 @@ symbols-tested.txt: $(TEST_PROGS) $(AM_V_GEN)$(top_builddir)/libtool --mode=execute nm $^ \ | grep ' U hb_' | sed 's/.* U hb_/hb_/' \ | sort | uniq > $@.tmp && mv $@.tmp $@ +symbols-tested-or-deprecated.txt: symbols-tested.txt $(top_builddir)/src/harfbuzz-deprecated.def + $(AM_V_GEN)cat $^ | sort | uniq > $@.tmp; mv $@.tmp $@ symbols-exported.txt: $(top_builddir)/src/.libs/libharfbuzz.so $(AM_V_GEN)$(top_builddir)/libtool --mode=execute nm $^ \ | grep ' T ' | sed 's/.* T //' | grep -v '^\(_init\|_fini\)$$' \ | sort | uniq > $@.tmp && mv $@.tmp $@ -symbols-untested.txt: symbols-tested.txt symbols-exported.txt +symbols-untested.txt: symbols-tested-or-deprecated.txt symbols-exported.txt $(AM_V_GEN)diff $^ > $@.tmp; mv $@.tmp $@ CLEANFILES += symbols-tested.txt symbols-exported.txt symbols-untested.txt check-symbols: symbols-untested.txt