-
Notifications
You must be signed in to change notification settings - Fork 15
/
custom_rules.xml
62 lines (49 loc) · 1.96 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="HaskellActivity_custom_rules" default="help">
<target name="-pre-compile" >
<uptodate property="cabal-x86-configure.notRequired"
targetfile="obj/local/x86/setup-config" >
<srcfiles dir="." includes="*.cabal"/>
</uptodate>
<uptodate property="cabal-armeabi-configure.notRequired"
targetfile="obj/local/armeabi/setup-config" >
<srcfiles dir="." includes="*.cabal"/>
</uptodate>
</target>
<target name="cabal-x86-configure" unless="cabal-x86-configure.notRequired">
<exec executable="i686-linux-android-cabal" failonerror="true">
<arg value="configure" />
<arg value="--builddir=obj/local/x86" />
</exec>
</target>
<target name="cabal-armeabi-configure" unless="cabal-armeabi-configure.notRequired">
<exec executable="arm-linux-androideabi-cabal" failonerror="true">
<arg value="configure" />
<arg value="--builddir=obj/local/armeabi" />
</exec>
</target>
<target name="-post-compile" depends="cabal-x86-configure,cabal-armeabi-configure">
<exec executable="i686-linux-android-cabal" failonerror="true">
<arg value="build" />
<arg value="--builddir=obj/local/x86" />
</exec>
<exec executable="arm-linux-androideabi-cabal" failonerror="true">
<arg value="build" />
<arg value="--builddir=obj/local/armeabi" />
</exec>
<exec executable="${ndk.dir}/ndk-build" failonerror="true"/>
</target>
<target name="clean" depends="android_rules.clean">
<exec executable="${ndk.dir}/ndk-build" failonerror="true">
<arg value="clean"/>
</exec>
<exec executable="i686-linux-android-cabal" failonerror="true">
<arg value="clean" />
<arg value="--builddir=obj/local/x86" />
</exec>
<exec executable="arm-linux-androideabi-cabal" failonerror="true">
<arg value="clean" />
<arg value="--builddir=obj/local/armeabi" />
</exec>
</target>
</project>