2016-08-16 02:29:28 +02:00
|
|
|
#!/bin/bash
|
2010-01-02 20:10:08 +01:00
|
|
|
|
2012-08-27 05:18:37 +02:00
|
|
|
set -e -u
|
|
|
|
|
2017-06-21 07:05:39 +02:00
|
|
|
NODE=xw4
|
2019-05-30 04:16:56 +02:00
|
|
|
VARIANT=xw4NoSMS
|
2016-08-16 02:29:28 +02:00
|
|
|
CLASSPATH=${CLASSPATH:-""}
|
2012-08-27 05:18:37 +02:00
|
|
|
|
2012-02-14 08:35:41 +01:00
|
|
|
usage() {
|
|
|
|
[ $# -gt 0 ] && echo "Error: $1"
|
2018-07-20 16:55:07 +02:00
|
|
|
echo "usage: $0 [--variant xw4|xw4d]"
|
2012-02-14 08:35:41 +01:00
|
|
|
exit 1
|
|
|
|
}
|
2017-06-21 07:05:39 +02:00
|
|
|
while [ $# -gt 0 ]; do
|
|
|
|
case $1 in
|
2018-07-20 16:55:07 +02:00
|
|
|
--help)
|
|
|
|
usage
|
|
|
|
;;
|
|
|
|
--variant)
|
|
|
|
VARIANT=$2
|
|
|
|
shift
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
usage "unexpected flag $1"
|
|
|
|
;;
|
2017-06-21 07:05:39 +02:00
|
|
|
esac
|
|
|
|
shift
|
2012-08-27 05:18:37 +02:00
|
|
|
done
|
|
|
|
|
2020-05-18 17:52:29 +02:00
|
|
|
if [ -d $(dirname $0)/../app/build/intermediates/javac/${VARIANT} ]; then
|
|
|
|
cd $(dirname $0)/../app/build/intermediates/javac/${VARIANT}/classes
|
|
|
|
else
|
|
|
|
echo "no such variant $VARIANT; try"
|
|
|
|
ALL=''
|
|
|
|
for DIR in $(ls -d $(dirname $0)/../app/build/intermediates/javac/*); do
|
2020-09-07 00:45:19 +02:00
|
|
|
ALL="$ALL --variant $(basename $DIR)"
|
2020-05-18 17:52:29 +02:00
|
|
|
done
|
|
|
|
echo "$ALL"
|
|
|
|
exit 1
|
|
|
|
fi
|
2012-02-14 08:35:41 +01:00
|
|
|
|
2014-10-17 05:16:35 +02:00
|
|
|
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
|
2021-03-07 17:28:17 +01:00
|
|
|
javap -s org.eehouse.android.${NODE}.jni.DUtilCtxt
|
2014-10-17 05:16:35 +02:00
|
|
|
javap -s org.eehouse.android.${NODE}.jni.CommsAddrRec
|
2014-10-16 15:45:24 +02:00
|
|
|
javap -s org.eehouse.android.${NODE}.jni.CommsAddrRec\$CommsConnTypeSet
|
2014-10-17 05:16:35 +02:00
|
|
|
javap -s org.eehouse.android.${NODE}.jni.TransportProcs
|
|
|
|
javap -s org.eehouse.android.${NODE}.jni.JNIUtils
|
|
|
|
javap -s org.eehouse.android.${NODE}.Utils
|
2010-01-02 20:10:08 +01:00
|
|
|
cat /tmp/javah$$.txt
|
|
|
|
rm /tmp/javah$$.txt
|