Browse Source

wscript chooses win32 source files, not cpp

v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
4f8dd28f7e
  1. 8
      src/node_child_process.cc
  2. 8
      src/node_stdio.cc
  3. 10
      wscript

8
src/node_child_process.cc

@ -1,9 +1,3 @@
#ifdef __MINGW32__
# include <node_child_process_win32.cc>
#endif
#ifdef __POSIX__
// Copyright 2009 Ryan Dahl <ry@tinyclouds.org> // Copyright 2009 Ryan Dahl <ry@tinyclouds.org>
#include <node_child_process.h> #include <node_child_process.h>
#include <node.h> #include <node.h>
@ -503,5 +497,3 @@ int ChildProcess::Kill(int sig) {
} // namespace node } // namespace node
NODE_MODULE(node_child_process, node::ChildProcess::Initialize); NODE_MODULE(node_child_process, node::ChildProcess::Initialize);
#endif // __POSIX__

8
src/node_stdio.cc

@ -1,9 +1,3 @@
#ifdef __MINGW32__
# include "node_stdio_win32.cc"
#endif
#ifdef __POSIX__
#include <node_stdio.h> #include <node_stdio.h>
#include <node_events.h> #include <node_events.h>
@ -315,5 +309,3 @@ void Stdio::Initialize(v8::Handle<v8::Object> target) {
} // namespace node } // namespace node
NODE_MODULE(node_stdio, node::Stdio::Initialize); NODE_MODULE(node_stdio, node::Stdio::Initialize);
#endif // __POSIX__

10
wscript

@ -619,18 +619,24 @@ def build(bld):
src/node_http_parser.cc src/node_http_parser.cc
src/node_net.cc src/node_net.cc
src/node_io_watcher.cc src/node_io_watcher.cc
src/node_child_process.cc
src/node_constants.cc src/node_constants.cc
src/node_cares.cc src/node_cares.cc
src/node_events.cc src/node_events.cc
src/node_file.cc src/node_file.cc
src/node_signal_watcher.cc src/node_signal_watcher.cc
src/node_stat_watcher.cc src/node_stat_watcher.cc
src/node_stdio.cc
src/node_timer.cc src/node_timer.cc
src/node_script.cc src/node_script.cc
src/node_os.cc src/node_os.cc
""" """
if sys.platform.startswith("win32"):
node.source += " src/node_stdio_win32.cc "
node.source += " src/node_child_process_win32.cc "
else:
node.source += " src/node_stdio.cc "
node.source += " src/node_child_process.cc "
node.source += bld.env["PLATFORM_FILE"] node.source += bld.env["PLATFORM_FILE"]
if not product_type_is_lib: if not product_type_is_lib:
node.source = 'src/node_main.cc '+node.source node.source = 'src/node_main.cc '+node.source

Loading…
Cancel
Save