Git Product home page Git Product logo

spidermonkeybuilds's Introduction

x64 D2BS SpiderMonkey Builds

x64 builds of the very old SpiderMonkey version D2BS uses.

Repo Structure

There are 3 x64 builds in this repo, seperated into subdirectories:

  • Release: Use for your project's Release build
  • DebugOptimized: Use for project's Debug build
  • Debug: Slower than DebugOptimized so use it only if you run into debugging issues with DebugOptimized

Usage

  1. Choose from the Release, DebugOptimized, or Debug builds in this repo
  2. (Optional) Add or copy the include directory to to the include path, or you can rely on the header files already present in D2BS (they are the same versions as this repo's Debug and DebugOptimized builds)
  3. Add the mozjs.lib dynamic library
  4. Set the JS_USE_JSID_STRUCT_TYPES preprocessor macro for DebugOptimized or Debug builds to avoid linker errors
  5. LoadLibrary or otherwise load mozjs.dll into the process before using any SpiderMonkey features

FAQ

Q: Why are there only dynamic libraries and not static libraries?

A: To build this old version of SpiderMonkey, VS2012 had to be used. Therefore to use these static libraries, VS2012 must be used (or set as the platform toolset). It's unlikely anybody wants to develop on VS2012, so they are excluded from the repo.

Q: Why is there an include folder per build instead of one in common?

A: The files in each build's include folder are identical except for js-config.h, which sets JS_GC_ZEAL for DebugOptimized and Debug builds. Note that the SpiderMonkey headers included in D2BS are the debug headers, as its js-config.h sets JS_GC_ZEAL even in release mode.

Q: What is the exact version of SpiderMonkey in this repo?

A: It is the version D2BS uses. The Mercurial revision in mozilla-central is 61f7ebb9f3d903556516bd6cbe8b84ae14c0fa33. You can compare this version of jsapi.h in mozilla-central vs the version of jsapi.h in D2BS and see they are the same.

spidermonkeybuilds's People

Contributors

immopeen avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.