Add legacy so to the build
This commit is contained in:
parent
cac895a173
commit
3344be088d
2 changed files with 37 additions and 0 deletions
|
@ -81,6 +81,12 @@
|
||||||
<antcall target="jar" />
|
<antcall target="jar" />
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
|
<target name="native-legacy-libs-jar" depends="compile">
|
||||||
|
<exec command="bash collect_libs.sh" failonerror="true">
|
||||||
|
</exec>
|
||||||
|
<antcall target="jar" />
|
||||||
|
</target>
|
||||||
|
|
||||||
<target name="jar" depends="compile">
|
<target name="jar" depends="compile">
|
||||||
<manifestclasspath property="lib.list" jarfile="OsmAnd-core.jar">
|
<manifestclasspath property="lib.list" jarfile="OsmAnd-core.jar">
|
||||||
<classpath refid="build.path" />
|
<classpath refid="build.path" />
|
||||||
|
|
31
OsmAnd-java/collect_legacy_libs.sh
Executable file
31
OsmAnd-java/collect_legacy_libs.sh
Executable file
|
@ -0,0 +1,31 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
SCRIPT_LOC="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
CORE_LOC="$SCRIPT_LOC/../../core"
|
||||||
|
|
||||||
|
if [[ "$(uname -a)" =~ Linux ]]; then
|
||||||
|
if [[ -z "$OSMAND_BUILD_CPU_CORES_NUM" ]]; then
|
||||||
|
OSMAND_BUILD_CPU_CORES_NUM=`nproc`
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
function copyLibs {
|
||||||
|
if [ -d "$CORE_LOC/binaries/$1/$2" ]; then
|
||||||
|
echo "Copy binaries $1 $2";
|
||||||
|
cp "$CORE_LOC"/binaries/$1/$2/Release/libosmand.so bin/osmand-$1-$3.lib
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
function compile {
|
||||||
|
"$CORE_LOC/core/externals/configure.sh"
|
||||||
|
if [ ! -d "$CORE_LOC/targets/amd64-linux-gcc-amd64-linux-gcc-release.baked" ]; then
|
||||||
|
"$CORE_LOC/targets/amd64-linux-gcc.sh" release
|
||||||
|
fi
|
||||||
|
(cd "$CORE_LOC/targets/amd64-linux-gcc-amd64-linux-gcc-release.baked" && make -j$OSMAND_BUILD_CPU_CORES_NUM OsmAndJNI)
|
||||||
|
}
|
||||||
|
|
||||||
|
compile
|
||||||
|
copyLibs linux amd64 amd64 so
|
||||||
|
# copyLibs linux i686 x86 so
|
Loading…
Reference in a new issue