Comparing version 0.6.11 to 0.7.0
@@ -22,6 +22,7 @@ | ||
var makeCommand = gyp.opts.make || process.env.MAKE | ||
|| (process.platform.indexOf('bsd') != -1 ? 'gmake' : 'make') | ||
var command = win ? 'msbuild' : makeCommand | ||
|| (process.platform.indexOf('bsd') != -1 ? 'gmake' : 'make') | ||
, command = win ? 'msbuild' : makeCommand | ||
, buildDir = path.resolve('build') | ||
, configPath = path.resolve(buildDir, 'config.gypi') | ||
, jobs = gyp.opts.jobs || process.env.JOBS | ||
, buildType | ||
@@ -193,2 +194,9 @@ , config | ||
argv.push('/p:Configuration=' + buildType + ';Platform=' + p) | ||
if (jobs) { | ||
if (!isNaN(parseInt(jobs, 10))) { | ||
argv.push('/m:' + parseInt(jobs, 10)) | ||
} else if (jobs.toUpperCase() === 'MAX') { | ||
argv.push('/m:' + require('os').cpus().length) | ||
} | ||
} | ||
} else { | ||
@@ -199,2 +207,11 @@ argv.push('BUILDTYPE=' + buildType) | ||
argv.push('build') | ||
if (jobs) { | ||
if (!isNaN(parseInt(jobs, 10))) { | ||
argv.push('--jobs') | ||
argv.push(parseInt(jobs, 10)) | ||
} else if (jobs.toUpperCase() === 'MAX') { | ||
argv.push('--jobs') | ||
argv.push(require('os').cpus().length) | ||
} | ||
} | ||
} | ||
@@ -201,0 +218,0 @@ |
@@ -26,3 +26,3 @@ | ||
var python = process.env.PYTHON || gyp.opts.python || 'python' | ||
var python = gyp.opts.python || process.env.PYTHON || 'python' | ||
, buildDir = path.resolve('build') | ||
@@ -29,0 +29,0 @@ , hasVCExpress = false |
@@ -22,3 +22,2 @@ | ||
, mkdir = require('mkdirp') | ||
, distUrl = 'http://nodejs.org/dist' | ||
, win = process.platform == 'win32' | ||
@@ -43,3 +42,5 @@ | ||
var distUrl = gyp.opts['dist-url'] || 'http://nodejs.org/dist' | ||
// Determine which node dev files version we are installing | ||
@@ -46,0 +47,0 @@ var versionStr = argv[0] || gyp.opts.target || process.version |
@@ -87,2 +87,4 @@ | ||
, python: String // 'configure' | ||
, 'dist-url': String // 'install' | ||
, jobs: String // 'build' | ||
} | ||
@@ -89,0 +91,0 @@ |
{ "name": "node-gyp" | ||
, "description": "Node.js native addon build tool" | ||
, "keywords": [ "native", "addon", "module", "c", "c++", "bindings", "gyp" ] | ||
, "version": "0.6.11" | ||
, "version": "0.7.0" | ||
, "installVersion": 9 | ||
@@ -6,0 +6,0 @@ , "author": "Nathan Rajlich <nathan@tootallnate.net> (http://tootallnate.net)" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
923901
1286
19