WIP: Add duktape as javascript engine.
I don't know if there is a chance to use duktape as the js backend for polkit.
I saw this email on the mailing list.
But some things have changed now:
- Duktape can be found in popular distributions.
- Fedora: 2.2.0
- Archlinux: 2.3.0
- Debian / Ubuntu: 2.3.0
https://pkgs.org/download/duktape
- This PR provides a new option
--with-duktape
to enable build with duktape. If you don't add this option, it will still compile with mozjs as before. - Now it uses the system's duktape dynamic library.
- This PR migrates the code to duktape-2.0.0+, and when duktape is updated, it will automatically get a new implementation.
Edited by Wu Xiaotian