deps-freeimage-raub
Advanced tools
Comparing version 3.1.1 to 4.0.0
'use strict'; | ||
module.exports = require('addon-tools-raub').paths(__dirname); | ||
module.exports = require('addon-tools-raub').getPaths(__dirname); |
'use strict'; | ||
const install = require('addon-tools-raub/install'); | ||
const { install } = require('addon-tools-raub'); | ||
const prefix = 'https://github.com/node-3d/deps-freeimage-raub/releases/download'; | ||
const tag = '3.1.0'; | ||
const tag = '4.0.0'; | ||
install(`${prefix}/${tag}`); |
{ | ||
"author": "Luis Blanco <luisblanco1337@gmail.com>", | ||
"name": "deps-freeimage-raub", | ||
"version": "3.1.1", | ||
"version": "4.0.0", | ||
"description": "Binaries and headers for FreeImage-dependent compilation", | ||
@@ -40,23 +40,9 @@ "license": "MIT", | ||
"eslint": "eslint .", | ||
"test": "jest --coverage=false --watch", | ||
"test-ci": "jest --coverage=false --verbose", | ||
"test-coverage": "rm -rf doc/jest && jest --coverage --silent" | ||
"test": "jest --coverage=false --watch --config=conf/jest.json", | ||
"test-ci": "jest --coverage=false --verbose --config=conf/jest.json", | ||
"test-coverage": "rm -rf doc/jest && jest --coverage --silent --config=conf/jest.json" | ||
}, | ||
"jest": { | ||
"testEnvironment": "node", | ||
"testMatch": [ | ||
"**/*.test.js" | ||
], | ||
"coverageDirectory": "doc/jest", | ||
"coverageReporters": [ | ||
"lcov" | ||
], | ||
"collectCoverageFrom": [ | ||
"**/*.js", | ||
"!**/*.test.js" | ||
] | ||
}, | ||
"engines": { | ||
"node": ">=16.17.0", | ||
"npm": ">=8.15.0" | ||
"node": ">=18.12.1", | ||
"npm": ">=8.19.2" | ||
}, | ||
@@ -68,13 +54,12 @@ "repository": { | ||
"dependencies": { | ||
"adm-zip": "^0.5.9", | ||
"addon-tools-raub": "^6.0.2" | ||
"addon-tools-raub": "^7.0.0" | ||
}, | ||
"devDependencies": { | ||
"eslint-plugin-jest": "^27.1.6", | ||
"eslint-plugin-jest": "^27.2.0", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint": "^8.28.0", | ||
"eslint": "^8.31.0", | ||
"jest": "^29.3.1", | ||
"node-addon-api": "^5.0.0", | ||
"typescript": "^4.9.3" | ||
"typescript": "^4.9.4" | ||
} | ||
} |
@@ -5,3 +5,3 @@ # FreeImage binaries | ||
[![NPM](https://nodei.co/npm/deps-freeimage-raub.png?compact=true)](https://www.npmjs.com/package/deps-freeimage-raub) | ||
[![NPM](https://badge.fury.io/js/deps-freeimage-raub.svg)](https://badge.fury.io/js/deps-freeimage-raub) | ||
[![CodeFactor](https://www.codefactor.io/repository/github/node-3d/deps-freeimage-raub/badge)](https://www.codefactor.io/repository/github/node-3d/deps-freeimage-raub) | ||
@@ -16,5 +16,4 @@ | ||
* Platforms (x64): Windows, Linux, OSX. | ||
* Platforms (x64): Windows x64, Linux x64, OSX x64, Linux Aarch64. | ||
* Library: FreeImage. | ||
* Linking: static dll-type. | ||
@@ -24,84 +23,20 @@ | ||
### Example binding.gyp | ||
### JS Interface | ||
As in [image-raub](https://github.com/node-3d/image-raub/tree/master/src) Node.js addon. | ||
See in [image-raub](https://github.com/node-3d/image-raub/blob/master/core.js) Node.js addon. | ||
```javascript | ||
{ | ||
'variables': { | ||
'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': 'image', | ||
'sources': [ | ||
'cpp/bindings.cpp', | ||
'cpp/image.cpp', | ||
], | ||
'include_dirs': [ | ||
'<(fi_include)', | ||
'<!@(node -p "require(\'addon-tools-raub\').include")', | ||
], | ||
'cflags!': ['-fno-exceptions'], | ||
'cflags_cc!': ['-fno-exceptions'], | ||
'library_dirs': ['<(fi_bin)'], | ||
'conditions': [ | ||
[ | ||
'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'] | ||
}, | ||
}, | ||
} | ||
], | ||
], | ||
}, | ||
] | ||
} | ||
``` | ||
### binding.gyp | ||
See in [image-raub](https://github.com/node-3d/image-raub/tree/master/src/binding.gyp) Node.js addon. | ||
### addon.cpp | ||
See in [image-raub](https://github.com/node-3d/image-raub/blob/master/src/cpp/image.hpp) Node.js addon. | ||
### addon.cpp | ||
```cpp | ||
@@ -108,0 +43,0 @@ #include <FreeImage.h> |
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
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
1
139983
59
+ Addedaddon-tools-raub@7.4.0(transitive)
- Removedadm-zip@^0.5.9
- Removedaddon-tools-raub@6.3.0(transitive)
- Removedadm-zip@0.5.16(transitive)
Updatedaddon-tools-raub@^7.0.0