Tom Hughes
74954ce7d8
Add string class that uses ExternalAsciiStringResource.
...
Change the natives to use this class instead of creating completely new
strings. Reduces memory usage by about 1 MB.
2011-03-08 13:56:41 -08:00
Ryan Dahl
39280e1b57
Bump version to v0.4.2
2011-03-02 22:10:26 -08:00
Ryan Dahl
f918e57f8b
Support dtrace for debug build
2011-02-25 16:48:19 -08:00
Aria Stewart
8a50f23fd3
Add support for specifying the libdir
...
Some OSes use "lib64" rather than "lib", and this lets them override
in waf to accomplish this.
Closes GH-712.
2011-02-24 16:28:45 -08:00
Aria Stewart
fd713e1dc7
libeio and http_parser build with PIC code
...
Fix building as a shared library
Closes GH-708.
2011-02-24 16:19:43 -08:00
Ryan Dahl
e8aef84191
Bump version to v0.4.1
2011-02-19 18:45:34 -08:00
Ryan Dahl
7e4f755073
Install node.d in the correct place
2011-02-17 11:07:19 -08:00
Bert Belder
a5e67ad9e7
Autodetect no-strict-aliasing, propagate toolchain option to SCons
...
BUG=v8:884
2011-02-17 10:46:38 -08:00
Bert Belder
3ef6433255
MinGW: OpenSSL support
2011-02-15 20:15:46 -08:00
Bert Belder
a293f90db4
Improve V8 support for Cygwin
...
Should re-enable crankshaft; can build w/ snapshot again.
2011-02-15 12:29:59 -08:00
Ryan Dahl
eb155ea6f6
Bump version to v0.4.0
2011-02-10 02:40:11 -08:00
Bert Belder
583f2e5999
Follow-up fix for v8 cygwin build
2011-02-09 21:55:59 -08:00
Ryan Dahl
e9257b859d
New DTrace probes from CA team
2011-02-09 18:50:26 -08:00
Ryan Dahl
9493b7563b
Bump version to v0.3.8
2011-02-04 19:35:43 -08:00
Ryan Dahl
d8579c6afd
Bump version to v0.3.7
2011-01-27 20:07:54 -08:00
Ryan Dahl
f9f0e5c75c
Pre-process out assert()
2011-01-27 16:38:49 -08:00
Ryan Dahl
72bef516dc
Revert "Preprocess out assert()"
...
This reverts commit 8bd7e4fad8
.
2011-01-25 15:26:19 -08:00
Ryan Dahl
8bd7e4fad8
Preprocess out assert()
2011-01-25 12:53:44 -08:00
Ryan Dahl
068b733583
Land Cantrill's DTrace patch
...
only works on solaris
2011-01-24 18:59:06 -08:00
Ryan Dahl
86e687086b
waf: display oprofile and gdbjit options for all platforms
...
was breaking mac
2011-01-20 19:07:19 -08:00
Ryan Dahl
ae30af44cf
Disable gdbjit by default
2011-01-20 18:04:09 -08:00
Ryan Dahl
6e9f746a46
wscript: style
2011-01-19 11:18:12 -08:00
Ryan Dahl
5895df4d0e
Compile gdbjit in by default on linux
2011-01-19 11:17:25 -08:00
Ryan Dahl
4f8dd28f7e
wscript chooses win32 source files, not cpp
2011-01-18 23:22:38 -08:00
Bert Belder
33118df8f9
Merge remote branch 'origin/master'
...
Conflicts:
src/node_net.cc
src/node_os.cc
2011-01-02 22:57:32 +01:00
Brian White
d75c338dd6
Add more functionality to the os module
2010-12-22 11:01:25 -08:00
Ryan Dahl
d793fcaabd
Add toolchain=gcc to V8 build for Sun
2010-12-21 12:02:51 -08:00
Bert Belder
d1bf9cf1f8
After building overwrite existing ./node(_g)?.exe
2010-12-20 23:51:32 +01:00
Bert Belder
2655269911
Make select work on >64 FDs on windows
2010-12-20 23:51:30 +01:00
Bert Belder
4a2cb07808
Fix whitespace errors introduced by porting efforts
2010-12-20 23:51:25 +01:00
Bert Belder
9f9332963a
wscript: use "node.exe" and avoid symlinks on windows
2010-12-20 23:51:09 +01:00
Bert Belder
f37cc8720b
On windows, link with Winsock and WinMM
2010-12-20 23:51:06 +01:00
Bert Belder
6f08fdbcca
Backslashes in paths wreak havoc
2010-12-20 23:51:05 +01:00
Bert Belder
d56e1a3fcd
No -rdynamic and -pthread flags when building with mingw
2010-12-20 23:50:47 +01:00
Bert Belder
276b0b174e
Always use statically linked c-ares on windows; fix build
...
On win32 CARES is always static, so we can call internal functions like ares_inet_pton et al.
CARES_STATICLIB must be defined or gcc will try to make DLL stub calls
2010-12-20 23:50:46 +01:00
Bert Belder
62af617f84
Dynamically link with pthreads-w32
...
Adds some explanation what would need to be done to link pthreads statically
2010-12-20 23:50:26 +01:00
Bert Belder
13699c1b33
V8: Don't attempt to build w/ snapshot, doesn't seem to work on mingw32
2010-12-20 23:50:26 +01:00
Ryan Dahl
4bb914bde9
Bump version to v0.3.2
2010-12-17 09:51:48 -08:00
Brian White
9eaf2329e7
Fix compilation on OpenBSD and FreeBSD
...
While it compiles fine on FreeBSD, at least on amd64 node dies with:
"CALL_AND_RETRY_0 allocation failed - process out of memory"
2010-12-17 09:06:31 -08:00
Ryan Dahl
c9d3a81db0
Patch V8 to compile on solaris
2010-12-16 14:05:13 -08:00
Ryan Dahl
7d73779446
Make oprofile work
2010-12-13 22:12:46 -08:00
Brian White
f1762ff815
Add os module and getHostname
2010-12-11 00:51:20 -08:00
Ryan Dahl
a0e9a510b0
Introduce require('tty')
...
You may need to reconfigure after this commit due to the new library.
2010-12-02 18:06:43 -08:00
Ryan Dahl
33685fee48
Add configure flag for oprofile
2010-12-02 16:57:16 -08:00
Bert Belder
99ba903d46
win: Define __POSIX__ constant when the platform is POSIX-y
2010-11-29 23:46:30 -08:00
Ryan Dahl
a326eebac8
Put tools/ into PYTHON_PATH
2010-11-29 19:46:00 -08:00
Nikhil Marathe
7a3971e433
Use sys.executable to call python
2010-11-21 19:27:23 -08:00
Ben Noordhuis
a87172f9b2
Compile with -Wno-unused-parameter -D_FORTIFY_SOURCE=2
2010-11-21 19:07:27 -08:00
Brian White
952bbb86b5
Fix OpenSSL SSL_library_init function check on OpenBSD.
2010-11-18 21:47:15 -08:00
Ryan Dahl
473721979d
Print warning when using platform_none.cc
2010-11-16 03:19:01 +00:00
Ryan Dahl
25eecd179b
Fix configure on x86
2010-11-14 22:46:26 -08:00
Ben Noordhuis
5d80bdb6ae
Add --profile flag to configure script, enables gprof profiling.
2010-11-13 14:34:45 -08:00
Rasmus Andersson
e5a0fbe500
Added support for cross compilation and also fixed DEST_CPU to represent the canonical symbols dictated by v8
2010-11-13 14:29:59 -08:00
Ryan Dahl
029180a93c
Install node-waf
2010-11-03 09:02:54 -07:00
Ryan Dahl
97c9745063
Back to WAF
...
Too much instability right now. Hopefully we can revisit autoconf soon.
2010-11-01 16:51:20 -07:00
Ryan Dahl
15594eaf87
Replace WAF with make/autoconf
2010-10-24 18:39:36 -07:00
AJ ONeal
74c8b5fd08
./wscript: allow for cross-compiling of all three supported architectures
2010-10-18 11:39:56 -07:00
Ben Noordhuis
045bd4c7a4
Preliminary pkg-config support.
2010-10-13 01:49:33 -07:00
Ryan Dahl
c4636a578c
Dynamically load native scripts
2010-10-12 11:49:41 -07:00
Ryan Dahl
fe74283e1d
Fix a few compiler warnings...
2010-10-09 16:04:38 -07:00
Ryan Dahl
fe060916ec
Put preprocessor defines into CPPFLAGS not compile flags...
2010-09-28 03:17:44 -07:00
Ryan Dahl
9922e4e433
Don't choose jobs based on processor
...
Leads to lots of builds with out-of-memory.
2010-09-20 16:51:52 -07:00
Ryan Dahl
754fde7325
More explicit openssl configure warning
2010-09-20 12:52:07 -07:00
Paul Querna
2d348bb985
Fatal error out if OpenSSL was not explicitly disabled, we just couldn't autodetect it.
2010-09-19 15:32:10 -07:00
Ryan Dahl
124fbedc2f
Add node::Start()
...
first step towards building a libnode.a
2010-09-19 13:13:59 -07:00
Tony Metzidis
5c9b9c2e70
- fix AttributeError on "use_openssl" when doing ./configure --without-ssl - error was: AttributeError: Values instance has no attribute 'use_openssl'
2010-09-13 11:50:06 -07:00
Ryan Dahl
e8b3751743
Only check for execinfo lib in freebsd
...
OpenEmbedded doesn't like it when you look in /usr/lib
2010-08-27 06:20:20 -07:00
Ryan Dahl
5bce8ed118
Fix process.platform
2010-08-18 13:16:32 -07:00
Ryan Dahl
ae5d613b3e
Add --without-snapshot configure option
2010-08-15 14:27:05 -07:00
Rasmus Andersson
758f12f34c
added read and write support for process.title Darwin
...
This will only manipulate the OS X-level process name, not the title shown
in e.g. ps.
2010-08-12 16:23:41 -07:00
Ryan Dahl
5185c15ef7
Stub out process.title
2010-08-11 12:39:42 -07:00
Ryan Dahl
a4906c7c83
Print warning when OpenSSL not found
2010-08-04 16:07:10 -07:00
Samuel Shull
24c6d26cca
Add node_version.h to install
2010-08-04 10:54:02 -07:00
Paul Querna
30dadfc033
Register builtin extensions via a macro, rather than a manual strcmp
...
Set the stage for making the builtin modules more dynamic.
Note: this only converts crypto and net, I will add more extensions in a
later commit.
* node.h: Add utility macro for converting macro values to strings.
* node.h: Include the actual module name inside the module structure, not
just the file it was built from.
* node.h: New Macro, NODE_MODULE_DECL, for declaring an external reference
to a module structure.
* node_extensions.cc: New File, implements get_builtin_module, which
iterates over the module structures that are compiled into node.
* node.cc(node::Binding): Use the new module lookup function to find
modules.
* node_{net,crypto}.c: Add NODE_MODULEs to generate the module structure.
2010-07-14 10:17:25 -07:00
Paul Querna
480164f923
Move node version to a single static header file.
...
Some compile time variables like the cflags and prefix have been moved to
the node_config.h.in, in the anticipation that they will be removed at
somepoint.
2010-07-13 06:39:47 -07:00
Ryan Dahl
a6b8586e94
bump version
2010-07-03 08:37:46 +02:00
Rasmus Andersson
67f7fe5e5c
Use all available CPUs when building
...
Automatically set Options.options.jobs to the number of CPUs/cores on the
executing machine, unless the environment variable JOBS is set
2010-06-27 08:49:06 -07:00
Ryan Dahl
a620b7298f
bump version
2010-06-21 13:34:10 -07:00
Ryan Dahl
545e10f239
wscript shouldn't fail if 'git describe' doesn't work
2010-06-21 10:21:55 -07:00
Ryan Dahl
01a8d270cf
Add platform files, move getmem to node::OS class.
2010-06-17 18:23:43 -07:00
Brian McKenna
431e72cbe8
Make addon building work for Cygwin.
2010-06-11 13:25:03 -07:00
Ryan Dahl
10d8adb089
bump version
2010-06-11 12:58:14 -07:00
Raffaele Sena
b3b81d67ff
Port to cygwin
2010-06-09 15:08:46 -07:00
Ryan Dahl
9e8df0e836
More dynamic linking options (again)
...
Original commit: 75f0cf471a
2010-06-04 11:42:34 -07:00
Ryan Dahl
ef9f4046c9
Better 'make' output
...
Removes 'make all-debug' since it is unnecessary now.
2010-06-02 13:03:31 -07:00
Ryan Dahl
501136b999
Revert "More dynmaic linking options"
...
Broke the build. Will fix and reapply soon.
This reverts commit 75f0cf471a
.
2010-06-02 09:16:28 -07:00
Ryan Dahl
75f0cf471a
More dynmaic linking options
...
This adds the following options to the `configure` program
--shared-v8 Link to a shared V8 DLL instead of static linking
--shared-v8-includes=SHARED_V8_INCLUDES
Directory containing V8 header files
--shared-v8-libpath=SHARED_V8_LIBPATH
A directory to search for the shared V8 DLL
--shared-cares Link to a shared C-Ares DLL instead of static linking
--shared-cares-includes=SHARED_CARES_INCLUDES
Directory containing C-Ares header files
--shared-cares-libpath=SHARED_CARES_LIBPATH
A directory to search for the shared C-Ares DLL
--shared-libev Link to a shared libev DLL instead of static linking
--shared-libev-includes=SHARED_LIBEV_INCLUDES
Directory containing libev header files
--shared-libev-libpath=SHARED_LIBEV_LIBPATH
A directory to search for the shared libev DLL
and removes --system.
2010-06-01 20:18:43 -07:00
Ryan Dahl
0c1aa36835
bump version
2010-05-29 19:37:57 -07:00
Ryan Dahl
78e49f1c88
Rename node_net2.cc to node_net.cc
2010-05-29 13:08:05 -07:00
Ryan Dahl
311a62dea7
Fix JOBS for Solaris make
2010-05-26 13:07:45 -07:00
Ryan Dahl
9514a4d547
bump version
2010-05-21 02:55:38 -07:00
Andrew Johnston
9599607065
Added posix fsync and fdatasync to fs module
2010-05-14 18:42:22 -07:00
Ryan Dahl
a9b962a653
Add --without-ssl configure option
2010-05-14 16:34:47 -07:00
Ryan Dahl
0b7bda8f46
Remove some unused cruft from wscript
2010-05-14 16:30:58 -07:00
Ryan Dahl
0914d33842
bump version
2010-05-13 16:24:28 -07:00
Ryan Dahl
23d680bb85
Allow parallel jobs to be passed to V8 build
...
e.g. JOBS=2 make
2010-05-13 16:24:28 -07:00
Ryan Dahl
8e5b91c79b
Revert "Check for strings.h"
...
This reverts commit 032f651824
.
2010-05-10 16:38:14 -07:00
Ryan Dahl
032f651824
Check for strings.h
2010-05-10 16:30:31 -07:00
Ryan Dahl
d2415945c1
Install node_buffer.h on make install
2010-05-06 14:14:52 -07:00
Ryan Dahl
f711d5343b
bump version
2010-05-06 10:39:27 -07:00
Ryan Dahl
48d58f92f1
Add symbols to release build
2010-05-02 18:20:02 -07:00
Ryan Dahl
557ba6bd97
bump version
2010-04-29 17:44:51 -07:00
Felix Geisendörfer
203561208e
Remove coupling dep
2010-04-27 18:17:30 -07:00
Jérémy Lal
610faf713d
Drop UDNS from node.uselib. Add CARES for --system.
2010-04-24 01:13:42 -07:00
Ryan Dahl
3d6ebbd296
Don't look for GnuTLS in wscript
2010-04-23 17:24:37 -07:00
Ryan Dahl
c72967d335
Remove http_old tcp_old
2010-04-23 17:19:29 -07:00
Ryan Dahl
caa828a242
bump version
2010-04-23 16:37:14 -07:00
Ryan Dahl
27ec33aad7
Add some libpaths for SSL
2010-04-20 14:44:05 -07:00
Standa Opichal
fa514a9f16
Do a manual check for openssl if 'pkg-config openssl' fails.
...
This makes the node_crypto module available for node built using just a
default OS X dev environment (no darwinports or fink).
2010-04-18 17:25:05 -04:00
Herbert Vojcik
c2a06725d6
Script class with eval-function-family in binding('evals') plus tests.
2010-04-18 15:01:36 -04:00
Rhys Jones
e6a1091cc6
Merge branch 'master' into openssl
2010-04-15 10:56:42 +01:00
Ryan Dahl
311d7dee19
bump version
2010-04-15 02:09:51 -07:00
Rhys Jones
d27d6dcc6f
Merge branch 'master' into openssl
2010-04-15 06:21:15 +01:00
Rhys Jones
144200435f
Merge branch 'master' into openssl
...
Conflicts:
lib/net.js
wscript
2010-04-14 07:31:33 +01:00
Ryan Dahl
a98d23d905
Disable IdleWatcher
2010-04-13 15:43:58 -07:00
Ryan Dahl
07e64d45ff
bump version
2010-04-09 17:05:03 -07:00
Ryan Dahl
d923c94a0c
Remove udns
2010-04-07 18:25:37 -07:00
Ryan Dahl
9ea8c9f2b0
Clean up c-ares platform includes, add support for a few more
2010-04-07 13:34:40 -07:00
Vanilla Hsu
067f4086b6
add c-ares' freebsd support.
2010-04-07 09:36:35 -07:00
Krishna Rajendran
dc1f4ebd44
c-ares based dns module
2010-04-07 01:29:05 -07:00
Ryan Dahl
e9a116fe02
Include c-ares in deps/
2010-04-07 01:17:49 -07:00
Vanilla Hsu
d7a4501057
freebsd install execinfo's header to /usr/local, add it to include path.
2010-04-06 10:23:43 -07:00
Rhys Jones
fb3a9cd0d8
Initial openssl support for net2
2010-04-02 17:13:54 -07:00
Ryan Dahl
4279725d79
Fix thread flags on Solaris
...
Also on other platforms use -pthread for compiling commands not just
linking because I noticed in the gcc(1) man page
-pthread
Adds support for multithreading with the pthreads library. This
option sets flags for both the preprocessor and linker.
Removing the errno check in deps/coupling because it was a hack
(e165859c2e
) added to fix stdio problems.
Without adding -threads, errno is not thread local, and coupling was not
correctly checking the errno. It appears -mt does nothing to gcc/solaris.
2010-03-31 13:44:36 -07:00
Ryan Dahl
903977d5e8
Merge branch 'master' into net2
...
Conflicts:
test/simple/test-event-emitter-modify-in-emit.js
2010-03-19 21:48:39 -07:00
Ryan Dahl
618296ef57
bump version
2010-03-19 21:07:03 -07:00
Zoka
b29f78772e
Eliminate debug(x) statements from src/node.js and lib/*.js for release build
...
http://groups.google.com/group/nodejs/browse_thread/thread/8f20bcef6d6d96b7
2010-03-19 20:56:03 -07:00
Ryan Dahl
cbfd4da818
Merge branch 'master' into net2
...
Conflicts:
src/node.cc
2010-03-15 14:34:01 -07:00
Ryan Dahl
8492c52e15
Use uniform watcher names
2010-03-15 14:24:15 -07:00
Ryan Dahl
4ccdc501d4
Include lib/ directory in node executable. Compile on demand.
...
Instead of installing the files in /usr/lib/node/libraries and loading them
from the file system, the files are built-in to the node executable.
However, they are only compiled on demand.
The reasoning is:
1. Allow for more complex internal javascript. In particular,
process.stdout and process.stdin can be js implemented streams.
2. Ease system installs. Loading from disk each time is unnecessary
overhead. Note that there is no "system" path for modules anymore. Only
$HOME/.node_libraries.
2010-03-15 08:04:35 -07:00
Ryan Dahl
ffeb4722d4
small wscript error
2010-03-13 12:20:09 -08:00
Ryan Dahl
61c8014135
bump version
2010-03-12 18:50:46 -08:00
Ryan Dahl
28211519b6
Merge branch 'master' into HEAD
...
Conflicts:
lib/fs.js
wscript
2010-03-12 12:42:15 -08:00
Jérémy Lal
c93bab141c
Add --system option to configure, so make uses V8, EV, UDNS system libraries and headers.
2010-03-11 14:00:19 -08:00
Ryan Dahl
681733d905
Merge branch 'master' into net2
2010-03-05 20:51:26 -08:00
Ryan Dahl
39b63dfe17
bump version
2010-03-05 17:55:13 -08:00
Ryan Dahl
d9e3b466a7
Merge branch 'master' into net2
2010-03-02 10:44:25 -08:00
Ryan Dahl
7a251f3bdf
Fix shebang in wscript
2010-03-01 19:14:14 -08:00
Ryan Dahl
a97fdf5c39
Merge branch 'master' into net2
2010-02-22 14:22:20 -08:00
Ryan Dahl
bb0d1e65e1
bump version
2010-02-22 01:31:14 -08:00
Ryan Dahl
07423f3a87
Merge branch 'master' into net2
2010-02-17 15:46:30 -08:00
Ryan Dahl
87d5e5b316
bump version
2010-02-17 15:12:42 -08:00
Ryan Dahl
0b823dce61
Add /opt/local/lib as a search path for gpg-error
...
Why doesn't WAF just search LD_LIBRARY_PATH?
2010-02-17 13:56:47 -08:00
Ryan Dahl
dc01587c6c
Merge branch 'master' into net2
2010-02-10 14:05:29 -08:00
masuidrive
3337e9da1a
Build system: support spaces in directory names
2010-02-10 07:42:16 -08:00
Ryan Dahl
49de41ef46
bump version
2010-02-09 13:20:20 -08:00
Ryan Dahl
96f42745ff
Merge branch 'master' into net2
2010-02-05 19:00:26 -08:00
Ryan Dahl
0cfa789cc5
bump version
2010-02-03 12:20:27 -08:00
Ryan Dahl
bf803f478b
Reimplment Buffers
2010-01-27 15:40:09 -08:00
Ryan Dahl
b8c3d715fd
use efence again
2010-01-26 18:34:42 -08:00