Skip to content

Commit

Permalink
binding.gyp.cmake: get v8 version from node and export to c++ compiler
Browse files Browse the repository at this point in the history
Signed-off-by: Brendan Le Foll <[email protected]>
  • Loading branch information
arfoll committed Mar 19, 2015
1 parent 35d1dc1 commit c1ac6f1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/javascript/binding.gyp.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,16 @@
'include_dirs': [
@mraa_LIB_INCLUDE_DIRS_GYP@
],
'variables': {
"v8_version%": "<!(node -e 'console.log(process.versions.v8)' | sed 's/\.//g')"
},
'cflags_cc!': [ '-fno-rtti', '-fno-exceptions' ],
'cflags!': [ '-fno-exceptions' ],
'defines' : [ 'SWIG',
'SWIGJAVASCRIPT',
'BUILDING_NODE_EXTENSION=1' ],
'BUILDING_NODE_EXTENSION=1',
'SWIG_V8_VERSION=0x0<(v8_version)',
'V8_VERSION=0x0<(v8_version)' ],
'conditions' : [
[ 'target_arch=="x64"',
{ 'defines' : [ 'X86PLAT=ON' ], },
Expand Down

0 comments on commit c1ac6f1

Please sign in to comment.