labyrinth

diff android/Makefile @ 7:b557812c45db

generating the android (ant) project stuff from the makefile
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 04 May 2015 02:46:35 +0300
parents 345db647383a
children d3f1f74067b0
line diff
     1.1 --- a/android/Makefile	Sun May 03 02:23:54 2015 +0300
     1.2 +++ b/android/Makefile	Mon May 04 02:46:35 2015 +0300
     1.3 @@ -50,9 +50,13 @@
     1.4  	@mkdir -p libs/armeabi
     1.5  	$(CC) -o $@ -shared $(obj) $(LDFLAGS)
     1.6  
     1.7 +ant_files = *.xml *.properties proguard-project.txt
     1.8 +ant_dirs = bin libs res
     1.9 +
    1.10  .PHONY: clean
    1.11  clean:
    1.12 -	rm -f $(obj) $(lib) $(apk-release) $(apk-debug)
    1.13 +	rm -f $(obj) $(lib) $(apk-release) $(apk-debug) $(ant_files)
    1.14 +	rm -rf $(ant_dirs)
    1.15  
    1.16  .PHONY: install
    1.17  install: install-debug
    1.18 @@ -77,6 +81,10 @@
    1.19  stop:
    1.20  	adb shell am force-stop $(pkg)
    1.21  
    1.22 +AndroidManifest.xml:
    1.23 +	android create project -p . -t $(android_platform) -k $(pkg) -a NativeActivity -n $(name)
    1.24 +	cat manifest.xml.in | sed 's/$$APPNAME/$(name)/g' | sed 's/$$APPTITLE/$(title)/g' >$@
    1.25 +
    1.26  .PHONY: update-project
    1.27  update-project: build.xml
    1.28 -	android update project --path . --target $(android_platform)
    1.29 +	android update project -p . -t $(android_platform)