浏览代码

Add method to check for existance of NDK

iwgeric 11 年之前
父节点
当前提交
c965e4066d
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      build.gradle

+ 9 - 0
build.gradle

@@ -116,6 +116,15 @@ String findNDK() {
     }
 }
 
+boolean ndkExists() {
+    String ndkCommandPath = findNDK()
+    if (ndkCommandPath != null && new File(ndkCommandPath).exists()) {
+        return true
+    } else {
+        return false
+    }
+}
+
 //class IncrementalReverseTask extends DefaultTask {
 //    @InputDirectory
 //    def File inputDir