1#!/bin/sh
2
3cd `dirname $0`
4BUILD_OUTPUT=$($NDK/ndk-build "$@" 2>&1)
5# Note: the build can fail because it is ill-specific, so don't panic
6#       and just look for the expected warning.
7printf "%s\n" "$BUILD_OUTPUT" | grep -q -e "WARNING:.*: LOCAL_THIN_ARCHIVE is for building static libraries"
8if [ $? != 0 ]; then
9  echo "ERROR: Can't find warning about LOCAL_THIN_ARCHIVE in output:"
10  printf "%s\n" "$BUILD_OUTPUT"
11  exit 1
12fi
13