deps-freeimage-raub
Advanced tools
Comparing version 1.1.1 to 2.0.0
{ | ||
"author": "Luis Blanco <luisblanco1337@gmail.com>", | ||
"name": "deps-freeimage-raub", | ||
"version": "1.1.1", | ||
"version": "2.0.0", | ||
"description": "Binaries and headers for FreeImage-dependent compilation", | ||
@@ -27,13 +27,21 @@ "license": "MIT", | ||
], | ||
"files": [ | ||
"include", | ||
"index.js", | ||
"install.js", | ||
"FREEIMAGE_FIPL", | ||
"LICENSE", | ||
"package.json", | ||
"README.md" | ||
], | ||
"config": { | ||
"install": "v2.0.0" | ||
}, | ||
"scripts": { | ||
"postinstall": "node install" | ||
}, | ||
"engines": { | ||
"node": ">=10.13.0", | ||
"npm": ">=6.4.1" | ||
"node": ">=12.13.0", | ||
"npm": ">=6.12.0" | ||
}, | ||
"maintainers": [ | ||
{ | ||
"name": "Luis Blanco", | ||
"email": "luisblanco1337@gmail.com", | ||
"skype": "rauber666" | ||
} | ||
], | ||
"repository": { | ||
@@ -44,4 +52,4 @@ "type": "git", | ||
"dependencies": { | ||
"addon-tools-raub": "4.2.0" | ||
"addon-tools-raub": "5.0.0" | ||
} | ||
} |
106
README.md
@@ -10,3 +10,3 @@ # FreeImage binaries | ||
> npm i -s deps-freeimage-raub | ||
> npm i deps-freeimage-raub | ||
@@ -16,6 +16,6 @@ | ||
This dependency package is distributing **FreeImage** | ||
This dependency package is distributing **FreeImage 3.17** | ||
binaries through **NPM** for **Node.js** addons. | ||
* Platforms: win x32/x64, linux x64, mac x64. | ||
* Platforms (x64): Windows, Linux, OSX. | ||
* Library: FreeImage. | ||
@@ -27,45 +27,79 @@ * Linking: static dll-type. | ||
### binding.gyp | ||
### Example binding.gyp | ||
As in [image-raub](https://github.com/node-3d/image-raub/tree/master/src) Node.js addon. | ||
```javascript | ||
{ | ||
'variables': { | ||
'freeimage_include' : '<!(node -e "require(\'deps-freeimage-raub\').include()")', | ||
'freeimage_bin' : '<!(node -e "require(\'deps-freeimage-raub\').bin()")', | ||
'bin' : '<!(node -p "require(\'addon-tools-raub\').bin")', | ||
'fi_include' : '<!(node -p "require(\'deps-freeimage-raub\').include")', | ||
'fi_bin' : '<!(node -p "require(\'deps-freeimage-raub\').bin")', | ||
}, | ||
... | ||
'targets': [ | ||
{ | ||
'target_name': '...', | ||
'target_name': 'image', | ||
'sources': [ | ||
'cpp/bindings.cpp', | ||
'cpp/image.cpp', | ||
], | ||
'include_dirs': [ | ||
'<(freeimage_include)', | ||
... | ||
'<(fi_include)', | ||
'<!@(node -p "require(\'addon-tools-raub\').include")', | ||
], | ||
'library_dirs': [ '<(freeimage_bin)' ], | ||
'cflags!': ['-fno-exceptions'], | ||
'cflags_cc!': ['-fno-exceptions'], | ||
'library_dirs': ['<(fi_bin)'], | ||
'conditions': [ | ||
['OS=="linux"', { | ||
'libraries': [ | ||
'-Wl,-rpath,<(freeimage_bin)', | ||
'<(freeimage_bin)/freeimage.so', | ||
... | ||
], | ||
}], | ||
['OS=="mac"', { | ||
'libraries': [ | ||
'-Wl,-rpath,<(freeimage_bin)', | ||
'<(freeimage_bin)/freeimage.dylib', | ||
... | ||
], | ||
}], | ||
['OS=="win"', { | ||
'libraries': [ 'FreeImage.lib', ... ], | ||
}], | ||
[ | ||
'OS=="linux"', | ||
{ | ||
'libraries': [ | ||
"-Wl,-rpath,'$$ORIGIN'", | ||
"-Wl,-rpath,'$$ORIGIN/../node_modules/deps-freeimage-raub/<(bin)'", | ||
"-Wl,-rpath,'$$ORIGIN/../../deps-freeimage-raub/<(bin)'", | ||
'<(fi_bin)/libfreeimage.so.3', | ||
], | ||
} | ||
], | ||
[ | ||
'OS=="mac"', | ||
{ | ||
'libraries': [ | ||
'-Wl,-rpath,@loader_path', | ||
'-Wl,-rpath,@loader_path/../node_modules/deps-freeimage-raub/<(bin)', | ||
'-Wl,-rpath,@loader_path/../../deps-freeimage-raub/<(bin)', | ||
'<(fi_bin)/freeimage.dylib', | ||
], | ||
'xcode_settings': { | ||
'DYLIB_INSTALL_NAME_BASE': '@rpath', | ||
}, | ||
} | ||
], | ||
[ | ||
'OS=="win"', | ||
{ | ||
'libraries': ['FreeImage.lib'], | ||
'defines' : [ | ||
'WIN32_LEAN_AND_MEAN', | ||
'VC_EXTRALEAN' | ||
], | ||
'msvs_version' : '2013', | ||
'msvs_settings' : { | ||
'VCCLCompilerTool' : { | ||
'AdditionalOptions' : [ | ||
'/O2','/Oy','/GL','/GF','/Gm-','/EHsc', | ||
'/MT','/GS','/Gy','/GR-','/Gd', | ||
] | ||
}, | ||
'VCLinkerTool' : { | ||
'AdditionalOptions' : ['/OPT:REF','/OPT:ICF','/LTCG'] | ||
}, | ||
}, | ||
} | ||
], | ||
], | ||
}, | ||
] | ||
} | ||
``` | ||
@@ -80,3 +114,5 @@ | ||
Refer to [FreeImage 3.17 docs](http://mirrors.dotsrc.org/pub/exherbo/FreeImage3170.pdf). | ||
## Legal notice | ||
@@ -83,0 +119,0 @@ |
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
7
132
1
81535
7
1
1
+ Addedaddon-tools-raub@5.0.0(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbig-integer@1.6.52(transitive)
+ Addedbinary@0.3.0(transitive)
+ Addedbluebird@3.4.7(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbuffer-indexof-polyfill@1.0.2(transitive)
+ Addedbuffers@0.1.1(transitive)
+ Addedchainsaw@0.1.0(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedduplexer2@0.1.4(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfstream@1.0.12(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedlistenercount@1.0.1(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addednode-addon-api@1.7.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedrimraf@2.7.1(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedsetimmediate@1.0.5(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedtraverse@0.3.9(transitive)
+ Addedunzipper@0.10.5(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedaddon-tools-raub@4.2.0(transitive)
- Removednan@2.12.1(transitive)
Updatedaddon-tools-raub@5.0.0