xbmc/xbmc — pull request #901 by jimfcarroll (2012-04-25 14:50:36+00:00)
Title: Replace the entire scripting engine with one that's code-generated

This commit adds an alternate addon library where a codegenerator creates all of the CPython code that bridges a native implementation to Python. This is nowhere near ready but I wanted to get it in front of people.

What you need to do to try it out:

1) You need SWIG installed. Older versions should work fine.
2) You need a JRE that can be run from the make command.
3) configure with --enable-swigaddons

Upon a successful make there will be a directory created with a bunch of generated source code here:

```xbmc/interfaces/swig/generatedSWIGBindings```

Current limitations:

1. Callbacks are still under construction but the structure is there.
1. There is a problem with identifying the differences between Strings and Unicode return values in python. Currently there is a way to override the default on a return value by return value basis but I don't know how many places need it.
1. It only works on Linux for now.
1. So far it has very limited testing.

TODO:

1. work through many more issues
1. the other two build platforms. Windows will need quite a bit of thought. @wsoltys - let me know what you think.
1. Callbacks need more work.

As usual, feedback is appreciated.