forked from Automattic/node-canvas
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Automattic#169 from andreasbotsikas/windows-build
Added instructions and the binding.gyp to build the module in windows
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
'variables': { | ||
# Set the location of GTK all-in-one bundle | ||
'GTK_Root': 'C:/GTK', | ||
}, | ||
'targets': [ | ||
{ | ||
'target_name': 'canvas', | ||
'sources': [ | ||
'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', | ||
], | ||
'libraries': ['-l<(GTK_Root)/lib/cairo.lib' ], | ||
'include_dirs': [ | ||
'<(GTK_Root)/include/cairo', | ||
], | ||
'defines': [ | ||
'snprintf=_snprintf', | ||
'_USE_MATH_DEFINES' # for M_PI | ||
], | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters