summaryrefslogtreecommitdiff
path: root/android/run-aidl.sh
diff options
context:
space:
mode:
Diffstat (limited to 'android/run-aidl.sh')
-rwxr-xr-xandroid/run-aidl.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/android/run-aidl.sh b/android/run-aidl.sh
new file mode 100755
index 000000000..986d75878
--- /dev/null
+++ b/android/run-aidl.sh
@@ -0,0 +1,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"