diff options
author | William S Fulton <wsf@fultondesigns.co.uk> | 2011-12-10 14:54:31 +0000 |
---|---|---|
committer | William S Fulton <wsf@fultondesigns.co.uk> | 2011-12-10 14:54:31 +0000 |
commit | 6d40bb0db81b74024096e3eb241ef4f84bdb6c7e (patch) | |
tree | 83e385db5f8db6b2b05f70f2e5cd52be7c342fdd /Examples/android/simple/Makefile | |
parent | 084425335f0c637fa5d31fa880d193995effb324 (diff) | |
download | swig-6d40bb0db81b74024096e3eb241ef4f84bdb6c7e.tar.gz |
Add Android examples
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12866 626c5289-ae23-0410-ae9c-e8d60b6d4f22
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 |