B2G icon indicating copy to clipboard operation
B2G copied to clipboard

Remove JNI code

Open joneschrisg opened this issue 14 years ago • 3 comments

Step 3 in Operation Decaf.

In the code I've looked at, android has done a good job of separating Java/native-C++/JNI-bridge-C++. We can probably find a way to intelligently identify that C++ files are JNI and not build them.

joneschrisg avatar Jan 12 '12 06:01 joneschrisg

We can do it by scanning symbols of object files to find out JNI symbols.

ThinkerYzu avatar Jan 17 '12 14:01 ThinkerYzu

We can remove a JNI module from being built by add it to REMOVE_MODULES list defined by #142.

ThinkerYzu avatar Jan 21 '12 03:01 ThinkerYzu

I have written pieces of makefile code to analyze dependencies between modules and find out JNI modules. I think it can help us to narrow down the question.

https://github.com/ThinkerYzu/B2G/tree/remove-jni-modules

ThinkerYzu avatar Jan 21 '12 16:01 ThinkerYzu