1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <project name =" custom_rules" >
3
+
4
+ <condition property =" ndk.dir" value =" ${env.ANDROID_NDK}" >
5
+ <isset property =" env.ANDROID_NDK" />
6
+ </condition >
7
+
8
+ <target name =" -getgitdetails" >
9
+ <exec executable =" git" outputproperty =" git.describe" >
10
+ <arg value =" describe" />
11
+ </exec >
12
+ <exec executable =" git" outputproperty =" git.revision" >
13
+ <arg value =" rev-parse" />
14
+ <arg value =" HEAD" />
15
+ </exec >
16
+ </target >
17
+
18
+ <target name =" -javadoc" description =" Generate Javadocs" >
19
+ <property name =" javadoc.jar.name" value =" ${out.dir}/sqlcipher-javadoc.jar" />
20
+ <javadoc sourcepath =" ${source.dir}"
21
+ destdir =" ${out.dir}/javadoc"
22
+ packagenames =" net.sqlcipher.*"
23
+ windowtitle =" SQLCipher for Android"
24
+ doctitle =" SQLCipher for Android" />
25
+ <delete file =" ${javadoc.jar.name}" />
26
+ <jar destfile =" ${javadoc.jar.name}"
27
+ includes =" net/sqlcipher/**"
28
+ basedir =" ${out.dir}/javadoc" >
29
+ <manifest >
30
+ <attribute name =" Implementation-Vendor" value =" Zetetic" />
31
+ <attribute name =" Implementation-Title" value =" SQLCipher for Android" />
32
+ <attribute name =" Implementation-URL" value =" https://www.zetetic.net/sqlcipher/open-source" />
33
+ <attribute name =" Implementation-Version" value =" ${git.describe}" />
34
+ <attribute name =" Git-Revision" value =" ${git.revision}" />
35
+ </manifest >
36
+ </jar >
37
+ </target >
38
+
39
+ <target name =" -post-build" depends =" -getgitdetails,-javadoc" >
40
+ <property name =" jar.dir" value =" libs" />
41
+ <property name =" jar.name" value =" ${jar.dir}/sqlcipher.jar" />
42
+ <property file =" ${sdk.dir}/tools/source.properties" />
43
+ <exec executable =" cat" outputproperty =" ndk.release" >
44
+ <arg value =" ${ndk.dir}/RELEASE.TXT" />
45
+ </exec >
46
+ <delete file =" ${jar.name}" />
47
+ <mkdir dir =" ${jar.dir}" />
48
+ <jar destfile =" ${jar.name}"
49
+ includes =" net/sqlcipher/**"
50
+ basedir =" ${out.classes.absolute.dir}" >
51
+ <manifest >
52
+ <attribute name =" Implementation-Vendor" value =" Zetetic" />
53
+ <attribute name =" Implementation-Title" value =" SQLCipher for Android" />
54
+ <attribute name =" Implementation-URL" value =" https://www.zetetic.net/sqlcipher/open-source" />
55
+ <attribute name =" Implementation-Version" value =" ${git.describe}" />
56
+ <attribute name =" Git-Revision" value =" ${git.revision}" />
57
+ <attribute name =" Android-SDK-Release" value =" ${Pkg.Revision}" />
58
+ <attribute name =" Android-SDK-Host-OS" value =" ${Archive.HostOs}" />
59
+ <attribute name =" Android-NDK-Release" value =" ${ndk.release}" />
60
+ </manifest >
61
+ </jar >
62
+ <copy file =" ${out.dir}/sqlcipher-javadoc.jar" todir =" ${jar.dir}" preservelastmodified =" true" overwrite =" true" />
63
+ </target >
64
+
65
+ </project >
0 commit comments