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>
This commit is contained in:
@@ -18,18 +18,8 @@
|
|||||||
'SWIGJAVASCRIPT',
|
'SWIGJAVASCRIPT',
|
||||||
'BUILDING_NODE_EXTENSION=1',
|
'BUILDING_NODE_EXTENSION=1',
|
||||||
'SWIG_V8_VERSION=0x0<(v8_version)',
|
'SWIG_V8_VERSION=0x0<(v8_version)',
|
||||||
'V8_VERSION=0x0<(v8_version)' ],
|
'V8_VERSION=0x0<(v8_version)',
|
||||||
'conditions' : [
|
'X86PLAT=ON' ]
|
||||||
[ 'target_arch=="x64"',
|
|
||||||
{ 'defines' : [ 'X86PLAT=ON' ], },
|
|
||||||
],
|
|
||||||
[ 'target_arch=="ia32"',
|
|
||||||
{ 'defines' : [ 'X86PLAT=ON' ], },
|
|
||||||
],
|
|
||||||
[ 'target_arch=="arm"',
|
|
||||||
{ 'defines' : [ 'ARMPLAT=ON' ], },
|
|
||||||
],
|
|
||||||
],
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user