Updated ant + makefile to run linphone on the device automatically
This commit is contained in:
parent
c0f8ed8bba
commit
321f31f1e6
2 changed files with 16 additions and 1 deletions
5
Makefile
5
Makefile
|
@ -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
|
||||
|
|
12
build.xml
12
build.xml
|
@ -1050,6 +1050,18 @@
|
|||
</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,
|
||||
called by -release-no-sign)-->
|
||||
|
|
Loading…
Reference in a new issue