How to create a browser plug-in package in OS X

I created an NPAPI browser plugin for Firefox on Linux. I installed the plugin by copying the shared library into my user profile plugin directory. I can create a shared library on OS X, but I am not familiar with how to create a plugin package that can use Firefox / Chrome / Safari. How to create a plugin that will work with browsers on OS X?

+3
source share
2 answers

You can also look at FireBreath, which will take care of the abstraction of building the plugin on linux vs windows vs mac for you. http://firebreath.googlecode.com

, ; , dylib , , , - xcode.

FireBreath Application Bundle xcode cmake ( cmake), python script, . Reftype "compiled.mach-o.executable", reftype - wrapper.cfbundle.

, : http://code.google.com/p/firebreath/source/browse/cmake/patch_xcode.py

32- - ( npapi, Mac OS X) - Mach-O i386. ~/Library/Internet Plugins/.plugin/Contents/MacOS

,

+3

Apple; WebKit NPAPI. Mozilla. .

+3

Source: https://habr.com/ru/post/1752164/


All Articles