binding.gyp.cmake: define *PLAT based on target_platform
Signed-off-by: Brendan Le Foll <brendan.le.foll@intel.com>
This commit is contained in:
@@ -14,6 +14,17 @@
|
|||||||
'defines' : [ 'SWIG',
|
'defines' : [ 'SWIG',
|
||||||
'SWIGNODE',
|
'SWIGNODE',
|
||||||
'BUILDING_NODE_EXTENSION=1' ],
|
'BUILDING_NODE_EXTENSION=1' ],
|
||||||
|
'conditions' : [
|
||||||
|
[ 'target_arch=="x64"',
|
||||||
|
{ 'defines' : [ 'X86PLAT=ON' ], },
|
||||||
|
],
|
||||||
|
[ 'target_arch=="x86"',
|
||||||
|
{ 'defines' : [ 'X86PLAT=ON' ], },
|
||||||
|
],
|
||||||
|
[ 'target_arch=="arm"',
|
||||||
|
{ 'defines' : [ 'ARMPLAT=ON' ], },
|
||||||
|
],
|
||||||
|
],
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user