mapi: Use correct shared libraries suffix on macOS.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
This commit is contained in:
Vinson Lee
2017-11-14 17:16:32 -08:00
parent ae7b4fdb32
commit cd58b98b03
2 changed files with 12 additions and 2 deletions

View File

@@ -9,7 +9,12 @@ set -eu
# 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)
LIB=${1-es1api/.libs/libGLESv1_CM.so.1}
if [ $(uname) == "Darwin" ]
then
LIB=${1-es1api/.libs/libGLESv1_CM.dylib}
else
LIB=${1-es1api/.libs/libGLESv1_CM.so.1}
fi
if ! [ -f "$LIB" ]
then

View File

@@ -6,7 +6,12 @@ set -eu
# GL_EXT_multi_draw_arrays
# GL_OES_EGL_image
LIB=${1-es2api/.libs/libGLESv2.so.2}
if [ $(uname) == "Darwin" ]
then
LIB=${1-es2api/.libs/libGLESv2.dylib}
else
LIB=${1-es2api/.libs/libGLESv2.so.2}
fi
if ! [ -f "$LIB" ]
then