Permalink
Browse files

add binding.gyp for node-gyp

  • Loading branch information...
1 parent 60e8d51 commit e86047546693290556494bf00b493aa4ae770482 @cguerreiro-igalia cguerreiro-igalia committed Jul 26, 2012
Showing with 25 additions and 0 deletions.
  1. +25 −0 binding.gyp
View
@@ -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.