-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.xml
60 lines (49 loc) · 2.25 KB
/
build.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
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project name="Idemix cryptographic library" default="all">
<property file="build.properties" />
<target name="prepare">
<unzip src="${idemix.archive}" dest="." />
<patch dir="${idemix.dir}" strip="1" patchfile="${patch.dir}/BUG-proving-nonce-length.patch" />
<patch dir="${idemix.dir}" strip="1" patchfile="${patch.dir}/BUG-unsigned-byte-array-interpretation.patch" />
<patch dir="${idemix.dir}" strip="1" patchfile="${patch.dir}/FEATURE-allow-inputstream-as-input.patch" />
<patch dir="${idemix.dir}" strip="1" patchfile="${patch.dir}/FEATURE-context-as-parameter.patch" />
<patch dir="${idemix.dir}" strip="1" patchfile="${patch.dir}/FEATURE-nonce-as-parameter.patch" />
<patch dir="${idemix.dir}" strip="1" patchfile="${patch.dir}/SMARTCARD-negative-values.patch" />
<patch dir="${idemix.dir}" strip="1" patchfile="${patch.dir}/SMARTCARD-test-files.patch" />
<patch dir="${idemix.dir}" strip="1" patchfile="${patch.dir}/BUG-missing-default-case.patch" />
<copy todir="${idemix.dir}">
<fileset dir="${eclipse.dir}" />
</copy>
</target>
<target name="clean">
<delete dir="${bin.dir}" />
</target>
<target name="distclean" depends="clean">
<delete dir="${idemix.dir}" />
<delete file="${idemix.archive}" />
<delete file="${jar.development.dir}/${jar.development.archive}" />
<delete file="${jar.library.dir}/${jar.library.archive}" />
<delete file="${jar.source.dir}/${jar.source.archive}" />
</target>
<target name="compile">
<mkdir dir="${bin.dir}" />
<javac srcdir="${src.dir}" destdir="${bin.dir}" includeantruntime="false" />
</target>
<target name="archive">
<jar destfile="${jar.source.dir}/${jar.source.archive}">
<fileset dir="${src.dir}" />
</jar>
</target>
<target name="development" depends="compile">
<jar destfile="${jar.development.dir}/${jar.development.archive}">
<fileset dir="${bin.dir}" />
<fileset dir="${src.dir}" />
</jar>
</target>
<target name="library" depends="compile">
<jar destfile="${jar.library.dir}/${jar.library.archive}">
<fileset dir="${bin.dir}" />
</jar>
</target>
<target name="all" depends="archive,development,library" />
</project>