xwords/xwords4/android/scripts/common_targets.xml
Eric House 7e7305c1be I want to be able to switch dev machines without having to uninstall
the latest debug build from my phones, and that requires using the
same debug.keystore everywhere. So check one in, and add a script that
symlinks to it from the machine's global location if necessary.
2015-03-03 21:19:07 -08:00

106 lines
3.7 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<project name="XWords4">
<target name="my-pre-clean">
<exec dir="." executable="../scripts/rm-non-git.sh" output="/dev/null"
failonerror="true" >
<arg value="--except" />
<arg value="./local.properties" />
</exec>
<exec dir="." executable="../scripts/ndksetup.sh" output="/dev/null"
failonerror="true" >
<arg value="${build.target}"/>
</exec>
</target>
<target name="my-pre-build">
<exec dir="." executable="../scripts/key-setup.sh"
failonerror="true"
/>
<exec dir="." executable="../scripts/ndksetup.sh" output="/dev/null"
failonerror="true">
<arg value="${build.target}"/>
</exec>
<property name="CHAT_ENABLED" value="true" />
<property name="THUMBNAIL_ENABLED" value="true" />
<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}" />
<arg value="CHAT_ENABLED=${CHAT_ENABLED}" />
<arg value="THUMBNAIL_ENABLED=${THUMBNAIL_ENABLED}" />
</exec>
<exec dir="." executable="../scripts/mkimages.sh"
failonerror="true" output="/dev/null"
/>
<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>
<exec dir="." executable="../scripts/gen_gcmid.sh"
output="src/org/eehouse/android/${VARIANT_NAME}/GCMConsts.java"
logError="true" failonerror="true"
>
<arg value="${VARIANT_NAME}"/>
</exec>
<exec dir="." executable="../scripts/genvers.sh" output="/dev/null"
failonerror="true">
<arg value="${VARIANT_NAME}"/>
<arg value="${INITIAL_CLIENT_VERS}" />
<arg value="${CHAT_ENABLED}" />
<arg value="${THUMBNAIL_ENABLED}" />
</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"/>
</exec>
</target>
<target name="my-pre-compile">
<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>
</target>
</project>