Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5abeecb
commit cde3562
Showing
1 changed file
with
8 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,23 @@ | ||
This project is an effort to create a custom SpiderMonkey runtime that has libuv built-in. This will give it very node.js-like semantics, but using a different JavaScript engine. | ||
This project is an effort to create a custom SpiderMonkey runtime that has libuv | ||
built-in. This will give it very node.js-like semantics, but using a different | ||
JavaScript engine. | ||
|
||
Currently, the project is very alpha and exploratory. | ||
|
||
Come to #luvmonkey on freenode irc to discuss any questions. | ||
|
||
## Building | ||
|
||
At the moment it's only been tested on Ubuntu. | ||
At the moment it's only tested on Ubuntu 10.04, 11.04 and OS X 10.7. | ||
|
||
You need to build spidermonkey on your own. Here are quick instructions. | ||
|
||
### Building SpiderMonkey | ||
|
||
First download mozilla-central (the repo that contains spidermonkey). If you have good internet, use the mecurial client, if not, you can download a roughly 100mb tarball of the latest revision at <http://hg.mozilla.org/mozilla-central> | ||
|
||
Once downloaded, go to the js folder and build spidermonkey as a static library | ||
|
||
```sh | ||
cd $HOME/mozilla-central/js/src | ||
autoconf2.13 | ||
./configure --disable-shared-js | ||
make -j 4 # or however many cores you have | ||
``` | ||
|
||
### Building | ||
|
||
Once you have SpiderMonkey, link it in the deps folder of luvmonkey. | ||
|
||
```sh | ||
cd $HOME/luvmonkey/deps | ||
ln -s $HOME/mozilla-central | ||
``` | ||
|
||
Then building luvmonkey is super easy. Simply go to the luvmonkey source tree and do the normal configure;make dance. (Requires python installed since we use gyp) | ||
Building luvmonkey is super easy. Simply go to the luvmonkey source tree and | ||
do the normal `./configure && make` dance. Python 2.5 or newer (but *not* 3.x) | ||
is required because we use gyp. | ||
|
||
```sh | ||
cd $HOME/luvmonkey | ||
./configure | ||
make -j4 # or however many cores you have | ||
# Test it | ||
./out/Debug/luvmonkey test.js | ||
``` | ||
``` |