Updated ant + makefile to run linphone on the device automatically

This commit is contained in:
Sylvain Berfini 2012-05-24 12:09:20 +02:00
parent c0f8ed8bba
commit 321f31f1e6
2 changed files with 16 additions and 1 deletions

View file

@ -4,7 +4,7 @@ NUMCPUS=$(shell grep -c '^processor' /proc/cpuinfo)
TOPDIR=$(shell pwd)
PATCH_FFMPEG=$(shell cd submodules/externals/ffmpeg && git status | grep neon)
all: prepare-sources generate-libs generate-apk install-apk
all: prepare-sources generate-libs generate-apk install-apk run-linphone
prepare-ffmpeg:
ifeq ($(PATCH_FFMPEG),)
@ -57,6 +57,9 @@ generate-apk:
install-apk: generate-apk
ant installd
run-linphone:
ant run
clean:
$(NDK_PATH)/ndk-build clean
ant clean

View file

@ -1049,6 +1049,18 @@
</else>
</if>
</target>
<target name="run">
<exec executable="adb">
<arg value="shell"/>
<arg value="am"/>
<arg value="start"/>
<arg value="-a"/>
<arg value="android.intent.action.MAIN"/>
<arg value="-n"/>
<arg value="${linphone.package.name}/.LinphoneLauncherActivity"/>
</exec>
</target>
<!-- This runs -package-release and -release-nosign first and then runs
only if release-sign is true (set in -release-check,