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)
|
TOPDIR=$(shell pwd)
|
||||||
PATCH_FFMPEG=$(shell cd submodules/externals/ffmpeg && git status | grep neon)
|
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:
|
prepare-ffmpeg:
|
||||||
ifeq ($(PATCH_FFMPEG),)
|
ifeq ($(PATCH_FFMPEG),)
|
||||||
|
@ -57,6 +57,9 @@ generate-apk:
|
||||||
install-apk: generate-apk
|
install-apk: generate-apk
|
||||||
ant installd
|
ant installd
|
||||||
|
|
||||||
|
run-linphone:
|
||||||
|
ant run
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(NDK_PATH)/ndk-build clean
|
$(NDK_PATH)/ndk-build clean
|
||||||
ant clean
|
ant clean
|
||||||
|
|
12
build.xml
12
build.xml
|
@ -1049,6 +1049,18 @@
|
||||||
</else>
|
</else>
|
||||||
</if>
|
</if>
|
||||||
</target>
|
</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
|
<!-- This runs -package-release and -release-nosign first and then runs
|
||||||
only if release-sign is true (set in -release-check,
|
only if release-sign is true (set in -release-check,
|
||||||
|
|
Loading…
Reference in a new issue