Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent Android native project full rebuild after changing Android.mk?

I'm editing Android.mk of my project to fine-tune some compiler options. Every time the build process is started from scratch. I don't want to do a full rebuild after each and every change. Is there a way to do so?

like image 409
Sergey K. Avatar asked Sep 10 '12 12:09

Sergey K.


Video Answer


1 Answers

GNU make has the option -o (http://unixhelp.ed.ac.uk/CGI/man-cgi?make) to do not remake the file file even if it is older than its dependencies, and do not remake anything on account of changes in file. Essentially the file is treated as very old and its rules are ignored.

This code does the trick:

ndk-build -o jni/Android.mk
like image 129
Sergey K. Avatar answered Oct 01 '22 07:10

Sergey K.