forked from nodejs/node-gyp
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update nw-gyp to latest node-gyp 6.1.0 #136
Open
surunzi
wants to merge
389
commits into
nwjs:master
Choose a base branch
from
surunzi:node-gyp-6.1.0
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fixes: nodejs#823 PR-URL: nodejs#824 Reviewed-By: Bert Belder <[email protected]>
* adds netbsd support: https://codereview.chromium.org/1421073004 * fixes cp(1) use on openbsd: https://codereview.chromium.org/1483473002 Fixes: nodejs#571 Fixes: nodejs#803 PR-URL: nodejs#831 Reviewed-By: Jeremiah Senkpiel <[email protected]>
Move the function around so it can be tested and add a regression test. As a policy vs. mechanism thing, change the control flow to handle exceptions at the call site, not inside the download function. PR-URL: nodejs#837 Reviewed-By: Rod Vagg <[email protected]>
Add an option for overriding the default CA chain that is used when downloading the tarball. This matches the npm option of the same name and gets implicitly passed through the `npm_config_cafile` environment variable. Fixes: nodejs#695 PR-URL: nodejs#837 Reviewed-By: Rod Vagg <[email protected]>
Fixes: sass/node-sass#1334 PR-URL: nodejs#856 Reviewed-By: Ben Noordhuis <[email protected]>
The breaking change introduced in npmlog 2.x was to anyone who was using the log as an event emitter and was listening for error events. Since node-gyp doesn't do these things, it isn't impacted by this change. PR-URL: nodejs#861 Reviewed-By: Rod Vagg <[email protected]>
Properly created -headers.tar.gz files were not available until v0.12.10 and v0.10.42 (in addition to >= 3). PR-URL: nodejs#877 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Johan Bergström <[email protected]>
Deprecate NVM_NODEJS_ORG_MIRROR and NVM_IOJS_ORG_MIRROR as they were only ever intended to be internal nvm environment variables. These will be removed in the next semver-major release. PR-URL: nodejs#878 Reviewed-By: ralphtheninja Reviewed-By: Ben Noordhuis <[email protected]>
When generating Android .mk files, ready to be used within Android build system, we don't need LOCAL_SDK_VERSION specified, since the Android build system already uses the latest one. By specifying LOCAL_SDK_VERSION in Android makefiles, the build using Android build system will fail, because the build system won't set the path to stlport from prebuilts. Signed-off-by: Robert Chiras <[email protected]> PR-URL: nodejs#889 Reviewed-By: Ben Noordhuis <[email protected]>
When looking for a Python executable on Windows, before falling back to guessing the default location or failing completely, attempt to use the Python launcher to figure out the location of the Python executable. The Python launcher is being distributed by default with Python distributions on Windows, and is placed in the %WINDIR% folder (which is in the PATH). This allows us to locate a Python installation even if it was installed without putting the python.exe executable itself into the PATH. Because the Python launcher supports all versions of Python, we have to explicitly request a Python 2 version. This is done by supplying "-2" as the first command line argument. Since "py.exe -2" would be an invalid executable for "execFile", we have to use the launcher to figure out where the actual "python.exe" executable is located. PR-URL: nodejs#894 Reviewed-By: Ben Noordhuis <[email protected]>
Gyp defaults to gcc/g++ if CC.host/CXX.host is unset. This is not suitable for environments that only uses the clang toolchain. Since we already assume that the user will provide clang/clang++ through CC/CXX, lean against it (then drop to gcc/g++). PR-URL: nodejs#908 Refs: nodejs/node#6173 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Johan Bergström <[email protected]>
* Point to the latest release of the VC++ Build Tools. * Simplify and consolidate install instructions for all Windows versions. PR-URL: nodejs#867 Fixes: nodejs#629 Reviewed-By: orangemocha - Alexis Campailla <[email protected]> Reviewed-By: thealphanerd - Myles Borins <[email protected]>
When generating Android.mk files for HOST binaries, we need to specify the LOCAL_CXX_STL to use when linking. Also, set the variable GYP_HOST_MULTILIB to 'first'. This is used as LOCAL_MULTILIB, and since we don't provide flags for both types of builds (32-bit and 64-bit), the build system will try to build both and fail. More details about LOCAL_MULTILIB can be found here: https://source.android.com/source/64-bit-builds.html Signed-off-by: Robert Chiras <[email protected]> PR-URL: nodejs#935 Reviewed-By: Ben Noordhuis <[email protected]>
It will be helpful for native module developers to be aware of any deprecated apis they are using so that they can update before their modules break completely. Module developers can override this option in their binding.gyp if they do not want to see these warnings. PR-URL: nodejs#920 Reviewed-By: Ben Noordhuis <[email protected]>
Matches what npm v2.15.5 and npm v3.8.6 use. Fixes: nodejs#941 PR-URL: nodejs#943 Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Rod Vagg <[email protected]>
Passing --silent is equivalent to passing --loglevel=silent. PR-URL: nodejs#937 Reviewed-By: Ben Noordhuis <[email protected]>
Documents options accepted by node-gyp. PR-URL: nodejs#937 Refs: nodejs#880 Reviewed-By: Ben Noordhuis <[email protected]>
PR-URL: nodejs#930 Reviewed-By: Ben Noordhuis <[email protected]>
npmlog version 3 switches to gauge version 2. The interface change is in setGaugeTemplate, which node-gyp does not use. PR-URL: nodejs#950 Reviewed-By: Ben Noordhuis <[email protected]>
Visual Studio 2015 Update 3 defines __pfnDliNotifyHook2 as const. The decltype specifier makes the declaration work across all supported versions of VS. It also requires that the source be compiled as C++. Fixes: nodejs#949 PR-URL: nodejs#952 Reviewed-By: bnoordhuis - Ben Noordhuis <[email protected]>
PR-URL: nodejs#953 Reviewed-By: Alexis Campailla <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
We were inheriting BUILDING_UV_SHARED and BUILDING_V8_SHARED from the common.gypi from the node.js source tree. Override them with USING_UV_SHARED and USING_V8_SHARED so symbols get tagged with `__declspec(dllimport)` instead of `__declspec(dllexport)`, which is the desired attribute when building add-ons. Fixes: nodejs#914 PR-URL: nodejs#915 Reviewed-By: Benjamin Byholm <[email protected]> Reviewed-By: Fedor Indutny <[email protected]>
PR-URL: nodejs#958 Reviewed-By: Ben Noordhuis <[email protected]>
PR-URL: nodejs#955 Reviewed-By: Ben Noordhuis <[email protected]>
fs.accessSync does not exist in Node 0.10.x. PR-URL: nodejs#955 Reviewed-By: Ben Noordhuis <[email protected]>
PR-URL: nodejs#1944 Reviewed-By: Christian Clauss <[email protected]> Reviewed-By: Richard Lau <[email protected]>
PR-URL: nodejs#1947 Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Richard Lau <[email protected]>
PR-URL: nodejs#1925 Reviewed-By: Christian Clauss <[email protected]> Reviewed-By: Richard Lau <[email protected]>
PR-URL: nodejs#1940 Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: Jiawen Geng <[email protected]>
PR-URL: nodejs#1935 Reviewed-By: João Reis <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Christian Clauss <[email protected]>
test/test-configure-python.js downloads a fresh set of headers to the package directory each time. By setting to the default global cache dir we get to re-use cached headers and skip the download step. PR-URL: nodejs#1796 Reviewed-By: Richard Lau <[email protected]>
PR-URL: nodejs#1796 Reviewed-By: Richard Lau <[email protected]>
These steps have proven effective for some users. PR-URL: nodejs#1962 Reviewed-By: Rod Vagg <[email protected]>
PR-URL: nodejs#1961 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: João Reis <[email protected]>
PR-URL: nodejs#1971 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Jiawen Geng <[email protected]> Reviewed-By: Jiawen Geng <[email protected]>
PR-URL: nodejs#1985 Reviewed-By: Christian Clauss <[email protected]> Reviewed-By: Jiawen Geng <[email protected]>
Running Python standalone tests on multiple OSes would free up Travis CI for tests of various combinations of Node.js and Python as well as tests on other [CPU architectures](https://docs.travis-ci.com/user/multi-cpu-architectures). __arch: amd64, arm64, ppc64le, s390x__ PR-URL: nodejs#1985 Reviewed-By: Rod Vagg <[email protected]> Reviewed-By: Jiawen Geng <[email protected]>
Uses `pyenv` to manage MacOS python versions since its not included in the environment. rvagg: landing this from nodejs#1979 even though it wasn't from the original author. Treating approval there as approval of this commit too. PR-URL: nodejs#1979 Reviewed-By: Rod Vagg <[email protected]>
Reorder Travis builds by OS. Replace `pyenv global` calls with properly set `PATH` and `PYENV_VERSION` env vars. Does not assume python modules are in the `PATH` so all python modules are prefixed with `python -m`. PR-URL: nodejs#1979 Reviewed-By: Christian Clauss <[email protected]> Reviewed-By: Rod Vagg <[email protected]>
PR-URL: nodejs#1978 Reviewed-By: Rod Vagg <[email protected]>
PR-URL: nodejs#2001 Reviewed-By: Christian Clauss <[email protected]> Reviewed-By: Rod Vagg <[email protected]>
PR-URL: nodejs#1996 Reviewed-By: Jiawen Geng <[email protected]>
PR-URL: nodejs#1992 Reviewed-By: Christian Clauss <[email protected]> Reviewed-By: Jiawen Geng <[email protected]>
PR-URL: nodejs#1993 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Jiawen Geng <[email protected]>
PR-URL: nodejs#1994 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Christian Clauss <[email protected]> Reviewed-By: Jiawen Geng <[email protected]>
Fixes nodejs#1998 Reviewed-By: Rod Vagg <[email protected]> PR-URL: nodejs#2009
Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Christian Clauss <[email protected]> PR-URL: nodejs#2011
Fixes: nodejs#2005 Reviewed-By: Rod Vagg <[email protected]> PR-URL: nodejs#2006
I hope this gets merged |
@rogerwang - could you check if this is all good? It will be really nice to be up to the latest node-gyp |
Thanks for the PR, but please rebase the nw-gyp patches to the new upstream version, rather than merging them into one commit. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Manually tested a few native modules in both windows 7 and macOS Mojave with nw 0.44, looks ok.