diff options
author | Jon Turney <[email protected]> | 2017-11-11 14:48:10 +0000 |
---|---|---|
committer | Jon Turney <[email protected]> | 2017-11-24 16:53:55 +0000 |
commit | b6b4b2c6d825c056033c4111a67e83111b5f02e8 (patch) | |
tree | 5094ca8e5212e7ef7a20d513bab11b8576ea441f /src/mapi/es2api | |
parent | 1cc00b8e0eb839096c1d6856df9213d6bad474ef (diff) |
mapi: Teach es{1,2}api/ABI-check shared library names on Cygwin
Ideally we'd be able to get the library filename from libtool, but that
doesn't seem to be a feature...
Use of ${uname} is presumably ok here as we won't be running 'make check' if
we are cross-compiling
Signed-off-by: Jon Turney <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/mapi/es2api')
-rwxr-xr-x | src/mapi/es2api/ABI-check | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/mapi/es2api/ABI-check b/src/mapi/es2api/ABI-check index 716e6679a49..7bc78480f76 100755 --- a/src/mapi/es2api/ABI-check +++ b/src/mapi/es2api/ABI-check @@ -6,12 +6,17 @@ set -eu # GL_EXT_multi_draw_arrays # GL_OES_EGL_image -if [ $(uname) == "Darwin" ] -then +case "$(uname)" in +Darwin) LIB=${1-es2api/.libs/libGLESv2.dylib} -else + ;; +CYGWIN*) + LIB=${1-es2api/.libs/cygGLESv2-2.dll} + ;; +*) LIB=${1-es2api/.libs/libGLESv2.so.2} -fi + ;; +esac if ! [ -f "$LIB" ] then |