istereo2

diff android/Makefile @ 24:9d53a4938ce8

port to android mostly complete, ads not done, and needs some polishing
author John Tsiombikas <nuclear@member.fsf.org>
date Sun, 04 Oct 2015 08:15:24 +0300
parents 7d795dade0bc
children a9f2d30f7e8e
line diff
     1.1 --- a/android/Makefile	Sat Oct 03 06:10:30 2015 +0300
     1.2 +++ b/android/Makefile	Sun Oct 04 08:15:24 2015 +0300
     1.3 @@ -12,6 +12,7 @@
     1.4  # ------------------------
     1.5  
     1.6  src += $(wildcard $(root)/src/android/*.c)
     1.7 +jsrc = $(wildcard $(root)/src/android/*.java)
     1.8  
     1.9  obj = $(src:.c=.o) $(ccsrc:.cc=.o)
    1.10  lib = libs/armeabi/lib$(name).so
    1.11 @@ -19,7 +20,7 @@
    1.12  apk-debug = bin/$(name)-debug.apk
    1.13  
    1.14  pkg = $(pkgprefix).$(name)
    1.15 -act = android.app.NativeActivity
    1.16 +act = $(pkg).MainActivity
    1.17  
    1.18  CC = arm-linux-androideabi-gcc
    1.19  CXX = arm-linux-androideabi-g++
    1.20 @@ -95,7 +96,7 @@
    1.21  AndroidManifest.xml: manifest.xml.in
    1.22  	android create project -p . -t $(android_platform) -k $(pkg) -a NativeActivity -n $(name)
    1.23  	cat manifest.xml.in | sed 's/$$APPNAME/$(name)/g' | sed 's/$$APPTITLE/$(title)/g' >$@
    1.24 -#	cd src && rm -f *.java && ln -s ../../src/android/*.java .
    1.25 +	cd src && rm -f *.java && ln -s ../../src/android/*.java .
    1.26  
    1.27  .PHONY: update-project
    1.28  update-project: build.xml