Reputation: 15375
My NPAPI plugin needs root privileges to run. I'm wondering if there is any portable way to do it with firebreath.
If not, I took a look at how Firesheep does it, but it requires a binary file and a launcher (which is the plugin). How to tell cmake
to build the binary and the plugin separately ?
Upvotes: 0
Views: 274
Reputation: 14324
You would need to launch another process and have that do the work; as a plugin you don't own your own process, and you can't change the rights that a process runs with anyway, you have to relaunch it.
There is no "portable" way to do this; you'll have to write platform specific code for each platform. You can add another cmake project just by creating a new directory with a CMakeLists.txt file, etc, and using add_directory to include it. There are plenty of tutorials available for doing this, and of course the CMake Documentation is helpful.
When you add a new project with cmake it'll just show up as an additional project alongside the others that FireBreath already has, so it can be built together with the rest of what you're doing.
Upvotes: 1