|
@ -1,7 +1,8 @@ |
|
|
{ |
|
|
{ |
|
|
'variables': { |
|
|
'variables': { |
|
|
# Set the location of GTK all-in-one bundle |
|
|
'GTK_Root%': 'C:/GTK', # Set the location of GTK all-in-one bundle |
|
|
'GTK_Root': 'C:/GTK', |
|
|
'with_jpeg%': 'false', |
|
|
|
|
|
'with_gif%': 'false' |
|
|
}, |
|
|
}, |
|
|
'targets': [ |
|
|
'targets': [ |
|
|
{ |
|
|
{ |
|
@ -17,14 +18,57 @@ |
|
|
'src/init.cc', |
|
|
'src/init.cc', |
|
|
'src/PixelArray.cc', |
|
|
'src/PixelArray.cc', |
|
|
], |
|
|
], |
|
|
'libraries': ['-l<(GTK_Root)/lib/cairo.lib' ], |
|
|
'conditions': [ |
|
|
|
|
|
['OS=="win"', { |
|
|
|
|
|
'libraries': [ |
|
|
|
|
|
'-l<(GTK_Root)/lib/cairo.lib' |
|
|
|
|
|
], |
|
|
'include_dirs': [ |
|
|
'include_dirs': [ |
|
|
'<(GTK_Root)/include/cairo', |
|
|
'<(GTK_Root)/include', |
|
|
], |
|
|
], |
|
|
'defines': [ |
|
|
'defines': [ |
|
|
'snprintf=_snprintf', |
|
|
'snprintf=_snprintf', |
|
|
'_USE_MATH_DEFINES' # for M_PI |
|
|
'_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' |
|
|
|
|
|
] |
|
|
|
|
|
}] |
|
|
|
|
|
] |
|
|
|
|
|
}] |
|
|
|
|
|
] |
|
|
} |
|
|
} |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|