| 302 | |
| 303 | == SpiderMonkey == |
| 304 | * Setting up the build environment: |
| 305 | * Get the [https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Build_Instructions/Windows_Prerequisites#MozillaBuild Windows Prerequisites] |
| 306 | * Get [https://developer.mozilla.org/en-US/docs/Mozilla/Projects/NSPR NSPR] from [https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/ here]. We are using nspr-4.12 which was the newest version when SM45.0.2 was out. (Newer versions should probably work too) |
| 307 | * Run mozillabuild (start-shell-msvc2015.bat) as administrator |
| 308 | * Extract nspr to libraries/source/spidermonkey |
| 309 | {{{ |
| 310 | #!application/x-dos-batch |
| 311 | tar -xzvf nspr-4.12.tar.gz |
| 312 | cd nspr-4.12 |
| 313 | cd nspr |
| 314 | }}} |
| 315 | * Patch nspr with https://bugzilla.mozilla.org/show_bug.cgi?id=1238154#c7 |
| 316 | * Call configure. I've used this command: |
| 317 | {{{ |
| 318 | #!application/x-dos-batch |
| 319 | ./configure --disable-debug --enable-optimize --enable-win32-target=WIN95 |
| 320 | }}} |
| 321 | * Call make |
| 322 | * Building SpiderMonkey: |
| 323 | * Adjust the absolute paths to nspr in the build.sh file to match your environment. |
| 324 | * Run mozillabuild (start-shell-msvc2015.bat) as administrator and run ./build.sh. |
| 325 | |