From: Marcus Comstedt Date: Tue, 8 Jul 2014 07:41:34 +0000 (+0200) Subject: sigrok-cross-android: Restrict Python assets to .py files X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=9e9c6f730d70f99d807ad825c376ade3baa9140f;p=sigrok-util.git sigrok-cross-android: Restrict Python assets to .py files --- diff --git a/cross-compile/android/sigrok-cross-android b/cross-compile/android/sigrok-cross-android index 8412bff..8b3fe12 100755 --- a/cross-compile/android/sigrok-cross-android +++ b/cross-compile/android/sigrok-cross-android @@ -325,7 +325,7 @@ 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 -cp -r "$PREFIX"/lib/python3.3 assets/ +(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}/ "$ANDROID_TOOLS/android" update project -p . -t android-14 -n PulseView