1{
2  'targets': [
3    {
4      'target_name': 'mraa',
5      'sources': [
6@mraa_LIB_SRCS_GYP@
7'src/version.c',
8'src/mraajsJAVASCRIPT_wrap.cxx' ],
9      'include_dirs': [
10@mraa_LIB_INCLUDE_DIRS_GYP@
11                      ],
12      'variables': {
13          "v8_version%": "<!(node -e 'console.log(process.versions.v8)' | sed 's/\.//g' | cut -c 1-5)",
14          "arch%": "<!(node -e 'console.log(process.arch)')"
15      },
16      'cflags_cc!': [ '-fno-rtti', '-fno-exceptions' ],
17      'cflags!': [ '-fno-exceptions' ],
18      'conditions' : [
19          [ 'arch=="x64"',
20            { 'defines' : [ 'X86PLAT=ON' ], },
21          ],
22          [ 'arch=="ia32"',
23            { 'defines' : [ 'X86PLAT=ON'], },
24          ],
25          [ 'arch=="arm"',
26            { 'defines' : [ 'ARMPLAT=ON'], },
27          ],
28      ],
29      'defines' : [ 'SWIG',
30                    'SWIGJAVASCRIPT',
31                    'BUILDING_NODE_EXTENSION=1',
32                    'SWIG_V8_VERSION=0x0<(v8_version)',
33                    'V8_VERSION=0x0<(v8_version)'
34      ]
35    }
36  ]
37}
38