Skip to content

Commit

Permalink
Merge pull request #19 from Contra/master
Browse files Browse the repository at this point in the history
Update binding.gyp (fixes #18)
  • Loading branch information
pkrumins committed Apr 2, 2013
2 parents 9bd58f2 + 5626955 commit de7ee61
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 5 deletions.
30 changes: 28 additions & 2 deletions binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,34 @@
"src/module.cpp",
"src/buffer_compat.cpp",
],
"include_dirs" : [ "gyp/include" ]
"conditions" : [
[
'OS=="linux"', {
"libraries" : [
'-lpng',
'-lz'
],
'cflags!': [ '-fno-exceptions' ],
'cflags_cc!': [ '-fno-exceptions' ]
}
],
[
'OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
}
}
],
[
'OS=="win"', {
"include_dirs" : [ "gyp/include" ],
"libraries" : [
'<(module_root_dir)/gyp/lib/libpng.lib',
'<(module_root_dir)/gyp/lib/zlib.lib'
]
}
]
]
}
]
}

3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
},
"engines": {
"node": ">=0.6.0"
},
"scripts": {
"install": "node-waf configure build"
}
}

0 comments on commit de7ee61

Please sign in to comment.