opencv4nodejs-prebuilt
Advanced tools
Comparing version 4.15.0 to 4.15.1-beta2
const path = require('path'); | ||
const opencvBuild = require(`@nut-tree/opencv-build-${process.platform}`); | ||
const { resolvePath } = require('./commons'); | ||
// ensure binaries are added to path on windows | ||
if (process.platform === 'win32') { | ||
// append opencv binary path to node process | ||
if (!process.env.path.includes(opencvBuild.opencvBinDir)) { | ||
process.env.path = `${process.env.path};${opencvBuild.opencvBinDir};` | ||
} | ||
} | ||
let cv; | ||
@@ -14,0 +5,0 @@ if (process.env.BINDINGS_DEBUG) { |
const opencvBuild = require(`@nut-tree/opencv-build-${process.platform}`); | ||
const { resolvePath, getLibDir, linkSystemLibs } = require('./commons'); | ||
const desiredModules = [ | ||
"core", | ||
"imgcodecs", | ||
"imgproc" | ||
]; | ||
function linkLibs(libs) { | ||
@@ -23,4 +29,8 @@ libs | ||
// if not windows, link libs dynamically | ||
console.log('-L' + resolvePath(opencvBuild.opencvLibDir)); | ||
opencvBuild.opencvModules.forEach(lib => console.log(`-lopencv_${lib}`)); | ||
console.log('-Wl,-rpath,' + resolvePath(opencvBuild.opencvLibDir)); | ||
console.log(`-L<(PRODUCT_DIR)`); | ||
opencvBuild.opencvModules.filter(lib => desiredModules.includes(lib)).forEach(lib => console.log(`-lopencv_${lib}`)); | ||
if (process.env.BINDINGS_DEBUG) { | ||
console.log('-Wl,-rpath,../build/Debug/opencv4nodejs'); | ||
} else { | ||
console.log('-Wl,-rpath,../build/Release/opencv4nodejs'); | ||
} |
{ | ||
"name": "opencv4nodejs-prebuilt", | ||
"version": "4.15.0", | ||
"version": "4.15.1-beta2", | ||
"description": "This is a fork of opencv4nodejs which provides pre-built binaries", | ||
@@ -36,10 +36,9 @@ "keywords": [ | ||
"scripts": { | ||
"preinstall": "node ./install.js", | ||
"install": "node-gyp rebuild > build.log 2>&1", | ||
"install": "prebuild-install --verbose || (node ./install.js && node-gyp rebuild)", | ||
"configure": "node-gyp configure", | ||
"build": "node-gyp configure build", | ||
"rebuild": "node-gyp rebuild", | ||
"build": "node ./install.js && node-gyp configure build", | ||
"rebuild": "node ./install.js && node-gyp rebuild", | ||
"clean": "node-gyp clean", | ||
"prebuild": "prebuild", | ||
"build-debug": "node-gyp rebuild --debug" | ||
"prebuild": "node ./install.js && prebuild", | ||
"build-debug": "node ./install.js && node-gyp rebuild --debug" | ||
}, | ||
@@ -59,3 +58,3 @@ "gypfile": true, | ||
}, | ||
"opencv": "3.4.6-local" | ||
"opencv": "3.4.6-patch" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
10512594
2271
0
14
161
1