Mercurial > 510ConnectbotMonitor
diff Makefile @ 15:357bbbbcf201
set debuggable flag depending on build style
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Sun, 29 Jun 2014 12:43:35 -0700 |
parents | f769411a72ce |
children | 807f7e4eaebe |
line wrap: on
line diff
--- a/Makefile Tue Jun 24 08:06:00 2014 -0700 +++ b/Makefile Sun Jun 29 12:43:35 2014 -0700 @@ -4,12 +4,18 @@ style=release dest=/run/user/1000/gvfs/mtp*/*torage/Download apk='bin/510ConnectbotMonitor-$(style).apk' +ifeq ($(style),release) + debuggable=false +else + debuggable=true +endif all: hg pull; hg update make builder builder: + sed -i -e 's/android:debuggable=".*"/android:debuggable="$(debuggable)"/g' AndroidManifest.xml rm -rf gen bin android update project -p . -t android-16 ant $(style)