diff options
Diffstat (limited to 'Examples/android/simple/Makefile')
-rw-r--r-- | Examples/android/simple/Makefile | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Examples/android/simple/Makefile b/Examples/android/simple/Makefile new file mode 100644 index 000000000..1e95de6e3 --- /dev/null +++ b/Examples/android/simple/Makefile @@ -0,0 +1,29 @@ +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 |