From d9eabb9f53853f7ab93f96ce10b52ca80e515c0e Mon Sep 17 00:00:00 2001 From: Milan Gardian Date: Thu, 26 Jun 2014 14:15:09 -0600 Subject: [PATCH] On Windows, copy required DLLs next to ".node" file --- binding.gyp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/binding.gyp b/binding.gyp index 95f72d2..b4f9162 100644 --- a/binding.gyp +++ b/binding.gyp @@ -19,6 +19,25 @@ }] ], 'targets': [ + { + 'target_name': 'canvas-postbuild', + 'dependencies': ['canvas'], + 'conditions': [ + ['OS=="win"', { + 'copies': [{ + 'destination': '<(PRODUCT_DIR)', + 'files': [ + '<(GTK_Root)/bin/libcairo-2.dll', + '<(GTK_Root)/bin/libexpat-1.dll', + '<(GTK_Root)/bin/libfontconfig-1.dll', + '<(GTK_Root)/bin/libfreetype-6.dll', + '<(GTK_Root)/bin/libpng14-14.dll', + '<(GTK_Root)/bin/zlib1.dll', + ] + }] + }] + ] + }, { 'target_name': 'canvas', 'include_dirs': ["