gles: use new symbols check script

Signed-off-by: Eric Engestrom <eric.engestrom@intel.com>
Reviewed-by Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
Eric Engestrom
2018-10-11 14:46:34 +01:00
committed by Eric Engestrom
parent 111c34d2ae
commit 6f305d0c61
4 changed files with 14 additions and 62 deletions
+1 -28
View File
@@ -1,29 +1,7 @@
#!/bin/sh
set -eu
# Print defined gl.* functions not in GL ES 1.1
# gl.* functions in GL ES 1.1
# or in extensions that are part of the ES 1.1 extension pack.
# (see http://www.khronos.org/registry/gles/specs/1.1/opengles_spec_1_1_extension_pack.pdf)
case "$(uname)" in
Darwin)
LIB=${1-es1api/.libs/libGLESv1_CM.dylib}
;;
CYGWIN*)
LIB=${1-es1api/.libs/cygGLESv1_CM-1.dll}
;;
*)
LIB=${1-es1api/.libs/libGLESv1_CM.so.1}
;;
esac
if ! [ -f "$LIB" ]
then
exit 1
fi
FUNCS=$($NM -D --defined-only $LIB | grep -o 'T gl.*' | cut -c 3- | while read func; do
( grep -q "^$func$" || echo $func ) <<EOF
glActiveTexture
glAlphaFunc
glAlphaFuncx
@@ -169,8 +147,3 @@ glTranslatef
glTranslatex
glVertexPointer
glViewport
EOF
done)
test ! -n "$FUNCS" || echo $FUNCS
test ! -n "$FUNCS"
+6 -3
View File
@@ -55,9 +55,12 @@ pkg.generate(
if with_tests and prog_nm.found()
test(
'es1-ABI-check',
find_program('ABI-check'),
env : env_test,
args : libglesv1_cm,
symbols_check,
args : [
'--lib', libglesv1_cm,
'--symbols-file', files('gles1-symbols.txt'),
'--nm', prog_nm.path(),
],
suite : ['mapi'],
)
endif