Skip to content

Commit

Permalink
node-png-sync now compiles on linux as well as on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
pkrumins committed Apr 1, 2012
1 parent 583dd57 commit 8564f07
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions binding.gyp
Expand Up @@ -11,10 +11,26 @@
"src/module.cpp",
"src/buffer_compat.cpp",
],
"include_dirs" : [ "gyp/include" ],
"libraries" : [
'<(module_root_dir)/gyp/lib/libpng.lib',
'<(module_root_dir)/gyp/lib/zlib.lib'
"conditions" : [
[
'OS=="linux"', {
"libraries" : [
'-lpng',
'-lz'
],
'cflags!': [ '-fno-exceptions' ],
'cflags_cc!': [ '-fno-exceptions' ]
}
],
[
'OS=="win"', {
"include_dirs" : [ "gyp/include" ],
"libraries" : [
'<(module_root_dir)/gyp/lib/libpng.lib',
'<(module_root_dir)/gyp/lib/zlib.lib'
]
}
]
]
}
]
Expand Down

0 comments on commit 8564f07

Please sign in to comment.