2014-04-17 06:06:41 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
|
2015-04-07 16:31:41 +02:00
|
|
|
<project>
|
2014-04-17 06:06:41 +02:00
|
|
|
|
|
|
|
<target name="my-pre-clean">
|
2014-05-12 04:55:05 +02:00
|
|
|
<exec dir="." executable="../scripts/rm-non-git.sh" output="/dev/null"
|
2014-04-17 06:06:41 +02:00
|
|
|
failonerror="true" >
|
2014-05-12 04:55:05 +02:00
|
|
|
<arg value="--except" />
|
|
|
|
<arg value="./local.properties" />
|
2014-04-17 06:06:41 +02:00
|
|
|
</exec>
|
|
|
|
|
2016-09-30 20:13:30 +02:00
|
|
|
<exec dir="." executable="../scripts/ndksetup.sh" output="/dev/null"
|
2014-05-12 04:55:05 +02:00
|
|
|
failonerror="true" >
|
2016-09-30 20:13:30 +02:00
|
|
|
<arg value="--with-clang"/>
|
2014-04-17 06:06:41 +02:00
|
|
|
</exec>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="my-pre-build">
|
2015-04-07 16:20:48 +02:00
|
|
|
|
|
|
|
<exec dir="." executable="../scripts/key-setup.sh" failonerror="true"
|
|
|
|
>
|
|
|
|
<arg value="${build.target}"/>
|
|
|
|
</exec>
|
|
|
|
|
2014-04-19 04:25:40 +02:00
|
|
|
<exec dir="." executable="../scripts/ndksetup.sh" output="/dev/null"
|
2016-09-30 20:13:30 +02:00
|
|
|
failonerror="true" >
|
|
|
|
<arg value="--with-clang"/>
|
2014-04-17 06:06:41 +02:00
|
|
|
</exec>
|
|
|
|
|
|
|
|
<exec dir="." executable="../scripts/ndkbuild.sh" failonerror="true">
|
|
|
|
<arg value="BUILD_TARGET=${build.target}" />
|
|
|
|
<arg value="-j3"/>
|
|
|
|
<arg value="INITIAL_CLIENT_VERS=${INITIAL_CLIENT_VERS}" />
|
2015-07-30 04:48:56 +02:00
|
|
|
<arg value="VARIANT=${VARIANT_NAME}" />
|
2015-09-16 05:57:39 +02:00
|
|
|
<arg value="V=1" />
|
2014-04-17 06:06:41 +02:00
|
|
|
</exec>
|
|
|
|
|
|
|
|
<exec dir="." executable="../scripts/mkimages.sh"
|
|
|
|
failonerror="true" output="/dev/null"
|
|
|
|
/>
|
|
|
|
|
2015-03-27 15:46:50 +01:00
|
|
|
<exec dir="." executable="../scripts/copy-strings.py"
|
2016-06-30 15:54:36 +02:00
|
|
|
failonerror="true" output="/dev/null"
|
|
|
|
>
|
|
|
|
<arg value="-k"/>
|
|
|
|
<arg value="${SKIP_LANGS}"/>
|
|
|
|
</exec>
|
2015-03-27 15:46:50 +01:00
|
|
|
|
2014-04-17 06:06:41 +02:00
|
|
|
<exec dir="." executable="../scripts/mk_xml.py"
|
|
|
|
failonerror="true"
|
|
|
|
>
|
|
|
|
<arg value="-o"/>
|
|
|
|
<arg value="src/org/eehouse/android/${VARIANT_NAME}/loc/LocIDsData.java"/>
|
|
|
|
<arg value="-t"/>
|
|
|
|
<arg value="${build.target}"/>
|
|
|
|
<arg value="-v"/>
|
|
|
|
<arg value="${VARIANT_NAME}"/>
|
|
|
|
</exec>
|
|
|
|
|
2016-07-29 16:32:50 +02:00
|
|
|
<exec dir="." executable="../scripts/genvers.sh" output="/dev/null"
|
2014-04-19 04:25:40 +02:00
|
|
|
failonerror="true">
|
2016-01-04 04:53:16 +01:00
|
|
|
<arg value="--variant" />
|
|
|
|
<arg value="${VARIANT_NAME}" />
|
|
|
|
<arg value="--client-vers" />
|
2014-04-17 06:06:41 +02:00
|
|
|
<arg value="${INITIAL_CLIENT_VERS}" />
|
2016-01-04 04:27:33 +01:00
|
|
|
<arg value="--vers-outfile" />
|
|
|
|
<arg value="./assets/gitvers.txt" />
|
2014-04-17 06:06:41 +02:00
|
|
|
</exec>
|
|
|
|
</target>
|
|
|
|
|
|
|
|
<target name="my-copy-src">
|
|
|
|
<exec dir="." executable="../scripts/mkvariant.sh" failonerror="true"
|
|
|
|
output="/dev/null">
|
|
|
|
<arg value="--variant-name"/>
|
|
|
|
<arg value="${VARIANT_NAME}"/>
|
|
|
|
<arg value="--app-name"/>
|
|
|
|
<arg value="${APP_NAME}"/>
|
|
|
|
<arg value="--dest-dir"/>
|
|
|
|
<arg value="./res"/>
|
|
|
|
<arg value="--dest-dir"/>
|
|
|
|
<arg value="./src"/>
|
|
|
|
<arg value="--dest-dir"/>
|
|
|
|
<arg value="./jni"/>
|
|
|
|
<arg value="--dest-dir"/>
|
|
|
|
<arg value="./assets"/>
|
|
|
|
<arg value="--dest-dir"/>
|
|
|
|
<arg value="./libs"/>
|
|
|
|
<arg value="--dest-dir"/>
|
|
|
|
<arg value="./img_src"/>
|
2015-07-25 17:21:44 +02:00
|
|
|
<arg value="--dest-dir"/>
|
|
|
|
<arg value="./res_src"/>
|
2014-04-17 06:06:41 +02:00
|
|
|
</exec>
|
|
|
|
</target>
|
|
|
|
|
2016-07-18 22:25:55 +02:00
|
|
|
<!-- For some reason project.properties is suddenly getting
|
|
|
|
removed by clean and not regenerated. So make sure it's
|
|
|
|
there. -->
|
|
|
|
<target name="my-check-props">
|
|
|
|
<exec executable="../scripts/setup_local_props.sh" />
|
|
|
|
</target>
|
|
|
|
|
2014-04-22 04:46:27 +02:00
|
|
|
<target name="my-pre-compile">
|
2014-05-06 16:47:29 +02:00
|
|
|
<copy file="./gen/org/eehouse/android/${VARIANT_NAME}/R.java" todir="archive"/>
|
|
|
|
|
|
|
|
<exec dir="." executable="../scripts/fake_locales.py" failonerror="true">
|
|
|
|
<arg value="-l" />
|
|
|
|
<arg value="ba_CK" />
|
|
|
|
<arg value="-o" />
|
|
|
|
<arg value="res_src/values-ba_CK/strings.xml" />
|
|
|
|
</exec>
|
|
|
|
<exec dir="." executable="../scripts/fake_locales.py" failonerror="true">
|
|
|
|
<arg value="-l" />
|
|
|
|
<arg value="ca_PS" />
|
|
|
|
<arg value="-o" />
|
|
|
|
<arg value="res_src/values-ca_PS/strings.xml" />
|
|
|
|
</exec>
|
2014-04-22 04:46:27 +02:00
|
|
|
</target>
|
|
|
|
|
2015-07-26 05:54:07 +02:00
|
|
|
<target name="-post-build" >
|
|
|
|
<if condition="${build.is.packaging.debug}">
|
|
|
|
<then>
|
|
|
|
<exec executable="git" outputproperty="git-rev" >
|
|
|
|
<arg value="describe" />
|
|
|
|
</exec>
|
|
|
|
<copy file="bin/XWords4-debug.apk" tofile="XWords4-debug-${git-rev}.apk"/>
|
2015-07-27 16:26:32 +02:00
|
|
|
<echo>Created XWords4-debug-${git-rev}.apk</echo>
|
2015-07-26 05:54:07 +02:00
|
|
|
</then>
|
|
|
|
</if>
|
|
|
|
</target>
|
|
|
|
|
2014-04-17 06:06:41 +02:00
|
|
|
</project>
|