/trunk/Examples/android/simple/Makefile
Makefile | 29 lines | 23 code | 6 blank | 0 comment | 0 complexity | 114d45bd6fb44feb23039076f05c9f52 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
- TOP = ../..
- SWIG = $(TOP)/../preinst-swig
- TARGET = example
- INTERFACE = example.i
- PACKAGEDIR = src/org/swig
- PACKAGENAME= org.swig.simple
- SWIGOPT = -package $(PACKAGENAME) -outdir $(PACKAGEDIR)/simple
- PROJECTNAME= SwigSimple
- TARGETID = 1
- all:: android
- android::
- android update project --target $(TARGETID) --name $(PROJECTNAME) --path .
- $(SWIG) -java $(SWIGOPT) -o jni/$(TARGET)_wrap.c jni/$(INTERFACE)
- ndk-build
- ant debug
- install::
- -adb uninstall $(PACKAGENAME)
- adb install bin/$(PROJECTNAME)-debug.apk
- clean::
- ant clean
- rm -f jni/$(TARGET)_wrap.c
- rm -f `find $(PACKAGEDIR) -name \*.java | grep -v $(PROJECTNAME).java`
-
- check: all