comparison Makefile @ 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
comparison
equal deleted inserted replaced
169:823fa39c55c5 170:f0f41cd3604b
2 #tc55 is "Internal Storage" 2 #tc55 is "Internal Storage"
3 3
4 style=release 4 style=release
5 dest=/run/user/1000/gvfs/mtp*/*torage/Download 5 dest=/run/user/1000/gvfs/mtp*/*torage/Download
6 apk='bin/510Connectbot-$(style).apk' 6 apk='bin/510Connectbot-$(style).apk'
7 ifeq ($(style),release)
8 debuggable=true
9 else
10 debuggable=false
11 endif
12
7 13
8 all: 14 all:
9 hg pull; hg update 15 hg pull; hg update
10 make builder 16 make builder
11 17
12 builder: 18 builder:
13 sed -i -e 's/android:debuggable=".*"/android:debuggable="$(style)"/g' AndroidManifest.xml 19 sed -i -e 's/android:debuggable=".*"/android:debuggable="$(debuggable)"/g' AndroidManifest.xml
14 rm -rf gen bin 20 rm -rf gen bin
15 ndk-build clean; V=1 ndk-build 21 ndk-build clean; V=1 ndk-build
16 android update project -p . -t android-16 22 android update project -p . -t android-16
17 ant $(style) 23 ant $(style)
18 24