Hi pedestrians,
Developing external extensions for Crosswalk just became easier. I'm
introducing the pycrosswalk, a loader for your extensions written in python.
[email protected]:tmpsantos/pycrosswalk.git
The loader is quite functional already: it supports sync and async
messages, which is enough for most of the extensions.
Give it a try:
- Clone and build the project. The only dependency is libpython3-dev.
- Make sure you have the "xwalk" binary in your path.
- Use the "run.sh" script to launch the example:
$ PYXWALK_PATH=$PWD/example ./run.sh $PWD/example/example.html
The example depends on python3-gi for the GLib bindings.
The environment variable PYXWALK_PATH defines the path to the directory
containing your python extension and it will use extension.py as entry
point.
If you are curious about how a python extension looks like:
https://github.com/tmpsantos/pycrosswalk/blob/master/example/extension.py
Enjoy!
_______________________________________________
Crosswalk-dev mailing list
[email protected]
https://lists.crosswalk-project.org/mailman/listinfo/crosswalk-dev