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:
committed by
Eric Engestrom
parent
111c34d2ae
commit
6f305d0c61
Executable → Regular
+1
-28
@@ -1,27 +1,5 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
# gl.* functions in GL ES 2 and 3.{0..2}
|
||||
|
||||
# Print defined gl.* functions not in GL ES 3.{0..2}
|
||||
|
||||
case "$(uname)" in
|
||||
Darwin)
|
||||
LIB=${1-es2api/.libs/libGLESv2.dylib}
|
||||
;;
|
||||
CYGWIN*)
|
||||
LIB=${1-es2api/.libs/cygGLESv2-2.dll}
|
||||
;;
|
||||
*)
|
||||
LIB=${1-es2api/.libs/libGLESv2.so.2}
|
||||
;;
|
||||
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
|
||||
glActiveShaderProgram
|
||||
glActiveTexture
|
||||
glAttachShader
|
||||
@@ -380,8 +358,3 @@ glVertexAttribPointer
|
||||
glVertexBindingDivisor
|
||||
glViewport
|
||||
glWaitSync
|
||||
EOF
|
||||
done)
|
||||
|
||||
test ! -n "$FUNCS" || echo $FUNCS
|
||||
test ! -n "$FUNCS"
|
||||
@@ -55,9 +55,12 @@ pkg.generate(
|
||||
if with_tests and prog_nm.found()
|
||||
test(
|
||||
'es2-ABI-check',
|
||||
find_program('ABI-check'),
|
||||
env : env_test,
|
||||
args : libgles2,
|
||||
symbols_check,
|
||||
args : [
|
||||
'--lib', libgles2,
|
||||
'--symbols-file', files('gles2-symbols.txt'),
|
||||
'--nm', prog_nm.path(),
|
||||
],
|
||||
suite : ['mapi'],
|
||||
)
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user