sigrok-cross-android: Remove PV setup now handled by ant
authorMarcus Comstedt <marcus@mc.pp.se>
Tue, 15 Jul 2014 22:16:10 +0000 (00:16 +0200)
committerUwe Hermann <uwe@hermann-uwe.de>
Mon, 25 Aug 2014 20:38:44 +0000 (22:38 +0200)
cross-compile/android/fix-libraries.sh [deleted file]
cross-compile/android/sigrok-cross-android

diff --git a/cross-compile/android/fix-libraries.sh b/cross-compile/android/fix-libraries.sh
deleted file mode 100755 (executable)
index 8d14940..0000000
+++ /dev/null
@@ -1,71 +0,0 @@
-#!/bin/sh
-
-set -e
-tmpdir=/tmp/fixlib$$
-trap 'rm -rf "$tmpdir"' 0 1 2 3 15
-mkdir -p "$tmpdir"
-
-if [ $# -lt 3 ]; then
-  echo >&2 "Usage: $0 srclib destlib library ..."
-  exit 1
-fi
-
-: ${READELF=readelf}
-
-srclib="$1"
-destlib="$2"
-shift
-shift
-rm -f "$tmpdir"/todo
-touch "$tmpdir"/todo
-for lib; do
-  echo "$lib" >> "$tmpdir"/todo
-done
-
-process()
-{
-  libname="$1"
-  libfile="$destlib"/"$libname"
-  if [ ! -f "$libfile" ]; then
-    echo >&2 "$libfile not found"
-    exit 1
-  fi
-  "$READELF" -d "$libfile" | awk '$1=="0x00000001" {print $NF}' | tr -d '][' | grep '\.so\.' | sort >> "$tmpdir"/worklist
-}
-
-install()
-{
-  libname="$1"
-  libfile=`echo "$libname" | sed -e 's/\.so\..*/.so/'`
-  cp "$srclib"/"$libname" "$destlib"/"$libfile"
-  echo "$libfile" >> "$tmpdir"/worklist
-  for deplib in `"$READELF" -d "$destlib"/"$libfile" | awk '$1=="0x00000001" {print $NF}' | tr -d '][' | grep '\.so\.' | sort`; do
-    echo "$deplib $libname"  >> "$tmpdir"/liblist
-  done
-}
-
-rm -f "$tmpdir"/liblist
-touch "$tmpdir"/liblist
-sort "$tmpdir"/todo > "$tmpdir"/processed
-while [ -s "$tmpdir"/todo ]; do
-  rm -f "$tmpdir"/worklist
-  touch "$tmpdir"/worklist
-  cat "$tmpdir"/todo | while read lib; do
-    if [ ! -z "$lib" ]; then
-      process "$lib"
-    fi
-  done
-  sort "$tmpdir"/worklist | uniq > "$tmpdir"/todo.tmp
-  comm -13 "$tmpdir"/processed "$tmpdir"/todo.tmp > "$tmpdir"/todo
-  sort -m "$tmpdir"/processed "$tmpdir"/todo | uniq > "$tmpdir"/processed.tmp
-  mv "$tmpdir"/processed.tmp "$tmpdir"/processed
-  rm -f "$tmpdir"/worklist
-  touch "$tmpdir"/worklist
-  cat "$tmpdir"/todo | while read lib; do
-    if [ ! -z "$lib" ]; then
-      install "$lib"
-    fi
-  done
-  mv "$tmpdir"/worklist "$tmpdir"/todo
-done
-tsort "$tmpdir"/liblist
index 2e4cb8d0ff2b2d293636a01bce7a80c67d103f8c..538b690298f42bedfe10801a61f0eaf78e648d76 100755 (executable)
@@ -317,16 +317,8 @@ cd pulseview
 patch -p1 < ../../pulseview-cpp.patch
 cmake $CM -DANDROID_STL_PATH=${ANDROID_NDK}/sources/cxx-stl .
 make $PARALLEL
-git clone https://github.com/zeldin/pulseview_android_java java
-cp -r libs java/
-mkdir -p java/res/drawable
-cp icons/sigrok-logo-notext.png java/res/drawable/logo.png
-cd java
-mkdir -p assets
-READELF=$TOOLCHAIN_TRIPLET-readelf ../../../fix-libraries.sh "$PREFIX/lib" libs/"$TARGET_ARCH" libpulseview.so > assets/liblist.txt
-(cd "$PREFIX"/lib && find python3.3 -name '*.py' | cpio -o) | (cd assets && cpio -id)
-cp -r "$PREFIX"/share/libsigrokdecode assets/
-cp ${ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++/${NDK_TOOLCHAIN_VERSION}/libs/${TARGET_ARCH}/libgnustl_shared.so libs/${TARGET_ARCH}/
+git clone https://github.com/zeldin/pulseview_android_java android
+cd android
 "$ANDROID_TOOLS/android" update project -p . -t android-14 -n PulseView
 ant debug
 cd ../..