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
- Download this repository.
- Change current directory to
foo_spider_monkey_panel/scripts
. - 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
- Build SpiderMonkey.
- 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> - Execute
py setup.py --skip_mozjs
.
- Build SpiderMonkey.
- If you want to use pre-built SpiderMonkey, execute
- Main solution can be found at
foo_spider_monkey_panel/workspaces/foo_spider_monkey_panel.sln
. - Output artifacts will be placed in
foo_spider_monkey_panel/_result/%Configuration%/bin/
.
Creating .fb2k-component package
- Change current directory to
foo_spider_monkey_panel/scripts
. - 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.