TJ Holowaychuk
13 years ago
6 changed files with 73 additions and 29 deletions
@ -1,30 +1,74 @@ |
|||
{ |
|||
'variables': { |
|||
# Set the location of GTK all-in-one bundle |
|||
'GTK_Root': 'C:/GTK', |
|||
'GTK_Root%': 'C:/GTK', # Set the location of GTK all-in-one bundle |
|||
'with_jpeg%': 'false', |
|||
'with_gif%': 'false' |
|||
}, |
|||
'targets': [ |
|||
{ |
|||
'target_name': 'canvas', |
|||
'sources': [ |
|||
'src/Canvas.cc', |
|||
'src/CanvasGradient.cc', |
|||
'src/CanvasPattern.cc', |
|||
'src/CanvasRenderingContext2d.cc', |
|||
'src/color.cc', |
|||
'src/Image.cc', |
|||
'src/ImageData.cc', |
|||
'src/init.cc', |
|||
'src/PixelArray.cc', |
|||
], |
|||
'libraries': ['-l<(GTK_Root)/lib/cairo.lib' ], |
|||
'include_dirs': [ |
|||
'<(GTK_Root)/include/cairo', |
|||
], |
|||
'defines': [ |
|||
'snprintf=_snprintf', |
|||
'_USE_MATH_DEFINES' # for M_PI |
|||
], |
|||
'src/Canvas.cc', |
|||
'src/CanvasGradient.cc', |
|||
'src/CanvasPattern.cc', |
|||
'src/CanvasRenderingContext2d.cc', |
|||
'src/color.cc', |
|||
'src/Image.cc', |
|||
'src/ImageData.cc', |
|||
'src/init.cc', |
|||
'src/PixelArray.cc', |
|||
], |
|||
'conditions': [ |
|||
['OS=="win"', { |
|||
'libraries': [ |
|||
'-l<(GTK_Root)/lib/cairo.lib' |
|||
], |
|||
'include_dirs': [ |
|||
'<(GTK_Root)/include', |
|||
], |
|||
'defines': [ |
|||
'snprintf=_snprintf', |
|||
'_USE_MATH_DEFINES' # for M_PI |
|||
] |
|||
}, { # 'OS!="win"' |
|||
'libraries': [ |
|||
'-lpixman-1', |
|||
'-lcairo' |
|||
], |
|||
}], |
|||
['with_jpeg=="true"', { |
|||
'defines': [ |
|||
'HAVE_JPEG' |
|||
], |
|||
'conditions': [ |
|||
['OS=="win"', { |
|||
'libraries': [ |
|||
'-l<(GTK_Root)/lib/jpeg.lib' |
|||
] |
|||
}, { |
|||
'libraries': [ |
|||
'-ljpeg' |
|||
] |
|||
}] |
|||
] |
|||
}], |
|||
['with_gif=="true"', { |
|||
'defines': [ |
|||
'HAVE_GIF' |
|||
], |
|||
'conditions': [ |
|||
['OS=="win"', { |
|||
'libraries': [ |
|||
'-l<(GTK_Root)/lib/gif.lib' |
|||
] |
|||
}, { |
|||
'libraries': [ |
|||
'-lgif' |
|||
] |
|||
}] |
|||
] |
|||
}] |
|||
] |
|||
} |
|||
] |
|||
} |
|||
|
Loading…
Reference in new issue