-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.txt
56 lines (43 loc) · 2.07 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Important notice:
-----------------
This version of SpiderMonkey comes from
https://ftp.mozilla.org/pub/mozilla.org/js/mozjs-24.2.0.tar.bz2
The game must be compiled with precisely this version since SpiderMonkey
does not guarantee API stability and may have behavioural changes that
cause subtle bugs or network out-of-sync errors.
A standard system-provided version of the library may only be used if it's
exactly the same version or if it's another minor release that does not
change the behaviour of the scripts executed by SpiderMonkey.
Building on Linux:
------------------
To build SpiderMonkey for use in 0 A.D. on Linux, you need libnspr4-dev, which
should be installed from the distribution's package management system.
As an alternative you can build nspr yourself, but we don't provide a guide for
that here. When you have nspr, just run build.sh.
NSPR ist available here:
https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/
Building on Mac OS X:
---------------------
Use the build-osx-libs.sh script in libraries/osx.
Building on Windows:
--------------------
We provide precompiled binaries for Windows.
If you still need to build on Windows, here's a short guide.
Setting up the build environment:
1. Get https://developer.mozilla.org/en/Windows_Build_Prerequisites#MozillaBuild
2. I had to adjust some paths to the correct SDK folders in start-msvc10.bat.
That depends a lot on your setup and the version of mozilla build, so you have
to figure out yourself how to get it working.
Building NSPR:
1. Get nspr. We are using nspr-4.10.3 which is the newest version at the moment.
Newer versions should probably work too.
Download link: https://ftp.mozilla.org/pub/mozilla.org/nspr/releases/
2. Run mozillabuild (start-msvc10.bat) as administrator
3. Extract nspr to libraries/source/spidermonkey
tar -xzvf nspr-4.10.3.tar.gz
cd nspr-4.10.3
cd nspr
4. Build nspr by calling make
Building SpiderMonkey:
1. Adjust the absolute paths to nspr in the build.sh file to match your environment.
2. Run mozillabuild (start-msvc10.bat) as administrator and run ./build.sh.