forked from AnySoftKeyboard/LanguagePack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom_rules.xml
63 lines (48 loc) · 1.47 KB
/
custom_rules.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
61
62
63
<?xml version="1.0" encoding="UTF-8"?>
<project name="custom_rules" >
<target name="-set-build-type-value" >
<condition property="is.release" >
<contains
string="${ant.project.invoked-targets}"
substring="release" />
</condition>
<condition property="is.debug" >
<contains
string="${ant.project.invoked-targets}"
substring="debug" />
</condition>
</target>
<target name="-pre-build-makedict" >
<java
failonerror="true"
fork="true"
jar="../AnySoftKeyboardTools/makedict/makedict.jar" >
</java>
</target>
<target
name="-pre-build-verify-pack-release"
if="is.release" >
<java
failonerror="true"
fork="true"
jar="../AnySoftKeyboardTools/packverifier/packverifier.jar" >
<arg value="release" >
</arg>
</java>
</target>
<target
name="-pre-build-verify-pack-debug"
if="is.debug" >
<java
failonerror="true"
fork="true"
jar="../AnySoftKeyboardTools/packverifier/packverifier.jar" >
<arg value="debug" >
</arg>
</java>
</target>
<target
name="-pre-build"
depends="-set-build-type-value,-pre-build-makedict,-pre-build-verify-pack-release,-pre-build-verify-pack-debug" >
</target>
</project>