File: build-windows.xml

package info (click to toggle)
sleuthkit 4.6.5-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 39,264 kB
  • sloc: ansic: 171,812; cpp: 44,216; sh: 31,364; java: 17,674; makefile: 1,241; xml: 838; perl: 797; python: 707; sed: 16
file content (109 lines) | stat: -rw-r--r-- 5,197 bytes parent folder | download | duplicates (2)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?xml version="1.0" encoding="windows-1252"?>
<project name="TSKTestTargets">

    <property name="dlls" value="../../win32/x64/Release_PostgreSQL"/>
    <property environment="env"/>

	<target name="test"
			description="Runs the regression tests."
			depends="compile-test" >
		<junit fork="on" haltonfailure="yes" dir=".">
			<env key="path" value="${env.Path};${dlls}"/>
			<sysproperty key="rslt" value="${test-results}"/>
			<sysproperty key="gold" value="${test-standards}"/>
			<sysproperty key="inpt" value="${test-input}"/>
			<classpath refid="libraries" />
			<formatter type="plain" usefile="false" />
			<test name="org.sleuthkit.datamodel.DataModelTestSuite" />
		</junit>
	</target>

	<target name="test-rebuild"
			description="Rebuilds gold standards for tests."
			depends="compile-test" >
		<java classname="org.sleuthkit.datamodel.DataModelTestSuite" classpathref="libraries"	fork="true" failonerror="true">
			<sysproperty key="java.library.path" value="${dlls}"/>
			<sysproperty key="gold" value="${test-standards}"/>
			<sysproperty key="inpt" value="${test-input}"/>
			<sysproperty key="types" value="${test-types}"/>
		</java>
	</target>

	<target name="check-native-build" depends="check-build-32,check-build-64"/>

	<target name="check-build-32" if="win32.TskLib.exists">
		<uptodate property="native-up-to-date" srcfile="${basedir}/../../win32/Release/libtsk_jni.dll"
		targetfile="${x86}/win/libtsk_jni.dll"/>
	</target>

	<target name="check-build-64" if="win64.TskLib.exists">
		<uptodate property="native-up-to-date" srcfile="${basedir}/../../win32/x64/Release/libtsk_jni.dll"
		targetfile="${amd64}/win/libtsk_jni.dll"/>
	</target>

	<target name="copyLibs-SQLite" description="Copy native libs to the correct folder">
		<property name="tsk.config" value="Release"/>
		<antcall target="copyWinTskLibsToBuildSQLite" />
	</target>

	<target name="copyLibs-SQLiteDebug" description="Copy native libs to the correct folder">
		<property name="tsk.config" value="Debug"/>
		<antcall target="copyWinTskLibsToBuildSQLite" />
	</target>

	<target name="copyLibs-PostgreSQL" description="Copy native libs to the correct folder, PostgreSQL build">
		<property name="tsk.config" value="Release_PostgreSQL"/>
		<antcall target="copyWinTskLibsToBuild-PostgreSQL" />
	</target>

	<target name="copyLibs-PostgreSQLDebug" description="Copy native libs to the correct folder, PostgreSQL build">
		<property name="tsk.config" value="Debug_PostgreSQL"/>
		<antcall target="copyWinTskLibsToBuild-PostgreSQL" />
	</target>

	<target name="copyWinTskLibsToBuildSQLite" depends="copyWinTskLibs64ToBuildSQLite, copyWinTskLibs32ToBuild-SQLite" description="Copy Windows DLLs to the correct location, SQLite build." />

	<target name="checkTskLibDirsSQLite">
		<available property="win64.TskLib.exists" type="file" file="${basedir}/../../win32/x64/${tsk.config}/libtsk_jni.dll" />
		<available property="win32.TskLib.exists" type="file" file="${basedir}/../../win32/${tsk.config}/libtsk_jni.dll" />
	</target>

	<target name="copyWinTskLibs64ToBuildSQLite" depends="checkTskLibDirsSQLite" if="win64.TskLib.exists">
		<property name="tsk.jni.64" location="${basedir}/../../win32/x64/${tsk.config}/libtsk_jni.dll" />

		<copy file="${tsk.jni.64}" todir="${amd64}/win" overwrite="true"/>
		<copy file="${tsk.jni.64}" todir="${x86_64}/win" overwrite="true"/>
	</target>

	<target name="copyWinTskLibs32ToBuild-SQLite" depends="checkTskLibDirs" if="win32.TskLib.exists">
		<property name="tsk.jni.32" location="${basedir}/../../win32/${tsk.config}/libtsk_jni.dll" />

		<copy file="${tsk.jni.32}" todir="${i386}/win" overwrite="true"/>
		<copy file="${tsk.jni.32}" todir="${x86}/win" overwrite="true"/>
		<copy file="${tsk.jni.32}" todir="${i586}/win" overwrite="true"/>
		<copy file="${tsk.jni.32}" todir="${i686}/win" overwrite="true"/>
	</target>

	<target name="copyWinTskLibsToBuild-PostgreSQL" depends="copyWinTskLibs64ToBuild-PostgreSQL,copyWinTskLibs32ToBuild-PostgreSQL" description="Copy Windows DLLs to the correct location, PostgreSQL build." />

	<target name="checkTskLibDirs">
		<available property="win64.TskLib.exists" type="file" file="${basedir}/../../win32/x64/${tsk.config}/libtsk_jni.dll" />
		<available property="win32.TskLib.exists" type="file" file="${basedir}/../../win32/${tsk.config}/libtsk_jni.dll" />
	</target>

	<target name="copyWinTskLibs64ToBuild-PostgreSQL" depends="checkTskLibDirs" if="win64.TskLib.exists">
		<property name="tsk.jni.64" location="${basedir}/../../win32/x64/${tsk.config}/libtsk_jni.dll" />

		<copy file="${tsk.jni.64}" todir="${amd64}/win" overwrite="true"/>
		<copy file="${tsk.jni.64}" todir="${x86_64}/win" overwrite="true"/>
	</target>

	<target name="copyWinTskLibs32ToBuild-PostgreSQL" depends="checkTskLibDirs" if="win32.TskLib.exists">
		<property name="tsk.jni.32" location="${basedir}/../../win32/${tsk.config}/libtsk_jni.dll" />

		<copy file="${tsk.jni.32}" todir="${i386}/win" overwrite="true"/>
		<copy file="${tsk.jni.32}" todir="${x86}/win" overwrite="true"/>
		<copy file="${tsk.jni.32}" todir="${i586}/win" overwrite="true"/>
		<copy file="${tsk.jni.32}" todir="${i686}/win" overwrite="true"/>
	</target>
</project>