How can I use Google Chrome's V8 JavaScript interpreter from Delphi?

后端 未结 6 2052
孤城傲影
孤城傲影 2020-12-23 22:26

I\'d like to embed the V8 JavaScript interpreter that ships with Google Chrome within my Delphi application. I\'m aware of the chromium embedded open-source project from Goo

6条回答
  •  孤独总比滥情好
    2020-12-23 23:28

    The most ideal solution would be to create a wrapper, preferably which consumes the original source unmodified, and compile that wrapper to an OBJ file (using C++) which then is linked into Delphi, where another "wrapper" exposes the engine via a more standard object pascal syntax. This approach would then allow for changes in the engine without the need for a complete conversion each time new functionality or additional performance is added. The only disadvantage of this approach is that there will be some performance lost while navigating the layers...but I would expect it to be minimal.

提交回复
热议问题