2020-05-30 23:42:12 +00:00
|
|
|
#!/bin/sh
|
2012-12-19 11:59:59 +00:00
|
|
|
set -e
|
2013-09-18 13:01:02 +00:00
|
|
|
set -x
|
2012-12-19 11:59:59 +00:00
|
|
|
|
2020-05-30 23:42:12 +00:00
|
|
|
tmp=$(dirname $0)
|
|
|
|
HAMLIB=$(readlink -f $tmp/..)
|
2012-12-19 11:59:59 +00:00
|
|
|
|
|
|
|
cd $HAMLIB
|
|
|
|
|
|
|
|
rm -f $HAMLIB/include/config.h
|
|
|
|
|
2020-05-30 23:42:12 +00:00
|
|
|
if [ "$1" = "clean" ]; then
|
2013-09-18 13:01:02 +00:00
|
|
|
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
|
2021-02-28 14:50:36 +00:00
|
|
|
ndk-build --trace NDK_PROJECT_PATH=$HAMLIB APP_BUILD_SCRIPT=$HAMLIB/Android.mk PP_ALLOW_MISSING_DEPS=true $1
|
2012-12-19 11:59:59 +00:00
|
|
|
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
|