mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-20 21:33:57 -07:00
Added ant build script. Requires NDK_BUILD_LOC environment variable pointing to the ndk-build script
fixed compile erros in Node and VirutalNetworkConfig Signed-off-by: Grant Limberg <glimberg@gmail.com>
This commit is contained in:
parent
667a103a6a
commit
407e2fc7de
4 changed files with 120 additions and 14 deletions
46
java/build.xml
Normal file
46
java/build.xml
Normal file
|
@ -0,0 +1,46 @@
|
|||
<project default="android" name="ZeroTierOneSDK">
|
||||
<property environment="env"/>
|
||||
|
||||
<target name="clean">
|
||||
<delete dir="bin"/>
|
||||
<delete dir="libs"/>
|
||||
<delete dir="obj"/>
|
||||
<delete>
|
||||
<fileset dir="jni" includes="*.so"/>
|
||||
</delete>
|
||||
</target>
|
||||
|
||||
<target name="build">
|
||||
<echo message="os.name = ${os.name}"/>
|
||||
<echo message="os.arch = ${os.arch}"/>
|
||||
<echo message="ant.java.version = ${ant.java.version}"/>
|
||||
<echo message="java.version = ${java.version}"/>
|
||||
<javac srcdir="src"
|
||||
destdir="bin"
|
||||
classpath="${env.ANDROID_PLATFORM}/android.jar"
|
||||
includeantruntime="false"/>
|
||||
<exec dir="jni" executable="${env.NDK_BUILD_LOC}" failonerror="true">
|
||||
<arg value="ZT1=${user.dir}/../"/>
|
||||
</exec>
|
||||
<jar destfile="bin/ZeroTierOneSDK.jar" basedir="bin"/>
|
||||
</target>
|
||||
|
||||
<!-- <target name="android" depends="build">
|
||||
<echo message="OS is Android, installing..."/>
|
||||
<copy file="libs/armeabi/libZeroTierOneJNI.so"
|
||||
tofile="${aproj_loc}/libs/armeabi/libZeroTierOneJNI.so"
|
||||
overwrite="true"/>
|
||||
<copy file="libs/arm64-v8a/libZeroTierOneJNI.so"
|
||||
tofile="${aproj_loc}/libs/arm64-v8a/libZeroTierOneJNI.so"
|
||||
overwrite="true"/>
|
||||
<copy file="libs/armeabi-v7a/libZeroTierOneJNI.so"
|
||||
tofile="${aproj_loc}/libs/armeabi-v7a/libZeroTierOneJNI.so"
|
||||
overwrite="true"/>
|
||||
<copy file="libs/x86/libZeroTierOneJNI.so"
|
||||
tofile="${aproj_loc}/libs/x86/libZeroTierOneJNI.so"
|
||||
overwrite="true"/>
|
||||
<copy file="bin/ZeroTierOneSDK.jar"
|
||||
tofile="${aproj_loc}/libs/ZeroTierOneSDK.jar"
|
||||
overwrite="true"/>
|
||||
</target> -->
|
||||
</project>
|
Loading…
Add table
Add a link
Reference in a new issue