Skip to content

Commit

Permalink
add binding.gyp for node-gyp
Browse files Browse the repository at this point in the history
  • Loading branch information
cguerreiro-igalia committed Jul 26, 2012
1 parent 60e8d51 commit e860475
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions binding.gyp
@@ -0,0 +1,25 @@
{
"targets": [
{
"target_name": "rawhash",
"sources": [
"src/rawhash.cpp",
"src/MurmurHash3.h",
"src/MurmurHash3.cpp"
],
'cflags': [ '<!@(pkg-config --cflags libsparsehash)' ],
'conditions': [
[ 'OS=="linux" or OS=="freebsd" or OS=="openbsd" or OS=="solaris"', {
'cflags_cc!': ['-fno-rtti', '-fno-exceptions'],
'cflags_cc+': ['-frtti', '-fexceptions'],
}],
['OS=="mac"', {
'xcode_settings': {
'GCC_ENABLE_CPP_RTTI': 'YES',
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES'
}
}]
]
}
]
}

0 comments on commit e860475

Please sign in to comment.