Updated Makefile + ant to sign release apk
This commit is contained in:
parent
ee2677365d
commit
a5e0255ebf
2 changed files with 11 additions and 3 deletions
12
Makefile
12
Makefile
|
@ -3,6 +3,8 @@ SDK_PATH=$(shell dirname `which android`)
|
|||
NUMCPUS=$(shell grep -c '^processor' /proc/cpuinfo)
|
||||
TOPDIR=$(shell pwd)
|
||||
PATCH_FFMPEG=$(shell cd submodules/externals/ffmpeg && git status | grep neon)
|
||||
KEYSTORE=bc-android.keystore
|
||||
KEYALIAS=nw8000
|
||||
|
||||
all: prepare-sources generate-libs generate-apk install-apk run-linphone
|
||||
|
||||
|
@ -46,17 +48,23 @@ prepare-mediastreamer2:
|
|||
prepare-sources: prepare-ffmpeg prepare-ilbc prepare-vpx prepare-silk prepare-srtp prepare-mediastreamer2
|
||||
|
||||
generate-libs:
|
||||
$(NDK_PATH)/ndk-build -j$(NUMCPUS)
|
||||
$(NDK_PATH)/ndk-build BUILD_SILK=1 -j$(NUMCPUS)
|
||||
rm $(TOPDIR)/libs/armeabi/liblinphone.so
|
||||
|
||||
update-project:
|
||||
$(SDK_PATH)/android update project --path .
|
||||
echo "key.store=$(KEYSTORE)" > ant.properties
|
||||
echo "key.alias=$(KEYALIAS)" >> ant.properties
|
||||
|
||||
generate-apk:
|
||||
ant clean debug
|
||||
ant debug
|
||||
|
||||
install-apk: generate-apk
|
||||
ant installd
|
||||
|
||||
release: update-project
|
||||
ant release
|
||||
|
||||
run-linphone:
|
||||
ant run
|
||||
|
||||
|
|
|
@ -1066,7 +1066,7 @@
|
|||
only if release-sign is true (set in -release-check,
|
||||
called by -release-no-sign)-->
|
||||
<target name="release"
|
||||
depends="-set-release-mode, -release-obfuscation-check, -package, -release-prompt-for-password, -release-nosign"
|
||||
depends="clean, init, -set-release-mode, -release-obfuscation-check, -package, -release-prompt-for-password, -release-nosign"
|
||||
if="has.keystore"
|
||||
description="Builds the application. The generated apk file must be signed before
|
||||
it is published.">
|
||||
|
|
Loading…
Reference in a new issue