PPAPI plugins - how to build example plugins?

673 views
Skip to first unread message

sarath

unread,
Aug 21, 2017, 8:48:00 AM8/21/17
to Chromium-dev
Hi,

I am trying to build ppapi plugin examples for Linux chromium, like below, but fails with  "ninja: error: unknown target 'ppapi_example_paint_manager'. "
$ninja -C out/Default ppapi_example_paint_manager

What is the right way to build these example plugins and run in Linux chromium?

I see how to run a plugin in https://www.chromium.org/developers/design-documents/pepper-plugin-implementation
chrome --register-pepper-plugins="/local/src/out/Debug/lib/libppapi_example_paint_manager.so;application/x-ppapi-example-2d" file:///local/src/ppapi/examples/2d/2d.html

Does it work? any updated instructions?

Thank you
Sarath

Lei Zhang

unread,
Aug 21, 2017, 12:56:23 PM8/21/17
to s.sin...@gmail.com, Chromium-dev
The target name is paint_manager. I have no idea if the instruction
for running it works or not.

Please be aware that PPAPI is going to go away eventually.
https://crbug.com/702990
> --
> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev
> ---
> You received this message because you are subscribed to the Google Groups
> "Chromium-dev" group.
> To view this discussion on the web visit
> https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/61881bbe-5b0c-49e2-894b-7b19469bdebb%40chromium.org.

sarath

unread,
Aug 22, 2017, 5:15:37 AM8/22/17
to Chromium-dev, s.sin...@gmail.com
Yes, target names work with out prefix 'ppapi_example'. Running the plugin also works with: chrome --register-pepper-plugins="/local/src/out/Debug/lib/libppapi_example_paint_manager.so;application/x-ppapi-example-2d" file:///local/src/ppapi/examples/2d/2d.html

I was trying to build & run plugins on Android. First able to build Android chromium with flag "enable_plugins=true" and some hacking without enabling 'enable_extensions=true'. But, it seems impossible to build plugins without having enable_extensions flag.
Is there any ways to use plugins on Android?

I see about PPAPI support removal and servicification of PDF (https://crbug.com/702993) for eg. What would be the effect on Android chrome after pdf servicification? Would it be possible to open the pdf file on a new tab by using the service, just like in desktop chrome?

Thanks a lot.
Sarath

Lei Zhang

unread,
Aug 22, 2017, 3:15:31 PM8/22/17
to Sarath Singapati, Chromium-dev
Plugins have never been supported on Android. As such, PDF servicification has no effect on Android.

Reply all
Reply to author
Forward
0 new messages