Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
bnoordhuis committed Mar 22, 2012
1 parent 5abeecb commit cde3562
Showing 1 changed file with 8 additions and 28 deletions.
36 changes: 8 additions & 28 deletions README.markdown
@@ -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
```
```

0 comments on commit cde3562

Please sign in to comment.