Browse Source

build: begin making gyp file work on unix

v1.x
Nathan Rajlich 13 years ago
parent
commit
cdb2421812
  1. 11
      binding.gyp
  2. 2
      src/Canvas.cc
  3. 2
      src/Canvas.h

11
binding.gyp

@ -1,7 +1,6 @@
{
'variables': {
# Set the location of GTK all-in-one bundle
'GTK_Root': 'C:/GTK',
'GTK_Root': 'C:/GTK' # Set the location of GTK all-in-one bundle
},
'targets': [
{
@ -17,14 +16,18 @@
'src/init.cc',
'src/PixelArray.cc',
],
'conditions': [
['OS=="win"', {
'libraries': ['-l<(GTK_Root)/lib/cairo.lib' ],
'include_dirs': [
'<(GTK_Root)/include/cairo',
'<(GTK_Root)/include',
],
'defines': [
'snprintf=_snprintf',
'_USE_MATH_DEFINES' # for M_PI
],
]
}]
]
}
]
}

2
src/Canvas.cc

@ -12,7 +12,7 @@
#include <string.h>
#include <node_buffer.h>
#include <node_version.h>
#include <cairo-pdf.h>
#include <cairo/cairo-pdf.h>
#include "closure.h"
#ifdef HAVE_JPEG

2
src/Canvas.h

@ -12,7 +12,7 @@
#include <node.h>
#include <node_object_wrap.h>
#include <node_version.h>
#include <cairo.h>
#include <cairo/cairo.h>
using namespace v8;
using namespace node;

Loading…
Cancel
Save