# HG changeset patch # User John Tsiombikas # Date 1430696795 -10800 # Node ID b557812c45dbd1cc886646e1743f6cd7eaf22550 # Parent 345db647383a75deeef8753f1b0519a0d991a90e generating the android (ant) project stuff from the makefile diff -r 345db647383a -r b557812c45db android/AndroidManifest.xml --- a/android/AndroidManifest.xml Sun May 03 02:23:54 2015 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - diff -r 345db647383a -r b557812c45db android/Makefile --- a/android/Makefile Sun May 03 02:23:54 2015 +0300 +++ b/android/Makefile Mon May 04 02:46:35 2015 +0300 @@ -50,9 +50,13 @@ @mkdir -p libs/armeabi $(CC) -o $@ -shared $(obj) $(LDFLAGS) +ant_files = *.xml *.properties proguard-project.txt +ant_dirs = bin libs res + .PHONY: clean clean: - rm -f $(obj) $(lib) $(apk-release) $(apk-debug) + rm -f $(obj) $(lib) $(apk-release) $(apk-debug) $(ant_files) + rm -rf $(ant_dirs) .PHONY: install install: install-debug @@ -77,6 +81,10 @@ stop: adb shell am force-stop $(pkg) +AndroidManifest.xml: + android create project -p . -t $(android_platform) -k $(pkg) -a NativeActivity -n $(name) + cat manifest.xml.in | sed 's/$$APPNAME/$(name)/g' | sed 's/$$APPTITLE/$(title)/g' >$@ + .PHONY: update-project update-project: build.xml - android update project --path . --target $(android_platform) + android update project -p . -t $(android_platform) diff -r 345db647383a -r b557812c45db android/build.xml --- a/android/build.xml Sun May 03 02:23:54 2015 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,92 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff -r 345db647383a -r b557812c45db android/manifest.xml.in --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/android/manifest.xml.in Mon May 04 02:46:35 2015 +0300 @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + diff -r 345db647383a -r b557812c45db proj.mk --- a/proj.mk Sun May 03 02:23:54 2015 +0300 +++ b/proj.mk Mon May 04 02:46:35 2015 +0300 @@ -2,6 +2,7 @@ src = $(wildcard $(root)/src/*.c) bin = labyrinth +title = Labyrinth incpaths = -I$(root)/src libpaths =