Mercurial > 510Connectbot
changeset 170:f0f41cd3604b
set debuggable flag depending on build style
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 24 Jun 2014 17:08:47 -0700 |
parents | 823fa39c55c5 |
children | 18aceeae6681 |
files | Makefile |
diffstat | 1 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Tue Jun 24 17:05:55 2014 -0700 +++ b/Makefile Tue Jun 24 17:08:47 2014 -0700 @@ -4,13 +4,19 @@ style=release dest=/run/user/1000/gvfs/mtp*/*torage/Download apk='bin/510Connectbot-$(style).apk' +ifeq ($(style),release) + debuggable=true +else + debuggable=false +endif + all: hg pull; hg update make builder builder: - sed -i -e 's/android:debuggable=".*"/android:debuggable="$(style)"/g' AndroidManifest.xml + sed -i -e 's/android:debuggable=".*"/android:debuggable="$(debuggable)"/g' AndroidManifest.xml rm -rf gen bin ndk-build clean; V=1 ndk-build android update project -p . -t android-16