From 83ebe120610e81e4785536c0db171e71cf682865 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Thu, 22 Jan 2015 14:17:20 +0000 Subject: [PATCH] Remove atexit handler as libvips defines this New grunt-sharp build tool Version bump for latest libvips --- README.md | 6 ++++-- preinstall.sh | 2 +- src/sharp.cc | 12 +----------- 3 files changed, 6 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index c44ac16d..e90a0692 100755 --- a/README.md +++ b/README.md @@ -82,9 +82,11 @@ The _gettext_ dependency of _libvips_ [can lead](https://github.com/lovell/sharp docker pull marcbachmann/libvips -### gulp.js +### Build tools -[Eugeny Vlasenko](https://github.com/mahnunchik) maintains [gulp-responsive](https://www.npmjs.org/package/gulp-responsive) and [Mohammad Prabowo](https://github.com/rizalp) maintains [gulp-sharp](https://www.npmjs.org/package/gulp-sharp). +* [gulp-responsive](https://www.npmjs.com/package/gulp-responsive) +* [gulp-sharp](https://www.npmjs.com/package/gulp-sharp) +* [grunt-sharp](https://www.npmjs.com/package/grunt-sharp) ## Usage examples diff --git a/preinstall.sh b/preinstall.sh index b7f71aab..2569fa85 100755 --- a/preinstall.sh +++ b/preinstall.sh @@ -14,7 +14,7 @@ vips_version_minimum=7.40.0 vips_version_latest_major=7.42 -vips_version_latest_minor=0 +vips_version_latest_minor=1 install_libvips_from_source() { echo "Compiling libvips $vips_version_latest_major.$vips_version_latest_minor from source" diff --git a/src/sharp.cc b/src/sharp.cc index fbce3150..639a43b0 100755 --- a/src/sharp.cc +++ b/src/sharp.cc @@ -8,19 +8,9 @@ #include "resize.h" #include "utilities.h" -using v8::Handle; -using v8::Object; -using node::AtExit; - -static void at_exit(void* arg) { - NanScope(); - vips_shutdown(); -} - -extern "C" void init(Handle target) { +extern "C" void init(v8::Handle target) { NanScope(); vips_init("sharp"); - AtExit(at_exit); // Set libvips operation cache limits vips_cache_set_max_mem(100 * 1048576); // 100 MB