Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added prep2013.cmd to lists after prep2012

Table of Contents
maxLevel3
outlinetrue

Building the FireBreath Plugin

See Also: FireBreath Tips: Working with Source Control

See Also: Prep Scripts

Requirements

...

To get a copy of the source, see the download page:.

32 bit vs 64 bit builds

The normal prep scripts (e.g. prep2010.cmd) build 32-bit plugins - There are also prep scripts, ending in x64, which build 64-bit plugins.
Windows doesn't support universal binaries and most windows browsers are 32 bit and can only load 32-bit plugins.
Unless you know that you specifically need to build a 64-bit plugin, use the normal scripts.
The normal (non-64-bit) scripts work fine on 64-bit Windows, as do the resulting 32-bit plugins.

Generate the example project files

To generate the example project files, there are two use these batch files that can be used:

  • prep2005.cmd examples - Generate example project files for Visual Studio 2005
  • prep2008.cmd examples - Generate example project files for Visual Studio 2008
  • prep2010.cmd examples - Generate example project files for Visual Studio 2010
  • prep2012.cmd examples - Generate example project files for Visual Studio 2012
  • prep2013.cmd examples - Generate example project files for Visual Studio 2013

The project files will all be generated into the buildex/ directory under the project root.

...

To generate the project files, there are two these batch files that can be used:

  • prep2005.cmd - Generate project files for Visual Studio 2005
  • prep2008.cmd - Generate project files for Visual Studio 2008
  • prep2010.cmd - Generate project files for Visual Studio 2010
  • prep2012.cmd - Generate project files for Visual Studio 2012
  • prep2013.cmd - Generate project files for Visual Studio 2013

The project files will all be generated into the build/ directory under the project root.

...

Register this DLL with regsvr32.exe:

Code Block

regsvr32 npPluginTemplate.dll

...

A few JS commands to try:

Code Block

plugin().echo("Please echo back")plugin().echo("Please
echo back")
"Please echo back"
Echoing: Please echo back
"Please echo baEchoing: Please echo bac
Code Block

plugin().asString(372)
"372"
Code Block

plugin().valid
true

Attaching a debugger

...