Skip to content

Commit

Permalink
Merge pull request pgriess#17 from dainis/nan_for_0.11.x
Browse files Browse the repository at this point in the history
Use nan to make it compatible with node 0.11.x
  • Loading branch information
godsflaw committed Aug 18, 2014
2 parents 50f634e + 74e69c6 commit c5a8922
Show file tree
Hide file tree
Showing 3 changed files with 145 additions and 135 deletions.
137 changes: 69 additions & 68 deletions binding.gyp
@@ -1,70 +1,71 @@
{
"targets": [
{
'target_name': 'msgpackBinding',
'sources': [
'src/msgpack.cc',
],
'include_dirs': [
'deps/msgpack'
],
'dependencies': [
'deps/msgpack/msgpack.gyp:libmsgpack'
],
'cflags_cc': [
'-Wall',
'-O3'
],
'cflags': [
'-Wall',
'-O3'
],
'cflags!': [
'-fno-exceptions',
'-Wno-unused-function'
],
'cflags_cc!': [
'-fno-exceptions',
'-Wno-unused-function'
],
'conditions': [
['OS=="mac"', {
'configurations': {
'Debug': {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'WARNING_CFLAGS': ['-Wall', '-Wno-unused-function'],
}
},
'Release': {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'WARNING_CFLAGS': ['-Wall', '-Wno-unused-function'],
},
},
},
}],
['OS=="win"', {
'configurations': {
'Debug': {
'msvs_settings': {
'VCCLCompilerTool': {
'CompileAs': '2',
'ExceptionHandling': '1',
},
},
},
'Release': {
'msvs_settings': {
'VCCLCompilerTool': {
'CompileAs': '2',
'ExceptionHandling': '1',
},
},
},
},
}]
]
},
]
"targets": [
{
'target_name': 'msgpackBinding',
'sources': [
'src/msgpack.cc',
],
'include_dirs': [
'deps/msgpack',
'<!(node -e "require(\'nan\')")'
],
'dependencies': [
'deps/msgpack/msgpack.gyp:libmsgpack'
],
'cflags_cc': [
'-Wall',
'-O3'
],
'cflags': [
'-Wall',
'-O3'
],
'cflags!': [
'-fno-exceptions',
'-Wno-unused-function'
],
'cflags_cc!': [
'-fno-exceptions',
'-Wno-unused-function'
],
'conditions': [
['OS=="mac"', {
'configurations': {
'Debug': {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'WARNING_CFLAGS': ['-Wall', '-Wno-unused-function'],
}
},
'Release': {
'xcode_settings': {
'GCC_ENABLE_CPP_EXCEPTIONS': 'YES',
'WARNING_CFLAGS': ['-Wall', '-Wno-unused-function'],
},
},
},
}],
['OS=="win"', {
'configurations': {
'Debug': {
'msvs_settings': {
'VCCLCompilerTool': {
'CompileAs': '2',
'ExceptionHandling': '1',
},
},
},
'Release': {
'msvs_settings': {
'VCCLCompilerTool': {
'CompileAs': '2',
'ExceptionHandling': '1',
},
},
},
},
}]
]
},
]
}
9 changes: 6 additions & 3 deletions package.json
Expand Up @@ -64,9 +64,12 @@
"directories": {
"lib": "lib"
},
"devDependencies": {
"nodeunit" : "https://github.com/godsflaw/nodeunit/archive/master.tar.gz"
},
"dependencies" : {
"nan" : "~1.0.0"
},
"devDependencies": {
"nodeunit" : "https://github.com/godsflaw/nodeunit/archive/master.tar.gz"
},
"engines": {
"node": ">=0.8.x"
},
Expand Down

0 comments on commit c5a8922

Please sign in to comment.