|
@ -34,7 +34,7 @@ def configure(conf): |
|
|
fatal('ragel not found') |
|
|
fatal('ragel not found') |
|
|
exit(1) |
|
|
exit(1) |
|
|
|
|
|
|
|
|
conf.env["USE_DEBUG"] = bld.env["USE_DEBUG"] |
|
|
conf.env["USE_DEBUG"] = Options.options.debug |
|
|
|
|
|
|
|
|
conf.sub_config('deps/libeio') |
|
|
conf.sub_config('deps/libeio') |
|
|
conf.sub_config('deps/libev') |
|
|
conf.sub_config('deps/libev') |
|
@ -93,7 +93,8 @@ def build(bld): |
|
|
v8 = bld.new_task_gen( |
|
|
v8 = bld.new_task_gen( |
|
|
target = join("deps/v8", bld.env["staticlib_PATTERN"] % "v8"), |
|
|
target = join("deps/v8", bld.env["staticlib_PATTERN"] % "v8"), |
|
|
rule=v8rule % ( v8dir_src , deps_tgt , v8dir_tgt, "release"), |
|
|
rule=v8rule % ( v8dir_src , deps_tgt , v8dir_tgt, "release"), |
|
|
before="cxx" |
|
|
before="cxx", |
|
|
|
|
|
install_path = None |
|
|
) |
|
|
) |
|
|
bld.env["CPPPATH_V8"] = "deps/v8/include" |
|
|
bld.env["CPPPATH_V8"] = "deps/v8/include" |
|
|
bld.env["LINKFLAGS_V8"] = "-pthread" |
|
|
bld.env["LINKFLAGS_V8"] = "-pthread" |
|
@ -119,6 +120,7 @@ def build(bld): |
|
|
oi.name = "oi" |
|
|
oi.name = "oi" |
|
|
oi.target = "oi" |
|
|
oi.target = "oi" |
|
|
oi.uselib = "GNUTLS" |
|
|
oi.uselib = "GNUTLS" |
|
|
|
|
|
oi.install_path = None |
|
|
if bld.env["USE_DEBUG"]: |
|
|
if bld.env["USE_DEBUG"]: |
|
|
oi.clone("debug") |
|
|
oi.clone("debug") |
|
|
|
|
|
|
|
@ -128,6 +130,7 @@ def build(bld): |
|
|
ebb.includes = "deps/libebb/" |
|
|
ebb.includes = "deps/libebb/" |
|
|
ebb.name = "ebb" |
|
|
ebb.name = "ebb" |
|
|
ebb.target = "ebb" |
|
|
ebb.target = "ebb" |
|
|
|
|
|
ebb.install_path = None |
|
|
if bld.env["USE_DEBUG"]: |
|
|
if bld.env["USE_DEBUG"]: |
|
|
ebb.clone("debug") |
|
|
ebb.clone("debug") |
|
|
|
|
|
|
|
@ -144,6 +147,7 @@ def build(bld): |
|
|
rule=javascript_in_c, |
|
|
rule=javascript_in_c, |
|
|
before="cxx" |
|
|
before="cxx" |
|
|
) |
|
|
) |
|
|
|
|
|
native_cc.install_path = None |
|
|
if bld.env["USE_DEBUG"]: |
|
|
if bld.env["USE_DEBUG"]: |
|
|
native_cc.clone("debug") |
|
|
native_cc.clone("debug") |
|
|
|
|
|
|
|
@ -168,6 +172,9 @@ def build(bld): |
|
|
""" |
|
|
""" |
|
|
node.uselib_local = "oi ev eio ebb" |
|
|
node.uselib_local = "oi ev eio ebb" |
|
|
node.uselib = "V8 RT" |
|
|
node.uselib = "V8 RT" |
|
|
|
|
|
node.install_path = '${PREFIX}/bin' |
|
|
|
|
|
node.chmod = 0755 |
|
|
|
|
|
|
|
|
if bld.env["USE_DEBUG"]: |
|
|
if bld.env["USE_DEBUG"]: |
|
|
node.clone("debug") |
|
|
node.clone("debug") |
|
|
|
|
|
|
|
|