Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Update binding.gyp (fixes #18) #19

Merged
merged 1 commit into from

2 participants

@contra

No description provided.

@pkrumins pkrumins merged commit de7ee61 into from
@pkrumins
Owner

thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 1, 2012
  1. @contra

    fix binding.gyp

    contra authored
This page is out of date. Refresh to see the latest.
Showing with 28 additions and 5 deletions.
  1. +28 −2 binding.gyp
  2. +0 −3  package.json
View
30 binding.gyp
@@ -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'
+ ]
+ }
+ ]
+ ]
}
]
}
-
View
3  package.json
@@ -30,9 +30,6 @@
},
"engines": {
"node": ">=0.6.0"
- },
- "scripts": {
- "install": "node-waf configure build"
}
}
Something went wrong with that request. Please try again.