|
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 | 'variables': { # Nest jpeg_root to evaluate it before with_jpeg |
|
17 | 17 | }] |
18 | 18 | ] |
19 | 19 | } |
20 | | - }, { # 'OS!="win"' |
| 20 | + }, { # 'OS!="win"' |
21 | 21 | 'variables': { |
22 | 22 | 'with_jpeg%': '<!(node ./util/has_lib.js jpeg)', |
23 | 23 | 'with_gif%': '<!(node ./util/has_lib.js gif)' |
|
57 | 57 | 'target_name': 'canvas', |
58 | 58 | 'include_dirs': ["<!(node -e \"require('nan')\")"], |
59 | 59 | 'sources': [ |
| 60 | + 'src/backend/Backend.cc', |
| 61 | + 'src/backend/ImageBackend.cc', |
| 62 | + 'src/backend/PdfBackend.cc', |
| 63 | + 'src/backend/SvgBackend.cc', |
| 64 | + 'src/Backends.cc', |
60 | 65 | 'src/Canvas.cc', |
61 | 66 | 'src/CanvasGradient.cc', |
62 | 67 | 'src/CanvasPattern.cc', |
63 | 68 | 'src/CanvasRenderingContext2d.cc', |
| 69 | + 'src/closure.cc', |
64 | 70 | 'src/color.cc', |
65 | 71 | 'src/Image.cc', |
66 | 72 | 'src/ImageData.cc', |
| 73 | + 'src/init.cc', |
67 | 74 | 'src/register_font.cc', |
68 | | - 'src/init.cc' |
| 75 | + 'src/toBuffer.cc' |
69 | 76 | ], |
70 | 77 | 'conditions': [ |
71 | 78 | ['OS=="win"', { |
|
87 | 94 | '<(GTK_Root)/lib/glib-2.0/include' |
88 | 95 | ], |
89 | 96 | 'defines': [ |
90 | | - '_USE_MATH_DEFINES' # for M_PI |
| 97 | + '_USE_MATH_DEFINES' # for M_PI |
91 | 98 | ], |
92 | 99 | 'configurations': { |
93 | 100 | 'Debug': { |
94 | 101 | 'msvs_settings': { |
95 | 102 | 'VCCLCompilerTool': { |
96 | 103 | 'WarningLevel': 4, |
97 | 104 | 'ExceptionHandling': 1, |
98 | | - 'DisableSpecificWarnings': [4100, 4127, 4201, 4244, 4267, 4506, 4611, 4714, 4512] |
| 105 | + 'DisableSpecificWarnings': [ |
| 106 | + 4100, 4127, 4201, 4244, 4267, 4506, 4611, 4714, 4512 |
| 107 | + ] |
99 | 108 | } |
100 | 109 | } |
101 | 110 | }, |
|
104 | 113 | 'VCCLCompilerTool': { |
105 | 114 | 'WarningLevel': 4, |
106 | 115 | 'ExceptionHandling': 1, |
107 | | - 'DisableSpecificWarnings': [4100, 4127, 4201, 4244, 4267, 4506, 4611, 4714, 4512] |
| 116 | + 'DisableSpecificWarnings': [ |
| 117 | + 4100, 4127, 4201, 4244, 4267, 4506, 4611, 4714, 4512 |
| 118 | + ] |
108 | 119 | } |
109 | 120 | } |
110 | 121 | } |
111 | 122 | } |
112 | | - }, { # 'OS!="win"' |
| 123 | + }, { # 'OS!="win"' |
113 | 124 | 'libraries': [ |
114 | 125 | '<!@(pkg-config pixman-1 --libs)', |
115 | 126 | '<!@(pkg-config cairo --libs)', |
|
0 commit comments