aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEbrahim Byagowi <ebrahim@gnu.org>2018-10-19 10:14:25 +0330
committerEbrahim Byagowi <ebrahim@gnu.org>2018-10-19 20:23:36 +0330
commitc6eb5e852c24e12fec3138cf9def5eb76acedfd6 (patch)
treeebe0bd98d7b7c1785d7191fc6854804ea45bbcec
parent34f357c78a7a530fdb3580ec9d3d865600c06128 (diff)
downloadharfbuzz_ng-c6eb5e852c24e12fec3138cf9def5eb76acedfd6.tar.gz
Don't report deprecated symbols as unused symbols
-rw-r--r--src/Makefile.am2
-rw-r--r--test/api/Makefile.am4
2 files changed, 5 insertions, 1 deletions
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