andreasgal / B2G

Boot to Gecko aims to create a complete, standalone operating system for the open web.
https://wiki.mozilla.org/B2G
908 stars 158 forks source link

Remove JNI code #129

Open joneschrisg opened 12 years ago

joneschrisg commented 12 years ago

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.

ThinkerYzu commented 12 years ago

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

ThinkerYzu commented 12 years ago

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

ThinkerYzu commented 12 years ago

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