Private
Public Access
2
0
Files
mraa/src/javascript/binding.gyp.cmake
Brendan Le Foll 2cb32f791c binding.gyp.cmake: fix compilation when not setting target_arch
NPM package now only builds x86 builds, but for npm those are the only ones
that have ever worked due to a rework of the cmake code generating the
binding.gyp file is required

Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
2015-06-03 14:51:13 +01:00

26 lines
705 B
CMake

{
'targets': [
{
'target_name': 'mraa',
'sources': [
@mraa_LIB_SRCS_GYP@
'src/version.c',
'src/mraajsJAVASCRIPT_wrap.cxx' ],
'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',
'SWIG_V8_VERSION=0x0<(v8_version)',
'V8_VERSION=0x0<(v8_version)',
'X86PLAT=ON' ]
}
]
}