http://stackoverflow.com/questions/12372500/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
|
|||||||||||||
add a comment
|
|
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. |
|||||||||||||||||||||
show 1 more comment
|