forked from amulcahy/LambdaMC
-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom_rules.xml
54 lines (42 loc) · 1.54 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
<?xml version="1.0" encoding="UTF-8"?>
<project name="LambdaMC_custom_rules" default="help">
<target name="-pre-compile" >
<uptodate property="cabal-armeabi-configure.notRequired"
targetfile="obj/local/armeabi/setup-config" >
<srcfiles dir="." includes="*.cabal"/>
</uptodate>
</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-armeabi-configure">
<exec executable="arm-linux-androideabi-cabal" failonerror="true">
<arg value="build" />
<arg value="--verbose" />
<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="arm-linux-androideabi-cabal" failonerror="true">
<arg value="clean" />
<arg value="--builddir=obj/local/armeabi" />
</exec>
<exec executable="rm" failonerror="true">
<arg value="a.out" />
<arg value="LambdaMC.cabal" />
</exec>
<exec executable="rmdir" failonerror="true">
<arg value="libs/armeabi" />
<arg value="libs" />
<arg value="obj/local" />
<arg value="obj" />
</exec>
</target>
</project>