summaryrefslogtreecommitdiff
path: root/android/run-aidl.sh
blob: 986d758789b876bf88df12e544ec87c16cee3624 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh -e

AIDL=$1
SRC=$2
DST=$3
GENSRC=$4
JAVA_PKG_PATH=$5

mkdir -p "$GENSRC/$JAVA_PKG_PATH"
cp "$SRC" "$GENSRC/$JAVA_PKG_PATH/"
"$AIDL" -I"$GENSRC" -o"$GENSRC" "$GENSRC/$JAVA_PKG_PATH/`basename $SRC`"
exec cp "$GENSRC/$JAVA_PKG_PATH/`basename $DST`" "$DST"