make-release-build: make sure ndk-build can be found
This commit is contained in:
parent
58d53ea347
commit
5c86b5cc7e
|
@ -35,6 +35,15 @@ if [ -z $ANDROID_HOME ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -z $ANDROID_NDK_HOME ]; then
|
||||||
|
if which ndk-build 2>&1 /dev/null; then
|
||||||
|
ANDROID_NDK_HOME=`which ndk-build | sed 's,/ndk-build,,'`
|
||||||
|
else
|
||||||
|
echo "ANDROID_NDK_HOME not set and 'ndk-build' not in PATH"
|
||||||
|
exit
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
projectroot=`pwd`
|
projectroot=`pwd`
|
||||||
projectname=`sed -n 's,.*name="app_name">\(.*\)<.*,\1,p' res/values/strings.xml`
|
projectname=`sed -n 's,.*name="app_name">\(.*\)<.*,\1,p' res/values/strings.xml`
|
||||||
|
|
||||||
|
@ -61,7 +70,7 @@ else
|
||||||
echo "skipping release ant.properties"
|
echo "skipping release ant.properties"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ndk-build
|
$ANDROID_NDK_HOME/ndk-build
|
||||||
|
|
||||||
faketime "$TIMESTAMP" make -C external
|
faketime "$TIMESTAMP" make -C external
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue