Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAlex Zolotarev <deathbaba@gmail.com>2012-11-21 16:56:14 +0400
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:47:05 +0300
commitc408080c2712a08108368b8e981c81d006ab4fab (patch)
tree0ce369671d4ec8906294ed75d81d908db2dcd4b3 /tools
parent0062bf7895a005d47e548d17c398f9d27f3ef31b (diff)
[android][win] Android apk can be built with ant from GitBash console
Diffstat (limited to 'tools')
-rw-r--r--tools/android/aapt.exebin0 -> 128512 bytes
-rw-r--r--tools/autobuild/build.sh5
-rw-r--r--tools/autobuild/ndk_helper.sh6
3 files changed, 9 insertions, 2 deletions
diff --git a/tools/android/aapt.exe b/tools/android/aapt.exe
new file mode 100644
index 0000000000..21e94a99dd
--- /dev/null
+++ b/tools/android/aapt.exe
Binary files differ
diff --git a/tools/autobuild/build.sh b/tools/autobuild/build.sh
index e7004fd8a4..570b6bb72d 100644
--- a/tools/autobuild/build.sh
+++ b/tools/autobuild/build.sh
@@ -9,9 +9,12 @@ source "$LOCAL_DIRNAME/detect_qmake.sh"
# Prints number of cores to stdout
GetCPUCores() {
case "$OSTYPE" in
+ # it's GitBash under Windows
+ msys) echo $NUMBER_OF_PROCESSORS
+ ;;
linux-gnu) grep -c ^processor /proc/cpuinfo 2>/dev/null
;;
- darwin*) sysctl -n hw.ncpu
+ darwin*) sysctl -n hw.ncpu
;;
*) echo "Unsupported platform in $0"
exit 1
diff --git a/tools/autobuild/ndk_helper.sh b/tools/autobuild/ndk_helper.sh
index 6e52f2e8b3..ff15078856 100644
--- a/tools/autobuild/ndk_helper.sh
+++ b/tools/autobuild/ndk_helper.sh
@@ -27,6 +27,10 @@ GetNdkHost()
echo "darwin-x86"
return 0
fi
- # TODO add Windows
+ if [[ "$OSTYPE" == "msys" ]]; then
+ echo windows
+ return 0
+ fi
+ echo "ERROR: Can't detect your host OS"
return 1
}