From: Brendan Le Foll Date: Tue, 9 Dec 2014 18:38:54 +0000 (+0000) Subject: binding.gyp.cmake: define *PLAT based on target_platform X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c5e749c2c99dbd97667521514430feda7ee56da;p=contrib%2Fmraa.git binding.gyp.cmake: define *PLAT based on target_platform Signed-off-by: Brendan Le Foll --- diff --git a/src/javascript/binding.gyp.cmake b/src/javascript/binding.gyp.cmake index ba882db..fa1a73a 100644 --- a/src/javascript/binding.gyp.cmake +++ b/src/javascript/binding.gyp.cmake @@ -14,6 +14,17 @@ 'defines' : [ 'SWIG', 'SWIGNODE', 'BUILDING_NODE_EXTENSION=1' ], + 'conditions' : [ + [ 'target_arch=="x64"', + { 'defines' : [ 'X86PLAT=ON' ], }, + ], + [ 'target_arch=="x86"', + { 'defines' : [ 'X86PLAT=ON' ], }, + ], + [ 'target_arch=="arm"', + { 'defines' : [ 'ARMPLAT=ON' ], }, + ], + ], } ] }