forked from momodalo/vimtouch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom_rules.xml
43 lines (43 loc) · 1.71 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
<?xml version="1.0" encoding="UTF-8"?>
<project default="help">
<target name="x86-release">
<property name="version" value="x86" />
<antcall target="config"/>
<antcall target="release"/>
<copy file="${out.dir}/VimTouch-release.apk" tofile="${out.dir}/VimTouch-x86-release.apk" overwrite="true"/>
</target>
<target name="config" depends="default-armeabi">
<antcall target="manifest"/>
<antcall target="jni_mk"/>
</target>
<target name="default-armeabi" unless="version">
<property name="version" value="armeabi" />
</target>
<target name="config-x86">
<property name="version" value="x86" />
<antcall target="config"/>
</target>
<target name="manifest">
<copy tofile="${basedir}/AndroidManifest.xml" overwrite="true">
<fileset file="${basedir}/AndroidManifest.xml.${version}"/>
<filterset>
<filter token="CONFIG.APP_VERSION" value="${app.version}" />
<filter token="CONFIG.APP_VERSION_CODE" value="${app.versioncode}" />
</filterset>
</copy>
</target>
<target name="jni_mk">
<copy tofile="${basedir}/jni/Application.mk" overwrite="true">
<fileset file="${basedir}/jni/Application.mk.${version}" />
</copy>
</target>
<target name="-post-compile">
<exec executable="./run" failonerror="true" >
<arg line="buildnative" />
</exec>
<condition property="version" else="armeabi">
<isset property="version"/>
</condition>
<copy tofile="${basedir}/libs/${version}/libvimexec.so" file="${basedir}/libs/${version}/vim" overwrite="true" />
</target>
</project>