2012-12-19 11:59:59 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
2013-09-18 13:01:02 +00:00
|
|
|
set -x
|
2012-12-19 11:59:59 +00:00
|
|
|
|
|
|
|
tmp=`dirname $0`
|
|
|
|
HAMLIB=`readlink -f $tmp/..`
|
|
|
|
|
|
|
|
cd $HAMLIB
|
|
|
|
|
|
|
|
rm -f $HAMLIB/include/config.h
|
|
|
|
|
2013-09-18 13:01:02 +00:00
|
|
|
if [ "$1" = "clean"]; then
|
|
|
|
ndk-build NDK_PROJECT_PATH=$HAMLIB APP_BUILD_SCRIPT=$HAMLIB/Android.mk clean
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2012-12-19 11:59:59 +00:00
|
|
|
if [ -n "$1" ]; then
|
|
|
|
ndk-build NDK_PROJECT_PATH=$HAMLIB APP_BUILD_SCRIPT=$HAMLIB/Android.mk $1
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
2013-09-18 13:01:02 +00:00
|
|
|
#ndk-build NDK_PROJECT_PATH=$HAMLIB APP_BUILD_SCRIPT=$HAMLIB/Android.mk hamlib
|
2012-12-19 11:59:59 +00:00
|
|
|
ndk-build NDK_PROJECT_PATH=$HAMLIB APP_BUILD_SCRIPT=$HAMLIB/Android.mk
|