aboutsummaryrefslogtreecommitdiffstats
path: root/build.xml
diff options
context:
space:
mode:
Diffstat (limited to 'build.xml')
-rw-r--r--build.xml17
1 files changed, 17 insertions, 0 deletions
diff --git a/build.xml b/build.xml
index 8f92989..a53621c 100644
--- a/build.xml
+++ b/build.xml
@@ -127,6 +127,23 @@
includes="**/*.pot **/*.po" />
</target>
+ <target name="-check-ndk">
+ <fail
+ message="ndk.dir is missing. Make sure to put it in local.properties"
+ unless="ndk.dir"
+ />
+ </target>
+
+ <target name="native-build" depends="-check-ndk">
+ <exec executable="${ndk.dir}/ndk-build" failonerror="true" />
+ </target>
+
+ <target name="native-clean" depends="-check-ndk">
+ <exec executable="${ndk.dir}/ndk-build" failonerror="true">
+ <arg value="clean" />
+ </exec>
+ </target>
+
<!-- End custom ConnectBot stuff -->
<!-- quick check on sdk.dir -->