xwords/xwords4/android/scripts/getsigs.sh
Eric House e3e7add5a9 fix (I hope) script for harvesting jni sigs
I made these changes a while ago then stashed them. They worked when I
needed them then, and seem to work now, but I haven't verified now so
don't trust 'em too far. :-)
2017-06-20 22:05:39 -07:00

35 lines
853 B
Bash
Executable file

#!/bin/bash
set -e -u
NODE=xw4
CLASSPATH=${CLASSPATH:-""}
usage() {
[ $# -gt 0 ] && echo "Error: $1"
echo "usage: $0 "
exit 1
}
while [ $# -gt 0 ]; do
case $1 in
--help) usage
;;
*) usage "unexpected flag $1"
;;
esac
shift
done
cd $(dirname $0)/../app/build/intermediates/classes/${NODE}/debug
javah -o /tmp/javah$$.txt org.eehouse.android.${NODE}.jni.XwJNI
javap -s org.eehouse.android.${NODE}.jni.XwJNI
javap -s org.eehouse.android.${NODE}.jni.DrawCtx
javap -s org.eehouse.android.${NODE}.jni.UtilCtxt
javap -s org.eehouse.android.${NODE}.jni.CommsAddrRec
javap -s org.eehouse.android.${NODE}.jni.CommsAddrRec\$CommsConnTypeSet
javap -s org.eehouse.android.${NODE}.jni.TransportProcs
javap -s org.eehouse.android.${NODE}.jni.JNIUtils
javap -s org.eehouse.android.${NODE}.Utils
cat /tmp/javah$$.txt
rm /tmp/javah$$.txt