Pass-through the command line arguments to ndk-build and added a warning about possibly not exported bash array.
This commit is contained in:
parent
e323c54363
commit
20a498d965
1 changed files with 3 additions and 1 deletions
|
@ -14,6 +14,8 @@ SCRIPT_LOC="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
if [ -z "$OSMAND_ARCHITECTURES_SET" ]; then
|
if [ -z "$OSMAND_ARCHITECTURES_SET" ]; then
|
||||||
OSMAND_ARCHITECTURES_SET=(x86 mips arm armv5 armv7 armv7-neon)
|
OSMAND_ARCHITECTURES_SET=(x86 mips arm armv5 armv7 armv7-neon)
|
||||||
export OSMAND_ARCHITECTURES_SET
|
export OSMAND_ARCHITECTURES_SET
|
||||||
|
echo Setting OSMAND_ARCHITECTURES_SET to default set of architectures
|
||||||
|
echo WARNING: exporting a bash ARRAY to environment, this might not work depending on your bash version. See BUGS section of "bash(1)" for details.
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$(uname -a)" =~ Linux ]]; then
|
if [[ "$(uname -a)" =~ Linux ]]; then
|
||||||
|
@ -31,4 +33,4 @@ OSMAND_ANDROID_EXTERNAL_DEPENDENCIES=(expat freetype gdal giflib glm glsl-optimi
|
||||||
"$SCRIPT_LOC/../../core/externals/configure.sh" ${OSMAND_ANDROID_EXTERNAL_DEPENDENCIES[*]}
|
"$SCRIPT_LOC/../../core/externals/configure.sh" ${OSMAND_ANDROID_EXTERNAL_DEPENDENCIES[*]}
|
||||||
"$SCRIPT_LOC/../../core/externals/build.sh" ${OSMAND_ANDROID_EXTERNAL_DEPENDENCIES[*]}
|
"$SCRIPT_LOC/../../core/externals/build.sh" ${OSMAND_ANDROID_EXTERNAL_DEPENDENCIES[*]}
|
||||||
"$SCRIPT_LOC/../OsmAnd-java/generate-swig.sh"
|
"$SCRIPT_LOC/../OsmAnd-java/generate-swig.sh"
|
||||||
(cd "$SCRIPT_LOC" && "$ANDROID_NDK/ndk-build" -j$OSMAND_BUILD_CPU_CORES_NUM)
|
(cd "$SCRIPT_LOC" && "$ANDROID_NDK/ndk-build" -j$OSMAND_BUILD_CPU_CORES_NUM "$@")
|
||||||
|
|
Loading…
Reference in a new issue