Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan <ry@tinyclouds.org>2009-04-16 13:37:44 +0400
committerRyan <ry@tinyclouds.org>2009-04-16 13:37:44 +0400
commit7e1350f6e44a9f7b37b8fc1244dfe13c85488052 (patch)
tree556e7c93830ba95d41a44941a775d2961b2c5d67 /wscript
parent0ab4f5c276dee2bee33e245ec3dcac3239ae15ad (diff)
add file.write()
Diffstat (limited to 'wscript')
-rw-r--r--wscript14
1 files changed, 11 insertions, 3 deletions
diff --git a/wscript b/wscript
index e422cfa0c0a..a2a04e304eb 100644
--- a/wscript
+++ b/wscript
@@ -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"