autopsy-flatpak/build-windows.xml
Peter J. Martel d720cee570 Pull CRT assembly into zip distribution
Add target that (on Windows) copies Microsoft C++ Runtime libraries and manifest from a folder specified in an enviroment variable.
2011-11-09 16:34:40 -05:00

30 lines
1.6 KiB
XML

<project name="AutopsyTSKTargets">
<target name="copyTSKLibs">
<property environment="env"/>
<condition property="ewfFound">
<isset property="env.LIBEWF_HOME"/>
</condition>
<fail unless="ewfFound" message="LIBEWF_HOME must be set as an environment variable."/>
<!-- Need a way to specify Debug versus release -->
<copy file="${env.TSK_HOME}/win32/release/libtsk_jni.dll" tofile="${basedir}/DataModel/release/modules/lib/libtsk_jni.dll"/>
<copy file="${env.LIBEWF_HOME}/msvscpp/Release/libewf.dll" tofile="${basedir}/DataModel/release/modules/lib/libewf.dll"/>
<copy file="${env.LIBEWF_HOME}/msvscpp/zlib/zlib1.dll" tofile="${basedir}/DataModel/release/modules/lib/zlib1.dll"/>
</target>
<target name="copyExternalLibs">
<!-- Get C++ Runtime dlls -->
<property environment="env"/>
<condition property="crtFound">
<isset property="env.CRT_HOME"/>
</condition>
<fail unless="crtFound" message="CRT_HOME must be set as an environment variable."/>
<copy file="${env.CRT_HOME}/Microsoft.VC90.CRT.manifest" tofile="${zip-tmp}/${app.name}/${app.name}/modules/lib/Microsoft.VC90.CRT.manifest"/>
<copy file="${env.CRT_HOME}/msvcm90.dll" tofile="${zip-tmp}/${app.name}/${app.name}/modules/lib/msvcm90.dll"/>
<copy file="${env.CRT_HOME}/msvcp90.dll" tofile="${zip-tmp}/${app.name}/${app.name}/modules/lib/msvcp90.dll"/>
<copy file="${env.CRT_HOME}/msvcr90.dll" tofile="${zip-tmp}/${app.name}/${app.name}/modules/lib/msvcr90.dll"/>
</target>
</project>