From 35e2c4b20fd9f131bd9a7a08840f1a92bc7267b6 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Thu, 18 Apr 2013 23:43:41 +0200 Subject: [PATCH] Move OsmAnd java core project back to android repository for maintainance reasons --- OsmAnd-java/collect_libs.sh | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 OsmAnd-java/collect_libs.sh diff --git a/OsmAnd-java/collect_libs.sh b/OsmAnd-java/collect_libs.sh new file mode 100644 index 0000000000..acf4ad73cf --- /dev/null +++ b/OsmAnd-java/collect_libs.sh @@ -0,0 +1,29 @@ +#!/bin/bash +SCRIPT_LOC="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +ROOT_LOC="$SCRIPT_LOC/../.." +function copyLibs { + if [ -d "$ROOT_LOC/binaries/$1/$2" ]; then + echo "Copy binaries $1 $2"; + cp "$ROOT_LOC"/binaries/$1/$2/libOsmAndJNI.$4 bin/OsmAndJNI-$1-$3.lib + cp "$ROOT_LOC"/binaries/$1/$2/libOsmAndCoreUtils.$4 bin/OsmAndCoreUtils-$1-$3.lib + cp "$ROOT_LOC"/binaries/$1/$2/libOsmAndCore.$4 bin/OsmAndCore-$1-$3.lib + cp "$ROOT_LOC"/core/externals/qtbase-desktop/upstream.patched.$1.$2/lib/libQt5Core.$4.5.0.2 bin/Qt5Core-$1-$3.lib + fi +} + +function compile { + "$ROOT_LOC/core/externals/configure.sh" + "$ROOT_LOC/core/externals/qtbase-desktop/build.sh" + if [ ! -d "$ROOT_LOC/baked/amd64-linux-gcc-amd64-linux-gcc" ]; then + "$ROOT_LOC/build/amd64-linux-gcc.sh" + fi + (cd "$ROOT_LOC/baked/amd64-linux-gcc-amd64-linux-gcc" && make -j`nproc`) + if [ ! -d "$ROOT_LOC/baked/i686-linux-gcc-i686-linux-gcc" ]; then + "$ROOT_LOC/build/i686-linux-gcc.sh" + fi + (cd "$ROOT_LOC/baked/i686-linux-gcc-i686-linux-gcc" && make -j`nproc`) +} + +compile +copyLibs linux amd64 amd64 so +copyLibs linux i686 x86 so