Commit graph

167 commits

Author SHA1 Message Date
Nathan Rajlich
1219ce6a28 configure: a little tidying up 2012-08-12 13:48:16 -07:00
Brian White
b73730993d Make linking 64-bit addons with VCExpress 2010 + Windows 7.1 SDK work out of the box
Closes #112.
Closes #113.
2012-07-31 12:10:44 -07:00
Nathan Rajlich
d421f0c4c6 configure: log the python executable used 2012-07-31 10:48:37 -07:00
Nathan Rajlich
de2058129a configure: use "osenv.home()" for homedir expansion 2012-07-28 09:56:06 -07:00
Nathan Rajlich
9abf997551 configure: don't use $HOMEDRIVE
It doesn't even represent the value we want (it specifies the drive of the $HOME
dir, not the drive that the system is installed on).

Closes #80.
2012-06-20 17:17:50 -07:00
Nathan Rajlich
036a730f4a configure: a little better python version check
Should fix #82.
2012-06-20 14:49:40 -07:00
Nathan Rajlich
6733a91089 configure: better python version number parsing
Closes #79.
2012-06-15 16:03:55 -07:00
Nathan Rajlich
19ea50e8ad no semicolons 2012-06-15 11:11:29 -07:00
Marc Abramowitz
5dcf6541b5 Check for Python 3 by spawning it and checking the output of '--version'
Closes #76.
2012-06-15 11:04:27 -07:00
Nathan Rajlich
f451c0fab9 remove mkdirp wrapper 2012-06-06 21:35:25 -07:00
Nathan Rajlich
47de81f963 initial take at using 'npmlog' for logging
* adds a '--loglevel' switch to node-gyp which accepts the same values as npm
 * now the '--verbose' flag is simply an alias to '--loglevel=verbose'
 * this simplifies the code a bit, since any logging logic is now removed
 * more log levels! it's mostly verbose() and info() being used
   * still need to go back and move some of logging calls to a better level
2012-06-06 18:01:08 -07:00
Nathan Rajlich
4c17c37a5d a little refactor of the --nodedir stuff 2012-05-14 16:32:27 -07:00
Jeroen Janssen
d314430f8c workaround for ~ homedir expansion 2012-05-14 23:48:51 +02:00
Jeroen Janssen
f64a7af819 rework based on review 2012-05-14 23:24:19 +02:00
Jeroen Janssen
84d2418973 add support for --nodedir option 2012-05-10 20:24:38 +02:00
Nathan Rajlich
fb6d2eecb0 configure: better python fail error message 2012-04-14 13:20:35 -07:00
Nathan Rajlich
aae45396ec remove the hook stuff 2012-04-08 15:47:53 -07:00
Nathan Rajlich
f1082e5773 use graceful-fs everywhere 2012-04-05 17:19:29 -07:00
Nathan Rajlich
1d3076ecfc configure: set the 'target_version' as a gyp variable 2012-03-30 21:34:14 -07:00
Nathan Rajlich
ae39e1adb3 core: centralize the dev dir logic into node-gyp.js 2012-03-30 20:02:27 -07:00
Nathan Rajlich
0e5d3157de configure: set the PYTHON env variable
this is in preparation for possibly using gyp-reader
2012-03-30 19:48:16 -07:00
Nathan Rajlich
c258190afe configure: getVersion() -> getTargetVersion() 2012-03-30 19:47:00 -07:00
Nathan Rajlich
761738cab8 configure: support the PYTHON env variable 2012-03-30 19:46:27 -07:00
Nathan Rajlich
80e96a9e05 configure: use the HOMEDRIVE env variable 2012-03-30 18:43:49 -07:00
Nathan Rajlich
7daa891e88 configure: support arbitrary configure flags as gyp variables
This will allow module authors to use arbitrary variables in their
binding.gyp file, perhaps to specify using a static depedency vs. a
shared one. This is ideal way to "hook" into the build process.

Note that npm will always use the default flags during its `rebuild` call,
so any "options" that authors put into their build should be the exception,
and not the rule.

So for the best Windows compatabilty, a module should, by default, statically
compile a dependency into the binary. Therefore a --shared-libxml2 setting
would be better than a --static-libxml2 setting, since npm should build
statically for Windows by default.
2012-03-29 11:35:14 -07:00
Nathan Rajlich
e6ca059d4a configure: utilize process.config when available 2012-03-29 11:33:44 -07:00
Nathan Rajlich
d60a5d686b Fix the -pre version handling when installing from "configure" 2012-03-19 19:35:17 -07:00
Nathan Rajlich
11760ff776 configure: guess the location of 'python' when not in the $PATH
Should fix #33.
2012-03-14 16:13:49 -07:00
Nathan Rajlich
734152eabf configure: fix args->argv 2012-03-14 12:10:13 -07:00
Nathan Rajlich
c7c6d9cde7 configure: don't manually add the msvs_version flag if already set. 2012-03-14 12:06:38 -07:00
Nathan Rajlich
099851d8c7 configure: specify the msvs_version on Windows
This *should* take care of #35.
2012-03-14 11:56:06 -07:00
Nathan Rajlich
d4431b2da2 configure: create and use a 'config.gypi' file
This is like how node does it with its ./configure script.

Closes #32.
2012-03-11 13:28:38 -07:00
Nathan Rajlich
c071ab3a4c enforce use of the "binding.gyp" file 2012-03-07 12:20:33 -08:00
Nathan Rajlich
f3e8a70835 Use 'semver' to install full patch version of node instead of minor.
Closes #37.
Closes #38.
Closes #39.
2012-03-07 11:52:39 -08:00
Nathan Rajlich
473cb0c2d6 Use array.push() for clarity. 2012-03-02 17:36:39 -08:00
Nathan Rajlich
80f857a470 Use path.resolve() everywhere. 2012-02-27 18:15:20 -08:00
Nathan Rajlich
b76f10f275 Greatly simplify the "configure" step logic.
This is possible now since we're just copying over the whole "legacy" dir
rather than managing individual patches. This is way simpler as a result,
and the "configure" step basically just invokes `gyp_addon` bare now.

Especially nice is being able to remove the -arch i386 hack :)
2012-02-27 17:22:19 -08:00
Nathan Rajlich
82ecf992e4 Find all .target.gyp.mk files to fix the i386 bug. 2012-02-12 17:44:37 -08:00
Nathan Rajlich
b2e8abcdc0 Hack in 'before' and 'after' hook events for the 'clean', 'configure', and 'build' commands.
Part of #9.
2012-02-12 15:58:09 -08:00
Nathan Rajlich
43a3e294d1 version is always a String now. 2012-02-11 17:48:26 -08:00
Nathan Rajlich
2461ff762c Prepare for a potential "0.10" release.
We can no longer treat the version like a Number, since `0.10`
gets represented as `0.1`.
2012-02-11 17:08:50 -08:00
Nathan Rajlich
15a55de6e8 Don't consider the 'current' version in the 'configure' step.
Part of #20.
2012-02-11 12:47:55 -08:00
Nathan Rajlich
b1dd7aef39 Use the current host node version when there is no over version currently in "use" on "configure".
Fixes #19.
2012-02-11 00:02:01 -08:00
Nathan Rajlich
20beda7b09 Remove any existing Makefile.gyp file before executing the 'configure' step.
Fixes #18.
2012-02-10 18:15:19 -08:00
Nathan Rajlich
d2518e8794 Add an --arch flag, and properly default to the current arch when not defined.
Closes #14.
2012-02-09 17:32:22 -08:00
Nathan Rajlich
0aca90d8bb Manually apply the 2722 patch on Unix when the target is < 0.8.
Closes #16.
2012-02-09 11:24:45 -08:00
Nathan Rajlich
0bc90225b2 Don't force 'make' if the user specified another format in the arguments.
Part of #11.
2012-02-08 11:01:10 -08:00
Nathan Rajlich
fb8c30f680 Some comments and stuff. 2012-02-06 11:55:53 -08:00
Nathan Rajlich
b182b3a9bd Add the < version check for joyent/node#2685, now that its been merged. 2012-02-06 11:54:49 -08:00
Christopher Jeffrey
f45f243053 Add a .gyp suffix to generated makefile, avoid clobbering an existing one. 2012-02-05 20:51:44 -06:00