-
Notifications
You must be signed in to change notification settings - Fork 37
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
refactored binding.gyp #32
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,28 @@ | ||
# https://www.appveyor.com/docs/lang/nodejs-iojs/#testing-under-multiple-versions-of-nodejs-or-iojs | ||
environment: | ||
fast_finish: true | ||
matrix: | ||
- nodejs_version: "6" | ||
platform: x64 | ||
- nodejs_version: "6" | ||
platform: x86 | ||
- nodejs_version: "7" | ||
platform: x64 | ||
- nodejs_version: "7" | ||
platform: x86 | ||
- nodejs_version: "5" | ||
platform: x64 | ||
- nodejs_version: "5" | ||
platform: x86 | ||
- nodejs_version: "4" | ||
platform: x86 | ||
- nodejs_version: "4" | ||
platform: x64 | ||
- nodejs_version: "5" | ||
- nodejs_version: "6" | ||
|
||
platform: | ||
- x86 | ||
- x64 | ||
|
||
install: | ||
# From https://github.com/nodejs/nan/blob/master/appveyor.yml | ||
- ps: Install-Product node $env:nodejs_version | ||
- ps: Update-NodeJsInstallation (Get-NodeJsLatestBuild $env:nodejs_version) $env:platform | ||
- ps: Install-Product node $env:nodejs_version $env:platform | ||
- node -p process.arch | ||
- node -p process.version | ||
# Temporary workaround for https://github.com/nodejs/node-gyp/pull/952 | ||
# and https://github.com/addaleax/lzma-native/issues/30 | ||
- npm install [email protected] | ||
- npm install [email protected] | ||
- IF %nodejs_version% LSS 1 npm -g install npm | ||
- IF %nodejs_version% LSS 1 set PATH=%APPDATA%\npm;%PATH% | ||
- npm run prepare | ||
- npm install --build-from-source | ||
- node_modules\.bin\node-pre-gyp package --target_arch=%PLATFORM:x86=ia32% %NPG_ARGS% | ||
- set GYP_TARGET_ARCH=%PLATFORM:x86=ia32% | ||
- echo %GYP_TARGET_ARCH% | ||
- npm install --build-from-source --target_arch=%GYP_TARGET_ARCH% | ||
- node_modules\.bin\node-pre-gyp package --target_arch=%GYP_TARGET_ARCH% %NPG_ARGS% | ||
- move build\stage\lzma-native lzma-native | ||
|
||
test_script: | ||
|
@@ -58,8 +49,5 @@ deploy: | |
on: | ||
appveyor_repo_tag: true | ||
|
||
matrix: | ||
fast_finish: true | ||
|
||
cache: | ||
- node_modules |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,22 +55,33 @@ | |
} | ||
] | ||
}, { | ||
"conditions": [ | ||
[ 'target_arch=="x64"', { | ||
'variables': { | ||
"arch_lib_path" : 'bin_x86-64', | ||
"arch_lib_code" : 'x64' | ||
} | ||
}, { | ||
'variables': { | ||
"arch_lib_path" : 'bin_i686', | ||
"arch_lib_code" : 'ix86' | ||
} | ||
} ] | ||
], | ||
"actions" : [ | ||
{ | ||
"msvs_quote_cmd": 0, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This kills the regression in |
||
"action_name" : "build", | ||
'inputs': ['deps/doc/liblzma.def'], | ||
'outputs': [''], | ||
"conditions": [ | ||
[ 'target_arch=="x64"', { | ||
'action': [ | ||
'lib -def:"<(module_root_dir)\\deps\\doc\\liblzma.def" -out:"<(module_root_dir)\\deps\\bin_x86-64\\lzma.lib" -machine:x64 && if not exist <(dlldir) mkdir <(dlldir) && copy "<(module_root_dir)\\deps\\bin_x86-64\\liblzma.dll" "<(dlldir)\\liblzma.dll"' | ||
] | ||
}, { | ||
'action': [ | ||
'lib -def:"<(module_root_dir)\\deps\\doc\\liblzma.def" -out:"<(module_root_dir)\\deps\\bin_i686\\lzma.lib" -machine:ix86 && if not exist <(dlldir) mkdir <(dlldir) && copy "<(module_root_dir)\\deps\\bin_i686\\liblzma.dll" "<(dlldir)\\liblzma.dll"' | ||
] | ||
} ] | ||
] | ||
'action': ['lib.exe -def:"<(module_root_dir)/deps/doc/liblzma.def" -out:"<(module_root_dir)/deps/<(arch_lib_path)/lzma.lib" -machine:<(arch_lib_code)'] | ||
}, | ||
{ | ||
"msvs_quote_cmd": 0, | ||
"action_name" : "deploy", | ||
'inputs': ['deps/<(arch_lib_path)/liblzma.dll'], | ||
'outputs': ['<(dlldir)/liblzma.dll'], | ||
'action': ['mkdir <(dlldir) > nul 2>&1 & copy "<(module_root_dir)/deps/<(arch_lib_path)/liblzma.dll" <(dlldir)/liblzma.dll'] | ||
} | ||
] | ||
} ], | ||
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AppVeyor now does it on it's own according tonodejs_version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://www.appveyor.com/docs/lang/nodejs-iojs/#testing-under-multiple-versions-of-nodejs-or-iojs