|
2 | 2 | 'conditions': [ |
3 | 3 | ['OS=="win"', { |
4 | 4 | 'variables': { |
5 | | - 'GTK_Root%': 'C:/GTK', # Set the location of GTK all-in-one bundle |
| 5 | + 'GTK_Root%': 'C:/GTK', # Set the location of GTK all-in-one bundle |
6 | 6 | 'with_jpeg%': 'false', |
7 | 7 | 'with_gif%': 'false' |
8 | 8 | } |
9 | | - }, { # 'OS!="win"' |
| 9 | + }, { # 'OS!="win"' |
10 | 10 | 'variables': { |
11 | 11 | 'with_jpeg%': '<!(./util/has_lib.sh jpeg)', |
12 | 12 | 'with_gif%': '<!(./util/has_lib.sh gif)' |
|
46 | 46 | 'target_name': 'canvas', |
47 | 47 | 'include_dirs': ["<!(node -e \"require('nan')\")"], |
48 | 48 | 'sources': [ |
| 49 | + 'src/backend/Backend.cc', |
| 50 | + 'src/backend/ImageBackend.cc', |
| 51 | + 'src/backend/PdfBackend.cc', |
| 52 | + 'src/backend/SvgBackend.cc', |
| 53 | + 'src/Backends.cc', |
49 | 54 | 'src/Canvas.cc', |
50 | 55 | 'src/CanvasGradient.cc', |
51 | 56 | 'src/CanvasPattern.cc', |
52 | 57 | 'src/CanvasRenderingContext2d.cc', |
| 58 | + 'src/closure.cc', |
53 | 59 | 'src/color.cc', |
54 | 60 | 'src/Image.cc', |
55 | 61 | 'src/ImageData.cc', |
| 62 | + 'src/init.cc', |
56 | 63 | 'src/register_font.cc', |
57 | | - 'src/init.cc' |
| 64 | + 'src/toBuffer.cc' |
58 | 65 | ], |
59 | 66 | 'conditions': [ |
60 | 67 | ['OS=="win"', { |
|
76 | 83 | '<(GTK_Root)/lib/glib-2.0/include' |
77 | 84 | ], |
78 | 85 | 'defines': [ |
79 | | - '_USE_MATH_DEFINES' # for M_PI |
| 86 | + '_USE_MATH_DEFINES' # for M_PI |
80 | 87 | ], |
81 | 88 | 'configurations': { |
82 | 89 | 'Debug': { |
83 | 90 | 'msvs_settings': { |
84 | 91 | 'VCCLCompilerTool': { |
85 | 92 | 'WarningLevel': 4, |
86 | 93 | 'ExceptionHandling': 1, |
87 | | - 'DisableSpecificWarnings': [4100, 4127, 4201, 4244, 4267, 4506, 4611, 4714, 4512] |
| 94 | + 'DisableSpecificWarnings': [ |
| 95 | + 4100, 4127, 4201, 4244, 4267, 4506, 4611, 4714, 4512 |
| 96 | + ] |
88 | 97 | } |
89 | 98 | } |
90 | 99 | }, |
|
93 | 102 | 'VCCLCompilerTool': { |
94 | 103 | 'WarningLevel': 4, |
95 | 104 | 'ExceptionHandling': 1, |
96 | | - 'DisableSpecificWarnings': [4100, 4127, 4201, 4244, 4267, 4506, 4611, 4714, 4512] |
| 105 | + 'DisableSpecificWarnings': [ |
| 106 | + 4100, 4127, 4201, 4244, 4267, 4506, 4611, 4714, 4512 |
| 107 | + ] |
97 | 108 | } |
98 | 109 | } |
99 | 110 | } |
100 | 111 | } |
101 | | - }, { # 'OS!="win"' |
| 112 | + }, { # 'OS!="win"' |
102 | 113 | 'libraries': [ |
103 | 114 | '<!@(pkg-config pixman-1 --libs)', |
104 | 115 | '<!@(pkg-config cairo --libs)', |
|
0 commit comments