Tidy up android example makefiles and fix clean target
This commit is contained in:
parent
6a48eb5e47
commit
19975300c7
3 changed files with 13 additions and 25 deletions
|
|
@ -9,22 +9,18 @@ PROJECTNAME= SwigClass
|
|||
TARGETID = 1
|
||||
#INSTALLOPTIONS = -s # To install on SD Card
|
||||
|
||||
all:: android
|
||||
|
||||
android::
|
||||
check:
|
||||
android update project --target $(TARGETID) --name $(PROJECTNAME) --path .
|
||||
$(SWIG) -c++ -java $(SWIGOPT) -o jni/$(TARGET)_wrap.cpp jni/$(INTERFACE)
|
||||
ndk-build
|
||||
ant debug
|
||||
|
||||
install::
|
||||
install:
|
||||
-adb uninstall $(PACKAGENAME)
|
||||
adb install $(INSTALLOPTIONS) bin/$(PROJECTNAME)-debug.apk
|
||||
|
||||
clean::
|
||||
clean:
|
||||
ant clean
|
||||
rm -f jni/$(TARGET)_wrap.cpp
|
||||
rm -f `find $(PACKAGEDIR) -name \*.java | grep -v $(PROJECTNAME).java`
|
||||
|
||||
|
||||
check: all
|
||||
rm -rf obj
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue