toward being able to do release builds of CrossDbg

This commit is contained in:
Eric House 2016-06-09 21:30:04 -07:00
parent 777b1a7aab
commit 03efa3a7e6
4 changed files with 16 additions and 7 deletions

View file

@ -54,7 +54,7 @@
<application android:icon="@drawable/icon48x48"
android:label="@string/app_name"
android:name=".XWApp"
android:debuggable="true"
android:debuggable="false"
>
<activity android:name="Main"

View file

@ -52,8 +52,8 @@
/>
<!-- extension targets. Uncomment the ones where you want to do custom work
in between standard targets -->
<!-- extension targets. Uncomment the ones where you want to do custom work
in between standard targets -->
<property name="INITIAL_CLIENT_VERS" value="8"/>
<property name="VARIANT_NAME" value="xw4dbg"/>
@ -66,7 +66,7 @@
<target name="-pre-build" depends="my-copy-src">
<antcall target="my-pre-build">
<param name="VARIANT_NAME" value="${VARIANT_NAME}"/>
<param name="APP_NAME" value="cWords-DBG"/>
<param name="APP_NAME" value="${APP_NAME}"/>
</antcall>
</target>

View file

@ -63,12 +63,17 @@
<antcall target="my-pre-clean" />
</target>
<target name="-pre-build">
<antcall target="my-pre-build" />
<target name="-pre-build" depends="my-copy-src">
<antcall target="my-pre-build">
<param name="VARIANT_NAME" value="${VARIANT_NAME}"/>
<param name="APP_NAME" value="${APP_NAME}"/>
</antcall>
</target>
<target name="-pre-compile">
<antcall target="my-pre-compile" />
<antcall target="my-pre-compile">
<param name="VARIANT_NAME" value="${VARIANT_NAME}"/>
</antcall>
</target>
<!--

View file

@ -23,6 +23,10 @@ do_build() {
cd $WD
}
if [ -f ./AndroidManifest.xml ]; then # we're in the right directory
VARIANT=$(basename $(pwd))
fi
while [ "$#" -gt 0 ]; do
case $1 in
--tag)