PageRenderTime 11ms CodeModel.GetById 8ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/android/simple/Makefile

#
Makefile | 29 lines | 23 code | 6 blank | 0 comment | 0 complexity | 114d45bd6fb44feb23039076f05c9f52 MD5 | raw file
 1TOP        = ../..
 2SWIG       = $(TOP)/../preinst-swig
 3TARGET     = example
 4INTERFACE  = example.i
 5PACKAGEDIR = src/org/swig
 6PACKAGENAME= org.swig.simple
 7SWIGOPT    = -package $(PACKAGENAME) -outdir $(PACKAGEDIR)/simple
 8PROJECTNAME= SwigSimple
 9TARGETID  = 1
10
11all::	android
12
13android::
14	android update project --target $(TARGETID) --name $(PROJECTNAME) --path .
15	$(SWIG) -java $(SWIGOPT) -o jni/$(TARGET)_wrap.c jni/$(INTERFACE)
16	ndk-build
17	ant debug
18
19install::
20	-adb uninstall $(PACKAGENAME)
21	adb install bin/$(PROJECTNAME)-debug.apk
22
23clean::
24	ant clean
25	rm -f jni/$(TARGET)_wrap.c
26	rm -f `find $(PACKAGEDIR) -name \*.java | grep -v $(PROJECTNAME).java`
27	
28
29check: all