Commit f7324726 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Relax libvlccore.sym ordering (completely)

parent 53afb986
...@@ -501,6 +501,22 @@ stamp-revision: ...@@ -501,6 +501,22 @@ stamp-revision:
dist_check_SCRIPTS = check_symbols check_headers dist_check_SCRIPTS = check_symbols check_headers
TESTS = check_symbols TESTS = check_symbols
check_DATA = libvlc-headers.sym libvlc-sorted.sym
CLEANFILES += $(check_DATA)
libvlc-sorted.sym: libvlccore.sym
rm -f libvlc-sorted.sym
sort -fdu < "$(srcdir)/libvlccore.sym" > libvlc-sorted.sym
libvlc-headers.sym:
rm -f libvlc-headers.sym
cat ${srcdir}/../include/vlc_*.h ${srcdir}/control/*.h | \
sed -n -e 's/^[ ]*VLC_EXPORT[ ]*([^,]*,\([^,]*\),.*/\1/p' | \
sed -e 's/[^a-zA-Z0-9_]*//' | \
sort -fdu > libvlc-headers.sym
.PHONY: libvlc-headers.sym
check-local: check-local:
for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \ for h in `echo $(pkginclude_HEADERS) | sed -e s,\.\./include/,,g`; \
do \ do \
......
...@@ -2,14 +2,7 @@ ...@@ -2,14 +2,7 @@
# Plugin API consistency check for VLC # Plugin API consistency check for VLC
# Copyright © 2007 Rémi Denis-Courmont. # Copyright © 2007 Rémi Denis-Courmont.
rm -f libvlc-headers.sym if ! diff -u ${srcdir}/libvlccore.sym libvlc-sorted.sym; then
cat ${srcdir}/../include/vlc_*.h ${srcdir}/control/*.h | \
sed -n -e 's/^[ ]*VLC_EXPORT[ ]*([^,]*,\([^,]*\),.*/\1/p' | \
sed -e 's/[^a-zA-Z0-9_]*//' | \
sort -fdu > libvlc-headers.sym
if ! diff -u ${srcdir}/libvlccore.sym libvlc-headers.sym; then
echo "Mismatching symbols found!" echo "Mismatching symbols found!"
exit 1 exit 1
fi fi
...@@ -19,5 +12,3 @@ fi ...@@ -19,5 +12,3 @@ fi
# echo "Illegal symbol name (starting with underscore) found!"; # echo "Illegal symbol name (starting with underscore) found!";
# exit 1 # exit 1
#fi #fi
rm -f libvlc-headers.sym
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment