mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Updated build scripts to better deal with non-Windows systems
This commit is contained in:
parent
2b9a1660c7
commit
3df81073b2
@ -1,11 +1,28 @@
|
||||
<project name="AutopsyTSKTargets">
|
||||
<target name="copyTSKLibs">
|
||||
<property environment="env"/>
|
||||
<copy file="${env.TSK_HOME}/bindings/java/jni/.libs/libtsk_jni.dylib" tofile="${basedir}/DataModel/release/modules/lib/libtsk_jni.dylib"/>
|
||||
<!-- <copy file="${env.TSK_HOME}/win32/libewf/msvscpp/Release/libewf.dll" tofile="${basedir}/DataModel/release/modules/lib/libewf.dll"/>
|
||||
<copy file="${env.TSK_HOME}/win32/libewf/msvscpp/zlib/zlib1.dll" tofile="${basedir}/DataModel/release/modules/lib/zlib1.dll"/> -->
|
||||
<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>
|
||||
<target name="copyExternalLibs">
|
||||
|
||||
<!-- 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}/DataModel/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}/DataModel/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="copyExternalLibsToZip">
|
||||
</target>
|
||||
|
||||
<target name="build-installer-unix">
|
||||
|
@ -3,7 +3,7 @@
|
||||
<!-- Need a way to specify TSK Debug versus Release -->
|
||||
<property name="TSK_BUILD_TYPE">Release</property>
|
||||
|
||||
<target name="copyTSKLibs">
|
||||
<target name="copyTSKLibsToRelease">
|
||||
<property environment="env"/>
|
||||
<condition property="ewfFound">
|
||||
<isset property="env.LIBEWF_HOME"/>
|
||||
@ -15,7 +15,7 @@
|
||||
<copy file="${env.LIBEWF_HOME}/msvscpp/Release/zlib.dll" tofile="${basedir}/DataModel/release/modules/lib/zlib.dll"/>
|
||||
</target>
|
||||
|
||||
<target name="copyExternalLibs">
|
||||
<target name="copyExternalLibsToZip">
|
||||
|
||||
<!-- Find CRT version we linked against from libtsk_jni manifest -->
|
||||
<property name="libtsk.manifest.path">${env.TSK_HOME}/win32/tsk_jni/${TSK_BUILD_TYPE}/libtsk_jni.dll.intermediate.manifest</property>
|
||||
|
@ -51,7 +51,7 @@
|
||||
<fail unless="jreFound" message="JRE_HOME must be set as an environment variable."/>
|
||||
</target>
|
||||
|
||||
<target name="getExternals" depends="findTSK,copyTSKLibs">
|
||||
<target name="getExternals" depends="findTSK,copyTSKLibsToRelease">
|
||||
<property environment="env"/>
|
||||
<copy file="${env.TSK_HOME}/bindings/java/dist/Tsk_DataModel.jar" tofile="${basedir}/DataModel/release/modules/ext/Tsk_DataModel.jar"/>
|
||||
<copy file="${env.TSK_HOME}/bindings/java/lib/sqlite-jdbc-3.7.2.jar" tofile="${basedir}/DataModel/release/modules/ext/sqlite-jdbc-3.7.2.jar"/>
|
||||
@ -77,7 +77,7 @@
|
||||
<copy file="${basedir}/LICENSE-2.0.txt" tofile="${zip-tmp}/${app.name}/LICENSE-2.0.txt"/>
|
||||
<copy file="${basedir}/NEWS.txt" tofile="${zip-tmp}/${app.name}/NEWS.txt"/>
|
||||
<copy file="${basedir}/KNOWN_ISSUES.txt" tofile="${zip-tmp}/${app.name}/KNOWN_ISSUES.txt"/>
|
||||
<antcall target="copyExternalLibs"></antcall>
|
||||
<antcall target="copyExternalLibsToZip"></antcall>
|
||||
|
||||
<!-- step (4) zip again, but with the version numbers in the dir -->
|
||||
<zip destfile="${nbdist.dir}/${app.name}-${app.version}.zip">
|
||||
|
Loading…
x
Reference in New Issue
Block a user