{
     'variables': {
         'with_png%':  'true',
         'with_jpeg%': 'true',
         'with_gif%':  'true',
         'with_webp%': 'true',
         'with_bmp%':  'false',
         'with_raw%':  'true',
     },
    'targets': [{
        'target_name': 'binding',
        'sources': [
            'src/Image.cc',
            'src/Resize.cc',
            'src/resampler.cpp'
        ],
        "include_dirs" : [
        ],
        'conditions': [
            ['with_png=="true"', {
                'defines': ['HAVE_PNG'],
                'sources': ['src/Png.cc'],
                'dependencies': [
                    'gyp/libpng.gyp:libpng',
                ]
            }],
            ['with_jpeg=="true"', {
                'defines': ['HAVE_JPEG'],
                'sources': ['src/Jpeg.cc'],
                'dependencies': [
                    'gyp/libjpeg-turbo.gyp:libjpeg-turbo',
                ]
            }],
            ['with_gif=="true"', {
                'defines': ['HAVE_GIF'],
                'sources': ['src/Gif.cc'],
                'dependencies': [
                    'gyp/giflib.gyp:giflib',
                ]
            }],
            ['with_webp=="true"', {
                'defines': ['HAVE_WEBP'],
                'sources': ['src/Webp.cc'],
                'dependencies': [
                    'gyp/libwebp.gyp:libwebp',
                ]
            }],
            ['with_bmp=="true"', {
                'defines': ['HAVE_BMP'],
                'sources': ['src/Bmp.cc']
            }],
            ['with_raw=="true"', {
                'defines': ['HAVE_RAW'],
                'sources': ['src/Raw.cc']
            }]
        ]
    }]
}

@@ -623,16 +623,20 @@
    'gyp/
+gyp/
 libpng.g
@@ -862,16 +862,20 @@
    'gyp/
+gyp/
 libjpeg-
@@ -1112,16 +1112,20 @@
    'gyp/
+gyp/
 giflib.g
@@ -1192,27 +1192,28 @@
 with_webp==%22
-tru
+fals
 e%22', %7B%0A     
@@ -1352,16 +1352,20 @@
    'gyp/
+gyp/
 libwebp.

update binding.gyp