How to run custom rule in Android.mk before compilation?
http://stackoverflow.com/questions/12372500/how-to-run-custom-rule-in-android-mk-before-compilation
How to run custom rule in Android.mk before compilation?
In Android NDK, I build JNI files generated automatically by SWIG. callmanager_wrap.cpp is part of a shared library:
But I would like to append/edit
Content I need to add is known in advance but callmanager_wrap.cpp is not. It is generated by SWIG. Ultimately, my custom rule will have to run following command to generate callmanager_wrap.cpp:
According to this post, it is not possible to add custom rules to
But
|
||||
I would suggest the following:
That's it. I probably owe you some explanations. So here we go:
Now make will delete the wrapper file after build, if it did not exist before the build. |
|||||||||||||||||||||
|
posted on 2016-11-15 13:44 Shawn X.Y. Bai 阅读(687) 评论(0) 编辑 收藏 举报
make clean
after agit rebase
. But that's a developer's problem. Isn't it possible to custom android makefiles to that extent? I won't hide that I am considering writing a top-script to do just that but I remain curious about this android limitation. – m-ric Sep 11 '12 at 20:40