diff options
author | Ryan <ry@tinyclouds.org> | 2009-04-16 13:37:44 +0400 |
---|---|---|
committer | Ryan <ry@tinyclouds.org> | 2009-04-16 13:37:44 +0400 |
commit | 7e1350f6e44a9f7b37b8fc1244dfe13c85488052 (patch) | |
tree | 556e7c93830ba95d41a44941a775d2961b2c5d67 /wscript | |
parent | 0ab4f5c276dee2bee33e245ec3dcac3239ae15ad (diff) |
add file.write()
Diffstat (limited to 'wscript')
-rw-r--r-- | wscript | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -45,6 +45,11 @@ def configure(conf): conf.define("HAVE_CONFIG_H", 1) conf.write_config_header('config.h') + conf.env.append_value('CXXFLAGS', '-g') + debug_env = conf.env.copy() + conf.set_env_name('debug', debug_env) + conf.setenv('debug') + def build(bld): bld.add_subdirs('deps/libeio deps/libev') @@ -54,10 +59,12 @@ def build(bld): deps_tgt = join(bld.srcnode.abspath(bld.env),"deps") v8dir_src = join(deps_src,"v8") v8dir_tgt = join(deps_tgt, "v8") - v8lib = bld.env["staticlib_PATTERN"] % "v8" + v8lib = bld.env["staticlib_PATTERN"] % "v8_g" + #v8lib = bld.env["staticlib_PATTERN"] % "v8" v8 = bld.new_task_gen( target=join("deps/v8",v8lib), - rule='cp -rf %s %s && cd %s && scons -Q library=static snapshot=on' + rule='cp -rf %s %s && cd %s && scons -Q mode=debug library=static snapshot=on' + #rule='cp -rf %s %s && cd %s && scons -Q library=static snapshot=on' % ( v8dir_src , deps_tgt , v8dir_tgt @@ -65,7 +72,8 @@ def build(bld): before="cxx" ) bld.env["CPPPATH_V8"] = "deps/v8/include" - bld.env["STATICLIB_V8"] = "v8" + #bld.env["STATICLIB_V8"] = "v8" + bld.env["STATICLIB_V8"] = "v8_g" bld.env["LIBPATH_V8"] = v8dir_tgt bld.env["LINKFLAGS_V8"] = "-pthread" |