Mercurial > spidermonkey-playground
view pavement.py @ 76:78da824faeb3
use a system environment variable so we can share
author | Dion Almaer <dion@mozilla.com> |
---|---|
date | Thu, 25 Jun 2009 23:02:29 -0700 |
parents | be61430630ab |
children |
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", "debug-firefox", "dist") objdir = os.getenv("MOZILLA_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.", "-g", # produce output for gdb "-DDEBUG", "spidermonkey-playground.cpp", "tcb.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")