npm: start generating the collateral needed to publish sources to npm
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
25
src/binding.gyp.in
Normal file
25
src/binding.gyp.in
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
'targets': [
|
||||
{
|
||||
'target_name': 'jsupm_@libname@',
|
||||
'sources': [
|
||||
@upm_LIB_SRCS_GYP@
|
||||
],
|
||||
'include_dirs': [
|
||||
@upm_LIB_INCLUDE_DIRS_GYP@
|
||||
],
|
||||
'variables': {
|
||||
"v8_version%": "<!(node -e 'console.log(process.versions.v8)' | sed 's/\.//g' | cut -c 1-5)",
|
||||
"arch%": "<!(node -e 'console.log(process.arch)')"
|
||||
},
|
||||
'cflags_cc!': [ '-fno-rtti', '-fno-exceptions' ],
|
||||
'cflags!': [ '-fno-exceptions' ],
|
||||
'defines' : [
|
||||
'SWIG',
|
||||
'BUILDING_NODE_EXTENSION=1',
|
||||
'SWIG_V8_VERSION=0x0<(v8_version)',
|
||||
'V8_VERSION=0x0<(v8_version)'
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user