PageRenderTime 23ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

/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
  1. TOP = ../..
  2. SWIG = $(TOP)/../preinst-swig
  3. TARGET = example
  4. INTERFACE = example.i
  5. PACKAGEDIR = src/org/swig
  6. PACKAGENAME= org.swig.simple
  7. SWIGOPT = -package $(PACKAGENAME) -outdir $(PACKAGEDIR)/simple
  8. PROJECTNAME= SwigSimple
  9. TARGETID = 1
  10. all:: android
  11. android::
  12. android update project --target $(TARGETID) --name $(PROJECTNAME) --path .
  13. $(SWIG) -java $(SWIGOPT) -o jni/$(TARGET)_wrap.c jni/$(INTERFACE)
  14. ndk-build
  15. ant debug
  16. install::
  17. -adb uninstall $(PACKAGENAME)
  18. adb install bin/$(PROJECTNAME)-debug.apk
  19. clean::
  20. ant clean
  21. rm -f jni/$(TARGET)_wrap.c
  22. rm -f `find $(PACKAGEDIR) -name \*.java | grep -v $(PROJECTNAME).java`
  23. check: all