Skip to content

Commit

Permalink
[dist] Fix wscript to properly use C compiler.
Browse files Browse the repository at this point in the history
  • Loading branch information
AvianFlu committed May 12, 2012
1 parent 1c09a33 commit e35ad6e
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions wscript
Expand Up @@ -4,16 +4,21 @@ from os.path import exists

srcdir = "."
blddir = "build"
VERSION = "0.0.0"
VERSION = "0.1.0"

def set_options(opt):
opt.tool_options("compiler_cxx")
opt.tool_options("compiler_cxx compiler_cc")

def configure(conf):
conf.check_tool("compiler_cxx")
conf.check_tool("compiler_cxx compiler_cc")
conf.check_tool("node_addon")

def build(bld):
obj = bld.new_task_gen("cxx", "shlib", "node_addon")
obj.target = "prefork"
obj.source = [ "src/prefork.cc", "deps/aeternum/aeternum.C" ]
aeternum = bld.new_task_gen("cc")
aeternum.target = "aeternum"
aeternum.source = ["deps/aeternum/aeternum.c"]
aeternum.includes = "deps/aeternum/"
aeternum.ccflags = "-fPIC"
prefork = bld.new_task_gen("cxx", "shlib", "node_addon", add_objects="aeternum")
prefork.target = "prefork"
prefork.source = ["src/prefork.cc"]

0 comments on commit e35ad6e

Please sign in to comment.