Link Search Menu Expand Document

Building component

Table of contents


Prerequisites

  • Windows 7 or later.
  • Visual Studio 2019.
  • Git client (e.g. https://desktop.github.com/). Must be present in %PATH%.
  • Git LFS extension (https://github.com/git-lfs/git-lfs/releases/latest). Execute git lfs install after installation.
  • Python 3.+ (https://www.python.org/downloads/windows/). Must be present in %PATH%.
  • 7-Zip (https://www.7-zip.org/download.html). Must be present in %PATH%.

Building foo_spider_monkey_panel.dll

  1. Download this repository.
  2. Change current directory to foo_spider_monkey_panel/scripts.
  3. Prepare submodules:
    • If you want to use pre-built SpiderMonkey, execute py setup.py: this script will download and initialize all submodules and will also apply compatibility patches.
    • Otherwise, you can build and use your own Mozilla SpiderMonkey engine binaries (ESR68):
      Instructions
      1. Build SpiderMonkey.
      2. Put SpiderMonkey engine binaries and headers in foo_spider_monkey_panel/mozjs folder using the following pattern:

        Configuration = Release or Debug
        mozjs / %Configuration% / bin / *.dll | *.pdb
        mozjs / %Configuration% / lib / *.lib
        mozjs / %Configuration% / include / *.h</blockquote>

      3. Execute py setup.py --skip_mozjs.
  4. Main solution can be found at foo_spider_monkey_panel/workspaces/foo_spider_monkey_panel.sln.
  5. Output artifacts will be placed in foo_spider_monkey_panel/_result/%Configuration%/bin/.

Creating .fb2k-component package

  1. Change current directory to foo_spider_monkey_panel/scripts.
  2. Execute py pack_component.py: this script will pack all the required files to _result/%Configuration%/foo_spider_monkey_panel.fb2k-component.
    • py pack_component.py --debug will create the package from debug binaries.

Table of contents


Copyright © 2018-2020 Yuri Shutenko.
Distributed by an MIT license.