Commit graph

76 commits

Author SHA1 Message Date
Jon Kunkee
721dc7d314
Add ARM64 to MSBuild /Platform logic
PR-URL: https://github.com/nodejs/node-gyp/pull/1655
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: João Reis <reis@janeasystems.com>
2019-04-24 10:29:01 +10:00
Jon Moss
a5b7410497
Add ESLint no-unused-vars rule
- Uses `.eslintrc.yaml` for configuration
- `npm run lint` is part of `npm test`

PR-URL: https://github.com/nodejs/node-gyp/pull/1497
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: João Reis <reis@janeasystems.com>
2019-04-24 10:27:29 +10:00
Jon Moss
9e46872ea3
bin,lib: remove extra comments/lines/spaces
- Removes "module dependencies" comments and things that, IMHO, don't add
too much value. Happy to add back if helps some people when reading
through `node-gyp`.
- DRY up `lib/process-release.js`.
- Removes a bunch of extra blank lines, as well as random spaces.

PR-URL: https://github.com/nodejs/node-gyp/pull/1508
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
2019-04-24 10:27:29 +10:00
Natalie Wolfe
53d8cb967c Prefix build targets with /t: on Windows
Currently, on non-Windows platforms, it is possible to have
a multi-target native module and specify building just some
of the targets using `node-gyp build my_target`.

On Windows, however, specifying the targets to build requires the `/t:`
or `/target:` flag. Without this change you will get an `MSB1008` error
because MSBuild thinks you are trying to specify multiple solutions.

PR-URL: https://github.com/nodejs/node-gyp/pull/1164
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2018-06-08 17:09:27 +02:00
Liu Chao
72afdd62cd build: rename copyNodeLib() to doBuild()
PR-URL: https://github.com/nodejs/node-gyp/pull/1206
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: João Reis <reis@janeasystems.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
2017-05-27 17:23:52 -04:00
Pavel Medvedev
0913b2dd99 build, win: use target_arch to link with node.lib
Using `target_arch` in addon.gypi to link against Node.js library. This
variable was written into build/config.gypi on the `configure` stage.

Do not copy node.lib into node_root_dir/Release or node_root_dir/Debug
on Windows, link it from node_root_dir/target_arch directory.

PR-URL: https://github.com/nodejs/node-gyp/pull/964
Reviewed-By: João Reis <reis@janeasystems.com>
2017-05-15 23:04:18 +01:00
Refael Ackermann
ae141e1906 win: find and setup for VS2017
PR-URL: https://github.com/nodejs/node-gyp/pull/1130
Reviewed-By: João Reis <reis@janeasystems.com>
Reviewed-By: Bartosz Sosnowski <bartosz@janeasystems.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Rod Vagg <rod@vagg.org>
2017-03-15 11:54:08 +00:00
Kunal Pathak
ec5fc36a80 Add support to build node.js with chakracore for ARM.
* Support building node.js with chakracore on Windows on ARM

* Building chakracore for ARM has a dependency on Windows SDK installed
  on the machine. Update python script to populate
  `WindowsSDKDesktopARMSupport` and `WindowsTargetPlatformVersion` for
  ARM builds. This will be using in node repo to build`chakracore.gyp`.

PR-URL: https://github.com/nodejs/node-gyp/pull/873
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2017-02-15 04:56:46 +01:00
Mateusz Jaworski
a4fa07b390 More verbose error on locating msbuild.exe failure.
PR-URL: https://github.com/nodejs/node-gyp/pull/930
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2016-06-02 14:55:55 +02:00
Michael Dawson
9bfa0876b4 Add support for AIX
For AIX we need to use gmake.

For AIX we need to set up the path to the exp file which contains the
symbols needed for linking.  The file will either be in one of the
following depeding on whether are are in installed or development
environment:

  - the include/node directory
  - the out/Release directory

PR-URL: https://github.com/nodejs/node-gyp/pull/753
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
2015-11-18 18:23:36 +01:00
Jérémy Lal
101bed639b process.platform will never be kfreebsd
This platform value came from debian package, and now the value
from debian package is simply "freebsd", so this check is useless.

PR-URL: https://github.com/nodejs/node-gyp/pull/738
Reviewed-By: rvagg
Reviewed-By: bnoordhuis
Reviewed-By: jbergstroem
2015-09-23 13:39:52 +10:00
Rod Vagg
9e9df66a06 use process.release, make aware of io.js & node v4 differences
PR-URL: https://github.com/nodejs/node-gyp/pull/711
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
2015-09-08 09:59:31 +10:00
Nathan Rajlich
5f4b1855a2 build: remove trailing semicolon 2015-05-24 15:03:52 -07:00
Keiichiro Ui
44cf85389f Fix for 'make' failure when process.env.JOBS is '0'
If you use the environment variable `JOBS` which are set '0' for other purpose,
`node-gpy rebuild` will fail to execute `make`.
Because the `-j` option of `make` require a non-zero positive integer.

Here is a simple repro:

```
$ JOBS=0 npm install nightmare
...
> weak@0.3.3 install /home/kui/tmp/nm/node_modules/nightmare/node_modules/phantom/node_modules/dnode/node_modules/weak
> node-gyp rebuild

make: the `-j' option requires a positive integral argument
Usage: make [options] [target] ...
Options:
  -b, -m                      Ignored for compatibility.
  -B, --always-make           Unconditionally make all targets.
  -C DIRECTORY, --directory=DIRECTORY
                              Change to DIRECTORY before doing anything.
  -d                          Print lots of debugging information.
..
```
2014-10-09 20:10:35 +09:00
Nathan Rajlich
f2bad1df68 build: whitespace 2013-10-19 23:05:52 -07:00
Jérémy Lal
7ec91d6487 kfreebsd is using make 2013-09-19 12:23:32 +02:00
Nathan Rajlich
0c5c28f9b2 build: remove dead symlinkNodeBinding() code 2013-06-05 14:09:06 -07:00
mscdex
23bd601d50 windows: better msbuild version/path parsing and query correct registry on 64-bit 2013-03-27 08:32:06 -04:00
Nathan Rajlich
3b3614009c build: don't crash on Windows when no "msbuilds" are detected
Closes #206.
2013-02-28 15:13:57 -08:00
Nathan Rajlich
feaad0892f build: fix the msbuild.exe registry lookup on XP 2013-01-25 15:09:53 -08:00
Brian White
47a36cb4e7 Make msbuild search more general 2012-10-29 22:37:28 -04:00
Nathan Rajlich
be66ecd99f Revert "build: fix MSVC MSB8012 warnings"
This reverts commit 9daf9ef4d8.

This now generates a new warning ever since
5c8116b52f.
2012-10-25 11:43:35 -07:00
Nathan Rajlich
6667bffd18 build: make "--jobs=8" work (as opposed to only env variable) 2012-10-02 11:32:15 -07:00
Brian White
85ca8736f4 Use environment variable to determine how many cores/cpus to use when compiling
Closes #143.
2012-10-02 11:12:02 -07:00
Nathan Rajlich
9daf9ef4d8 build: fix MSVC MSB8012 warnings 2012-08-16 15:34:54 -07:00
Nathan Rajlich
154d740f8c build: move comment 2012-08-16 15:34:04 -07:00
Nathan Rajlich
136862351b build: disable symlink behavior once again
Still not ready. We need to fallback to a "copy" on Windows.
2012-07-11 15:36:35 -07:00
Nathan Rajlich
a6adf9f886 build: add silly logging 2012-07-11 15:26:32 -07:00
Nathan Rajlich
d8cba0a1d5 build: workaround a node-glob bug on Windows
needs Unix slashes, not Windows slashes... weird...
2012-07-11 15:26:00 -07:00
Nathan Rajlich
0f7c316c3c build: make the symlink/junction behavior work on Windows 2012-07-11 15:20:53 -07:00
Nathan Rajlich
372dd9677f build: fix logging 2012-07-11 15:20:41 -07:00
Nathan Rajlich
981bc54666 build: allow for the make command to be overwritten with --make=gmake or MAKE=gmake 2012-07-04 16:46:07 -07:00
Ben Noordhuis
05f4ded154 build: use gmake on the BSDs 2012-07-04 16:39:39 -07:00
Nathan Rajlich
b441561f28 disable symlink behavior for now 2012-06-27 11:13:53 -07:00
Nathan Rajlich
08f0d4f01d initial attempt at symlinking resulting files into the "build" dir 2012-06-21 20:50:45 -07:00
Nathan Rajlich
47d19b9ade fix logging 2012-06-13 13:34:01 -07:00
Nathan Rajlich
86634c2817 more logging 2012-06-13 13:31:49 -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
abdc9f728c don't check for "version" during "build" 2012-05-14 17:06:29 -07:00
Jeroen Janssen
84d2418973 add support for --nodedir option 2012-05-10 20:24:38 +02:00
Aaron Bieber
ca8cb2969f build: add check for gmake
There's probably a better way to handle this, but it's probably ok for now...

Closes #57.
2012-05-09 13:06:48 -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
2b8c43bfff build: fix 'platform is not defined' 2012-03-30 21:45:34 -07:00
Nathan Rajlich
6917ad57da build: catch node.lib copy errors 2012-03-30 21:40:03 -07:00
Nathan Rajlich
46891f4c7e build, install: initial attempt at 64-bit Windows support 2012-03-30 21:36:27 -07:00
Nathan Rajlich
c58697cbb2 build: comments 2012-03-30 21:35:01 -07:00
Nathan Rajlich
ece5100295 build: comment 2012-03-30 20:45:02 -07:00
Nathan Rajlich
0a7591cad4 build: use the proper x64 Platform setting on Windows 2012-03-30 18:21:59 -07:00