run Python script in Android.mk on Android building system Friday, September 23, 2011

Insert the bellowing line into Android.mk

$(shell python $(LOCAL_PATH)/scripts/myprepare.py)

When running mm command or other command to build your apk, the script myprepare.py will be invoked.

You can copy some files or do any thing python can do. But notice: don't add any print function in your python script.

0 comments: