summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorSebastian Roth <sebastian.roth@gmail.com>2015-05-08 14:54:45 +0800
committerSebastian Dröge <sebastian@centricular.com>2015-05-08 10:06:11 +0200
commit5d8c1868beec85ac02bcc6e0bfd0ad9dbb99a3b8 (patch)
tree7c7f6e6de3e3e20ca8abeb95b246d984aa1b9d78 /android
parenta95ee9c61c371ec2b8d4ff59cace26451b11225a (diff)
android: Fix Windows build of the app
Fixes #36
Diffstat (limited to 'android')
-rw-r--r--android/app/build.gradle9
1 files changed, 8 insertions, 1 deletions
diff --git a/android/app/build.gradle b/android/app/build.gradle
index 6039b5b..18e68bd 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -1,3 +1,5 @@
+import org.apache.tools.ant.taskdefs.condition.Os
+
apply plugin: 'com.android.application'
android {
@@ -57,7 +59,12 @@ android {
environment PATH: "${System.getenv("PATH")}${File.pathSeparator}${ndkExtraPath}"
}
- commandLine "${ndkDir}/ndk-build", '-C', file('src/main/jni').absolutePath //, 'V=1' // Enable V=1 for debugging messages.
+ // Enable V=1 for debugging messages.
+ if (Os.isFamily(Os.FAMILY_WINDOWS)) {
+ commandLine "${ndkDir}/ndk-build.cmd", '-C', file('src/main/jni').absolutePath //, 'V=1'
+ } else {
+ commandLine "${ndkDir}/ndk-build", '-C', file('src/main/jni').absolutePath //, 'V=1'
+ }
}
}