Browse Source

build: add linking with pixman & cairo on unix, and add the HAVE_JPEG and HAVE_GIF defines

v1.x
Nathan Rajlich 13 years ago
parent
commit
95947e0c1c
  1. 23
      binding.gyp

23
binding.gyp

@ -1,6 +1,8 @@
{
'variables': {
'GTK_Root': 'C:/GTK' # Set the location of GTK all-in-one bundle
'GTK_Root%': 'C:/GTK', # Set the location of GTK all-in-one bundle
'with_jpeg%': 'false',
'with_gif%': 'false'
},
'targets': [
{
@ -18,7 +20,9 @@
],
'conditions': [
['OS=="win"', {
'libraries': ['-l<(GTK_Root)/lib/cairo.lib' ],
'libraries': [
'-l<(GTK_Root)/lib/cairo.lib'
],
'include_dirs': [
'<(GTK_Root)/include',
],
@ -26,6 +30,21 @@
'snprintf=_snprintf',
'_USE_MATH_DEFINES' # for M_PI
]
}, { # 'OS!="win"'
'libraries': [
'-lpixman-1',
'-lcairo'
],
}],
['with_jpeg=="true"', {
'defines': [
'HAVE_JPEG=1'
]
}],
['with_gif=="true"', {
'defines': [
'HAVE_GIF=1'
]
}]
]
}

Loading…
Cancel
Save