-
Notifications
You must be signed in to change notification settings - Fork 595
/
build-unix.xml
35 lines (29 loc) · 1.71 KB
/
build-unix.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<project name="AutopsyTSKTargets">
<target name="testTSKLibs">
<property environment="env"/>
<available file="${env.TSK_HOME}/bindings/java/jni/.libs/libtsk_jni.dylib" property="tsk_dylib.present"/>
<available file="${env.TSK_HOME}/bindings/java/jni/.libs/libtsk_jni.so" property="tsk_so.present"/>
</target>
<!-- BC: NOTE I'm not sure this copying is required anymore because the
TSK Data model JAR file should have the libraries inside of it. We've
made that change w/out really maintaining the non-Windows platforms. -->
<!-- OS X -->
<target name="copyTskLibs_dylib" depends="testTSKLibs" if="tsk_dylib.present">
<property environment="env"/>
<copy file="${env.TSK_HOME}/bindings/java/jni/.libs/libtsk_jni.dylib" tofile="${basedir}/Core/release/modules/lib/libtsk_jni.jnilib"/>
</target>
<!-- Non-OS X -->
<target name="copyTskLibs_so" depends="testTSKLibs" if="tsk_so.present">
<property environment="env"/>
<copy file="${env.TSK_HOME}/bindings/java/jni/.libs/libtsk_jni.so" tofile="${basedir}/Core/release/modules/lib/libtsk_jni.so"/>
</target>
<target name="copyTSKLibsToRelease" depends="copyTskLibs_so,copyTskLibs_dylib">
<!-- depends targets take care of the actual copying since the file differs on OS X and Linux -->
<!-- This assumes that TSK, libewf, and zlib have been installed on the system and those libraries will be with normal loading approaches -->
</target>
<target name="copyLibsToZip" />
<target name="copyLibsToBaseDir" />
<target name="build-installer-unix">
<echo>Unix installer creation not supported at this time</echo>
</target>
</project>