forked from Automattic/node-canvas
-
Notifications
You must be signed in to change notification settings - Fork 1
/
canvas.gypi
44 lines (44 loc) · 1.11 KB
/
canvas.gypi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
'variables':
{
'has_FBDev%': 'true',
'has_X11%': '<!(./util/has_lib.sh X11)'
},
'conditions':
[
['OS=="win"',
{
'sources': ['src/backend/Win32Backend.cc']
}],
['has_FBDev=="true"',
{
'defines': ['HAS_FBDEV'],
'sources': ['src/backend/FBDevBackend.cc']
}],
['has_X11=="true"',
{
'defines': ['HAS_X11'],
'sources': ['src/backend/X11Backend.cc'],
'libraries': ['-lX11', '-lXrender', '-lXext']
}]
],
'target_name': 'canvas',
'include_dirs': ["<!(node -e \"require('nan')\")"],
'sources':
[
'src/backend/Backend.cc',
'src/backend/ImageBackend.cc',
'src/Backends.cc',
'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',
],
'cflags!': ['-fno-exceptions'],
'cflags_cc!': ['-fno-exceptions']
}