How to create a PPAPI plugin for Google Chrome in Windows?

这一生的挚爱 提交于 2019-11-30 00:51:50
DRayX

You will want to start here to download the and set up the SDK: https://developers.google.com/native-client/sdk/download

This page will take you through how to build and run the examples: https://developer.chrome.com/native-client/sdk/examples

This page goes over how to actually create your own plugin: https://developer.chrome.com/native-client/devguide/tutorial/tutorial-part1

And then you should read this entire section to code and structure your application: https://developer.chrome.com/native-client/devguide/coding/application-structure

If you need any third party libraries be sure to check here: https://chromium.googlesource.com/webports

Edit: Forgot to mention that you will want to use the same version of the pepper api as the version of chrome you're running (in this case pepper_30). Also, you have to use the NaCl toolchain (one of either glibc, newlib, or pnacl); you can't use the Visual C/C++ toolchains. I recommend trying pnacl now that it is available, as that is by far the most cross platform version, but if you run into trouble, you'll probably want to use the newlib toolchain as it has better support.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!