Mercurial > spidermonkey-playground
view pavement.py @ 50:853f80bd3b4b
Added tentative profileMemory() server, which suspends the current JS runtime, creates a new one and runs a web server in it.
author | Atul Varma <varmaa@toolness.com> |
---|---|
date | Wed, 24 Jun 2009 16:40:51 -0700 |
parents | f86740dc5fa0 |
children | 0b66a265df13 |
line wrap: on
line source
import os import subprocess import shutil from paver.easy import * @task def auto(options): objdir = os.path.join("..", "mozilla-stuff", "basic-firefox", "dist") objdir = os.path.abspath(objdir) incdir = os.path.join(objdir, "include") libdir = os.path.join(objdir, "lib") cmdline = ["g++", "-o", "spidermonkey-playground", "-I%s" % incdir, "-L.", "spidermonkey-playground.cpp", "wrapper.cpp", "server_socket.cpp", "memory_profiler.cpp", "-lmozjs", "-lnspr4"] for dylib in ["mozjs", "plds4", "plc4", "nspr4"]: name = "lib%s.dylib" % dylib print "copying %s" % name shutil.copyfile(os.path.join(libdir, name), "./%s" % name) print " ".join(cmdline) if subprocess.call(cmdline): raise Exception("build failed")